Last modified: 2008-06-08 15:31:05 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 T14817, the corresponding Phabricator task for complete and up-to-date bug report information.
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