org.opentox.toxotis.ontology
Interface OTObjectProperty

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

public interface OTObjectProperty
extends OTProperty

Object properties link individuals to individuals.

Author:
Pantelis Sopasakis, Charalampos Chomenides

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 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<OntologicalClass> 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 types of objects than can be set as values to this property.
See Also:
http://www.w3.org/TR/owl-ref/#ObjectProperty-def

setRange

void setRange(Collection<OntologicalClass> range)
Setter method for the range of the current object property. The range is defined as a collection of ontological classes.

Parameters:
range - Set of ontological classes whose union defines the range of the current object property.

asObjectProperty

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

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.