|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OResource
This is the top level interface for all ontology resources such as classes, instances and properties.
| Method Summary | |
|---|---|
void |
addAnnotationPropertyValue(AnnotationProperty theAnnotationProperty,
Literal literal)
Adds a new annotation property value and specifies the language. |
Set<RDFProperty> |
getAllSetProperties()
This method returns all the set properties set on this resource. |
List<Literal> |
getAnnotationPropertyValues(AnnotationProperty theAnnotationProperty)
Gets the list of values for a given property name. |
String |
getComment(Locale language)
Deprecated. |
Set<Literal> |
getComments()
Deprecated. |
String |
getLabel(Locale language)
Deprecated. |
Set<Literal> |
getLabels()
This method returns a set of labels specified on this resource. |
String |
getName()
Gets resource name. |
ONodeID |
getONodeID()
|
Ontology |
getOntology()
Gets the ontology to which the resource belongs. |
Set<RDFProperty> |
getPropertiesWithResourceAsDomain()
This method returns a set of all properties where the current resource has been specified as one of the domain resources. |
Set<RDFProperty> |
getPropertiesWithResourceAsRange()
This method returns a set of all properties where the current resource has been specified as one of the range resources. |
Set<AnnotationProperty> |
getSetAnnotationProperties()
This method returns the annotation properties set on this resource. |
URI |
getURI()
Deprecated. |
boolean |
hasAnnotationPropertyWithValue(AnnotationProperty aProperty,
Literal aValue)
Checks if the resource has the provided annotation property set on it with the specified value. |
void |
removeAnnotationPropertyValue(AnnotationProperty theAnnotationProperty,
Literal literal)
For the current resource, the method removes the given literal for the given property. |
void |
removeAnnotationPropertyValues(AnnotationProperty theProperty)
Removes all values for a named property. |
void |
setComment(String aComment,
Locale Locale)
Deprecated. |
void |
setLabel(String aLabel,
Locale language)
Sets the label for the resource with the specified language. |
void |
setURI(URI uri)
Deprecated. |
| Method Detail |
|---|
@Deprecated URI getURI()
ONodeID getONodeID()
@Deprecated void setURI(URI uri)
uri - Set<Literal> getLabels()
@Deprecated Set<Literal> getComments()
@Deprecated String getComment(Locale language)
language - (@see OConstants for available locales)
@Deprecated
void setComment(String aComment,
Locale Locale)
aComment - the comment to be set.Locale - @Deprecated String getLabel(Locale language)
language -
void setLabel(String aLabel,
Locale language)
aLabel - the label to be set.language - the anguage of the label. (@see OConstants for
available locales)String getName()
Ontology getOntology()
Ontology to which the resource belongs
void addAnnotationPropertyValue(AnnotationProperty theAnnotationProperty,
Literal literal)
theAnnotationProperty - the annotation propertyliteral - the Literal containing some valueList<Literal> getAnnotationPropertyValues(AnnotationProperty theAnnotationProperty)
theAnnotationProperty -
Literal.Set<AnnotationProperty> getSetAnnotationProperties()
Set<RDFProperty> getAllSetProperties()
Set<RDFProperty> getPropertiesWithResourceAsDomain()
Set<RDFProperty> getPropertiesWithResourceAsRange()
boolean hasAnnotationPropertyWithValue(AnnotationProperty aProperty,
Literal aValue)
aProperty - aValue -
void removeAnnotationPropertyValue(AnnotationProperty theAnnotationProperty,
Literal literal)
theAnnotationProperty - literal - void removeAnnotationPropertyValues(AnnotationProperty theProperty)
theProperty - the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||