[Bug 31269] Query (ask) for pages where a property isn't set?
https://bugzilla.wikimedia.org/show_bug.cgi?id=31269 Francesco Panico fpan...@imolinfo.it changed: What|Removed |Added CC||fpan...@imolinfo.it --- Comment #4 from Francesco Panico fpan...@imolinfo.it 2012-09-06 13:20:03 UTC --- Here there is a Array based workaround . It is not very performant but it is a workaround. Question: If you have an Application Category and you ask for the Application instance with Has owner and Has user properties empty. Answare: Step 1: ask for all Application instances and save the list in all named array Step 2: ask for Application instances with valued Has owner and Has user properties, and save the list in onlyfull named array Step 3: calculate a new array: all minus onlyfull Step 4: print the new array Code: {{#ask:[[Category:Application]]|format=array|name=all}} {{#ask:[[Category:Application]][[Has owner::+]][[Has user::+]]|format=array|name=onlyfull}} {{#arraydiff:x |all |onlyfull }} Application with no 'user' and 'owner': {{#arrayprint:x ||@ |@ |print=pretty }} -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 31269] Query (ask) for pages where a property isn't set?
https://bugzilla.wikimedia.org/show_bug.cgi?id=31269 --- Comment #3 from Jeroen De Dauw jeroen_ded...@yahoo.com 2012-04-08 16:33:52 UTC --- Adding some thoughts since Nichay wants to tackle this bug: So this feature addition consists of 3 parts * Extend the ask language with this new ! syntax. This requires modifying SMWQueryParser and the new code will need to be placed on the same places where the + operator (any values) is located, which you can find by doing a search for '+' (those 3 characters). Currently this is line 187, 271, 331 and 430. * Have some new way to represent property with no value internally. AFAIK we do not have this yet, but should double check with Markus and ask for his thoughts on best way to implement. Will likely involve creating a new class deriving from SMWDescription or modifying an existing one. * Make the store(s) actually handle the new description. If we just want to implement this for MySQL and PostgreSQL, this will involve modifying SMWSQLStore2. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 31269] Query (ask) for pages where a property isn't set?
https://bugzilla.wikimedia.org/show_bug.cgi?id=31269 --- Comment #1 from Dan Bolser dan.bol...@gmail.com 2011-09-30 10:31:59 UTC --- I guess a good syntax would be [[Some prop::!]], for example: {{#ask: [[Category:x]] [[Some prop::!]] }} This fits with the style of the opposite query for pages where the property is set (to any value): {{#ask: [[Category:x]] [[Some prop::+]] }} Just an idea (although I understand the issue here isn't one of suitable syntax, but rather efficiency of SQL). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 31269] Query (ask) for pages where a property isn't set?
https://bugzilla.wikimedia.org/show_bug.cgi?id=31269 Jeroen De Dauw jeroen_ded...@yahoo.com changed: What|Removed |Added Severity|normal |enhancement --- Comment #2 from Jeroen De Dauw jeroen_ded...@yahoo.com 2011-09-30 15:04:45 UTC --- I agree with the syntax, and the usefulness of such a feature in general. Should not be to difficult to implement actually. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l