Class OWLGenericTools

    • Constructor Detail

      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.OWLOntologyID ontologyID)
                        throws org.semanticweb.owlapi.model.OWLOntologyCreationException
        Load the ontology ontologyId into the good manager or create it if it doesn't previously exist.
        Parameters:
        group - of managers.
        ontologyID - is the reference to the ontology
        Throws:
        org.semanticweb.owlapi.model.OWLOntologyCreationException - is raise when things goes baddly wrong.
        Since:
        2.5.1
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.OWLOntologyID ontologyID,
                               boolean isVolatile)
                        throws org.semanticweb.owlapi.model.OWLOntologyCreationException
        Throws:
        org.semanticweb.owlapi.model.OWLOntologyCreationException
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.IRI ontologyIRI,
                               double version)
                        throws org.semanticweb.owlapi.model.OWLOntologyCreationException
        Throws:
        org.semanticweb.owlapi.model.OWLOntologyCreationException
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.IRI ontologyIRI,
                               double version,
                               boolean isVolatile)
                        throws org.semanticweb.owlapi.model.OWLOntologyCreationException
        Throws:
        org.semanticweb.owlapi.model.OWLOntologyCreationException
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.IRI ontologyIRI,
                               boolean isVolatile)
                        throws org.semanticweb.owlapi.model.OWLOntologyCreationException
        Throws:
        org.semanticweb.owlapi.model.OWLOntologyCreationException
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               java.io.InputStream is)
                        throws org.semanticweb.owlapi.model.OWLOntologyCreationException
        Throws:
        org.semanticweb.owlapi.model.OWLOntologyCreationException
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.OWLOntology ontology,
                               boolean isVolatile)
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.OWLOntologyManager manager,
                               org.semanticweb.owlapi.model.OWLOntology ontology)
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.OWLOntologyManager manager,
                               java.io.File file)
                        throws org.semanticweb.owlapi.model.OWLOntologyCreationException
        Throws:
        org.semanticweb.owlapi.model.OWLOntologyCreationException
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               org.semanticweb.owlapi.model.OWLOntology ontology,
                               org.semanticweb.owlapi.model.OWLOntologyManager manager,
                               java.util.Map<java.lang.String,​java.lang.String> namespaces)
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               java.io.File file)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • OWLGenericTools

        public OWLGenericTools​(OWLGroup group,
                               java.lang.String ontology,
                               boolean isVolatile)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getLogger

        public java.util.logging.Logger getLogger()
        Specified by:
        getLogger in interface openllet.shared.tools.Logging
      • getOntology

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

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

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

        public boolean isVolatile()
        Specified by:
        isVolatile in interface OWLHelper
        Returns:
        true if this ontology isn't persistent.
      • getFactory

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

        public org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner()
        Specified by:
        getReasoner in interface FacetReasonerOWL
        Returns:
        a PelletReasoner that reason over a previously registered ontology.
      • setReasonerFactory

        public OWLGenericTools setReasonerFactory​(java.util.function.Function<org.semanticweb.owlapi.model.OWLOntology,​org.semanticweb.owlapi.reasoner.OWLReasoner> reasonerFactory)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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