Page MenuHomePhabricator

print out of chained property values
Closed, DeclinedPublic

Description

Author: zaltenbach

Description:
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.


Version: unspecified
Severity: enhancement

Details

Reference
bz21232

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:51 PM
bzimport set Reference to bz21232.

stefan.harwarth wrote:

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

mail wrote:

(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 :)

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.