org.semanticweb.owl.model
Interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>

All Superinterfaces:
java.lang.Comparable<OWLObject>, OWLObject
All Known Subinterfaces:
OWLDataProperty, OWLDataPropertyExpression, OWLObjectProperty, OWLObjectPropertyExpression, OWLObjectPropertyInverse, OWLProperty<P,R>

public interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
extends OWLObject

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group Date: 24-Oct-2006

Represents a property or possibly the inverse of a property.


Method Summary
 void accept(OWLPropertyExpressionVisitor visitor)
           
<O> O
accept(OWLPropertyExpressionVisitorEx<O> visitor)
           
 java.util.Set<P> getDisjointProperties(OWLOntology ontology)
           
 java.util.Set<P> getDisjointProperties(java.util.Set<OWLOntology> ontologies)
           
 java.util.Set<OWLDescription> getDomains(OWLOntology ontology)
          Gets the asserted domains of this property.
 java.util.Set<OWLDescription> getDomains(java.util.Set<OWLOntology> ontologies)
          Gets the asserted domains of this property by examining the axioms in the specified ontologies.
 java.util.Set<P> getEquivalentProperties(OWLOntology ontology)
          Gets the asserted/told equivalent properties by examining the axioms in the specified ontology.
 java.util.Set<P> getEquivalentProperties(java.util.Set<OWLOntology> ontologies)
          Gets the asserted equivalent properties by examining the axioms in the specified ontologies.
 java.util.Set<R> getRanges(OWLOntology ontology)
          Gets the ranges of this property that have been asserted in the specified ontology.
 java.util.Set<R> getRanges(java.util.Set<OWLOntology> ontologies)
          Gets the asserted ranges of this property by examining the axioms in the specified ontologies.
 java.util.Set<P> getSubProperties(OWLOntology ontology)
          Gets the asserted/told sub properties by examining the axioms in the specified ontology.
 java.util.Set<P> getSubProperties(java.util.Set<OWLOntology> ontologies)
          Gets the asserted sub properties by examining the axioms in the specified ontologies.
 java.util.Set<P> getSuperProperties(OWLOntology ontology)
          Gets the asserted/told super properties by examining the axioms in the specified ontology.
 java.util.Set<P> getSuperProperties(java.util.Set<OWLOntology> ontologies)
          Gets the asserted super properties by examining the axioms in the specified set of ontologies.
 boolean isAnonymous()
          Determines if this property expression is anonymous.
 boolean isFunctional(OWLOntology ontology)
          Determines if this property is functional in the specified ontology
 boolean isFunctional(java.util.Set<OWLOntology> ontologies)
          Determines if the property is functional because there is an axiom in one of the specified ontologies that assert this to be the case.
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, accept
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDomains

java.util.Set<OWLDescription> getDomains(OWLOntology ontology)
Gets the asserted domains of this property.

Parameters:
ontology - The ontology that should be examined for axioms which assert a domain of this property
Returns:
A set of OWLDescriptions corresponding to the domains of this property (the domain of the property is essentially the intersection of these descriptions).

getDomains

java.util.Set<OWLDescription> getDomains(java.util.Set<OWLOntology> ontologies)
Gets the asserted domains of this property by examining the axioms in the specified ontologies.

Parameters:
ontologies - The ontologies to be examined.
Returns:
A set of OWLDescriptions that represent the asserted domains of this property.

getRanges

java.util.Set<R> getRanges(OWLOntology ontology)
Gets the ranges of this property that have been asserted in the specified ontology.

Parameters:
ontology - The ontology to be searched for axioms which assert a range for this property.
Returns:
A set of ranges for this property.

getRanges

java.util.Set<R> getRanges(java.util.Set<OWLOntology> ontologies)
Gets the asserted ranges of this property by examining the axioms in the specified ontologies.

Parameters:
ontologies - The ontologies to be examined for range axioms.
Returns:
A set of ranges for this property, which have been asserted by axioms in the specified ontologies.

getSuperProperties

java.util.Set<P> getSuperProperties(OWLOntology ontology)
Gets the asserted/told super properties by examining the axioms in the specified ontology.

Parameters:
ontology - The ontology which will be examined for subproperty axioms.
Returns:
A set of properties which represent the explicitly asserted/told superproperties of this property.

getSuperProperties

java.util.Set<P> getSuperProperties(java.util.Set<OWLOntology> ontologies)
Gets the asserted super properties by examining the axioms in the specified set of ontologies.

Parameters:
ontologies - The ontologies which will bne examined for axioms
Returns:
A set of properties which represent the asserted super properties of this property.

getSubProperties

java.util.Set<P> getSubProperties(OWLOntology ontology)
Gets the asserted/told sub properties by examining the axioms in the specified ontology.

Parameters:
ontology - The ontology which will be examined for subproperty axioms.
Returns:
A set of properties which represent the explicitly asserted/told subproperties of this property.

getSubProperties

java.util.Set<P> getSubProperties(java.util.Set<OWLOntology> ontologies)
Gets the asserted sub properties by examining the axioms in the specified ontologies.

Parameters:
ontologies - The ontologies which will be examined for subproperty axioms.
Returns:
A set of properties which represent the explicitly asserted subproperties of this property.

getEquivalentProperties

java.util.Set<P> getEquivalentProperties(OWLOntology ontology)
Gets the asserted/told equivalent properties by examining the axioms in the specified ontology.

Parameters:
ontology - The ontology which will be examined for equivalent properties axioms.
Returns:
A set of properties which represent the explicitly asserted/told equivalent properties of this property.

getEquivalentProperties

java.util.Set<P> getEquivalentProperties(java.util.Set<OWLOntology> ontologies)
Gets the asserted equivalent properties by examining the axioms in the specified ontologies.

Parameters:
ontologies - The ontologies which will be examined for equivalent properties axioms.
Returns:
A set of properties which represent the explicitly asserted/told equivalent properties of this property.

getDisjointProperties

java.util.Set<P> getDisjointProperties(OWLOntology ontology)

getDisjointProperties

java.util.Set<P> getDisjointProperties(java.util.Set<OWLOntology> ontologies)

isFunctional

boolean isFunctional(OWLOntology ontology)
Determines if this property is functional in the specified ontology

Parameters:
ontology - The ontology to be tested for a functional property axiom.
Returns:
true if the specified ontology contains an axiom stating that the property is functional, other wise false.

isFunctional

boolean isFunctional(java.util.Set<OWLOntology> ontologies)
Determines if the property is functional because there is an axiom in one of the specified ontologies that assert this to be the case.

Parameters:
ontologies - The ontologies which will be searched for axioms which specify that this property is fuctional.
Returns:
true if the property is functional, or false if the property is not functional.

isAnonymous

boolean isAnonymous()
Determines if this property expression is anonymous.

Returns:
true if the property expression is anonymous (because it is the inverse of a property). false if this property is a named object property or named data property.

accept

void accept(OWLPropertyExpressionVisitor visitor)

accept

<O> O accept(OWLPropertyExpressionVisitorEx<O> visitor)