Protege 4.1.0

org.protege.editor.owl.model.hierarchy
Class AbstractOWLPropertyHierarchyProvider<R extends org.semanticweb.owlapi.model.OWLPropertyRange,E extends org.semanticweb.owlapi.model.OWLPropertyExpression<R,E>,P extends E>

java.lang.Object
  extended by org.protege.editor.owl.model.hierarchy.AbstractOWLObjectHierarchyProvider<P>
      extended by org.protege.editor.owl.model.hierarchy.AbstractOWLPropertyHierarchyProvider<R,E,P>
All Implemented Interfaces:
Disposable, OWLObjectHierarchyProvider<P>
Direct Known Subclasses:
OWLDataPropertyHierarchyProvider, OWLObjectPropertyHierarchyProvider

public abstract class AbstractOWLPropertyHierarchyProvider<R extends org.semanticweb.owlapi.model.OWLPropertyRange,E extends org.semanticweb.owlapi.model.OWLPropertyExpression<R,E>,P extends E>
extends AbstractOWLObjectHierarchyProvider<P>

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 23-Jan-2007


Constructor Summary
AbstractOWLPropertyHierarchyProvider(org.semanticweb.owlapi.model.OWLOntologyManager owlOntologyManager)
           
 
Method Summary
protected abstract  boolean containsReference(org.semanticweb.owlapi.model.OWLOntology ont, P prop)
           
 boolean containsReference(P object)
           
 void dispose()
           
 Set<P> getChildren(P object)
           
 Set<P> getEquivalents(P object)
           
 Set<P> getParents(P object)
           
protected abstract  Set<P> getPropertiesReferencedInChange(List<? extends org.semanticweb.owlapi.model.OWLOntologyChange> changes)
           
protected abstract  Set<? extends P> getReferencedProperties(org.semanticweb.owlapi.model.OWLOntology ont)
          Gets the relevant properties in the specified ontology that are contained within the property hierarchy.
protected abstract  P getRoot()
           
 Set<P> getRoots()
          Gets the objects that represent the roots of the hierarchy.
protected abstract  Set<? extends org.semanticweb.owlapi.model.OWLSubPropertyAxiom> getSubPropertyAxiomForRHS(P prop, org.semanticweb.owlapi.model.OWLOntology ont)
           
 void setOntologies(Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
          Sets the ontologies that this hierarchy provider should use in order to determine the hierarchy.
 
Methods inherited from class org.protege.editor.owl.model.hierarchy.AbstractOWLObjectHierarchyProvider
addListener, fireHierarchyChanged, fireNodeChanged, getAncestors, getDescendants, getManager, getPathsToRoot, removeListener, setFireEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOWLPropertyHierarchyProvider

public AbstractOWLPropertyHierarchyProvider(org.semanticweb.owlapi.model.OWLOntologyManager owlOntologyManager)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface Disposable
Specified by:
dispose in interface OWLObjectHierarchyProvider<P extends E>
Overrides:
dispose in class AbstractOWLObjectHierarchyProvider<P extends E>

getPropertiesReferencedInChange

protected abstract Set<P> getPropertiesReferencedInChange(List<? extends org.semanticweb.owlapi.model.OWLOntologyChange> changes)

containsReference

protected abstract boolean containsReference(org.semanticweb.owlapi.model.OWLOntology ont,
                                             P prop)

getReferencedProperties

protected abstract Set<? extends P> getReferencedProperties(org.semanticweb.owlapi.model.OWLOntology ont)
Gets the relevant properties in the specified ontology that are contained within the property hierarchy. For example, for an object property hierarchy this would constitute the set of referenced object properties in the specified ontology.

Parameters:
ont - The ontology

getSubPropertyAxiomForRHS

protected abstract Set<? extends org.semanticweb.owlapi.model.OWLSubPropertyAxiom> getSubPropertyAxiomForRHS(P prop,
                                                                                                             org.semanticweb.owlapi.model.OWLOntology ont)

getRoot

protected abstract P getRoot()

getRoots

public Set<P> getRoots()
Gets the objects that represent the roots of the hierarchy.


setOntologies

public final void setOntologies(Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Sets the ontologies that this hierarchy provider should use in order to determine the hierarchy.


containsReference

public boolean containsReference(P object)

getChildren

public Set<P> getChildren(P object)

getEquivalents

public Set<P> getEquivalents(P object)

getParents

public Set<P> getParents(P object)

Protege 4.1.0

Submit a bug report or feature request

For further API reference and developer documentation, see Protege 4 Developer Documentation.

Copyright © 2010 Stanford Center for Biomedical Informatics Research