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

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

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

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)
           
protected abstract  java.util.Set<? extends OWLNaryPropertyAxiom<P>> getDisjointPropertiesAxioms(OWLOntology ontology)
           
protected abstract  java.util.Set<? extends OWLPropertyDomainAxiom> getDomainAxioms(OWLOntology ontology)
           
 java.util.Set<OWLClassExpression> getDomains(OWLOntology ontology)
          Gets the asserted domains of this property.
 java.util.Set<OWLClassExpression> 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.
protected abstract  java.util.Set<? extends OWLNaryPropertyAxiom<P>> getEquivalentPropertiesAxioms(OWLOntology ontology)
           
protected abstract  java.util.Set<? extends OWLPropertyRangeAxiom<P,R>> getRangeAxioms(OWLOntology ontology)
           
 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.
protected abstract  java.util.Set<? extends OWLSubPropertyAxiom<P>> getSubPropertyAxioms(OWLOntology ontology)
           
protected abstract  java.util.Set<? extends OWLSubPropertyAxiom<P>> getSubPropertyAxiomsForRHS(OWLOntology ont)
           
 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.owlapi.OWLObjectImpl
compareObjectOfSameType, compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, isBottomEntity, isTopEntity, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLPropertyExpression
accept, accept, isAnonymous, isDataPropertyExpression, isFunctional, isFunctional, isObjectPropertyExpression, isOWLBottomDataProperty, isOWLBottomObjectProperty, isOWLTopDataProperty, isOWLTopObjectProperty
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
accept, accept, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
 
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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
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<OWLClassExpression> getDomains(OWLOntology ontology)
Description copied from interface: OWLPropertyExpression
Gets the asserted domains of this property.

Specified by:
getDomains in interface OWLPropertyExpression<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
Parameters:
ontology - The ontology that should be examined for axioms which assert a domain of this property
Returns:
A set of OWLClassExpressions corresponding to the domains of this property (the domain of the property is essentially the intersection of these class expressions).

getDomains

public java.util.Set<OWLClassExpression> 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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
Parameters:
ontologies - The ontologies to be examined.
Returns:
A set of OWLClassExpressions 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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
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.

getSubPropertyAxiomsForRHS

protected abstract java.util.Set<? extends OWLSubPropertyAxiom<P>> getSubPropertyAxiomsForRHS(OWLOntology ont)

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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>
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<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>>

getDisjointProperties

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

getDomainAxioms

protected abstract java.util.Set<? extends OWLPropertyDomainAxiom> getDomainAxioms(OWLOntology ontology)

getRangeAxioms

protected abstract java.util.Set<? extends OWLPropertyRangeAxiom<P,R>> getRangeAxioms(OWLOntology ontology)

getSubPropertyAxioms

protected abstract java.util.Set<? extends OWLSubPropertyAxiom<P>> getSubPropertyAxioms(OWLOntology ontology)

getEquivalentPropertiesAxioms

protected abstract java.util.Set<? extends OWLNaryPropertyAxiom<P>> getEquivalentPropertiesAxioms(OWLOntology ontology)

getDisjointPropertiesAxioms

protected abstract java.util.Set<? extends OWLNaryPropertyAxiom<P>> getDisjointPropertiesAxioms(OWLOntology ontology)

equals

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