|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyTripleStore
An OntologyTripleStore object can be used to directly manipulate the
triples that represent an ontology, if the ontology implementation
supports this. The OntologyTripleStore object can be accessed using
the method Ontology.getOntologyTripleStore()
.
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
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 objectvoid removeOntologyTripleStoreListener(OntologyTripleStoreListener listener)
listener
- OntologyTripleStoreListener object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |