org.semanticweb.owl.model
Interface OWLDataPropertyExpression

All Superinterfaces:
java.lang.Comparable<OWLObject>, OWLObject, OWLPropertyExpression<OWLDataPropertyExpression,OWLDataRange>
All Known Subinterfaces:
OWLDataProperty

public interface OWLDataPropertyExpression
extends OWLPropertyExpression<OWLDataPropertyExpression,OWLDataRange>

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group Date: 24-Oct-2006 A high level interface to describe different types of data properties. The current OWL 1.1 spec only allows straight forward named data properties, it doesn't for example allow inverse data properties.


Method Summary
 OWLDataProperty asOWLDataProperty()
          If the property is a named data property then this method will obtain the property as such.
 
Methods inherited from interface org.semanticweb.owl.model.OWLPropertyExpression
accept, accept, getDisjointProperties, getDisjointProperties, getDomains, getDomains, getEquivalentProperties, getEquivalentProperties, getRanges, getRanges, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, isAnonymous, isFunctional, isFunctional
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, accept
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

asOWLDataProperty

OWLDataProperty asOWLDataProperty()
If the property is a named data property then this method will obtain the property as such. The general pattern of use is that the isAnonymous method should first be used to determine if the property is named (i.e. not an object property expression such as inv(p)). If the property is named then this method may be used to obtain the property as a named property without casting.

Returns:
The property as an OWLDataProperty if possible.
Throws:
OWLRuntimeException - if the property is not a named property.