uk.ac.manchester.cs.owl
Class OWLPropertyExpressionImpl<P extends OWLPropertyExpression,R extends OWLPropertyRange>

java.lang.Object
  extended by uk.ac.manchester.cs.owl.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.OWLPropertyExpressionImpl<P,R>
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLObject, OWLPropertyExpression<P,R>
Direct Known Subclasses:
OWLDataPropertyImpl, OWLObjectPropertyExpressionImpl

public abstract class OWLPropertyExpressionImpl<P extends OWLPropertyExpression,R extends OWLPropertyRange>
extends OWLObjectImpl
implements OWLPropertyExpression<P,R>

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


Constructor Summary
OWLPropertyExpressionImpl(OWLDataFactory dataFactory)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 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.
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLObjectImpl
compareTo, getOWLDataFactory, getSignature, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owl.model.OWLPropertyExpression
accept, accept, isAnonymous, isFunctional, isFunctional
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, accept, getSignature
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

OWLPropertyExpressionImpl

public OWLPropertyExpressionImpl(OWLDataFactory dataFactory)
Method Detail

getRanges

public java.util.Set<R> getRanges(OWLOntology ontology)
Description copied from interface: OWLPropertyExpression
Gets the ranges of this property that have been asserted in the specified ontology.

Specified by:
getRanges in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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

public java.util.Set<R> getRanges(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLPropertyExpression
Gets the asserted ranges of this property by examining the axioms in the specified ontologies.

Specified by:
getRanges in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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.

getDomains

public java.util.Set<OWLDescription> getDomains(OWLOntology ontology)
Description copied from interface: OWLPropertyExpression
Gets the asserted domains of this property.

Specified by:
getDomains in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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

public java.util.Set<OWLDescription> getDomains(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLPropertyExpression
Gets the asserted domains of this property by examining the axioms in the specified ontologies.

Specified by:
getDomains in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
Parameters:
ontologies - The ontologies to be examined.
Returns:
A set of OWLDescriptions that represent the asserted domains of this property.

getSuperProperties

public java.util.Set<P> getSuperProperties(OWLOntology ontology)
Description copied from interface: OWLPropertyExpression
Gets the asserted/told super properties by examining the axioms in the specified ontology.

Specified by:
getSuperProperties in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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

public java.util.Set<P> getSuperProperties(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLPropertyExpression
Gets the asserted super properties by examining the axioms in the specified set of ontologies.

Specified by:
getSuperProperties in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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

public java.util.Set<P> getSubProperties(OWLOntology ontology)
Description copied from interface: OWLPropertyExpression
Gets the asserted/told sub properties by examining the axioms in the specified ontology.

Specified by:
getSubProperties in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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

public java.util.Set<P> getSubProperties(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLPropertyExpression
Gets the asserted sub properties by examining the axioms in the specified ontologies.

Specified by:
getSubProperties in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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

public java.util.Set<P> getEquivalentProperties(OWLOntology ontology)
Description copied from interface: OWLPropertyExpression
Gets the asserted/told equivalent properties by examining the axioms in the specified ontology.

Specified by:
getEquivalentProperties in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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

public java.util.Set<P> getEquivalentProperties(java.util.Set<OWLOntology> ontologies)
Description copied from interface: OWLPropertyExpression
Gets the asserted equivalent properties by examining the axioms in the specified ontologies.

Specified by:
getEquivalentProperties in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>
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

public java.util.Set<P> getDisjointProperties(OWLOntology ontology)
Specified by:
getDisjointProperties in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>

getDisjointProperties

public java.util.Set<P> getDisjointProperties(java.util.Set<OWLOntology> ontologies)
Specified by:
getDisjointProperties in interface OWLPropertyExpression<P extends OWLPropertyExpression,R extends OWLPropertyRange>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLObjectImpl