|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyResource
This is the top level interface for all ontology resources such as classes, instances and properties.
Method Summary | |
---|---|
boolean |
addPropertyValue(String propertyName,
Object theValue)
Adds a new property with the given name and value. |
String |
getComment()
Gets the comment of the resource. |
String |
getName()
Gets resource name. |
Ontology |
getOntology()
Gets the ontology to which the resource belongs. |
List |
getPropertyValues(String propertyName)
Gets the list of values for a given property name. |
Set |
getSetPropertiesNames()
Gets the names of the properties that have set values for this instance. |
Taxonomy |
getTaxonomy()
Gets the taxonomy to which the resource belongs. |
String |
getURI()
Gets the URI of the resource. |
boolean |
removePropertyValue(String propertyName,
Object theValue)
Removes one of the values for a given property. |
void |
removePropertyValues(String propertyName)
Removes all values for a named property. |
void |
setComment(String aComment)
Sets the resource comment. |
void |
setName(String aName)
Sets the resource name. |
void |
setURI(String theURI)
Sets the URI of the resource. |
Method Detail |
---|
String getURI()
void setURI(String theURI)
theURI
- the new URI to be setString getComment()
void setComment(String aComment)
aComment
- the comment to be set.String getName()
void setName(String aName)
aName
- the new name of the resource.Ontology getOntology()
Taxonomy getTaxonomy()
boolean addPropertyValue(String propertyName, Object theValue)
propertyName
- the name of the propertytheValue
- the value for the property
List getPropertyValues(String propertyName)
propertyName
- the name of the property
boolean removePropertyValue(String propertyName, Object theValue)
propertyName
- the name of the propertytheValue
- the value to be removed.
void removePropertyValues(String propertyName)
propertyName
- the property name.Set getSetPropertiesNames()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |