Protégé-OWL 3.4.1

edu.stanford.smi.protegex.owl.model.util
Class ImportUtil

java.lang.Object
  extended by edu.stanford.smi.protegex.owl.model.util.ImportUtil

public class ImportUtil
extends Object


Constructor Summary
ImportUtil()
           
 
Method Summary
static OWLOntology calculateTopLevelOntology(OWLModel owlModel)
          This is a utility method that calculates the top level ontology from an owlModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportUtil

public ImportUtil()
Method Detail

calculateTopLevelOntology

public static OWLOntology calculateTopLevelOntology(OWLModel owlModel)
This is a utility method that calculates the top level ontology from an owlModel. This method is aware of the cycles in the import hierarchy and tries to come up with the best answer.

Parameters:
owlModel - - the OWL model on which the top level ontology will be computed
Returns:
- the top level ontology - if no cycles are detected; - null - if there are more than one top level ontologies - if a top level cycle is found, it returns one of the ontologies in the top level cycle

Protégé-OWL 3.4.1

Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.