Class OWLAPILoader

    • Constructor Detail

      • OWLAPILoader

        public OWLAPILoader()
    • Method Detail

      • getManager

        public org.semanticweb.owlapi.model.OWLOntologyManager getManager()
        Specified by:
        getManager in interface FacetManagerOWL
        Returns:
        the manager that manage the current ontology.
      • getFactory

        public org.semanticweb.owlapi.model.OWLDataFactory getFactory()
        Specified by:
        getFactory in interface FacetFactoryOWL
        Returns:
        a factory that can build object for this ontlogy.
      • isVolatile

        public boolean isVolatile()
        The ontology is load from a file but is not persist into a file after change, so it is a volatile ontology.
        Specified by:
        isVolatile in interface OWLHelper
        Returns:
        true if this ontology isn't persistent.
      • getGroup

        public OWLGroup getGroup()
        Specified by:
        getGroup in interface FacetManagerOWL
        Returns:
        the group of manager that own the getManager() returned manager.
      • getReasoner

        public OpenlletReasoner getReasoner()
        Returns the reasoner created by this loader. A null value is returned until load() function is called (explicitly or implicitly).
        Specified by:
        getReasoner in interface FacetReasonerOWL
        Returns:
        the reasoner created by this loader
      • getOntology

        public org.semanticweb.owlapi.model.OWLOntology getOntology()
        Specified by:
        getOntology in interface FacetOntologyOWL
        Returns:
        the ontology map to this helper
      • getKB

        public openllet.core.KnowledgeBase getKB()
        Specified by:
        getKB in class openllet.core.KBLoader
      • getAllOntologies

        @Deprecated
        public java.util.Set<org.semanticweb.owlapi.model.OWLOntology> getAllOntologies()
        Deprecated.
      • allOntologies

        public java.util.stream.Stream<org.semanticweb.owlapi.model.OWLOntology> allOntologies()
      • load

        public void load()
        Specified by:
        load in class openllet.core.KBLoader
      • parse

        public void parse​(java.lang.String... fileNames)
        Overrides:
        parse in class openllet.core.KBLoader
      • setIgnoreImports

        public void setIgnoreImports​(boolean ignoreImports)
        Specified by:
        setIgnoreImports in class openllet.core.KBLoader
      • clear

        public void clear()
        Specified by:
        clear in class openllet.core.KBLoader
      • dispose

        public void dispose()
        Description copied from interface: OWLHelper
        Dispose the reasoner attached to this helper. If the reasoner wasn't attached, it doesn't buildit.
        Specified by:
        dispose in interface OWLHelper