Class Util

java.lang.Object
org.incenp.obofoundry.odk.Util

public final class Util extends Object
Helper methods used throughout the plugin.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.