|
||||||||||
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.10 $
Method Summary | |
---|---|
void |
addProperty(OntPropertyDescription newProperty)
Add property to the instance The method will will check if the property already exist and if yes combine the values. |
OntPropertyDescription |
addProperty(java.lang.String newProperty,
java.lang.String value)
Add property to the instance; providing name and value. |
OntPropertyDescription |
addProperty(java.lang.String newProperty,
java.lang.String propertyValue,
java.lang.Object propertyValueDesc)
Add property to the instance; providing name, value and value description. |
void |
addType(java.lang.String name)
Add the ontology type of this instance. |
OntInstanceDescription |
clone()
Clone the instance |
java.util.List<java.lang.Object> |
getAllValueDescriptionsForProperty(java.lang.String propertyURI)
Get values descriptions for property of the instance |
java.util.List<java.lang.String> |
getAllValuesForProperty(java.lang.String propertyURI)
Get values for property of the instance |
java.lang.String |
getAsOWL()
Get the OWL representation for this instance. |
java.lang.Object |
getDescriptionOfFirstValueForProperty(java.lang.String propertyURI)
Get value description for the first value of the property of the instance |
java.lang.String |
getFirstType()
Get first type of the instance |
java.lang.String |
getFirstValueForProperty(java.lang.String propertyURI)
Get the first value for property 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.Map<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. |
void |
setProperty(OntPropertyDescription newProperty)
Set property for the instance. |
OntPropertyDescription |
setProperty(java.lang.String newProperty,
java.lang.String value)
Set property for the instance; providing name and value. |
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 setProperty(OntPropertyDescription newProperty)
newProperty
- OntPropertyDescription with the property description.OntPropertyDescription setProperty(java.lang.String newProperty, java.lang.String value)
newProperty
- string with the property namevale
- string with the property vale
void addProperty(OntPropertyDescription newProperty)
newProperty
- OntPropertyDescription with the property description.OntPropertyDescription addProperty(java.lang.String newProperty, java.lang.String value)
newProperty
- string with the property namevalue
- string with the property value
OntPropertyDescription addProperty(java.lang.String newProperty, java.lang.String propertyValue, java.lang.Object propertyValueDesc)
newProperty
- string with the property namepropertyValue
- string with the property valuepropertyValueDesc
- description for the value
java.lang.String getName()
java.util.Set<java.lang.String> getTypes()
java.lang.String getFirstType()
java.util.Set<OntPropertyDescription> getProperties()
java.util.Map<java.lang.String,OntPropertyDescription> getPropertiesMap()
OntPropertyDescription getProperty(java.lang.String propertyName)
propertyName
- name of the property.
java.util.List<java.lang.String> getAllValuesForProperty(java.lang.String propertyURI)
propertyName
- name of the property.
java.util.List<java.lang.Object> getAllValueDescriptionsForProperty(java.lang.String propertyURI)
propertyName
- name of the property.
java.lang.String getFirstValueForProperty(java.lang.String propertyURI)
propertyName
- name of the property.
java.lang.Object getDescriptionOfFirstValueForProperty(java.lang.String propertyURI)
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.kaos.ontology.util.SerializableOntModelImpl getInstanceOntModel()
java.lang.String getAsOWL()
OntInstanceDescription clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |