Page MenuHomePhabricator

The ! (not) Comparator doesn't work for many-valued properties
Closed, DeclinedPublic

Description

Author: tarkis13

Description:
Performing a query for pages that do not have a particular value, as in [[Type::!A]], returns pages with the excluded value so long as the page has other values specified for the relevant property.

An example can be seen in the SMW sandbox at http://sandbox.semantic-mediawiki.org/wiki/PageABTest

In that example, PageA has Type::A, while PageAB has Type::A and Type::B. The second and third queries ask for pages with Type::!A, which should exclude both pages, but only excludes PageA. PageAB is included in the results despite being exempted by the query. Other pages listed in second and third queries appear to be artifacts and are not relevant to the issue.

Even if this behavior is desired, a method of excluding pages where any member of a set of properties met the exclusion criteria would be helpful.


Version: unspecified
Severity: normal

Details

Reference
bz28729

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:27 PM
bzimport set Reference to bz28729.
bzimport added a subscriber: Unknown Object (MLST).

I had a quick look at this, but don't see how to nicely fix the query to not fail for this. Markus, can you take care of this one?

Unknown Object (User) added a comment.Nov 7 2012, 9:16 AM

If this isn't fixed yet, it will not be fixed with SMW 1.8 but it should be made available in SMW 1.9 therefore I had this to the tracking ticket bug 41842.

James, are you planning to implement this? If so, fantastic. If not, we probably should not list it as something we'll do for 1.9.

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.