public interface OntologyTripleStore
Ontology#getOntologyTripleStore().| Modifier and Type | Method and Description |
|---|---|
void |
addOntologyTripleStoreListener(OntologyTripleStoreListener listener,
boolean directTripleEventsOnly)
Add a listener for ontology triple store additions and removals.
|
void |
addTriple(gate.creole.ontology.ONodeID subject,
gate.creole.ontology.OURI predicate,
gate.creole.ontology.Literal object)
Add a triple with a literal triple object to the ontology.
|
void |
addTriple(gate.creole.ontology.ONodeID subject,
gate.creole.ontology.OURI predicate,
gate.creole.ontology.ONodeID object)
Add a triple to the ontology.
|
void |
removeOntologyTripleStoreListener(OntologyTripleStoreListener listener)
Add a listener for ontology triple store additions and removals.
|
void |
removeTriple(gate.creole.ontology.ONodeID subject,
gate.creole.ontology.OURI predicate,
gate.creole.ontology.Literal object)
Remove a statement(triple) with a non-literal triple object from the
ontology triple
store.
|
void |
removeTriple(gate.creole.ontology.ONodeID subject,
gate.creole.ontology.OURI predicate,
gate.creole.ontology.ONodeID object)
Remove a statement(triple) with a non-literal triple object from the
ontology triple
store.
|
void addTriple(gate.creole.ontology.ONodeID subject,
gate.creole.ontology.OURI predicate,
gate.creole.ontology.ONodeID object)
OURI in place of ONodeID for the subject and
object parameters.subject - the subject of the triple to addpredicate - the predicate of the triple to addobject - the object of the triple to addvoid addTriple(gate.creole.ontology.ONodeID subject,
gate.creole.ontology.OURI predicate,
gate.creole.ontology.Literal object)
OURI in place of ONodeID for the subject parameter.subject - the subject of the triple to addpredicate - the predicate of the triple to addobject - the object of the triple to addvoid removeTriple(gate.creole.ontology.ONodeID subject,
gate.creole.ontology.OURI predicate,
gate.creole.ontology.ONodeID object)
NOTE: if a null value is passed for the object parameter, triples with any value for the triple object, no matter if it is a literal or non-literal or a blank node will be removed!!
subject - the triple subject to match for triple removals or nullpredicate - the triple predicate to match for triple removals or nullobject - the triple object to match for triple removals or nullvoid removeTriple(gate.creole.ontology.ONodeID subject,
gate.creole.ontology.OURI predicate,
gate.creole.ontology.Literal object)
NOTE: if a null value is passed for the object parameter, triples with any value for the triple object, no matter if it is a literal or non-literal or a blank node will be removed!!
subject - the triple subject to match for triple removals or nullpredicate - the triple predicate to match for triple removals or nullobject - the triple object to match for triple removals or nullvoid addOntologyTripleStoreListener(OntologyTripleStoreListener listener, boolean directTripleEventsOnly)
NOTE: this is not fully implemented yet and will at the moment only receive events for direct triple additions and removal from this interface, not for triple additions or removals initiaded by other Ontology API operations.
listener - The OntologyTripleStoreListener instancedirectTripleEventsOnly - if true, only listen for direct triple
addition or removal operations through this interface; if false, also
listen for triple additions or removals caused by other Ontology API
calls (NOTE: the behavior for false is not implemented yet!!)void removeOntologyTripleStoreListener(OntologyTripleStoreListener listener)
NOTE: this is not fully implemented yet and will at the moment only receive events for direct triple additions and removal from this interface, not for triple additions or removals initiaded by other Ontology API operations.
listener - The OntologyTripleStoreListener instancedirectTripleEventsOnly - if true, only listen for direct triple
addition or removal operations through this interface; if false, also
listen for triple additions or removals caused by other Ontology API
calls (NOTE: the behavior for false is not implemented yet!!)