org.universAAL.middleware.rdf
Class Property.PrivatePropertySetup

Package class diagram package Property.PrivatePropertySetup
java.lang.Object
  extended by org.universAAL.middleware.rdf.Property.PrivatePropertySetup
All Implemented Interfaces:
PropertySetup
Enclosing class:
Property

protected class Property.PrivatePropertySetup
extends Object
implements PropertySetup

Implementation of the setup interface. For security reasons, this is realized as a protected nested class so that only the creator of an Ontology has access to it and can make changes.


Field Summary
protected  Property prop
          The property.
 
Constructor Summary
Property.PrivatePropertySetup(Property prop)
          Constructor.
 
Method Summary
 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 dom)
          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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prop

protected Property prop
The property.

Constructor Detail

Property.PrivatePropertySetup

public Property.PrivatePropertySetup(Property prop)
Constructor.

Method Detail

getProperty

public Property getProperty()
Get the property for this set up.

Specified by:
getProperty in interface PropertySetup

setFunctional

public void setFunctional()
Description copied from interface: PropertySetup
Set this property to be functional. This means that each individual is connected to at most one individual or literal by this property. This can be seen as a syntactic shortcut to defining a 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.

Specified by:
setFunctional in interface PropertySetup
See Also:
PropertySetup.setFunctional()

addSuperProperty

public void addSuperProperty(String superProperty)
Description copied from interface: PropertySetup
Add a super property. This means that all resources related by this property are also related by the super property.

Specified by:
addSuperProperty in interface PropertySetup
Parameters:
superProperty - URI of the super property.
See Also:
PropertySetup.addSuperProperty(String)

addEquivalentProperty

public void addEquivalentProperty(String equivalentProperty)
Description copied from interface: PropertySetup
Add an equivalent property. This means that this property is semantically equivalent to the given property and that one can be replaced by the other. Setting two properties x and y to be equivalent is equivalent to saying that x is a sub property of y and y is a sub property of x. For example, the two properties a:hasBrother and a:hasMaleSibling are equivalent.

Specified by:
addEquivalentProperty in interface PropertySetup
Parameters:
equivalentProperty - URI of the equivalent property.
See Also:
PropertySetup.addEquivalentProperty(String)

addDisjointProperty

public void addDisjointProperty(String disjointProperty)
Description copied from interface: PropertySetup
Add a disjoint property. This means that if an individual is connected to another individual or literal by this property, they can not be connected by the disjoint property. For example, the properties a:hasName and a:hasAddress are disjoint because someone's name must be different from his address.

Specified by:
addDisjointProperty in interface PropertySetup
Parameters:
disjointProperty - URI of the disjoint property.
See Also:
PropertySetup.addDisjointProperty(String)

setDomain

public void setDomain(TypeExpression dom)
Description copied from interface: PropertySetup
Set the domain that is used to state that any resource that has a given property is an instance of one or more classes.

Specified by:
setDomain in interface PropertySetup
See Also:
PropertySetup.setDomain(TypeExpression)

setRange

public void setRange(TypeExpression range)
Description copied from interface: PropertySetup
Set the range that is used to state that the values of a property are instances of one or more classes.

Specified by:
setRange in interface PropertySetup
See Also:
PropertySetup.setRange(TypeExpression)


Copyright © 2014 universAAL Consortium. All Rights Reserved.