Last modified: 2010-03-29 21:22:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23232, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21232 - print out of chained property values
print out of chained property values
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-22 11:50 UTC by Philipp
Modified: 2010-03-29 21:22 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Philipp 2009-10-22 11:50:08 UTC
In ask queries you can use property chains in the condition part of an ask query.
For instance you can ask for all cities which are located in something that is member of (a union).
{{#ask: [[Category:City]] [[locatedIn.MemberOf::+]]}}

What you cannot do is to printout the values of chained properties, e.g.
|?locatedIn.MemberOf

This is something that is currently possible in SPARQL, but I think it would be nice to support this in SMW, too.
Comment 1 Stefan Harwarth 2009-12-18 11:56:24 UTC
I'd really like to see that feature, too, since it is a common use case when you have a transitive relation between three objects. 

The workarounds with arraymap or output to a template that contains another #ask-command are ugly and bad to maintain.

Stefan
Comment 2 Patrick 2010-02-12 09:51:09 UTC
(In reply to comment #1)
> The workarounds with arraymap or output to a template that contains another
> #ask-command are ugly and bad to maintain.

Oh yes, they are. This just came up on the mailing list (again):
http://tinyurl.com/yjdhgbc

Would be great if that could be added :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links