org.opentox.toxotis.ontology
Interface OTDatatypeProperty

All Superinterfaces:
OTProperty, OTResource, Serializable
All Known Implementing Classes:
OTDatatypePropertyImpl

public interface OTDatatypeProperty
extends OTProperty

According to the OWL specification provided by W3C, datatype properties link individuals to data values.

Author:
Sopasakis Pantelis

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 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
 

Method Detail

getRange

Collection<com.hp.hpl.jena.datatypes.xsd.XSDDatatype> getRange()

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).

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

void setRange(Collection<com.hp.hpl.jena.datatypes.xsd.XSDDatatype> range)
Set the range for this datatype property

Parameters:
range - A collection of XSD datatypes

asDatatypeProperty

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

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.