public class OInstanceImpl extends OResourceImpl implements gate.creole.ontology.OInstance
nodeId, ontology, ontologyService| Constructor and Description |
|---|
OInstanceImpl(gate.creole.ontology.OURI aURI,
gate.creole.ontology.Ontology ontology,
OntologyService owlimPort)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDatatypePropertyValue(gate.creole.ontology.DatatypeProperty aProperty,
gate.creole.ontology.Literal value) |
void |
addObjectPropertyValue(gate.creole.ontology.ObjectProperty aProperty,
gate.creole.ontology.OInstance value) |
void |
addOClass(gate.creole.ontology.OClass theClass)
Make this individual an instance of another class.
|
void |
addRDFPropertyValue(gate.creole.ontology.RDFProperty aProperty,
gate.creole.ontology.OResource value) |
Set<gate.creole.ontology.RDFProperty> |
getAllSetProperties()
This method returns all the set properties set on this resource.
|
List<gate.creole.ontology.Literal> |
getDatatypePropertyValues(gate.creole.ontology.DatatypeProperty aProperty) |
Set<gate.creole.ontology.OInstance> |
getDifferentInstances() |
List<gate.creole.ontology.OInstance> |
getObjectPropertyValues(gate.creole.ontology.ObjectProperty aProperty) |
Set<gate.creole.ontology.OClass> |
getOClasses(byte closure) |
Set<gate.creole.ontology.OClass> |
getOClasses(gate.creole.ontology.OConstants.Closure closure) |
gate.creole.ontology.OURI |
getOURI() |
List<gate.creole.ontology.OValue> |
getRDFPropertyOValues(gate.creole.ontology.RDFProperty aProperty) |
List<gate.creole.ontology.OResource> |
getRDFPropertyValues(gate.creole.ontology.RDFProperty aProperty)
Deprecated.
|
Set<gate.creole.ontology.OInstance> |
getSameInstance() |
Set<gate.creole.ontology.DatatypeProperty> |
getSetDatatypeProperties()
This method returns the datatype properties set on this resource.
|
Set<gate.creole.ontology.ObjectProperty> |
getSetObjectProperties()
This method returns the object properties set on this resource.
|
Set<gate.creole.ontology.RDFProperty> |
getSetRDFProperties()
This method returns the RDF properties set on this resource.
|
boolean |
hasDatatypePropertyWithValue(gate.creole.ontology.DatatypeProperty aProperty,
gate.creole.ontology.Literal aValue)
Checks if the resource has the provided datatype property set on it
with the specified value.
|
boolean |
hasObjectPropertyWithValue(gate.creole.ontology.ObjectProperty aProperty,
gate.creole.ontology.OInstance aValue)
Checks if the resource has the provided object property set on it
with the specified value.
|
boolean |
hasRDFPropertyWithValue(gate.creole.ontology.RDFProperty aProperty,
gate.creole.ontology.OResource aResource)
Checks if the resource has the provided RDF property set on it with
the specified value.
|
boolean |
isDifferentFrom(gate.creole.ontology.OInstance theInstance) |
boolean |
isInstanceOf(gate.creole.ontology.OClass aClass,
byte closure) |
boolean |
isInstanceOf(gate.creole.ontology.OClass aClass,
gate.creole.ontology.OConstants.Closure closure) |
boolean |
isSameInstanceAs(gate.creole.ontology.OInstance theInstance) |
void |
removeDatatypePropertyValue(gate.creole.ontology.DatatypeProperty aProperty,
gate.creole.ontology.Literal value) |
void |
removeDatatypePropertyValues(gate.creole.ontology.DatatypeProperty aProperty) |
void |
removeObjectPropertyValue(gate.creole.ontology.ObjectProperty aProperty,
gate.creole.ontology.OInstance value) |
void |
removeObjectPropertyValues(gate.creole.ontology.ObjectProperty aProperty) |
void |
removeRDFPropertyValue(gate.creole.ontology.RDFProperty aProperty,
gate.creole.ontology.OResource value) |
void |
removeRDFPropertyValues(gate.creole.ontology.RDFProperty aProperty) |
void |
setDifferentFrom(gate.creole.ontology.OInstance theInstance) |
void |
setSameInstanceAs(gate.creole.ontology.OInstance theInstance) |
addAnnotationPropertyValue, compareTo, equals, getAnnotationPropertyValues, getComment, getComments, getLabel, getLabels, getName, getONodeID, getOntology, getPropertiesWithResourceAsDomain, getPropertiesWithResourceAsRange, getSetAnnotationProperties, getURI, hasAnnotationPropertyWithValue, hashCode, removeAnnotationPropertyValue, removeAnnotationPropertyValues, setComment, setLabel, setONodeID, setURI, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAnnotationPropertyValue, getAnnotationPropertyValues, getComment, getComments, getLabel, getLabels, getName, getONodeID, getOntology, getPropertiesWithResourceAsDomain, getPropertiesWithResourceAsRange, getSetAnnotationProperties, getURI, hasAnnotationPropertyWithValue, removeAnnotationPropertyValue, removeAnnotationPropertyValues, setComment, setLabel, setURIpublic OInstanceImpl(gate.creole.ontology.OURI aURI,
gate.creole.ontology.Ontology ontology,
OntologyService owlimPort)
aURI - ontology - repositoryID - owlimPort - public Set<gate.creole.ontology.OClass> getOClasses(byte closure)
getOClasses in interface gate.creole.ontology.OInstancepublic Set<gate.creole.ontology.OClass> getOClasses(gate.creole.ontology.OConstants.Closure closure)
getOClasses in interface gate.creole.ontology.OInstancepublic void addOClass(gate.creole.ontology.OClass theClass)
addOClass in interface gate.creole.ontology.OInstancetheClass - - the OClass object for the class of which the individual
should be an instance.public boolean isInstanceOf(gate.creole.ontology.OClass aClass,
byte closure)
isInstanceOf in interface gate.creole.ontology.OInstancepublic boolean isInstanceOf(gate.creole.ontology.OClass aClass,
gate.creole.ontology.OConstants.Closure closure)
isInstanceOf in interface gate.creole.ontology.OInstancepublic void setDifferentFrom(gate.creole.ontology.OInstance theInstance)
setDifferentFrom in interface gate.creole.ontology.OInstancepublic Set<gate.creole.ontology.OInstance> getDifferentInstances()
getDifferentInstances in interface gate.creole.ontology.OInstancepublic boolean isDifferentFrom(gate.creole.ontology.OInstance theInstance)
isDifferentFrom in interface gate.creole.ontology.OInstancepublic void setSameInstanceAs(gate.creole.ontology.OInstance theInstance)
setSameInstanceAs in interface gate.creole.ontology.OInstancepublic Set<gate.creole.ontology.OInstance> getSameInstance()
getSameInstance in interface gate.creole.ontology.OInstancepublic boolean isSameInstanceAs(gate.creole.ontology.OInstance theInstance)
isSameInstanceAs in interface gate.creole.ontology.OInstancepublic void addRDFPropertyValue(gate.creole.ontology.RDFProperty aProperty,
gate.creole.ontology.OResource value)
throws gate.creole.ontology.InvalidValueException
addRDFPropertyValue in interface gate.creole.ontology.OInstancegate.creole.ontology.InvalidValueExceptionpublic void removeRDFPropertyValue(gate.creole.ontology.RDFProperty aProperty,
gate.creole.ontology.OResource value)
removeRDFPropertyValue in interface gate.creole.ontology.OInstance@Deprecated public List<gate.creole.ontology.OResource> getRDFPropertyValues(gate.creole.ontology.RDFProperty aProperty)
getRDFPropertyValues in interface gate.creole.ontology.OInstancepublic List<gate.creole.ontology.OValue> getRDFPropertyOValues(gate.creole.ontology.RDFProperty aProperty)
getRDFPropertyOValues in interface gate.creole.ontology.OInstancepublic Set<gate.creole.ontology.RDFProperty> getSetRDFProperties()
getSetRDFProperties in interface gate.creole.ontology.OInstancepublic boolean hasRDFPropertyWithValue(gate.creole.ontology.RDFProperty aProperty,
gate.creole.ontology.OResource aResource)
hasRDFPropertyWithValue in interface gate.creole.ontology.OInstanceaProperty - aResource - public void removeRDFPropertyValues(gate.creole.ontology.RDFProperty aProperty)
removeRDFPropertyValues in interface gate.creole.ontology.OInstancepublic void addDatatypePropertyValue(gate.creole.ontology.DatatypeProperty aProperty,
gate.creole.ontology.Literal value)
throws gate.creole.ontology.InvalidValueException
addDatatypePropertyValue in interface gate.creole.ontology.OInstancegate.creole.ontology.InvalidValueExceptionpublic void removeDatatypePropertyValue(gate.creole.ontology.DatatypeProperty aProperty,
gate.creole.ontology.Literal value)
removeDatatypePropertyValue in interface gate.creole.ontology.OInstancepublic List<gate.creole.ontology.Literal> getDatatypePropertyValues(gate.creole.ontology.DatatypeProperty aProperty)
getDatatypePropertyValues in interface gate.creole.ontology.OInstancepublic void removeDatatypePropertyValues(gate.creole.ontology.DatatypeProperty aProperty)
removeDatatypePropertyValues in interface gate.creole.ontology.OInstancepublic Set<gate.creole.ontology.DatatypeProperty> getSetDatatypeProperties()
getSetDatatypeProperties in interface gate.creole.ontology.OInstancepublic boolean hasDatatypePropertyWithValue(gate.creole.ontology.DatatypeProperty aProperty,
gate.creole.ontology.Literal aValue)
hasDatatypePropertyWithValue in interface gate.creole.ontology.OInstanceaProperty - aValue - public void addObjectPropertyValue(gate.creole.ontology.ObjectProperty aProperty,
gate.creole.ontology.OInstance value)
throws gate.creole.ontology.InvalidValueException
addObjectPropertyValue in interface gate.creole.ontology.OInstancegate.creole.ontology.InvalidValueExceptionpublic void removeObjectPropertyValue(gate.creole.ontology.ObjectProperty aProperty,
gate.creole.ontology.OInstance value)
removeObjectPropertyValue in interface gate.creole.ontology.OInstancepublic List<gate.creole.ontology.OInstance> getObjectPropertyValues(gate.creole.ontology.ObjectProperty aProperty)
getObjectPropertyValues in interface gate.creole.ontology.OInstancepublic void removeObjectPropertyValues(gate.creole.ontology.ObjectProperty aProperty)
removeObjectPropertyValues in interface gate.creole.ontology.OInstancepublic Set<gate.creole.ontology.ObjectProperty> getSetObjectProperties()
getSetObjectProperties in interface gate.creole.ontology.OInstancepublic boolean hasObjectPropertyWithValue(gate.creole.ontology.ObjectProperty aProperty,
gate.creole.ontology.OInstance aValue)
hasObjectPropertyWithValue in interface gate.creole.ontology.OInstanceaProperty - aValue - public Set<gate.creole.ontology.RDFProperty> getAllSetProperties()
getAllSetProperties in interface gate.creole.ontology.OResourcegetAllSetProperties in class OResourceImplpublic gate.creole.ontology.OURI getOURI()
getOURI in interface gate.creole.ontology.OInstance