public abstract class AbstractOntologyImpl
extends gate.creole.AbstractLanguageResource
implements gate.creole.ontology.Ontology
| Modifier and Type | Field and Description |
|---|---|
protected static int |
anonymousNodeCounter
Map where the key is a resource name and value is a list of resources with
that name.
|
protected String |
defaultNameSpace
Default Namespace
|
protected boolean |
doSetAutoLabel
This field controls whether new ontology entities will have their
label set to the entity resource name automatically.
|
protected boolean |
isModified
Parameter that keeps track of if the ontology is modified
|
protected Set<String> |
knownImportURIs
The ontology import URIs that were already processed for this ontology.
|
protected List<gate.creole.ontology.OURI> |
loadedOntologyURIs |
protected List<gate.creole.ontology.OntologyModificationListener> |
modificationListeners
A List of ontology modification listeners
|
protected OntologyService |
ontologyService
instance of the OntologyService
|
protected URL |
ontologyURL
Main URL of the ontology.
|
gate.creole.ontology.OURI |
OURI_OWL_ALLVALUESFROM |
gate.creole.ontology.OURI |
OURI_OWL_ANNOTATIONPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_CLASS |
gate.creole.ontology.OURI |
OURI_OWL_DATATYPEPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_DIFFERENTFROM |
gate.creole.ontology.OURI |
OURI_OWL_EQUIVALENTCLASS |
gate.creole.ontology.OURI |
OURI_OWL_EQUIVALENTPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_FUNCTIONALPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_HASVALUE |
gate.creole.ontology.OURI |
OURI_OWL_INVERSEFUNCTIONALPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_MAXCARDINALITY |
gate.creole.ontology.OURI |
OURI_OWL_MINCARDINALITY |
gate.creole.ontology.OURI |
OURI_OWL_OBJECTPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_ONPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_ONTOLOGY |
gate.creole.ontology.OURI |
OURI_OWL_RESTRICTION |
gate.creole.ontology.OURI |
OURI_OWL_SAMEAS |
gate.creole.ontology.OURI |
OURI_OWL_SOMEVALUESFROM |
gate.creole.ontology.OURI |
OURI_OWL_SYMMETRICPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_TRANSITIVEPROPERTY |
gate.creole.ontology.OURI |
OURI_OWL_VERSIONINFO |
gate.creole.ontology.OURI |
OURI_RDF_PROPERTY |
gate.creole.ontology.OURI |
OURI_RDF_TYPE |
gate.creole.ontology.OURI |
OURI_RDFS_CLASS |
gate.creole.ontology.OURI |
OURI_RDFS_COMMENT |
gate.creole.ontology.OURI |
OURI_RDFS_DOMAIN |
gate.creole.ontology.OURI |
OURI_RDFS_LABEL |
gate.creole.ontology.OURI |
OURI_RDFS_RANGE |
gate.creole.ontology.OURI |
OURI_RDFS_SUBCLASSOF |
protected File |
pluginDir |
protected Random |
randomGenerator |
protected static String |
restrictionPrefix |
| Constructor and Description |
|---|
AbstractOntologyImpl()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
gate.creole.ontology.AllValuesFromRestriction |
addAllValuesFromRestriction(gate.creole.ontology.ObjectProperty onProperty,
gate.creole.ontology.OClass hasValue) |
gate.creole.ontology.AllValuesFromRestriction |
addAllValuesFromRestriction(gate.creole.ontology.RDFProperty onProperty,
gate.creole.ontology.OResource hasValue)
Adds a new AllValuesFrom Restriction to the ontology.
|
gate.creole.ontology.AnnotationProperty |
addAnnotationProperty(gate.creole.ontology.OURI aPropertyURI) |
gate.creole.ontology.AnonymousClass |
addAnonymousClass() |
gate.creole.ontology.CardinalityRestriction |
addCardinalityRestriction(gate.creole.ontology.RDFProperty onProperty,
String cardinalityValue)
Adds a new Cardinality Restriction to the ontology.
|
gate.creole.ontology.DatatypeProperty |
addDatatypeProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domain,
gate.creole.ontology.DataType aDatatype) |
gate.creole.ontology.HasValueRestriction |
addHasValueRestriction(gate.creole.ontology.RDFProperty onProperty,
gate.creole.ontology.OResource hasValue)
Adds a new HasValue Restriction to the ontology.
|
gate.creole.ontology.MaxCardinalityRestriction |
addMaxCardinalityRestriction(gate.creole.ontology.RDFProperty onProperty,
String maxCardinalityValue)
Adds a new MaxCardinality Restriction to the ontology.
|
gate.creole.ontology.MinCardinalityRestriction |
addMinCardinalityRestriction(gate.creole.ontology.RDFProperty onProperty,
String minCardinalityValue)
Adds a new MinCardinality Restriction to the ontology.
|
gate.creole.ontology.ObjectProperty |
addObjectProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domain,
Set<gate.creole.ontology.OClass> range) |
gate.creole.ontology.OClass |
addOClass(gate.creole.ontology.OURI aURI) |
gate.creole.ontology.OClass |
addOClass(gate.creole.ontology.OURI aURI,
byte classType) |
gate.creole.ontology.OInstance |
addOInstance(gate.creole.ontology.OURI theInstanceURI,
gate.creole.ontology.OClass theClass) |
void |
addOntologyModificationListener(gate.creole.ontology.OntologyModificationListener oml) |
protected Set<gate.creole.ontology.OURI> |
addOntologyURIs() |
void |
addOResourceToMap(String uri,
gate.creole.ontology.OResource resource)
Dummy implementation - this method is not supported any more.
|
gate.creole.ontology.RDFProperty |
addRDFProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OResource> domain,
Set<gate.creole.ontology.OResource> range) |
gate.creole.ontology.SomeValuesFromRestriction |
addSomeValuesFromRestriction(gate.creole.ontology.RDFProperty onProperty,
gate.creole.ontology.OResource hasValue)
Adds a new AllValuesFrom Restriction to the ontology.
|
gate.creole.ontology.SymmetricProperty |
addSymmetricProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domainAndRange) |
gate.creole.ontology.TransitiveProperty |
addTransitiveProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domain,
Set<gate.creole.ontology.OClass> range) |
void |
cleanOntology() |
void |
cleanup() |
void |
commitTransaction() |
boolean |
containsOClass(gate.creole.ontology.OClass theClass) |
boolean |
containsOClass(gate.creole.ontology.ONodeID theURI) |
boolean |
containsOInstance(gate.creole.ontology.OInstance theInstance) |
boolean |
containsOInstance(gate.creole.ontology.OURI theInstanceURI) |
gate.creole.ontology.OBNodeID |
createOBNodeID(String id) |
gate.creole.ontology.OURI |
createOURI(String uriString) |
gate.creole.ontology.OURI |
createOURIForName(String resourceName) |
gate.creole.ontology.OURI |
createOURIForName(String resourceName,
String baseURI) |
protected String |
encodeResourceName(String resourceName) |
String |
executeQuery(String serqlQuery)
Deprecated.
|
void |
fireOntologyReset() |
void |
fireOntologyResourceAdded(gate.creole.ontology.OResource resource)
A Method to invoke an event for newly added ontology resource
|
void |
fireOntologyResourcesRemoved(String[] resources)
A Method to invoke an event for a removed ontology resource
|
void |
fireResourcePropertyValueChanged(gate.creole.ontology.OResource resource,
gate.creole.ontology.RDFProperty property,
Object value,
int eventType)
A method to invoke when a resource's property value is changed
|
void |
fireResourceRelationChanged(gate.creole.ontology.OResource resource1,
gate.creole.ontology.OResource resource2,
int eventType)
A method to invoke when a resource's property value is changed
|
gate.creole.ontology.OURI |
generateOURI(String resourceName) |
gate.creole.ontology.OURI |
generateOURI(String resourceName,
String baseURI) |
List<gate.creole.ontology.OResource> |
getAllResources()
This method returns a list of OResources from the ontology.
|
Set<gate.creole.ontology.AnnotationProperty> |
getAnnotationProperties() |
gate.creole.ontology.AnnotationProperty |
getAnnotationProperty(gate.creole.ontology.OURI theURI) |
String |
getAutoGeneratedRestrictionName() |
Set<gate.creole.ontology.DatatypeProperty> |
getDatatypeProperties() |
gate.creole.ontology.DatatypeProperty |
getDatatypeProperty(gate.creole.ontology.OURI theURI) |
String |
getDefaultNameSpace() |
int |
getDistance(gate.creole.ontology.OClass class1,
gate.creole.ontology.OClass class2) |
Set<gate.creole.ontology.OURI> |
getImportURIs() |
Set<gate.creole.ontology.ObjectProperty> |
getObjectProperties() |
gate.creole.ontology.ObjectProperty |
getObjectProperty(gate.creole.ontology.OURI theURI) |
gate.creole.ontology.OClass |
getOClass(gate.creole.ontology.ONodeID theClassURI) |
Set<gate.creole.ontology.OClass> |
getOClasses(boolean top) |
Set<gate.creole.ontology.OClass> |
getOClassesByName(String resourceName) |
gate.util.ClosableIterator<gate.creole.ontology.OClass> |
getOClassesIterator(boolean top) |
gate.creole.ontology.OInstance |
getOInstance(gate.creole.ontology.OURI theInstanceURI) |
Set<gate.creole.ontology.OInstance> |
getOInstances() |
Set<gate.creole.ontology.OInstance> |
getOInstances(gate.creole.ontology.OClass theClass,
byte closure) |
Set<gate.creole.ontology.OInstance> |
getOInstances(gate.creole.ontology.OClass theClass,
gate.creole.ontology.OConstants.Closure closure) |
Set<gate.creole.ontology.OInstance> |
getOInstancesByName(String resourceName) |
gate.util.ClosableIterator<gate.creole.ontology.OInstance> |
getOInstancesIterator() |
gate.util.ClosableIterator<gate.creole.ontology.OInstance> |
getOInstancesIterator(gate.creole.ontology.OClass theClass,
gate.creole.ontology.OConstants.Closure closure) |
List<gate.creole.ontology.Literal> |
getOntologyAnnotationValues(gate.creole.ontology.AnnotationProperty ann) |
String |
getOntologyData(byte format)
Deprecated.
|
gate.creole.ontology.OURI |
getOntologyURI() |
List<gate.creole.ontology.OURI> |
getOntologyURIs() |
gate.creole.ontology.OResource |
getOResourceByName(String resourceName)
Try to return the only OResource with the given resource name.
|
gate.creole.ontology.OResource |
getOResourceFromMap(String uri)
Dummy implementation - this method is deprecated and only kept as long
as it will be used in the gate.gui.ontology package.
|
List<gate.creole.ontology.OResource> |
getOResourcesByName(String resourceName)
Find all OResources for the given resource name.
|
List<gate.creole.ontology.OResource> |
getOResourcesWith(gate.creole.ontology.RDFProperty aProperty,
gate.creole.ontology.Literal aValue)
This method given a property (either an annotation or datatype), retrieves
a list of resources which have the provided literal set as a value.
|
List<gate.creole.ontology.OResource> |
getOResourcesWith(gate.creole.ontology.RDFProperty aProperty,
gate.creole.ontology.OResource aValue)
This method given a property (either object, transitive, symmetric or rdf),
retrieves a list of resources which have the provided resource set as a
value.
|
File |
getPluginDir() |
Set<gate.creole.ontology.RDFProperty> |
getPropertiesByName(String resourceName) |
gate.creole.ontology.RDFProperty |
getProperty(gate.creole.ontology.OURI thePropertyURI) |
Set<gate.creole.ontology.RDFProperty> |
getPropertyDefinitions() |
Set<gate.creole.ontology.RDFProperty> |
getRDFProperties() |
Object |
getSesameRepository()
Dummy implementation - this method is not supported any more.
|
String |
getSesameRepositoryID()
Dummy implementation - this method is not supported any more.
|
abstract URL |
getSourceURL()
Return an URL that is related to the source of the ontology.
|
Set<gate.creole.ontology.SymmetricProperty> |
getSymmetricProperties() |
Set<gate.creole.ontology.TransitiveProperty> |
getTransitiveProperties() |
URL |
getURL() |
String |
getVersion() |
boolean |
isAnnotationProperty(gate.creole.ontology.OURI thePropertyURI) |
boolean |
isDatatypeProperty(gate.creole.ontology.OURI thePropertyURI) |
boolean |
isModified() |
boolean |
isObjectProperty(gate.creole.ontology.OURI thePropertyURI) |
boolean |
isRDFProperty(gate.creole.ontology.OURI thePropertyURI) |
boolean |
isSymmetricProperty(gate.creole.ontology.OURI thePropertyURI) |
boolean |
isTransitiveProperty(gate.creole.ontology.OURI thePropertyURI) |
Map<String,String> |
loadImportMappingsFile(URL mappingsURL) |
void |
removeOClass(gate.creole.ontology.OClass theClass) |
void |
removeOInstance(gate.creole.ontology.OInstance theInstance) |
void |
removeOntologyModificationListener(gate.creole.ontology.OntologyModificationListener oml) |
void |
removeOResourceFromMap(String uri)
Dummy implementation - this method is not supported any more.
|
void |
removeProperty(gate.creole.ontology.RDFProperty theProperty) |
void |
resolveImports(Map<String,String> importMappings) |
void |
setDataStore(gate.DataStore dataStore) |
void |
setDefaultNameSpace(String theURI) |
void |
setModified(boolean isModified) |
void |
setOntologyAnnotation(gate.creole.ontology.AnnotationProperty ann,
gate.creole.ontology.Literal val) |
void |
setOntologyURI(gate.creole.ontology.OURI theURI) |
void |
setURL(URL aUrl) |
void |
setVersion(String theVersion) |
void |
startTransaction() |
void |
store(File newOntology)
Tries to save the ontology at the provided File
|
boolean |
transationStarted()
Dummy implementation - this method is not supported any more.
|
void |
writeOntologyData(OutputStream out,
byte format)
Deprecated.
|
void |
writeOntologyData(Writer out,
byte format)
Deprecated.
|
getDataStore, getLRPersistenceId, getParent, setLRPersistenceId, setParent, synccheckParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateBooleanQuery, createTupleQuery, getOntologyTripleStore, readOntologyData, readOntologyData, writeOntologyData, writeOntologyDatagetDataStore, getLRPersistenceId, getParent, setLRPersistenceId, setParent, syncpublic gate.creole.ontology.OURI OURI_RDF_PROPERTY
public gate.creole.ontology.OURI OURI_RDF_TYPE
public gate.creole.ontology.OURI OURI_RDFS_COMMENT
public gate.creole.ontology.OURI OURI_RDFS_CLASS
public gate.creole.ontology.OURI OURI_RDFS_DOMAIN
public gate.creole.ontology.OURI OURI_RDFS_LABEL
public gate.creole.ontology.OURI OURI_RDFS_RANGE
public gate.creole.ontology.OURI OURI_RDFS_SUBCLASSOF
public gate.creole.ontology.OURI OURI_OWL_ALLVALUESFROM
public gate.creole.ontology.OURI OURI_OWL_ANNOTATIONPROPERTY
public gate.creole.ontology.OURI OURI_OWL_CLASS
public gate.creole.ontology.OURI OURI_OWL_DATATYPEPROPERTY
public gate.creole.ontology.OURI OURI_OWL_DIFFERENTFROM
public gate.creole.ontology.OURI OURI_OWL_EQUIVALENTCLASS
public gate.creole.ontology.OURI OURI_OWL_EQUIVALENTPROPERTY
public gate.creole.ontology.OURI OURI_OWL_FUNCTIONALPROPERTY
public gate.creole.ontology.OURI OURI_OWL_HASVALUE
public gate.creole.ontology.OURI OURI_OWL_INVERSEFUNCTIONALPROPERTY
public gate.creole.ontology.OURI OURI_OWL_MAXCARDINALITY
public gate.creole.ontology.OURI OURI_OWL_MINCARDINALITY
public gate.creole.ontology.OURI OURI_OWL_OBJECTPROPERTY
public gate.creole.ontology.OURI OURI_OWL_ONPROPERTY
public gate.creole.ontology.OURI OURI_OWL_ONTOLOGY
public gate.creole.ontology.OURI OURI_OWL_RESTRICTION
public gate.creole.ontology.OURI OURI_OWL_SAMEAS
public gate.creole.ontology.OURI OURI_OWL_SOMEVALUESFROM
public gate.creole.ontology.OURI OURI_OWL_SYMMETRICPROPERTY
public gate.creole.ontology.OURI OURI_OWL_TRANSITIVEPROPERTY
public gate.creole.ontology.OURI OURI_OWL_VERSIONINFO
protected Set<String> knownImportURIs
protected List<gate.creole.ontology.OURI> loadedOntologyURIs
protected OntologyService ontologyService
protected URL ontologyURL
protected String defaultNameSpace
protected boolean isModified
protected transient List<gate.creole.ontology.OntologyModificationListener> modificationListeners
protected static int anonymousNodeCounter
protected static String restrictionPrefix
protected boolean doSetAutoLabel
protected Random randomGenerator
protected File pluginDir
public String getAutoGeneratedRestrictionName()
public void cleanOntology()
cleanOntology in interface gate.creole.ontology.Ontology@Deprecated public String getOntologyData(byte format)
getOntologyData in interface gate.creole.ontology.Ontology@Deprecated public void writeOntologyData(OutputStream out, byte format)
writeOntologyData in interface gate.creole.ontology.Ontology@Deprecated public void writeOntologyData(Writer out, byte format)
writeOntologyData in interface gate.creole.ontology.Ontologypublic URL getURL()
getURL in interface gate.creole.ontology.Ontologypublic void setURL(URL aUrl)
setURL in interface gate.creole.ontology.Ontologypublic void setDefaultNameSpace(String theURI)
setDefaultNameSpace in interface gate.creole.ontology.Ontologypublic String getDefaultNameSpace()
getDefaultNameSpace in interface gate.creole.ontology.Ontologypublic void setVersion(String theVersion)
setVersion in interface gate.creole.ontology.Ontologypublic String getVersion()
getVersion in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OClass addOClass(gate.creole.ontology.OURI aURI,
byte classType)
addOClass in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OClass addOClass(gate.creole.ontology.OURI aURI)
addOClass in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OClass getOClass(gate.creole.ontology.ONodeID theClassURI)
getOClass in interface gate.creole.ontology.Ontologypublic void removeOClass(gate.creole.ontology.OClass theClass)
removeOClass in interface gate.creole.ontology.Ontologypublic boolean containsOClass(gate.creole.ontology.ONodeID theURI)
containsOClass in interface gate.creole.ontology.Ontologypublic boolean containsOClass(gate.creole.ontology.OClass theClass)
containsOClass in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.OClass> getOClasses(boolean top)
getOClasses in interface gate.creole.ontology.Ontologypublic gate.util.ClosableIterator<gate.creole.ontology.OClass> getOClassesIterator(boolean top)
getOClassesIterator in interface gate.creole.ontology.Ontologypublic int getDistance(gate.creole.ontology.OClass class1,
gate.creole.ontology.OClass class2)
getDistance in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OInstance addOInstance(gate.creole.ontology.OURI theInstanceURI,
gate.creole.ontology.OClass theClass)
addOInstance in interface gate.creole.ontology.Ontologypublic void removeOInstance(gate.creole.ontology.OInstance theInstance)
removeOInstance in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.OInstance> getOInstances()
getOInstances in interface gate.creole.ontology.Ontologypublic gate.util.ClosableIterator<gate.creole.ontology.OInstance> getOInstancesIterator()
getOInstancesIterator in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.OInstance> getOInstances(gate.creole.ontology.OClass theClass, byte closure)
getOInstances in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.OInstance> getOInstances(gate.creole.ontology.OClass theClass, gate.creole.ontology.OConstants.Closure closure)
getOInstances in interface gate.creole.ontology.Ontologypublic gate.util.ClosableIterator<gate.creole.ontology.OInstance> getOInstancesIterator(gate.creole.ontology.OClass theClass,
gate.creole.ontology.OConstants.Closure closure)
getOInstancesIterator in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OInstance getOInstance(gate.creole.ontology.OURI theInstanceURI)
getOInstance in interface gate.creole.ontology.Ontologypublic boolean containsOInstance(gate.creole.ontology.OInstance theInstance)
containsOInstance in interface gate.creole.ontology.Ontologypublic boolean containsOInstance(gate.creole.ontology.OURI theInstanceURI)
containsOInstance in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.RDFProperty addRDFProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OResource> domain,
Set<gate.creole.ontology.OResource> range)
addRDFProperty in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.RDFProperty> getRDFProperties()
getRDFProperties in interface gate.creole.ontology.Ontologypublic boolean isRDFProperty(gate.creole.ontology.OURI thePropertyURI)
isRDFProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.AnnotationProperty addAnnotationProperty(gate.creole.ontology.OURI aPropertyURI)
addAnnotationProperty in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.AnnotationProperty> getAnnotationProperties()
getAnnotationProperties in interface gate.creole.ontology.Ontologypublic boolean isAnnotationProperty(gate.creole.ontology.OURI thePropertyURI)
isAnnotationProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.DatatypeProperty addDatatypeProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domain,
gate.creole.ontology.DataType aDatatype)
addDatatypeProperty in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.DatatypeProperty> getDatatypeProperties()
getDatatypeProperties in interface gate.creole.ontology.Ontologypublic boolean isDatatypeProperty(gate.creole.ontology.OURI thePropertyURI)
isDatatypeProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.ObjectProperty addObjectProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domain,
Set<gate.creole.ontology.OClass> range)
addObjectProperty in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.ObjectProperty> getObjectProperties()
getObjectProperties in interface gate.creole.ontology.Ontologypublic boolean isObjectProperty(gate.creole.ontology.OURI thePropertyURI)
isObjectProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.SymmetricProperty addSymmetricProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domainAndRange)
addSymmetricProperty in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.SymmetricProperty> getSymmetricProperties()
getSymmetricProperties in interface gate.creole.ontology.Ontologypublic boolean isSymmetricProperty(gate.creole.ontology.OURI thePropertyURI)
isSymmetricProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.TransitiveProperty addTransitiveProperty(gate.creole.ontology.OURI aPropertyURI,
Set<gate.creole.ontology.OClass> domain,
Set<gate.creole.ontology.OClass> range)
addTransitiveProperty in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.TransitiveProperty> getTransitiveProperties()
getTransitiveProperties in interface gate.creole.ontology.Ontologypublic boolean isTransitiveProperty(gate.creole.ontology.OURI thePropertyURI)
isTransitiveProperty in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.RDFProperty> getPropertyDefinitions()
getPropertyDefinitions in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.RDFProperty getProperty(gate.creole.ontology.OURI thePropertyURI)
getProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.AnnotationProperty getAnnotationProperty(gate.creole.ontology.OURI theURI)
getAnnotationProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.DatatypeProperty getDatatypeProperty(gate.creole.ontology.OURI theURI)
getDatatypeProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.ObjectProperty getObjectProperty(gate.creole.ontology.OURI theURI)
getObjectProperty in interface gate.creole.ontology.Ontologypublic void removeProperty(gate.creole.ontology.RDFProperty theProperty)
removeProperty in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.MinCardinalityRestriction addMinCardinalityRestriction(gate.creole.ontology.RDFProperty onProperty,
String minCardinalityValue)
throws gate.creole.ontology.InvalidValueException
addMinCardinalityRestriction in interface gate.creole.ontology.OntologyonProperty - - Specifies the property for which the restriction is being set.minCardinalityValue - - generally a numeric number.gate.creole.ontology.InvalidValueException - - if a value is not compatible with the nonNegativeIntegerNumber
datatype.public gate.creole.ontology.MaxCardinalityRestriction addMaxCardinalityRestriction(gate.creole.ontology.RDFProperty onProperty,
String maxCardinalityValue)
throws gate.creole.ontology.InvalidValueException
addMaxCardinalityRestriction in interface gate.creole.ontology.OntologyonProperty - - Specifies the property for which the restriction is being set.maxCardinalityValue - - generally a numeric number.gate.creole.ontology.InvalidValueException - - if a value is not compatible with the nonNegativeIntegerNumber
datatype.public gate.creole.ontology.CardinalityRestriction addCardinalityRestriction(gate.creole.ontology.RDFProperty onProperty,
String cardinalityValue)
throws gate.creole.ontology.InvalidValueException
addCardinalityRestriction in interface gate.creole.ontology.OntologyonProperty - - Specifies the property for which the restriction is being set.cardinalityValue - - generally a numeric number.gate.creole.ontology.InvalidValueException - - if a value is not compatible with the nonNegativeIntegerNumber
datatype.public gate.creole.ontology.HasValueRestriction addHasValueRestriction(gate.creole.ontology.RDFProperty onProperty,
gate.creole.ontology.OResource hasValue)
addHasValueRestriction in interface gate.creole.ontology.OntologyonProperty - - Specifies the property for which the restriction is being set.hasValue - - a resource or a literal used as a value for hasValue element of
the restriction.public gate.creole.ontology.AllValuesFromRestriction addAllValuesFromRestriction(gate.creole.ontology.RDFProperty onProperty,
gate.creole.ontology.OResource hasValue)
addAllValuesFromRestriction in interface gate.creole.ontology.OntologyonProperty - - Specifies the property for which the restriction is being set.hasValue - - a resource used as a value for hasValue element of the
restriction.public gate.creole.ontology.AllValuesFromRestriction addAllValuesFromRestriction(gate.creole.ontology.ObjectProperty onProperty,
gate.creole.ontology.OClass hasValue)
addAllValuesFromRestriction in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.SomeValuesFromRestriction addSomeValuesFromRestriction(gate.creole.ontology.RDFProperty onProperty,
gate.creole.ontology.OResource hasValue)
addSomeValuesFromRestriction in interface gate.creole.ontology.OntologyonProperty - - Specifies the property for which the restriction is being set.hasValue - - a resource used as a value for hasValue element of the
restriction.public void setModified(boolean isModified)
setModified in interface gate.creole.ontology.Ontologypublic boolean isModified()
isModified in interface gate.creole.ontology.OntologyisModified in interface gate.LanguageResourceisModified in class gate.creole.AbstractLanguageResourcepublic void addOntologyModificationListener(gate.creole.ontology.OntologyModificationListener oml)
addOntologyModificationListener in interface gate.creole.ontology.Ontologypublic void removeOntologyModificationListener(gate.creole.ontology.OntologyModificationListener oml)
removeOntologyModificationListener in interface gate.creole.ontology.Ontologypublic void fireResourcePropertyValueChanged(gate.creole.ontology.OResource resource,
gate.creole.ontology.RDFProperty property,
Object value,
int eventType)
fireResourcePropertyValueChanged in interface gate.creole.ontology.Ontologyresource - eventType - public void fireResourceRelationChanged(gate.creole.ontology.OResource resource1,
gate.creole.ontology.OResource resource2,
int eventType)
fireResourceRelationChanged in interface gate.creole.ontology.Ontologyresource - eventType - public void fireOntologyReset()
fireOntologyReset in interface gate.creole.ontology.Ontologypublic void fireOntologyResourceAdded(gate.creole.ontology.OResource resource)
fireOntologyResourceAdded in interface gate.creole.ontology.Ontologyresource - public void fireOntologyResourcesRemoved(String[] resources)
fireOntologyResourcesRemoved in interface gate.creole.ontology.Ontologyresource - public boolean transationStarted()
transationStarted in interface gate.creole.ontology.Ontologypublic Object getSesameRepository()
getSesameRepository in interface gate.creole.ontology.Ontologypublic String getSesameRepositoryID()
getSesameRepositoryID in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OResource getOResourceFromMap(String uri)
getOResourceFromMap in interface gate.creole.ontology.Ontologypublic void addOResourceToMap(String uri, gate.creole.ontology.OResource resource)
addOResourceToMap in interface gate.creole.ontology.Ontologypublic void removeOResourceFromMap(String uri)
removeOResourceFromMap in interface gate.creole.ontology.Ontologypublic void cleanup()
cleanup in interface gate.Resourcecleanup in class gate.creole.AbstractLanguageResourcepublic gate.creole.ontology.OResource getOResourceByName(String resourceName)
getOResourceByName in interface gate.creole.ontology.OntologyresourceName - public List<gate.creole.ontology.OResource> getOResourcesByName(String resourceName)
getOResourcesByName in interface gate.creole.ontology.OntologyresourceName - public Set<gate.creole.ontology.OInstance> getOInstancesByName(String resourceName)
public Set<gate.creole.ontology.RDFProperty> getPropertiesByName(String resourceName)
public List<gate.creole.ontology.OResource> getAllResources()
getAllResources in interface gate.creole.ontology.Ontologypublic void store(File newOntology) throws IOException
store in interface gate.creole.ontology.OntologyIOExceptionpublic List<gate.creole.ontology.OResource> getOResourcesWith(gate.creole.ontology.RDFProperty aProperty, gate.creole.ontology.Literal aValue)
getOResourcesWith in interface gate.creole.ontology.OntologyaProperty - aValue - public List<gate.creole.ontology.OResource> getOResourcesWith(gate.creole.ontology.RDFProperty aProperty, gate.creole.ontology.OResource aValue)
getOResourcesWith in interface gate.creole.ontology.OntologyaProperty - aValue - @Deprecated public String executeQuery(String serqlQuery)
executeQuery in interface gate.creole.ontology.Ontologypublic void resolveImports(Map<String,String> importMappings)
resolveImports in interface gate.creole.ontology.Ontologypublic Set<gate.creole.ontology.OURI> getImportURIs()
public void startTransaction()
public void commitTransaction()
commitTransaction in interface gate.creole.ontology.Ontologypublic abstract URL getSourceURL()
public File getPluginDir()
protected Set<gate.creole.ontology.OURI> addOntologyURIs()
public List<gate.creole.ontology.OURI> getOntologyURIs()
public gate.creole.ontology.AnonymousClass addAnonymousClass()
addAnonymousClass in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OURI createOURI(String uriString)
createOURI in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OBNodeID createOBNodeID(String id)
public gate.creole.ontology.OURI createOURIForName(String resourceName)
createOURIForName in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OURI createOURIForName(String resourceName, String baseURI)
public gate.creole.ontology.OURI generateOURI(String resourceName)
generateOURI in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OURI generateOURI(String resourceName, String baseURI)
generateOURI in interface gate.creole.ontology.Ontologypublic List<gate.creole.ontology.Literal> getOntologyAnnotationValues(gate.creole.ontology.AnnotationProperty ann)
getOntologyAnnotationValues in interface gate.creole.ontology.Ontologypublic void setOntologyAnnotation(gate.creole.ontology.AnnotationProperty ann,
gate.creole.ontology.Literal val)
setOntologyAnnotation in interface gate.creole.ontology.Ontologypublic void setOntologyURI(gate.creole.ontology.OURI theURI)
setOntologyURI in interface gate.creole.ontology.Ontologypublic gate.creole.ontology.OURI getOntologyURI()
getOntologyURI in interface gate.creole.ontology.Ontologypublic void setDataStore(gate.DataStore dataStore)
throws gate.persist.PersistenceException
setDataStore in interface gate.LanguageResourcesetDataStore in class gate.creole.AbstractLanguageResourcegate.persist.PersistenceException