public interface OntologyBooleanQuery
Ontology.createBooleanQuery(String, gate.creole.ontology.OConstants.QueryLanguage)
.
NOTE: querying the ontology triple store directly should be avoided and only done in exceptional cases. Using the methods to query and access ontology entities should be preferred whenever possible!
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate()
Evaluate the boolean query and return whether it evaluates to true
or false;
|
void |
setBinding(String varName,
Literal value)
Re-assign a query variable to a new value.
|
void |
setBinding(String varName,
LiteralOrONodeID value)
Re-assign a query variable to a new value.
|
void |
setBinding(String varName,
ONodeID value)
Re-assign a query variable to a new value.
|
void setBinding(String varName, LiteralOrONodeID value)
varName
- - the name of the variable to be reassignedvalue
- - a LiteralOrONodeID object representing either a literal or
either an URI or a blank node identifier.void setBinding(String varName, ONodeID value)
varName
- - the name of the variable to be reassignedvalue
- - a ONodeID object (usually a OURI object)void setBinding(String varName, Literal value)
varName
- - the name of the variable to be reassignedvalue
- - a Literal objectboolean evaluate()
Copyright © 2024 GATE. All rights reserved.