edu.stanford.smi.protegex.owl.model.util
Class ImportUtil
java.lang.Object
edu.stanford.smi.protegex.owl.model.util.ImportUtil
public class ImportUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportUtil
public ImportUtil()
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
Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.