Page MenuHomePhabricator

print-out of subproperty values
Closed, ResolvedPublic

Description

Author: zaltenbach

Description:
In SMW you can state a property as subproperty of a more general property.
E.g. you can state for Property:HasProjectLeader: [[subproperty of::Property:HasResponsiblePerson]].

Now assume you want to query for all things having a responsible person and print out the responsible person:

{{#ask: [[HasResponsiblePerson::+]] | ?HasResponsiblePerson}}

You also get pages using more specialized properties (e.g. HasProjectLeader); however the printout does not work if a more specialized property is used.


Version: unspecified
Severity: minor

Details

Reference
bz21231

Event Timeline

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

zaltenbach wrote:

Another example would be:
{{#ask:[[Category:Task]] |?Assignee.Firstname}}

The printout of a chained property value might be e.g. useful, when ?Assignee does not contain a meaningful name, but e.g. a person ID.

zaltenbach wrote:

aaah ignore my last comment, it was meant for the enhancement of printing out chained property values
(see https://bugzilla.wikimedia.org/show_bug.cgi?id=21232).

  • This bug has been marked as a duplicate of bug 12822 ***