public class OResourceImpl extends Object implements gate.creole.ontology.OResource, Comparable<gate.creole.ontology.OResource>
| Modifier and Type | Field and Description |
|---|---|
protected gate.creole.ontology.ONodeID |
nodeId
URI of the resource
|
protected AbstractOntologyImpl |
ontology
The ontology the current resource belongs to
|
protected OntologyService |
ontologyService
instance of the OWLIMServices
|
| Constructor and Description |
|---|
OResourceImpl(gate.creole.ontology.ONodeID aURI,
gate.creole.ontology.Ontology ontology,
OntologyService owlimPort)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotationPropertyValue(gate.creole.ontology.AnnotationProperty theAnnotationProperty,
gate.creole.ontology.Literal literal) |
int |
compareTo(gate.creole.ontology.OResource other) |
boolean |
equals(Object a)
equals method overriden tocompare URIs
|
Set<gate.creole.ontology.RDFProperty> |
getAllSetProperties()
This method returns all the set properties set on this resource.
|
List<gate.creole.ontology.Literal> |
getAnnotationPropertyValues(gate.creole.ontology.AnnotationProperty theAnnotationProperty) |
String |
getComment(Locale language) |
Set<gate.creole.ontology.Literal> |
getComments()
This method returns a set of comments specified on this resource.
|
String |
getLabel(Locale language) |
Set<gate.creole.ontology.Literal> |
getLabels()
This method returns a set of labels specified on this resource.
|
String |
getName() |
gate.creole.ontology.ONodeID |
getONodeID() |
gate.creole.ontology.Ontology |
getOntology() |
Set<gate.creole.ontology.RDFProperty> |
getPropertiesWithResourceAsDomain()
This method returns a set of all properties where the current
resource has been specified as one of the domain resources.
|
Set<gate.creole.ontology.RDFProperty> |
getPropertiesWithResourceAsRange()
This method returns a set of all properties where the current
resource has been specified as one of the range resources.
|
Set<gate.creole.ontology.AnnotationProperty> |
getSetAnnotationProperties()
This method returns the annotation properties set on this resource.
|
gate.creole.ontology.URI |
getURI() |
boolean |
hasAnnotationPropertyWithValue(gate.creole.ontology.AnnotationProperty aProperty,
gate.creole.ontology.Literal aValue)
Checks if the resource has the provided annotation property set on
it with the specified value.
|
int |
hashCode()
HashCode for this resource.
|
void |
removeAnnotationPropertyValue(gate.creole.ontology.AnnotationProperty theAnnotationProperty,
gate.creole.ontology.Literal literal) |
void |
removeAnnotationPropertyValues(gate.creole.ontology.AnnotationProperty theAnnotationProperty) |
void |
setComment(String aComment,
Locale language) |
void |
setLabel(String aLabel,
Locale language) |
void |
setONodeID(gate.creole.ontology.ONodeID id) |
void |
setURI(gate.creole.ontology.URI uri) |
String |
toString()
String representation of the resource: its name and not the URI.
|
protected OntologyService ontologyService
protected gate.creole.ontology.ONodeID nodeId
protected AbstractOntologyImpl ontology
public OResourceImpl(gate.creole.ontology.ONodeID aURI,
gate.creole.ontology.Ontology ontology,
OntologyService owlimPort)
aURI - repositoryID - owlimPort - public gate.creole.ontology.URI getURI()
getURI in interface gate.creole.ontology.OResourcepublic gate.creole.ontology.ONodeID getONodeID()
getONodeID in interface gate.creole.ontology.OResourcepublic void setONodeID(gate.creole.ontology.ONodeID id)
public void setURI(gate.creole.ontology.URI uri)
setURI in interface gate.creole.ontology.OResourcepublic Set<gate.creole.ontology.Literal> getLabels()
getLabels in interface gate.creole.ontology.OResourcepublic Set<gate.creole.ontology.Literal> getComments()
getComments in interface gate.creole.ontology.OResourcepublic String getComment(Locale language)
getComment in interface gate.creole.ontology.OResourcepublic void setComment(String aComment, Locale language)
setComment in interface gate.creole.ontology.OResourcepublic String getLabel(Locale language)
getLabel in interface gate.creole.ontology.OResourcepublic void setLabel(String aLabel, Locale language)
setLabel in interface gate.creole.ontology.OResourcepublic String getName()
getName in interface gate.creole.ontology.OResourcepublic gate.creole.ontology.Ontology getOntology()
getOntology in interface gate.creole.ontology.OResourcepublic void addAnnotationPropertyValue(gate.creole.ontology.AnnotationProperty theAnnotationProperty,
gate.creole.ontology.Literal literal)
addAnnotationPropertyValue in interface gate.creole.ontology.OResourcepublic List<gate.creole.ontology.Literal> getAnnotationPropertyValues(gate.creole.ontology.AnnotationProperty theAnnotationProperty)
getAnnotationPropertyValues in interface gate.creole.ontology.OResourcepublic void removeAnnotationPropertyValue(gate.creole.ontology.AnnotationProperty theAnnotationProperty,
gate.creole.ontology.Literal literal)
removeAnnotationPropertyValue in interface gate.creole.ontology.OResourcepublic void removeAnnotationPropertyValues(gate.creole.ontology.AnnotationProperty theAnnotationProperty)
removeAnnotationPropertyValues in interface gate.creole.ontology.OResourcepublic Set<gate.creole.ontology.AnnotationProperty> getSetAnnotationProperties()
getSetAnnotationProperties in interface gate.creole.ontology.OResourcepublic boolean hasAnnotationPropertyWithValue(gate.creole.ontology.AnnotationProperty aProperty,
gate.creole.ontology.Literal aValue)
hasAnnotationPropertyWithValue in interface gate.creole.ontology.OResourceaProperty - aValue - public Set<gate.creole.ontology.RDFProperty> getAllSetProperties()
getAllSetProperties in interface gate.creole.ontology.OResourcepublic Set<gate.creole.ontology.RDFProperty> getPropertiesWithResourceAsDomain()
getPropertiesWithResourceAsDomain in interface gate.creole.ontology.OResourcepublic Set<gate.creole.ontology.RDFProperty> getPropertiesWithResourceAsRange()
getPropertiesWithResourceAsRange in interface gate.creole.ontology.OResourcepublic String toString()
public boolean equals(Object a)
public int compareTo(gate.creole.ontology.OResource other)
compareTo in interface Comparable<gate.creole.ontology.OResource>