org.universAAL.middleware.owl
Interface OntClassInfoSetup

Package class diagram package OntClassInfoSetup
All Superinterfaces:
RDFClassInfoSetup

public interface OntClassInfoSetup
extends RDFClassInfoSetup

Setup interface for creating new OWL classes. The creation is separated from the usage; for every OntClassInfo there is exactly one OntClassInfoSetup where all the characteristics of this class are defined. To create a new OntClassInfo, define a subclass of Ontology and overwrite the Ontology.create() method.

Author:
Carsten Stockloew
See Also:
RDFClassInfo, OntClassInfo, RDFClassInfoSetup

Method Summary
 DatatypePropertySetup addDatatypeProperty(String propURI)
          Add a DatatypeProperty.
 void addDisjointClass(TypeExpression dj)
          Set this class to be disjoint to the given class expression.
 void addEquivalentClass(TypeExpression eq)
          Set this class to be equivalent to the given class expression.
 void addInstance(ManagedIndividual instance)
          Add an instance of this class.
 ObjectPropertySetup addObjectProperty(String propURI)
          Add an ObjectProperty.
 void addRestriction(MergedRestriction r)
          Add a restriction to a property.
 void setComplementClass(TypeExpression complement)
          Set this class to be the complement of the given class expression.
 void toEnumeration(ManagedIndividual[] individuals)
          Make this class an enumeration class by explicitly specifying all instances of class.
 
Methods inherited from interface org.universAAL.middleware.rdf.RDFClassInfoSetup
addInstance, addSuperClass, addSuperClass, getInfo, setResourceComment, setResourceLabel
 

Method Detail

addRestriction

void addRestriction(MergedRestriction r)
Add a restriction to a property. If a restriction was already set for that property, an IllegalAccessError exception is thrown.

Parameters:
r - The restriction to add.

addObjectProperty

ObjectPropertySetup addObjectProperty(String propURI)
Add an ObjectProperty. An object property in OWL connects an instance of a class to an instance of class (instead of a literal).

Parameters:
propURI - URI of the property.
Returns:
A setup interface to set the characteristics of that property.
See Also:
addDatatypeProperty(String)

addDatatypeProperty

DatatypePropertySetup addDatatypeProperty(String propURI)
Add a DatatypeProperty. A datatype property in OWL connects an instance of a class to a literal (instead of an instance of a class).

Parameters:
propURI - URI of the property.
Returns:
A setup interface to set the characteristics of that property.
See Also:
addObjectProperty(String)

addInstance

void addInstance(ManagedIndividual instance)
Add an instance of this class.

Parameters:
instance - The instance to add.

toEnumeration

void toEnumeration(ManagedIndividual[] individuals)
Make this class an enumeration class by explicitly specifying all instances of class. After calling this method, no additional instances can be added.

Parameters:
individuals - The set of instances of this class.

addEquivalentClass

void addEquivalentClass(TypeExpression eq)
Set this class to be equivalent to the given class expression. This means that this class is semantically equivalent to the given class expression and that one can be replaced by the other.

Parameters:
eq - The equivalent class expression.

addDisjointClass

void addDisjointClass(TypeExpression dj)
Set this class to be disjoint to the given class expression. This means that the set of instances of this class is pairwise disjoint to the set of instances defined by the given class expression.

Parameters:
dj - The disjoint class expression.

setComplementClass

void setComplementClass(TypeExpression complement)
Set this class to be the complement of the given class expression. This means that all individuals are either in this class or in the given class expression, but not in both.

Parameters:
complement - The complement class expression.


Copyright © 2014 universAAL Consortium. All Rights Reserved.