owltools.gaf
Class TaxonTools

java.lang.Object
  extended by owltools.gaf.TaxonTools

public class TaxonTools
extends Object

Methods to simplify the work with the evidence code ontology (ECO).


Field Summary
static String TAXON_PURL
           
 
Constructor Summary
TaxonTools(OWLGraphWrapper graph, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner, boolean disposeReasoner)
          Create an instance for the given graph and reasoner.
 
Method Summary
 void dispose()
          Clean up the internal data structures, usually done as last operation.
 Set<org.semanticweb.owlapi.model.OWLClass> getAncestors(org.semanticweb.owlapi.model.OWLClass taxonClass, boolean reflexive)
          Wrapper method for the reasoner.
 Set<org.semanticweb.owlapi.model.OWLClass> getDescendents(Set<org.semanticweb.owlapi.model.OWLClass> sources, boolean reflexive)
          Wrapper method for the reasoner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAXON_PURL

public static final String TAXON_PURL
See Also:
Constant Field Values
Constructor Detail

TaxonTools

public TaxonTools(OWLGraphWrapper graph,
                  org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
                  boolean disposeReasoner)
           throws org.semanticweb.owlapi.model.UnknownOWLOntologyException,
                  org.semanticweb.owlapi.model.OWLOntologyCreationException
Create an instance for the given graph and reasoner.

Parameters:
graph -
reasoner -
disposeReasoner - set to true, if the reasoner should also be disposed
Throws:
org.semanticweb.owlapi.model.UnknownOWLOntologyException
org.semanticweb.owlapi.model.OWLOntologyCreationException
See Also:
dispose()
Method Detail

getAncestors

public Set<org.semanticweb.owlapi.model.OWLClass> getAncestors(org.semanticweb.owlapi.model.OWLClass taxonClass,
                                                               boolean reflexive)
Wrapper method for the reasoner.

Parameters:
taxonClass -
reflexive -
Returns:
set of super classes

getDescendents

public Set<org.semanticweb.owlapi.model.OWLClass> getDescendents(Set<org.semanticweb.owlapi.model.OWLClass> sources,
                                                                 boolean reflexive)
Wrapper method for the reasoner

Parameters:
sources -
reflexive -
Returns:
set of sub classes

dispose

public void dispose()
Clean up the internal data structures, usually done as last operation.



Copyright © 2010-2013. All Rights Reserved.