public class ReasonerHelper extends Object
Constructor and Description |
---|
ReasonerHelper() |
Modifier and Type | Method and Description |
---|---|
static org.semanticweb.owlapi.model.OWLOntology |
createIncoherentModule(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
org.semanticweb.owlapi.model.IRI outputIRI) |
static org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom> |
getInferredAxiomGenerator(String axGenerator)
Given an axiom generator as a string, return the InferredAxiomGenerator object.
|
static org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom> |
getInferredAxiomGenerator(String axGenerator,
boolean direct)
Given an axiom generator as a string, return the InferredAxiomGenerator object.
|
static List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> |
getInferredAxiomGenerators(List<String> axGenerators)
Given a list of axiom generator strings, return a list of InferredAxiomGenerator objects.
|
static List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> |
getInferredAxiomGenerators(List<String> axGenerators,
boolean direct)
Given a list of axiom generator strings, return a list of InferredAxiomGenerator objects.
|
static void |
validate(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
Validates ontology.
|
static void |
validate(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
String unsatisfiableModulePath)
Validates ontology.
|
static void |
validate(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
String unsatisfiableModulePath,
IOHelper ioHelper)
Validates ontology, writes unsatisfiable module.
|
public static void validate(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner) throws IncoherentTBoxException, InconsistentOntologyException, IncoherentRBoxException
reasoner
- OWLReasoner being used.IncoherentTBoxException
- on unsatisfiable classesInconsistentOntologyException
- on logical inconsistenciesIncoherentRBoxException
- on unsatisfiable propertiespublic static void validate(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner, String unsatisfiableModulePath) throws InconsistentOntologyException, IncoherentRBoxException, IncoherentTBoxException
reasoner
- OWLReasoner being used.unsatisfiableModulePath
- path to unsatisfiable module as stringIncoherentTBoxException
- on unsatisfiable classesInconsistentOntologyException
- on logical inconsistenciesIncoherentRBoxException
- on unsatisfiable propertiespublic static void validate(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner, String unsatisfiableModulePath, IOHelper ioHelper) throws IncoherentTBoxException, InconsistentOntologyException, IncoherentRBoxException
reasoner
- OWLReasoner being usedunsatisfiableModulePath
- path to unsatisfiable module as stringioHelper
- IOHelper to useIncoherentTBoxException
- on unsatisfiable classesInconsistentOntologyException
- on logical inconsistenciesIncoherentRBoxException
- on unsatisfiable propertiespublic static org.semanticweb.owlapi.model.OWLOntology createIncoherentModule(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner, org.semanticweb.owlapi.model.IRI outputIRI) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
reasoner
- OWLReasoner being usedoutputIRI
- IRI of outputorg.semanticweb.owlapi.model.OWLOntologyCreationException
- on issue creating incoherent modulepublic static List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> getInferredAxiomGenerators(List<String> axGenerators, boolean direct)
axGenerators
- list of strings to get InferredAxiomGeneratorsdirect
- return axiom generators which include only direct
superclass/superproperties/typespublic static List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> getInferredAxiomGenerators(List<String> axGenerators)
axGenerators
- list of strings to get InferredAxiomGeneratorspublic static org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom> getInferredAxiomGenerator(String axGenerator)
axGenerator
- name of InferredAxiomGeneratorpublic static org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom> getInferredAxiomGenerator(String axGenerator, boolean direct)
axGenerator
- name of InferredAxiomGeneratordirect
- return axiom generators which include only direct
superclass/superproperties/typesCopyright © 2015–2020. All rights reserved.