Last modified: 2008-06-08 15:31:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12817 - {{#ask}} support for inclusive OR
{{#ask}} support for inclusive OR
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-28 15:14 UTC by Dan T
Modified: 2008-06-08 15:31 UTC (History)
2 users (show)

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


Attachments

Description Dan T 2008-01-28 15:14:45 UTC
The SMW <ask> tag reportedly includes an undocumented feature that supports 'inclusive or' between query properties.  Both tag extension and parser function support 'inclusive or' to compare different values for same property, for example:

{{#ask: [[prop1::value1||value2]] }}

Request similar functionality between different properties.  For example, ability to resolve following where '||' syntax represents OR:

{{#ask: [[prop1::{{PAGENAME}}]] || [[prop2::{{PAGENAME}}]] }}
Comment 1 Thomas Bleher 2008-01-29 10:10:54 UTC
Setting to severity to "enhancement", as this is really a feature request IMO.
It's certainly not a "blocker", since SMW works just fine without it, it's just missing some functionality.
Comment 2 Markus Krötzsch 2008-06-08 15:31:05 UTC
This is now implemented, where the keyword "OR" is used for disjunctions at top-level ("||" would conflict with MediaWikis parsing for {{# ...}}). This only works properly with the new storage engine (for SVN version, this is not the default yet. Set $smwgDefaultStore = 'SMWSQLStore2'; in LocalSettings.php, and use SMW_setup.php and SMW_refreshData.php again to convert data from the old store).

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


Navigation
Links