Class MetricsUtils


  • public class MetricsUtils
    extends Object
    • Constructor Detail

      • MetricsUtils

        public MetricsUtils()
    • Method Detail

      • getABoxAxioms

        public static Set<org.semanticweb.owlapi.model.OWLAxiom> getABoxAxioms​(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
        Parameters:
        axioms - set of axioms
        Returns:
        filtered set of axioms (only ABox axioms)
      • getLogicalAxioms

        public static Set<org.semanticweb.owlapi.model.OWLAxiom> getLogicalAxioms​(org.semanticweb.owlapi.model.OWLOntology ontology,
                                                                                  org.semanticweb.owlapi.model.parameters.Imports includeImportsClosure,
                                                                                  boolean skiprules,
                                                                                  Set<org.semanticweb.owlapi.model.AxiomType<?>> types)
        Parameters:
        ontology - ontology to be checked
        includeImportsClosure - take into account imports
        skiprules - ignore rules (SWRL)
        types - AxiomTypes to consider
        Returns:
        all logical axioms in the ontology
      • getTBoxAxiomTypes

        public static Set<org.semanticweb.owlapi.model.AxiomType<?>> getTBoxAxiomTypes​(boolean including_rbox)
        Parameters:
        including_rbox - whether or not RBox
        Returns:
        all TBox axiom types
      • getTBoxAxioms

        public static Set<org.semanticweb.owlapi.model.OWLAxiom> getTBoxAxioms​(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
        Parameters:
        axioms - set of axioms
        Returns:
        filtered set of axioms (only tbox axioms)