
protected class Property.PrivatePropertySetup extends Object implements PropertySetup
Ontology has access to it and can make changes.| Constructor and Description |
|---|
PrivatePropertySetup(Property prop)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDisjointProperty(String disjointProperty)
Add a disjoint property.
|
void |
addEquivalentProperty(String equivalentProperty)
Add an equivalent property.
|
void |
addSuperProperty(String superProperty)
Add a super property.
|
Property |
getProperty()
Get the property for this set up.
|
void |
setDomain(TypeExpression domain)
Set the domain that is used to state that any resource that has a given
property is an instance of one or more classes.
|
void |
setFunctional()
Set this property to be functional.
|
boolean |
setProperty(String propURI,
Object value) |
void |
setRange(TypeExpression range)
Set the range that is used to state that the values of a property are
instances of one or more classes.
|
protected Property prop
public PrivatePropertySetup(Property prop)
public Property getProperty()
getProperty in interface PropertySetuppublic void setFunctional()
PropertySetupMaxCardinalityRestriction for this property with a maximum
cardinality of one. For example, the property a:hasWife is a
functional property because one can have none or one wife.setFunctional in interface PropertySetuppublic void addSuperProperty(String superProperty)
PropertySetupaddSuperProperty in interface PropertySetupsuperProperty - URI of the super property.public void addEquivalentProperty(String equivalentProperty)
PropertySetupaddEquivalentProperty in interface PropertySetupequivalentProperty - URI of the equivalent property.public void addDisjointProperty(String disjointProperty)
PropertySetupaddDisjointProperty in interface PropertySetupdisjointProperty - URI of the disjoint property.public void setDomain(TypeExpression domain)
PropertySetupsetDomain in interface PropertySetupdomain - the domain of the property.public void setRange(TypeExpression range)
PropertySetupsetRange in interface PropertySetuprange - the range of the property.public boolean setProperty(String propURI, Object value)
setProperty in interface PropertySetupResource.setProperty(String, Object)Copyright © 2018 universAAL Consortium. All rights reserved.