public interface OntologyTripleStore
Ontology.getOntologyTripleStore()
.Modifier and Type | Method and Description |
---|---|
void |
addOntologyTripleStoreListener(OntologyTripleStoreListener listener)
Add a listener for ontology triple store additions and removals.
|
void |
addTriple(ONodeID subject,
OURI predicate,
Literal object)
Add a triple with a literal triple object to the triple store.
|
void |
addTriple(ONodeID subject,
OURI predicate,
ONodeID object)
Add a triple with a non-literal triple object to the triple store.
|
boolean |
hasTriple(ONodeID subject,
OURI predicate,
Literal object)
Check if a given triple with a literal object is part of the ontology.
|
boolean |
hasTriple(ONodeID subject,
OURI predicate,
ONodeID object)
Check if a given triple with an URI object is part of the ontology.
|
void |
removeOntologyTripleStoreListener(OntologyTripleStoreListener listener)
Remove an existing listener for ontology triple store additions and removals.
|
void |
removeTriple(ONodeID subject,
OURI predicate,
Literal object)
Remove a statement(triple) with a literal triple object from the ontology triple
store.
|
void |
removeTriple(ONodeID subject,
OURI predicate,
ONodeID object)
Remove a statement(triple) with a non-literal triple object
from the ontology triple
store.
|
void addTriple(ONodeID subject, OURI predicate, ONodeID object)
subject
- predicate
- object
- void addTriple(ONodeID subject, OURI predicate, Literal object)
subject
- predicate
- object
- void removeTriple(ONodeID subject, OURI predicate, ONodeID object)
subject
- predicate
- object
- void removeTriple(ONodeID subject, OURI predicate, Literal object)
subject
- predicate
- object
- void addOntologyTripleStoreListener(OntologyTripleStoreListener listener)
NOTE: the listener will not get all events for modifications made through methods other than the direct triple addition and removal methods of the OntologyTripleStore object.
listener
- OntologyTripleStoreListener objectboolean hasTriple(ONodeID subject, OURI predicate, ONodeID object)
subject
- predicate
- object
- boolean hasTriple(ONodeID subject, OURI predicate, Literal object)
subject
- predicate
- object
- void removeOntologyTripleStoreListener(OntologyTripleStoreListener listener)
listener
- OntologyTripleStoreListener objectCopyright © 2024 GATE. All rights reserved.