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 PropertySetup
public void setFunctional()
PropertySetup
MaxCardinalityRestriction
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 PropertySetup
public void addSuperProperty(String superProperty)
PropertySetup
addSuperProperty
in interface PropertySetup
superProperty
- URI of the super property.public void addEquivalentProperty(String equivalentProperty)
PropertySetup
addEquivalentProperty
in interface PropertySetup
equivalentProperty
- URI of the equivalent property.public void addDisjointProperty(String disjointProperty)
PropertySetup
addDisjointProperty
in interface PropertySetup
disjointProperty
- URI of the disjoint property.public void setDomain(TypeExpression domain)
PropertySetup
setDomain
in interface PropertySetup
domain
- the domain of the property.public void setRange(TypeExpression range)
PropertySetup
setRange
in interface PropertySetup
range
- the range of the property.public boolean setProperty(String propURI, Object value)
setProperty
in interface PropertySetup
Resource.setProperty(String, Object)
Copyright © 2018 universAAL Consortium. All rights reserved.