org.opentox.toxotis.ontology.impl
Class OTObjectPropertyImpl

java.lang.Object
  extended by org.opentox.toxotis.ontology.impl.OTPropertyImpl
      extended by org.opentox.toxotis.ontology.impl.OTObjectPropertyImpl
All Implemented Interfaces:
Serializable, OTObjectProperty, OTProperty, OTResource

public class OTObjectPropertyImpl
extends OTPropertyImpl
implements OTObjectProperty

Author:
Pantelis Sopasakis, Charalampos Chomenides
See Also:
Serialized Form

Constructor Summary
OTObjectPropertyImpl()
           
OTObjectPropertyImpl(String name)
           
OTObjectPropertyImpl(String name, String nameSpace)
           
 
Method Summary
 com.hp.hpl.jena.ontology.ObjectProperty asObjectProperty(com.hp.hpl.jena.ontology.OntModel model)
          Cast this OTObjectProperty object as a Jena ObjectProperty object.
 Collection<OntologicalClass> getRange()
          For a property one can define (multiple) rdfs:range axioms.
 void setRange(Collection<OntologicalClass> range)
          Setter method for the range of the current object property.
 
Methods inherited from class org.opentox.toxotis.ontology.impl.OTPropertyImpl
asProperty, getDomain, getMetaInfo, getName, getNameSpace, getProperty, getSuperProperties, getUri, setDomain, setMetaInfo, setName, setNameSpace, setSuperProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opentox.toxotis.ontology.OTProperty
asProperty, getDomain, getMetaInfo, getName, getNameSpace, getProperty, getSuperProperties, setDomain, setMetaInfo, setName, setNameSpace, setSuperProperties
 
Methods inherited from interface org.opentox.toxotis.ontology.OTResource
getUri
 

Constructor Detail

OTObjectPropertyImpl

public OTObjectPropertyImpl()

OTObjectPropertyImpl

public OTObjectPropertyImpl(String name)

OTObjectPropertyImpl

public OTObjectPropertyImpl(String name,
                            String nameSpace)
Method Detail

getRange

public Collection<OntologicalClass> getRange()
Description copied from interface: OTObjectProperty
For a property one can define (multiple) rdfs:range axioms. Syntactically, rdfs:range is a built-in property that links a property (some instance of the class rdf:Property) to to either a class description or a data range. An rdfs:range axiom asserts that the values of this property must belong to the class extension of the class description or to data values in the specified data range. Multiple range restrictions are interpreted as stating that the range of the property is the intersection of all ranges (i.e., the intersection of the class extension of the class descriptions c.q. the intersection of the data ranges).

Specified by:
getRange in interface OTObjectProperty
Returns:
The range of an object property specifies the types of objects than can be set as values to this property.
See Also:
http://www.w3.org/TR/owl-ref/#ObjectProperty-def

setRange

public void setRange(Collection<OntologicalClass> range)
Description copied from interface: OTObjectProperty
Setter method for the range of the current object property. The range is defined as a collection of ontological classes.

Specified by:
setRange in interface OTObjectProperty
Parameters:
range - Set of ontological classes whose union defines the range of the current object property.

asObjectProperty

public com.hp.hpl.jena.ontology.ObjectProperty asObjectProperty(com.hp.hpl.jena.ontology.OntModel model)
Description copied from interface: OTObjectProperty
Cast this OTObjectProperty object as a Jena ObjectProperty object. This property is assigned to the given ontological model.

Specified by:
asObjectProperty in interface OTObjectProperty
Parameters:
model - The ontological model that holds the ObjectProperty definition.
Returns:
The ObjectProperty object that is assigned to the given ontological model.


Copyright © 2011-2012 OpenTox. All Rights Reserved.