Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (array $prefix_map=[]) | |
parse ( $term) | |
The term parser uses a simplified string to build an #ask conform query string, for example:
in:foo bar || (phrase:bar && not:foo)
becomes [[in: foo bar]] || <q>[[phrase:bar]] && [[not:foo]]</q>
in:(foo && bar)
becomes [[in:foo]] && [[in:bar]]A custom prefix map allows to create assignments between a custom prefix and a property set and hereby simplifies the search input process.
GNU GPL v2+
SMW\Query\Parser\TermParser::__construct | ( | array | $prefix_map = [] | ) |
array | $prefix_map |
SMW\Query\Parser\TermParser::parse | ( | $term | ) |
string | $term |