org.opentox.toxotis.ontology.impl
Class OTDatatypePropertyImpl

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

public class OTDatatypePropertyImpl
extends OTPropertyImpl
implements OTDatatypeProperty

See Also:
Serialized Form

Constructor Summary
OTDatatypePropertyImpl()
           
OTDatatypePropertyImpl(String name)
           
 
Method Summary
 com.hp.hpl.jena.ontology.DatatypeProperty asDatatypeProperty(com.hp.hpl.jena.ontology.OntModel model)
          Cast this OTDatatypeProperty object as a Jena DatatypeProperty object.
 Collection<com.hp.hpl.jena.datatypes.xsd.XSDDatatype> getRange()
          

For a property one can define (multiple) rdfs:range axioms.

 void setRange(Collection<com.hp.hpl.jena.datatypes.xsd.XSDDatatype> range)
          Set the range for this datatype 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

OTDatatypePropertyImpl

public OTDatatypePropertyImpl()

OTDatatypePropertyImpl

public OTDatatypePropertyImpl(String name)
Method Detail

getRange

public Collection<com.hp.hpl.jena.datatypes.xsd.XSDDatatype> getRange()
Description copied from interface: OTDatatypeProperty

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 OTDatatypeProperty
Returns:
The range of an object property specifies the admissible XSD datatypes for this property.
See Also:
http://www.w3.org/TR/owl-ref/#ObjectProperty-def

setRange

public void setRange(Collection<com.hp.hpl.jena.datatypes.xsd.XSDDatatype> range)
Description copied from interface: OTDatatypeProperty
Set the range for this datatype property

Specified by:
setRange in interface OTDatatypeProperty
Parameters:
range - A collection of XSD datatypes

asDatatypeProperty

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

Specified by:
asDatatypeProperty in interface OTDatatypeProperty
Parameters:
model - The ontological model that holds the DatatypeProperty definition.
Returns:
The DatatypeProperty object that is assigned to the given ontological model.


Copyright © 2011-2012 OpenTox. All Rights Reserved.