Page MenuHomePhabricator

#ask queries for u-queryable property values should report error
Closed, ResolvedPublic

Description

Author: dongiulio

Description:
Hi,

In my wiki (MediaWiki 1.13.2) I've got some properties set some time ago with smw 1.11. Yesterday I added some new properties which are used only in pages that are in the namespace "TestFramework".

I also added some #ask queries in
http://www.wikijava.org/test/w/index.php?title=TestFramework:Contribute
login: test
password: test

The result is that some queries don't give the expected results while others do.

My feeling is that the queries that get corrupted are the ones which include results in the new namespace "TestFramework". While the queries that are just supposed to give results only in the main namespace fine.

All the other features work fine. also in the namespace "TestFramework".

I upgraded to smw 1.13 and the problem still persist both with the old and with the new store.
(the server online has still the old store, I tested it on local)

Thanks,


Version: unspecified
Severity: normal
URL: http://www.wikijava.org/test/w/index.php?title=TestFramework:Contribute#All_feature_groups

Details

Reference
bz16067

Event Timeline

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

The reason is that the problematic properties use Type:Text which cannot be used in value-matching searches. The search thus abstract "search objects with property P with value V" to "search objects with property P". Not reporting this problem is confusing, and hence will require fixing.

For your application, it should suffice to change the "Text" type to "String" in all cases where very long texts are not required as values (the list is at http://www.wikijava.org/test/w/index.php?title=Type:Text)

dongiulio wrote:

Indeed it solved,

I think reporting this problem in http://semantic-mediawiki.org/wiki/Help:Displaying_information this page could avoid other people having the same issue.

Thank you very much.

Giulio