kaos.core.csi
Interface OntInstanceDescription

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
ActionInstanceDescription, ViolatedObligationDescription

public interface OntInstanceDescription
extends java.lang.Cloneable

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

addType

void addType(java.lang.String name)
             throws java.net.URISyntaxException
Add the ontology type of this instance.

Parameters:
name - String containing the uri of the ontology type (class).
Throws:
java.net.URISyntaxException - when the name is not a correct URI

addProperty

void addProperty(OntPropertyDescription newProperty)
Add property to the instance

Parameters:
newProperty - OntPropertyDescription with the property description.

getName

java.lang.String getName()
Get name of the instance

Returns:
String representing the name in URI format.

getTypes

java.util.Set getTypes()
Get types of the instance

Returns:
Set containing the strings with URIs of the types.

getProperties

java.util.Set getProperties()
Get properties of the instance

Returns:
Set containing the OntPropertyDescriptions.

getProperty

OntPropertyDescription getProperty(java.lang.String propertyName)
Get property of the instance

Parameters:
propertyName - name of the property.
Returns:
OntPropertyDescription.

removeType

void removeType(java.lang.String name)
Remove the ontology type of this instance.

Parameters:
name - String containing the uri of the ontology type (class).

removeProperty

void removeProperty(java.lang.String propertyName)
Get property from the instance description

Parameters:
propertyName - property name.

clone

java.lang.Object clone()
Clone method

Returns:
copy of the object

getInstanceOntModel

SerializableOntModelImpl getInstanceOntModel()
Get the Jena-based Ontology Model object for this instance.

Returns:
Jena-based Ontology Model


Copyright © 2005 IHMC All Rights Reserved.