public interface ObjectPropertySetup extends PropertySetup
Setup interface for creating new object properties. The creation is separated
from the usage; for every ObjectProperty
there is exactly one
ObjectPropertySetup where all the characteristics of this property are
defined.
To create a new ObjectProperty
, define a subclass of Ontology
, overwrite the Ontology.create()
method, create an
OntClassInfo
and call
OntClassInfoSetup.addObjectProperty(String)
.
ObjectProperty
,
DatatypeProperty
,
DatatypePropertySetup
,
Property
,
PropertySetup
Modifier and Type | Method and Description |
---|---|
void |
setAsymmetric()
Set this property to be asymmetric.
|
void |
setInverseFunctional()
Set this property to be inverse-functional.
|
void |
setInverseOf(String inverseOf)
Set the inverse property.
|
void |
setIrreflexive()
Set this property to be irreflexive.
|
void |
setReflexive()
Set this property to be reflexive.
|
void |
setSymmetric()
Set this property to be symmetric.
|
void |
setTransitive()
Set this property to be transitive.
|
addDisjointProperty, addEquivalentProperty, addSuperProperty, getProperty, setDomain, setFunctional, setProperty, setRange
void setInverseOf(String inverseOf)
inverseOf
- URI of the inverse property.void setInverseFunctional()
void setTransitive()
void setSymmetric()
Set this property to be symmetric. This means that if an individual x is connected to the individual y by this property, then y is also connected to x by this property. for example, the property a:sisterOf is symmetric.
A property can not be both, symmetric and asymmetric, but it can be neither of it. For example, the property a:loves is neither symmetric nor asymmetric because if one person loves another person, this does not mean that this feeling is mutual.
setAsymmetric()
void setAsymmetric()
setSymmetric()
void setReflexive()
setIrreflexive()
void setIrreflexive()
setReflexive()
Copyright © 2018 universAAL Consortium. All rights reserved.