Package org.incenp.obofoundry.odk
Class Util
java.lang.Object
org.incenp.obofoundry.odk.Util
Helper methods used throughout the plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDangling(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLClass klass) Checks whether a class is dangling.static booleanisObsolete(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLClass klass) Checks whether a class is marked as obsolete.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
isDangling
public static boolean isDangling(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLClass klass) Checks whether a class is dangling.In the context of this plugin, a class is considered to be “dangling” if it has no defining axioms (not counting disjointness axioms) and no annotations.
- Parameters:
ontology- The ontology the class belongs to.klass- The class to check.- Returns:
trueif the class is dangling,falseotherwise.
-
isObsolete
public static boolean isObsolete(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLClass klass) Checks whether a class is marked as obsolete.- Parameters:
ontology- The ontology the class belongs to.klass- The class to check.- Returns:
trueif the class is obsolete,falseotherwise.
-