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 boolean
isDangling
(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLClass klass) Checks whether a class is dangling.static boolean
isObsolete
(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:
true
if the class is dangling,false
otherwise.
-
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:
true
if the class is obsolete,false
otherwise.
-