gate.creole.ontology
Interface OntologyTripleStore


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().

Author:
Johann Petrak

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

addTriple

void addTriple(ONodeID subject,
               OURI predicate,
               ONodeID object)
Add a triple with a non-literal triple object to the triple store.

Parameters:
subject -
predicate -
object -

addTriple

void addTriple(ONodeID subject,
               OURI predicate,
               Literal object)
Add a triple with a literal triple object to the triple store.

Parameters:
subject -
predicate -
object -

removeTriple

void removeTriple(ONodeID subject,
                  OURI predicate,
                  ONodeID object)
Remove a statement(triple) with a non-literal triple object from the ontology triple store. The null value can be used for any of the subject, predicate, or object parameters as a wildcard indicator: in that case, triples with any value for that parameter will be removed. NOTE: if a null value is passed for the object parameter, triples with any value for the object, no matter if it is a literal or non-literal (including blank nodes) will be removed!!

Parameters:
subject -
predicate -
object -

removeTriple

void removeTriple(ONodeID subject,
                  OURI predicate,
                  Literal object)
Remove a statement(triple) with a literal triple object from the ontology triple store. The null value can be used for any of the subject, predicate, or object parameters as a wildcard indicator: in that case, triples with any value for that parameter will be removed. NOTE: if a null value is passed for the object parameter, triples with any value for the object, no matter if it is a literal or non-literal (including blank nodes) will be removed!!

Parameters:
subject -
predicate -
object -

addOntologyTripleStoreListener

void addOntologyTripleStoreListener(OntologyTripleStoreListener listener)
Add a listener for ontology triple store additions and removals. The listener will get the parameters of the original addition or deletion request, not any indication of which concrete triples were actually added or removed!

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.

Parameters:
listener - OntologyTripleStoreListener object

removeOntologyTripleStoreListener

void removeOntologyTripleStoreListener(OntologyTripleStoreListener listener)
Remove an existing listener for ontology triple store additions and removals.

Parameters:
listener - OntologyTripleStoreListener object