|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (12)
View Page History
| {{fts:prefixMatchIgnoreCase}} | Similar to the above but ignores case. For example, {{<United:States>}} will match "The president of the United States", "United Statesless", "united states" but not "notUnited notStates". |
The namespace prefix {{onto}} in the above table {{<}}{{[http://www.ontotext.com/owlim/fts#]}}{{>}}
There follow some query examples for Node search in SPARQL and SeRQL:
* *Example 1:* Get all values that contain a token that matches exactly with 'abstract'
* *Example 1:* Get all values that contain a token that matches exactly with 'abstract'

|| Default | <none> ||
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
INSERT DATA \{ luc:excludeEntities luc:setParam "http://www.w3.org/2000/01/rdf-schema#Class [http://www.example.com/dummy#E1]" \} ||
\\
|| Parameter | *Exclude predicates* ||
|| Parameter | *Exclude predicates* ||

|| Default | <none> ||
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
INSERT DATA \{ luc:excludePredicates luc:setParam "http://www.w3.org/2000/01/rdf-schema#subClassOf [http://www.example.com/dummy#p1]" \} ||
\\
|| Parameter | *Include* ||
|| Parameter | *Include* ||

|| Default | <none> ||
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
INSERT DATA \{ luc:includeEntities luc:setParam "http://www.w3.org/2000/01/rdf-schema#Class [http://www.example.com/dummy#E1]" \} ||
\\
|| Parameter | *Include predicates* ||
|| Parameter | *Include predicates* ||

|| Default | <none> ||
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
INSERT DATA \{ luc:includePredicates luc:setParam "http://www.w3.org/2000/01/rdf-schema#subClassOf [http://www.example.com/dummy#p1]" \} ||
\\
|| Parameter | *Index* ||
|| Parameter | *Index* ||

|| Description | Used to set an alternative scorer that provides boosting values that adjust the relevance (and hence the ordering) of results to a Lucene query. By default, this parameter has no value and no additional scoring takes place, however, if the useRDFRank parameter is set to true, then the RDF Rank scores are used (see section 10.1). \\
An alternative scorer must implement this interface: \\
An alternative scorer must implement this interface: \\
com.ontotext.trree.plugin.lucene.Scorer \\
In order to use an alternative scorer, use this parameter to identify the name of a Java factory class that can instantiate it. The factory class must be available on the Java virtual machine's classpath and must implement this interface: \\
com.ontotext.trree.plugin.lucene.ScorerFactory ||
|| Default | <none> ||
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\
|| Example | PREFIX luc: <[http://www.ontotext.com/owlim/lucene#]> \\

PREFIX luc: <http://www.ontotext.com/owlim/lucene#>
INSERT DATA {
INSERT DATA {
luc:index luc:setParam "uris" .
luc:include luc:setParam "literals" .
luc:moleculeSize luc:setParam "1" .
luc:includePredicates luc:setParam "http://www.w3.org/2000/01/rdf-schema#label" .
luc:includePredicates luc:setParam "http://www.w3.org/2000/01/rdf-schema#label" .

{noformat}
Create a new index call {{luc:myTestIndex}} - \- note that the index name must be in the {{<}}{{[http://www.ontotext.com/owlim/lucene#]}}{{>}} namespace:
{noformat}

|| ?id ||
| [http://example.com#astonMT] |
| [http://www1.aston.ac.uk/] |
showing that {{ex:astonMartin}} was not returned, because it does not have an {{rdfs:label}} linking it to the appropriate text.
