public interface OntClassInfoSetup extends RDFClassInfoSetup
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.RDFClassInfo
,
OntClassInfo
,
RDFClassInfoSetup
Modifier and Type | Method and Description |
---|---|
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.
|
addInstance, addSuperClass, addSuperClass, getInfo, setResourceComment, setResourceLabel
void addRestriction(MergedRestriction r)
IllegalAccessError
exception is thrown.r
- The restriction to add.ObjectPropertySetup addObjectProperty(String propURI)
ObjectProperty
. An object property in OWL connects an
instance of a class to an instance of class (instead of a literal).propURI
- URI of the property.addDatatypeProperty(String)
DatatypePropertySetup addDatatypeProperty(String propURI)
DatatypeProperty
. A datatype property in OWL connects an
instance of a class to a literal (instead of an instance of a class).propURI
- URI of the property.addObjectProperty(String)
void addInstance(ManagedIndividual instance)
instance
- The instance to add.void toEnumeration(ManagedIndividual[] individuals)
individuals
- The set of instances of this class.void addEquivalentClass(TypeExpression eq)
eq
- The equivalent class expression.void addDisjointClass(TypeExpression dj)
dj
- The disjoint class expression.void setComplementClass(TypeExpression complement)
complement
- The complement class expression.Copyright © 2018 universAAL Consortium. All rights reserved.