|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntInstanceDescription
This interface containes methods allowing to create and investigate a description of an Ontology instance. $Revision: 1.2 $
Method Summary | |
---|---|
void |
addProperty(OntPropertyDescription newProperty)
Add property to the instance |
void |
addType(java.lang.String name)
Add the ontology type of this instance. |
java.lang.Object |
clone()
Clone method |
SerializableOntModelImpl |
getInstanceOntModel()
Get the Jena-based Ontology Model object for this instance. |
java.lang.String |
getName()
Get name of the instance |
java.util.Set |
getProperties()
Get properties of the instance |
OntPropertyDescription |
getProperty(java.lang.String propertyName)
Get property of the instance |
java.util.Set |
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.java.lang.String getName()
java.util.Set getTypes()
java.util.Set getProperties()
OntPropertyDescription getProperty(java.lang.String propertyName)
propertyName
- name of the property.
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()
SerializableOntModelImpl getInstanceOntModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |