public interface OntologyService
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotationProperty(gate.creole.ontology.OURI aPropertyURI)
Creates a new AnnotationProperty.
|
void |
addAnnotationPropertyValue(gate.creole.ontology.ONodeID theResourceURI,
gate.creole.ontology.OURI theAnnotationPropertyURI,
String value,
String language)
Adds a new annotation property value and specifies the language.
|
void |
addClass(gate.creole.ontology.OURI classURI)
The method allows adding a class to repository.
|
void |
addDataTypeProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domainClassesURIs,
String dataTypeURI)
The method adds a data type property specifiying domain and range
for the same.
|
void |
addDatatypePropertyValue(gate.creole.ontology.OURI anInstanceURI,
gate.creole.ontology.OURI aDatatypePropertyURI,
gate.creole.ontology.Literal value)
Adds the value for the given Property.
|
void |
addIndividual(String superClassURI,
String individualURI)
The method adds a new instance (literal) into the repository.
|
void |
addObjectProperty(String aPropertyURI,
String[] domainClassesURIs,
String[] rangeClassesTypes)
The method adds an object property specifiying domain and range for
the same.
|
void |
addObjectPropertyValue(gate.creole.ontology.ONodeID sourceInstanceURI,
gate.creole.ontology.OURI anObjectPropertyURI,
gate.creole.ontology.OURI theValueInstanceURI)
Adds the value for the given property (Object, Symmetric and
Transitive).
|
void |
addRDFProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OResource> domain,
Set<gate.creole.ontology.OResource> range)
The method adds a generic property specifiying domain and range for
the same.
|
void |
addRDFPropertyValue(gate.creole.ontology.ONodeID anInstanceURI,
gate.creole.ontology.OURI anRDFPropertyURI,
gate.creole.ontology.ONodeID aResourceURI)
adds the RDF Property value on the specified instance
|
void |
addRestriction(gate.creole.ontology.OBNodeID classURI) |
void |
addSubClass(String superClassURI,
String subClassURI)
The method creates a new class with the URI as specified in
className and adds it as a subClassOf the parentClass.
|
void |
addSubProperty(String superPropertyURI,
String subPropertyURI)
For the given properties, this method registers the super, sub
relation
|
void |
addSuperClass(String superClassURI,
String subClassURI)
The method creates a new class with the URI as specified in
className and adds it as a superClassOf the parentClass.
|
void |
addSuperProperty(String superPropertyURI,
String subPropertyURI)
For the given properties, this method registers the super, sub
relation
|
void |
addSymmetricProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domainAndRangeClassesURIs)
The method adds a symmetric property specifiying domain and range
for the same.
|
void |
addTransitiveProperty(String aPropertyURI,
String[] domainClassesURIs,
String[] rangeClassesTypes)
The method adds a transitive property specifiying domain and range
for the same.
|
void |
cleanOntology()
The method removes all data from the available graph.
|
boolean |
containsURI(gate.creole.ontology.OURI theURI) |
Property[] |
getAnnotationProperties()
The method returns an array of properties.
|
Property[] |
getAnnotationProperties(String theResourceURI)
Gets the annotation properties set on the specified resource
|
List<gate.creole.ontology.Literal> |
getAnnotationPropertyValues(gate.creole.ontology.ONodeID theResourceURI,
gate.creole.ontology.OURI theAnnotationPropertyURI)
Gets the list of annotation property values
|
Set<gate.creole.ontology.OClass> |
getClasses(boolean top)
if top set to true, the method returns only the top classes (i.e.
|
Set<gate.creole.ontology.OClass> |
getClassesByName(String name) |
gate.util.ClosableIterator<gate.creole.ontology.OClass> |
getClassesIterator(boolean top) |
ResourceInfo[] |
getClassesOfIndividual(String individualURI,
gate.creole.ontology.OConstants.Closure direct)
For the given individual, the method returns a set of classes for
which the individual is registered as instance of
|
byte |
getClassType(String restrictionURI)
This method tells what type of restriction the given uri refers to.
|
String |
getDatatype(gate.creole.ontology.OURI theDatatypePropertyURI)
Returns the datatype uri specified for the given datatype property.
|
Property[] |
getDatatypeProperties()
The method returns an array of properties.
|
Property[] |
getDatatypeProperties(String theResourceURI)
Gets the datatype properties set on the specified resource
|
List<gate.creole.ontology.Literal> |
getDatatypePropertyValues(gate.creole.ontology.OURI anInstanceURI,
gate.creole.ontology.OURI aDatatypePropertyURI)
Gets a list of values for the given Property.
|
String[] |
getDifferentIndividualFrom(String individualURI)
for the given individual, the method returns all individuals
registered as different from the given individual
|
Set<gate.creole.ontology.OResource> |
getDomain(gate.creole.ontology.OURI aPropertyURI)
Given a property, this method returns its domain
|
ResourceInfo[] |
getEquivalentClasses(String aClassURI)
returns an array of classes which are equivalent as the given class
|
Property[] |
getEquivalentPropertyAs(String aPropertyURI)
For the given property, this method returns all properties marked
as Equivalent as it
|
Set<String> |
getImportURIStrings() |
Set<gate.creole.ontology.OInstance> |
getInstancesByName(String name) |
gate.util.ClosableIterator<gate.creole.ontology.OInstance> |
getInstancesIterator(gate.creole.ontology.ONodeID aClass,
gate.creole.ontology.OConstants.Closure closure) |
Property[] |
getInverseProperties(String aPropertyURI)
for the given property, the method returns all its inverse
properties
|
Property[] |
getObjectProperties()
The method returns an array of properties.
|
Property[] |
getObjectProperties(String theResourceURI)
Gets the object properties set on the specified resource
|
List<gate.creole.ontology.OInstance> |
getObjectPropertyValues(gate.creole.ontology.OURI sourceInstanceURI,
gate.creole.ontology.OURI anObjectPropertyURI)
Gets a list of values for the given Property (Object, Symmetric and
Transitive).
|
Property |
getOnPropertyValue(String restrictionURI)
This method given a restriction uri returns the value for the
onProperty element.
|
gate.creole.ontology.OntologyTripleStore |
getOntologyTripleStore() |
Set<gate.creole.ontology.OURI> |
getOntologyURIs() |
Set<gate.creole.ontology.RDFProperty> |
getPropertiesByName(String name) |
Property[] |
getPropertiesWithResourceAsDomain(String theResourceURI) |
Property[] |
getPropertiesWithResourceAsRange(String theResourceURI) |
Property |
getPropertyFromOntology(String thePropertyURI)
Given a property URI, this method returns an object of Property
|
PropertyValue |
getPropertyValue(String restrictionURI,
byte restrictionType)
Gets the property value specified on the given restriction uri.
|
ResourceInfo[] |
getRange(String aPropertyURI)
Given a property, this method returns its range
|
Set<gate.creole.ontology.RDFProperty> |
getRDFProperties()
The method returns an array of properties.
|
Property[] |
getRDFProperties(String theResourceURI)
Gets the RDF properties set on the specified resource
|
List<gate.creole.ontology.LiteralOrONodeID> |
getRDFPropertyLiteralOrONodeIDs(gate.creole.ontology.ONodeID anInstanceURI,
gate.creole.ontology.OURI anRDFPropertyURI) |
ResourceInfo[] |
getRDFPropertyValues(String anInstanceURI,
String anRDFPropertyURI)
Deprecated.
|
ResourceInfo |
getRestrictionValue(String restrictionURI,
byte restrictionType)
Gets the cardinality value specified on the given restriction uri.
|
String[] |
getSameIndividualAs(String individualURI)
for the given individual, the method returns all individuals which
are registered as same as the provided individual
|
Set<gate.creole.ontology.OClass> |
getSubClasses(gate.creole.ontology.ONodeID superClassURI,
gate.creole.ontology.OConstants.Closure direct)
This method returns all sub classes of the given class
|
gate.util.ClosableIterator<gate.creole.ontology.OClass> |
getSubClassesIterator(gate.creole.ontology.ONodeID forClass,
gate.creole.ontology.OConstants.Closure closure) |
Property[] |
getSubProperties(String aPropertyURI,
boolean direct)
for the given property, the method returns all its sub properties
|
Property[] |
getSubProperties(String aPropertyURI,
gate.creole.ontology.OConstants.Closure direct)
for the given property, the method returns all its sub properties
|
ResourceInfo[] |
getSuperClasses(String subClassURI,
gate.creole.ontology.OConstants.Closure direct)
This method returns all super classes of the given class
|
Property[] |
getSuperProperties(String aPropertyURI,
boolean direct)
for the given property, the method returns all its super properties
|
Property[] |
getSuperProperties(String aPropertyURI,
gate.creole.ontology.OConstants.Closure direct)
for the given property, the method returns all its super properties
|
Property[] |
getSymmetricProperties()
The method returns an array of properties.
|
Property[] |
getSymmetricProperties(String theResourceURI)
Gets the symmetric properties set on the specified resource
|
Property[] |
getTransitiveProperties()
The method returns an array of properties.
|
Property[] |
getTransitiveProperties(String theResourceURI)
Gets the transitive properties set on the specified resource
|
String |
getVersion()
The method returns the version information of the repository.
|
boolean |
hasClass(gate.creole.ontology.ONodeID classURI)
The method returns if the current repository has a class with URI
that matches with the class parameter.
|
boolean |
hasInstance(gate.creole.ontology.OURI theURI,
gate.creole.ontology.ONodeID theClass,
gate.creole.ontology.OConstants.Closure closure) |
boolean |
isAnnotationProperty(gate.creole.ontology.OURI aPropertyURI)
returns if the given property is an Annotation property
|
boolean |
isDatatypeProperty(gate.creole.ontology.OURI aPropertyURI)
returns if the given property is a datatype property
|
boolean |
isDifferentIndividualFrom(gate.creole.ontology.OURI theInstanceURI1,
gate.creole.ontology.OURI theInstanceURI2)
Returns whether the individual1 is different from the individual2.
|
boolean |
isEquivalentClassAs(gate.creole.ontology.ONodeID theClassURI1,
gate.creole.ontology.ONodeID theClassURI2)
Checks whether the two classes defined as same in the ontology.
|
boolean |
isEquivalentPropertyAs(gate.creole.ontology.OURI aPropertyURI1,
gate.creole.ontology.OURI aPropertyURI2)
Checkes whether the two properties are Equivalent.
|
boolean |
isFunctional(gate.creole.ontology.OURI aPropertyURI)
Returns if the provided property is functional
|
boolean |
isInverseFunctional(gate.creole.ontology.OURI aPropertyURI)
returns if the given property is inverse functional property
|
boolean |
isObjectProperty(gate.creole.ontology.OURI aPropertyURI)
returns if the given property is an object property
|
boolean |
isRDFProperty(gate.creole.ontology.OURI aPropertyURI)
returns if the given property is an RDF property
|
boolean |
isSameIndividualAs(gate.creole.ontology.OURI theInstanceURI1,
gate.creole.ontology.OURI theInstanceURI2)
Checkes whether the two individuals are same.
|
boolean |
isSubClassOf(String theSuperClassURI,
String theSubClassURI,
gate.creole.ontology.OConstants.Closure direct)
Returns whether the theSubClass is indeed a sub class of the
theSuperClassURI.
|
boolean |
isSubPropertyOf(String aSuperPropertyURI,
String aSubPropertyURI,
gate.creole.ontology.OConstants.Closure direct)
Checkes whether the two properties have a super-sub relation.
|
boolean |
isSuperClassOf(String theSuperClassURI,
String theSubClassURI,
gate.creole.ontology.OConstants.Closure direct)
Returns whether the theSuperClass is indeed a super class of the
theSubClassURI.
|
boolean |
isSuperPropertyOf(String aSuperPropertyURI,
String aSubPropertyURI,
gate.creole.ontology.OConstants.Closure direct)
Checkes whether the two properties have a super-sub relation.
|
boolean |
isSymmetricProperty(gate.creole.ontology.OURI aPropertyURI)
returns if the given property is a symmetric property
|
boolean |
isTopClass(String classURI)
Returns if the given class is a top class.
|
boolean |
isTransitiveProperty(gate.creole.ontology.OURI aPropertyURI)
returns if the given property is a transitive property
|
void |
removeAnnotationPropertyValue(gate.creole.ontology.ONodeID theResourceURI,
gate.creole.ontology.OURI theAnnotationPropertyURI,
gate.creole.ontology.Literal value)
For the current resource, the method removes the given literal for
the given property.
|
void |
removeAnnotationPropertyValues(gate.creole.ontology.ONodeID theResourceURI,
gate.creole.ontology.OURI theAnnotationPropertyURI)
Removes all values for a named property.
|
String[] |
removeClass(String classURI,
boolean deleteSubTree)
Given a class to delete, it removes it from the repository.
|
void |
removeDatatypePropertyValue(gate.creole.ontology.OURI anInstanceURI,
gate.creole.ontology.OURI aDatatypePropertyURI,
gate.creole.ontology.Literal value)
Removes the provided value for the given instance.
|
void |
removeDatatypePropertyValues(gate.creole.ontology.ONodeID anInstanceURI,
gate.creole.ontology.OURI aDatatypePropertyURI)
Removes all property values set on the provided instance for the
current property.
|
String[] |
removeIndividual(String individualURI)
The method removes the provided instance from the repository.
|
void |
removeObjectPropertyValue(gate.creole.ontology.OURI sourceInstanceURI,
gate.creole.ontology.OURI anObjectPropertyURI,
gate.creole.ontology.OURI theValueInstanceURI)
Remove the provided value for the given property (Object, Symmetric
and Transitive).
|
void |
removeObjectPropertyValues(gate.creole.ontology.OURI sourceInstanceURI,
gate.creole.ontology.OURI anObjectPropertyURI)
Removes all property values set for the current property (Object,
Symmetric and Transitive).
|
String[] |
removePropertyFromOntology(String aPropertyURI,
boolean removeSubTree)
Removes the given property
|
void |
removeRDFPropertyValue(gate.creole.ontology.ONodeID anInstanceURI,
gate.creole.ontology.OURI anRDFPropertyURI,
gate.creole.ontology.ONodeID aResourceURI)
Removes the specified RDF Property Value
|
void |
removeRDFPropertyValues(String anInstanceURI,
String anRDFPropertyURI)
Removes all the RDF Property values from the given instance.
|
void |
removeSubClass(String superClassURI,
String subClassURI)
Removes the subclass relationship
|
void |
removeSubProperty(String superPropertyURI,
String subPropertyURI)
For the given properties, this method removes the super, sub
relation
|
void |
removeSuperClass(String superClassURI,
String subClassURI)
Removes the superclass relationship
|
void |
removeSuperProperty(String superPropertyURI,
String subPropertyURI)
For the given properties, this method removes the super, sub
relation
|
void |
setDifferentIndividualFrom(gate.creole.ontology.ONodeID individual1URI,
gate.creole.ontology.ONodeID individual2URI)
individual1 is sets as different individual from individual2
|
void |
setEquivalentClassAs(gate.creole.ontology.ONodeID class1URI,
gate.creole.ontology.ONodeID class2URI)
Sets the classes as same classes
|
void |
setEquivalentPropertyAs(String property1URI,
String property2URI)
Sets two properties as same
|
void |
setFunctional(String aPropertyURI,
boolean isFunctional)
sets the current property as functional
|
void |
setInverseFunctional(String aPropertyURI,
boolean isInverseFunctional)
Sets the current property as inverse functional property
|
void |
setInverseOf(String propertyURI1,
String propertyURI2)
property1 is set as inverse of property 2
|
void |
setOnPropertyValue(gate.creole.ontology.ONodeID restrictionURI,
gate.creole.ontology.OURI propertyURI)
This method sets the value for onProperty element on the given
restriction.
|
void |
setOntologyURI(gate.creole.ontology.OURI theURI) |
void |
setPropertyValue(String restrictionURI,
byte restrictionType,
String value,
String datatypeURI)
Sets the datatype uri for the given restriction uri.
|
void |
setRestrictionValue(gate.creole.ontology.ONodeID restrictionURI,
gate.creole.ontology.OURI restrictionTypeURI,
gate.creole.ontology.Literal value) |
void |
setRestrictionValue(gate.creole.ontology.ONodeID restrictionURI,
gate.creole.ontology.OURI restrictionTypeURI,
gate.creole.ontology.ONodeID value)
Sets the cardinality value for the given restriction uri.
|
void |
setSameIndividualAs(String individual1URI,
String individual2URI)
individual1 is set as same as the individual2
|
void |
shutdown() |
void setOntologyURI(gate.creole.ontology.OURI theURI)
boolean isSuperClassOf(String theSuperClassURI, String theSubClassURI, gate.creole.ontology.OConstants.Closure direct) throws gate.creole.ontology.GateOntologyException
repositoryID - theSuperClassURI - theSubClassURI - direct - gate.creole.ontology.GateOntologyExceptionboolean isSubClassOf(String theSuperClassURI, String theSubClassURI, gate.creole.ontology.OConstants.Closure direct) throws gate.creole.ontology.GateOntologyException
theSuperClassURI - theSubClassURI - direct - gate.creole.ontology.GateOntologyExceptionProperty getPropertyFromOntology(String thePropertyURI) throws gate.creole.ontology.GateOntologyException
thePropertyURI - gate.creole.ontology.GateOntologyExceptionboolean isEquivalentClassAs(gate.creole.ontology.ONodeID theClassURI1,
gate.creole.ontology.ONodeID theClassURI2)
throws gate.creole.ontology.GateOntologyException
theClassURI1 - theClassURI2 - gate.creole.ontology.GateOntologyExceptionvoid addAnnotationProperty(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - URI of the property to be added into the
ontology. Donegate.creole.ontology.GateOntologyExceptionProperty[] getAnnotationProperties(String theResourceURI) throws gate.creole.ontology.GateOntologyException
theResourceURI - gate.creole.ontology.GateOntologyExceptionProperty[] getRDFProperties(String theResourceURI) throws gate.creole.ontology.GateOntologyException
theResourceURI - gate.creole.ontology.GateOntologyExceptionProperty[] getDatatypeProperties(String theResourceURI) throws gate.creole.ontology.GateOntologyException
theResourceURI - gate.creole.ontology.GateOntologyExceptionProperty[] getObjectProperties(String theResourceURI) throws gate.creole.ontology.GateOntologyException
theResourceURI - gate.creole.ontology.GateOntologyExceptionProperty[] getTransitiveProperties(String theResourceURI) throws gate.creole.ontology.GateOntologyException
theResourceURI - gate.creole.ontology.GateOntologyExceptionProperty[] getSymmetricProperties(String theResourceURI) throws gate.creole.ontology.GateOntologyException
theResourceURI - gate.creole.ontology.GateOntologyExceptionboolean isAnnotationProperty(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyException - svoid addAnnotationPropertyValue(gate.creole.ontology.ONodeID theResourceURI,
gate.creole.ontology.OURI theAnnotationPropertyURI,
String value,
String language)
throws gate.creole.ontology.GateOntologyException
theResourceURI - theAnnotationPropertyURI - value - the value containing some valuelanguage - language - gate.creole.ontology.GateOntologyExceptionList<gate.creole.ontology.Literal> getAnnotationPropertyValues(gate.creole.ontology.ONodeID theResourceURI, gate.creole.ontology.OURI theAnnotationPropertyURI) throws gate.creole.ontology.GateOntologyException
theResourceURI - theAnnotationPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid removeAnnotationPropertyValue(gate.creole.ontology.ONodeID theResourceURI,
gate.creole.ontology.OURI theAnnotationPropertyURI,
gate.creole.ontology.Literal value)
throws gate.creole.ontology.GateOntologyException
theAnnotationProperty - literal - gate.creole.ontology.GateOntologyExceptionvoid removeAnnotationPropertyValues(gate.creole.ontology.ONodeID theResourceURI,
gate.creole.ontology.OURI theAnnotationPropertyURI)
throws gate.creole.ontology.GateOntologyException
theProperty - the propertygate.creole.ontology.GateOntologyExceptionvoid addRDFProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OResource> domain,
Set<gate.creole.ontology.OResource> range)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - domainClassesURIs - rangeClassesTypes - Donegate.creole.ontology.GateOntologyExceptionboolean isRDFProperty(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid addDataTypeProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domainClassesURIs,
String dataTypeURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - domainClassesURIs - dataTypeURI - Donegate.creole.ontology.GateOntologyExceptionString getDatatype(gate.creole.ontology.OURI theDatatypePropertyURI) throws gate.creole.ontology.GateOntologyException
repositoryID - theDatatypePropertyURI - gate.creole.ontology.GateOntologyExceptionvoid addSymmetricProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domainAndRangeClassesURIs)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - domainAndRangeClassesURIs - Donegate.creole.ontology.GateOntologyExceptionboolean isEquivalentPropertyAs(gate.creole.ontology.OURI aPropertyURI1,
gate.creole.ontology.OURI aPropertyURI2)
throws gate.creole.ontology.GateOntologyException
repositoryID - aPropertyURI - gate.creole.ontology.GateOntologyExceptionProperty[] getSuperProperties(String aPropertyURI, gate.creole.ontology.OConstants.Closure direct) throws gate.creole.ontology.GateOntologyException
aPropertyURI - direct - gate.creole.ontology.GateOntologyExceptionProperty[] getSubProperties(String aPropertyURI, gate.creole.ontology.OConstants.Closure direct) throws gate.creole.ontology.GateOntologyException
aPropertyURI - direct - gate.creole.ontology.GateOntologyExceptionboolean isSuperPropertyOf(String aSuperPropertyURI, String aSubPropertyURI, gate.creole.ontology.OConstants.Closure direct) throws gate.creole.ontology.GateOntologyException
repositoryID - aSuperPropertyURI - aSubPropertyURI - direct - gate.creole.ontology.GateOntologyExceptionboolean isSubPropertyOf(String aSuperPropertyURI, String aSubPropertyURI, gate.creole.ontology.OConstants.Closure direct) throws gate.creole.ontology.GateOntologyException
repositoryID - aSuperPropertyURI - aSubPropertyURI - direct - gate.creole.ontology.GateOntologyExceptionboolean isDifferentIndividualFrom(gate.creole.ontology.OURI theInstanceURI1,
gate.creole.ontology.OURI theInstanceURI2)
throws gate.creole.ontology.GateOntologyException
theInstanceURI1 - theInstanceURI2 - gate.creole.ontology.GateOntologyExceptionboolean isSameIndividualAs(gate.creole.ontology.OURI theInstanceURI1,
gate.creole.ontology.OURI theInstanceURI2)
throws gate.creole.ontology.GateOntologyException
repositoryID - individualURI1 - invidualURI2 - gate.creole.ontology.GateOntologyExceptionvoid addRDFPropertyValue(gate.creole.ontology.ONodeID anInstanceURI,
gate.creole.ontology.OURI anRDFPropertyURI,
gate.creole.ontology.ONodeID aResourceURI)
throws gate.creole.ontology.GateOntologyException
repositoryID - anInstanceURI - anRDFPropertyURI - aResourceURI - InvalidValueExceptiongate.creole.ontology.GateOntologyExceptionvoid removeRDFPropertyValue(gate.creole.ontology.ONodeID anInstanceURI,
gate.creole.ontology.OURI anRDFPropertyURI,
gate.creole.ontology.ONodeID aResourceURI)
throws gate.creole.ontology.GateOntologyException
repositoryID - anInstanceURI - anRDFPropertyURI - aResourceURI - gate.creole.ontology.GateOntologyException@Deprecated ResourceInfo[] getRDFPropertyValues(String anInstanceURI, String anRDFPropertyURI)
repositoryID - anInstanceURI - anRDFPropertyURI - List<gate.creole.ontology.LiteralOrONodeID> getRDFPropertyLiteralOrONodeIDs(gate.creole.ontology.ONodeID anInstanceURI, gate.creole.ontology.OURI anRDFPropertyURI)
void removeRDFPropertyValues(String anInstanceURI, String anRDFPropertyURI) throws gate.creole.ontology.GateOntologyException
repositoryID - anInstanceURI - anRDFPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid addDatatypePropertyValue(gate.creole.ontology.OURI anInstanceURI,
gate.creole.ontology.OURI aDatatypePropertyURI,
gate.creole.ontology.Literal value)
throws gate.creole.ontology.GateOntologyException
repositoryID - anInstanceURI - aDatatypePropertyURI - datatypeURI - value - InvalidValueExceptiongate.creole.ontology.GateOntologyExceptionvoid removeDatatypePropertyValue(gate.creole.ontology.OURI anInstanceURI,
gate.creole.ontology.OURI aDatatypePropertyURI,
gate.creole.ontology.Literal value)
repositoryID - anInstanceURI - aDatatypePropertyURI - datatypeURI - value - List<gate.creole.ontology.Literal> getDatatypePropertyValues(gate.creole.ontology.OURI anInstanceURI, gate.creole.ontology.OURI aDatatypePropertyURI)
anInstanceURI - aDatatypePropertyURI - void removeDatatypePropertyValues(gate.creole.ontology.ONodeID anInstanceURI,
gate.creole.ontology.OURI aDatatypePropertyURI)
throws gate.creole.ontology.GateOntologyException
repositoryID - anInstanceURI - aDatatypePropertyURI - gate.creole.ontology.GateOntologyExceptionvoid addObjectPropertyValue(gate.creole.ontology.ONodeID sourceInstanceURI,
gate.creole.ontology.OURI anObjectPropertyURI,
gate.creole.ontology.OURI theValueInstanceURI)
throws gate.creole.ontology.GateOntologyException
repositoryID - sourceInstanceURI - anObjectPropertyURI - theValueInstanceURI - InvalidValueExceptiongate.creole.ontology.GateOntologyExceptionvoid removeObjectPropertyValue(gate.creole.ontology.OURI sourceInstanceURI,
gate.creole.ontology.OURI anObjectPropertyURI,
gate.creole.ontology.OURI theValueInstanceURI)
throws gate.creole.ontology.GateOntologyException
repositoryID - sourceInstanceURI - anObjectPropertyURI - theValueInstanceURI - gate.creole.ontology.GateOntologyExceptionList<gate.creole.ontology.OInstance> getObjectPropertyValues(gate.creole.ontology.OURI sourceInstanceURI, gate.creole.ontology.OURI anObjectPropertyURI) throws gate.creole.ontology.GateOntologyException
repositoryID - sourceInstanceURI - anObjectPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid removeObjectPropertyValues(gate.creole.ontology.OURI sourceInstanceURI,
gate.creole.ontology.OURI anObjectPropertyURI)
throws gate.creole.ontology.GateOntologyException
repositoryID - sourceInstanceURI - anObjectPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid cleanOntology()
throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionString getVersion() throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionvoid addClass(gate.creole.ontology.OURI classURI)
throws gate.creole.ontology.GateOntologyException
classURI - gate.creole.ontology.GateOntologyExceptionvoid addRestriction(gate.creole.ontology.OBNodeID classURI)
throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionString[] removeClass(String classURI, boolean deleteSubTree) throws gate.creole.ontology.GateOntologyException
repositoryID - classURI - deleteSubTree - gate.creole.ontology.GateOntologyExceptionboolean hasClass(gate.creole.ontology.ONodeID classURI)
throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionboolean containsURI(gate.creole.ontology.OURI theURI)
Set<gate.creole.ontology.OClass> getClasses(boolean top) throws gate.creole.ontology.GateOntologyException
top - gate.creole.ontology.GateOntologyExceptiongate.util.ClosableIterator<gate.creole.ontology.OClass> getClassesIterator(boolean top)
throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionboolean isTopClass(String classURI) throws gate.creole.ontology.GateOntologyException
classURI - gate.creole.ontology.GateOntologyExceptionvoid addSubClass(String superClassURI, String subClassURI) throws gate.creole.ontology.GateOntologyException
superClassURI - subClassURI - gate.creole.ontology.GateOntologyExceptionvoid addSuperClass(String superClassURI, String subClassURI) throws gate.creole.ontology.GateOntologyException
superClassURI - subClassURI - gate.creole.ontology.GateOntologyExceptionvoid removeSubClass(String superClassURI, String subClassURI) throws gate.creole.ontology.GateOntologyException
superClassURI - subClassURI - gate.creole.ontology.GateOntologyExceptionvoid removeSuperClass(String superClassURI, String subClassURI) throws gate.creole.ontology.GateOntologyException
superClassURI - subClassURI - gate.creole.ontology.GateOntologyExceptionSet<gate.creole.ontology.OClass> getSubClasses(gate.creole.ontology.ONodeID superClassURI, gate.creole.ontology.OConstants.Closure direct)
superClassURI - direct - gate.util.ClosableIterator<gate.creole.ontology.OClass> getSubClassesIterator(gate.creole.ontology.ONodeID forClass,
gate.creole.ontology.OConstants.Closure closure)
ResourceInfo[] getSuperClasses(String subClassURI, gate.creole.ontology.OConstants.Closure direct) throws gate.creole.ontology.GateOntologyException
subClassURI - direct - gate.creole.ontology.GateOntologyExceptionvoid setEquivalentClassAs(gate.creole.ontology.ONodeID class1URI,
gate.creole.ontology.ONodeID class2URI)
throws gate.creole.ontology.GateOntologyException
class1URI - class2URI - gate.creole.ontology.GateOntologyExceptionResourceInfo[] getEquivalentClasses(String aClassURI) throws gate.creole.ontology.GateOntologyException
aClassURI - gate.creole.ontology.GateOntologyExceptionString[] removePropertyFromOntology(String aPropertyURI, boolean removeSubTree) throws gate.creole.ontology.GateOntologyException
repositoryID - aPropertyURI - removeSubTree - gate.creole.ontology.GateOntologyExceptionvoid addObjectProperty(String aPropertyURI, String[] domainClassesURIs, String[] rangeClassesTypes) throws gate.creole.ontology.GateOntologyException
aPropertyURI - domainClassesURIs - rangeClassesTypes - gate.creole.ontology.GateOntologyExceptionvoid addTransitiveProperty(String aPropertyURI, String[] domainClassesURIs, String[] rangeClassesTypes) throws gate.creole.ontology.GateOntologyException
aPropertyURI - domainClassesURIs - rangeClassesTypes - gate.creole.ontology.GateOntologyExceptionSet<gate.creole.ontology.RDFProperty> getRDFProperties() throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionProperty[] getObjectProperties() throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionProperty[] getSymmetricProperties() throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionProperty[] getTransitiveProperties() throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionProperty[] getDatatypeProperties() throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionProperty[] getAnnotationProperties() throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionSet<gate.creole.ontology.OResource> getDomain(gate.creole.ontology.OURI aPropertyURI) throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionResourceInfo[] getRange(String aPropertyURI) throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionboolean isFunctional(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid setFunctional(String aPropertyURI, boolean isFunctional) throws gate.creole.ontology.GateOntologyException
aPropertyURI - isFunctional - gate.creole.ontology.GateOntologyExceptionboolean isInverseFunctional(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid setInverseFunctional(String aPropertyURI, boolean isInverseFunctional) throws gate.creole.ontology.GateOntologyException
aPropertyURI - isInverseFunctional - gate.creole.ontology.GateOntologyExceptionboolean isSymmetricProperty(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionboolean isTransitiveProperty(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionboolean isDatatypeProperty(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionboolean isObjectProperty(gate.creole.ontology.OURI aPropertyURI)
throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid setEquivalentPropertyAs(String property1URI, String property2URI) throws gate.creole.ontology.GateOntologyException
property1URI - property2URI - gate.creole.ontology.GateOntologyExceptionProperty[] getEquivalentPropertyAs(String aPropertyURI) throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid addSuperProperty(String superPropertyURI, String subPropertyURI) throws gate.creole.ontology.GateOntologyException
superPropertyURI - subPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid removeSuperProperty(String superPropertyURI, String subPropertyURI) throws gate.creole.ontology.GateOntologyException
superPropertyURI - subPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid addSubProperty(String superPropertyURI, String subPropertyURI) throws gate.creole.ontology.GateOntologyException
superPropertyURI - subPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid removeSubProperty(String superPropertyURI, String subPropertyURI) throws gate.creole.ontology.GateOntologyException
superPropertyURI - subPropertyURI - gate.creole.ontology.GateOntologyExceptionProperty[] getSuperProperties(String aPropertyURI, boolean direct) throws gate.creole.ontology.GateOntologyException
aPropertyURI - direct - gate.creole.ontology.GateOntologyExceptionProperty[] getSubProperties(String aPropertyURI, boolean direct) throws gate.creole.ontology.GateOntologyException
aPropertyURI - direct - gate.creole.ontology.GateOntologyExceptionProperty[] getInverseProperties(String aPropertyURI) throws gate.creole.ontology.GateOntologyException
aPropertyURI - gate.creole.ontology.GateOntologyExceptionvoid setInverseOf(String propertyURI1, String propertyURI2) throws gate.creole.ontology.GateOntologyException
property1URI - property2URI - gate.creole.ontology.GateOntologyExceptionvoid addIndividual(String superClassURI, String individualURI) throws gate.creole.ontology.GateOntologyException
superClassURI - individualURI - gate.creole.ontology.GateOntologyExceptionString[] removeIndividual(String individualURI) throws gate.creole.ontology.GateOntologyException
individual - gate.creole.ontology.GateOntologyExceptiongate.util.ClosableIterator<gate.creole.ontology.OInstance> getInstancesIterator(gate.creole.ontology.ONodeID aClass,
gate.creole.ontology.OConstants.Closure closure)
boolean hasInstance(gate.creole.ontology.OURI theURI,
gate.creole.ontology.ONodeID theClass,
gate.creole.ontology.OConstants.Closure closure)
ResourceInfo[] getClassesOfIndividual(String individualURI, gate.creole.ontology.OConstants.Closure direct) throws gate.creole.ontology.GateOntologyException
individualURI - gate.creole.ontology.GateOntologyExceptionvoid setDifferentIndividualFrom(gate.creole.ontology.ONodeID individual1URI,
gate.creole.ontology.ONodeID individual2URI)
throws gate.creole.ontology.GateOntologyException
individual1URI - individual2URI - gate.creole.ontology.GateOntologyExceptionString[] getDifferentIndividualFrom(String individualURI) throws gate.creole.ontology.GateOntologyException
individualURI - gate.creole.ontology.GateOntologyExceptionvoid setSameIndividualAs(String individual1URI, String individual2URI) throws gate.creole.ontology.GateOntologyException
individual1URI - individual2URI - gate.creole.ontology.GateOntologyExceptionString[] getSameIndividualAs(String individualURI) throws gate.creole.ontology.GateOntologyException
inidividualURI - gate.creole.ontology.GateOntologyExceptionProperty getOnPropertyValue(String restrictionURI) throws gate.creole.ontology.GateOntologyException
repositoryId - restrictionURI - gate.creole.ontology.GateOntologyExceptionvoid setOnPropertyValue(gate.creole.ontology.ONodeID restrictionURI,
gate.creole.ontology.OURI propertyURI)
throws gate.creole.ontology.GateOntologyException
repositoryId - restrictionURI - propertyURI - gate.creole.ontology.GateOntologyExceptionPropertyValue getPropertyValue(String restrictionURI, byte restrictionType) throws gate.creole.ontology.GateOntologyException
repositoryID - restrictionURI - restrictionType - gate.creole.ontology.GateOntologyExceptionvoid setPropertyValue(String restrictionURI, byte restrictionType, String value, String datatypeURI) throws gate.creole.ontology.GateOntologyException
repositoryID - restrictionURI - restrictionType - value - datatypeURI - gate.creole.ontology.GateOntologyExceptionResourceInfo getRestrictionValue(String restrictionURI, byte restrictionType) throws gate.creole.ontology.GateOntologyException
repositoryID - restrictionURI - restrictionType - - either of the following constants from the
OConstants - ALL_VALUES_FROM_RESTRICTION,
SOME_VALUES_FROM_RESTRICTION, and HAS_VALUE_RESTRICTIONgate.creole.ontology.GateOntologyExceptionvoid setRestrictionValue(gate.creole.ontology.ONodeID restrictionURI,
gate.creole.ontology.OURI restrictionTypeURI,
gate.creole.ontology.ONodeID value)
throws gate.creole.ontology.GateOntologyException
repositoryID - restrictionURI - restrictionType - - either of the following constants from the
OConstants - ALL_VALUES_FROM_RESTRICTION,
SOME_VALUES_FROM_RESTRICTION, and HAS_VALUE_RESTRICTIONvalue - gate.creole.ontology.GateOntologyExceptionvoid setRestrictionValue(gate.creole.ontology.ONodeID restrictionURI,
gate.creole.ontology.OURI restrictionTypeURI,
gate.creole.ontology.Literal value)
throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionbyte getClassType(String restrictionURI) throws gate.creole.ontology.GateOntologyException
repositoryID - restrictionURI - gate.creole.ontology.GateOntologyExceptionProperty[] getPropertiesWithResourceAsDomain(String theResourceURI) throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionProperty[] getPropertiesWithResourceAsRange(String theResourceURI) throws gate.creole.ontology.GateOntologyException
gate.creole.ontology.GateOntologyExceptionSet<gate.creole.ontology.OURI> getOntologyURIs()
void shutdown()
gate.creole.ontology.OntologyTripleStore getOntologyTripleStore()