|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OntInstanceDescription
This interface contains methods allowing to create and investigate a description of an ontology instance. $Revision: 1.6 $
| Method Summary | |
|---|---|
void |
addProperty(OntPropertyDescription newProperty)
Add property to the instance |
OntPropertyDescription |
addProperty(java.lang.String newProperty,
java.lang.String value)
Add property to the instance, providing name and value. |
void |
addType(java.lang.String name)
Add the ontology type of this instance. |
java.lang.Object |
clone()
Clone method |
java.lang.String |
getFirstType()
Get first type of the instance |
kaos.ontology.util.SerializableOntModelImpl |
getInstanceOntModel()
Get the Jena-based Ontology Model object for this instance. |
java.lang.String |
getName()
Get name of the instance |
OntPropertyDescription |
getNestedProperty(java.lang.String propertyName)
Get the given property if nested in the train of interrelated instances. |
java.util.Set<OntPropertyDescription> |
getProperties()
Get properties of the instance |
java.util.HashMap<java.lang.String,OntPropertyDescription> |
getPropertiesMap()
Get properties of the instance |
OntPropertyDescription |
getProperty(java.lang.String propertyName)
Get property of the instance |
java.util.Set<java.lang.String> |
getTypes()
Get types of the instance |
void |
removeProperty(java.lang.String propertyName)
Get property from the instance description |
void |
removeType(java.lang.String name)
Remove the ontology type of this instance. |
| Method Detail |
|---|
void addType(java.lang.String name)
throws java.net.URISyntaxException
name - String containing the uri of the ontology type (class).
java.net.URISyntaxException - when the name is not a correct URIvoid addProperty(OntPropertyDescription newProperty)
newProperty - OntPropertyDescription with the property description.
OntPropertyDescription addProperty(java.lang.String newProperty,
java.lang.String value)
newProperty - string with the property namevale - string with the property vale
java.lang.String getName()
java.util.Set<java.lang.String> getTypes()
java.lang.String getFirstType()
java.util.Set<OntPropertyDescription> getProperties()
java.util.HashMap<java.lang.String,OntPropertyDescription> getPropertiesMap()
OntPropertyDescription getProperty(java.lang.String propertyName)
propertyName - name of the property.
OntPropertyDescription getNestedProperty(java.lang.String propertyName)
propertyName - - URI for the property to find
void removeType(java.lang.String name)
name - String containing the uri of the ontology type (class).void removeProperty(java.lang.String propertyName)
propertyName - property name.java.lang.Object clone()
kaos.ontology.util.SerializableOntModelImpl getInstanceOntModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||