Page MenuHomePhabricator

Support display of subproperties in query printouts
Closed, DeclinedPublic

Description

Author: john.s.carter

Description:
The + opperator allows a query to automagically select all pages meeting given params DIRECTLY via a SMW property and INDIRECTLY via any subproperties. However, the associated * operator only displays the params from the named parent property. The only way to display subproperty values is to hard-code each needed property into the query.

This enhancement request is to add functionality to display the property and subproperty values for all pages selected by a + query. Essentially, this allows for a display of the list of selected pages along with the specific property value. This has been discussed on the SMW UG, and the consensus seems to be that while there is a use case for this, there is also a use case for the existing functionality. Therefore, maybe we need an alternate "display all subproperties" syntax, e.g.,

[[Prop_name::*]] (current syntax, current functionality)
[[Prop_name*::*]] (note extra *, would add "display subproperties" functionality)

Thanks!


Version: unspecified
Severity: enhancement

Details

Reference
bz12822

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:06 PM
bzimport set Reference to bz12822.
  • Bug 13319 has been marked as a duplicate of this bug. ***
  • Bug 14821 has been marked as a duplicate of this bug. ***

Re-assign to extension developer for triage/comments.

Now that the syntax of printout statements has changed anyway, a modified approach would be needed. Essentially this also depends on the possibility of passing parameters to printouts. I also note that I am not quite sure about the performance implications of this addition.

  • Bug 16709 has been marked as a duplicate of this bug. ***

A possible syntax (suggested in Bug 16709) is to use "+" instead of "?" to choose this alternative to normal printouts. I would prefer some solution that leaves the "?" at the first position, since it is the clear sign that some query parameter is a printout.

  • Bug 21231 has been marked as a duplicate of this bug. ***
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.