Last modified: 2012-11-02 10:40:44 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 T33118, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31118 - inverse property no longer working in #concept in v1.6.1
inverse property no longer working in #concept in v1.6.1
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All Linux
: High major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-23 15:51 UTC by mtyeh411
Modified: 2012-11-02 10:40 UTC (History)
3 users (show)

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


Attachments

Description mtyeh411 2011-09-23 15:51:23 UTC
I have created a concept using the #concept parser function in a page in the Concept namespace.  It was created with a query string that uses the inverse property label (ie, with a '-' before the property) and subqueries.  However, the resulting query that was saved in the concept does not preserve the inverse property labell thereby, using a totally different query.

So, the concept was created with {{#concept:[[-Foo.bar::baz]]}} and results in a concept with [[Foo.bar::baz]] as its query.

This feature was properly functioning in previous versions of SMW (tested with v1.5.4), but is no longer working in v1.6.1.  For this reason, I am elevating the severity to a major loss in functionality.
Comment 1 Jeroen De Dauw 2011-09-24 12:16:41 UTC
I'm guessing this has something to do with the data item changes. Markus, any ideas?
Comment 2 mtyeh411 2012-03-13 13:30:47 UTC
I'm still noticing this as of SMW 1.8 alpha.

Please check [http://scratchpad.referata.com/wiki/Concept:Test] for example.

The concept does not contain the expected pages.

Based on the debug printout of query containing inverse property, the generated wiki query seems off, even though the results return as expected.
Comment 3 Markus Krötzsch 2012-11-01 17:26:50 UTC
Change https://gerrit.wikimedia.org/r/#/c/31279/ fixes two problems with inverse properties:

(1) The "-" would not be shown in query strings that are generated from parsed queries.
(2) Queries would fail if the property after the - would be written in lower case.

I think that the first should have caused this bug, so it is probably fixed as soon as the above change is merged.
Comment 4 Markus Krötzsch 2012-11-02 10:40:44 UTC
Change was merged now; problem should be fixed in master. It is probably necessary to refresh all affected Concept: pages because the error will have been stored in the database.

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


Navigation
Links