public abstract class AbstractOWLApiReasoningService extends Object implements OWLApiReasoningService
| Constructor and Description |
|---|
AbstractOWLApiReasoningService() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<org.semanticweb.owlapi.model.OWLAxiom> |
classify(org.semanticweb.owlapi.model.OWLOntology ontology)
Classify, returns only axioms about classes and instances
This is the default implementation of task
ReasoningService.Tasks.CLASSIFY. |
protected Set<org.semanticweb.owlapi.model.OWLAxiom> |
classify(org.semanticweb.owlapi.model.OWLOntology ontology,
List<org.semanticweb.owlapi.model.SWRLRule> rules)
Classify, merge SWRL rules in the input ontology, before
This is the default implementation of task
ReasoningService.Tasks.CLASSIFY when rules are given. |
protected org.semanticweb.owlapi.model.OWLOntologyManager |
createOWLOntologyManager()
An OWLOntologyManager to be used to place a target ontology.
|
protected Set<org.semanticweb.owlapi.model.OWLAxiom> |
enrich(org.semanticweb.owlapi.model.OWLOntology ontology)
Enrich, return all inferences.
|
protected Set<org.semanticweb.owlapi.model.OWLAxiom> |
enrich(org.semanticweb.owlapi.model.OWLOntology ontology,
boolean filtered)
Enrich, return all inferences.
|
protected Set<org.semanticweb.owlapi.model.OWLAxiom> |
enrich(org.semanticweb.owlapi.model.OWLOntology ontology,
List<org.semanticweb.owlapi.model.SWRLRule> rules)
Enrich, merge SWRL rules and return all inferences.
|
protected Set<org.semanticweb.owlapi.model.OWLAxiom> |
enrich(org.semanticweb.owlapi.model.OWLOntology ontology,
List<org.semanticweb.owlapi.model.SWRLRule> rules,
boolean filtered)
Enrich, merge SWRL rules and return all inferences.
|
protected List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> |
getClassifyAxiomGenerators()
InferredAxiomGenerators to use for the classify() reasoning method. |
protected List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> |
getEnrichAxiomGenerators()
InferredAxiomGenerators to use for the enrich() reasoning method. |
Class<org.semanticweb.owlapi.model.OWLOntology> |
getModelType()
OWLApi based reasoning services have type
OWLOntology as input type |
protected abstract org.semanticweb.owlapi.reasoner.OWLReasoner |
getReasoner(org.semanticweb.owlapi.model.OWLOntology ontology)
Method to be implemented by subclasses.
|
Class<org.semanticweb.owlapi.model.SWRLRule> |
getRuleType()
OWLApi based reasoning services have type
SWRLRule as rule type |
Class<org.semanticweb.owlapi.model.OWLAxiom> |
getStatementType()
OWLApi based reasoning services have type
OWLAxiom as statement type |
List<String> |
getSupportedTasks()
The abstract implementation of an OWLApi based reasoning service supports all default
ReasoningService.Tasks. |
boolean |
isConsistent(org.semanticweb.owlapi.model.OWLOntology ontology)
Only check consistency.
|
boolean |
isConsistent(org.semanticweb.owlapi.model.OWLOntology ontology,
List<org.semanticweb.owlapi.model.SWRLRule> rules)
Only check consistency.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
run(org.semanticweb.owlapi.model.OWLOntology input,
List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> generators)
Generic method for running the reasoner
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
run(org.semanticweb.owlapi.model.OWLOntology ontology,
List<org.semanticweb.owlapi.model.SWRLRule> rules,
List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> generators)
Merges the SWRL rules in the input ontology, then calls run(OWLOntology,List |
Set<org.semanticweb.owlapi.model.OWLAxiom> |
runTask(String taskID,
org.semanticweb.owlapi.model.OWLOntology data)
This method provides the default implementation for executing one of the default tasks with no
additional arguments.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
runTask(String taskID,
org.semanticweb.owlapi.model.OWLOntology data,
List<org.semanticweb.owlapi.model.SWRLRule> rules,
boolean filtered,
Map<String,List<String>> parameters)
This method provides the default implementation for executing one of the default tasks.
|
boolean |
supportsTask(String taskID) |
protected org.semanticweb.owlapi.model.OWLOntologyManager createOWLOntologyManager()
OWLApiReasoningServices may want to change this.protected abstract org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - public Set<org.semanticweb.owlapi.model.OWLAxiom> run(org.semanticweb.owlapi.model.OWLOntology input, List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> generators) throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
run in interface OWLApiReasoningServiceinput - generators - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionpublic Set<org.semanticweb.owlapi.model.OWLAxiom> run(org.semanticweb.owlapi.model.OWLOntology ontology, List<org.semanticweb.owlapi.model.SWRLRule> rules, List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> generators) throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
run in interface OWLApiReasoningServiceontology - rules - generators - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionpublic Set<org.semanticweb.owlapi.model.OWLAxiom> runTask(String taskID, org.semanticweb.owlapi.model.OWLOntology data) throws org.apache.stanbol.reasoners.servicesapi.UnsupportedTaskException, org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
runTask in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>org.apache.stanbol.reasoners.servicesapi.UnsupportedTaskExceptionorg.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionpublic Set<org.semanticweb.owlapi.model.OWLAxiom> runTask(String taskID, org.semanticweb.owlapi.model.OWLOntology data, List<org.semanticweb.owlapi.model.SWRLRule> rules, boolean filtered, Map<String,List<String>> parameters) throws org.apache.stanbol.reasoners.servicesapi.UnsupportedTaskException, org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
runTask in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>org.apache.stanbol.reasoners.servicesapi.UnsupportedTaskExceptionorg.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionprotected List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> getClassifyAxiomGenerators()
InferredAxiomGenerators to use for the classify() reasoning method.
Subclasses may want to change this.protected List<org.semanticweb.owlapi.util.InferredAxiomGenerator<? extends org.semanticweb.owlapi.model.OWLAxiom>> getEnrichAxiomGenerators()
InferredAxiomGenerators to use for the enrich() reasoning method.
Subclasses may want to change this.protected Set<org.semanticweb.owlapi.model.OWLAxiom> classify(org.semanticweb.owlapi.model.OWLOntology ontology) throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
ReasoningService.Tasks.CLASSIFY. Subclasses may want
to change it.ontology - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionprotected Set<org.semanticweb.owlapi.model.OWLAxiom> classify(org.semanticweb.owlapi.model.OWLOntology ontology, List<org.semanticweb.owlapi.model.SWRLRule> rules) throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
ReasoningService.Tasks.CLASSIFY when rules are given.
Subclasses may want to change it.ontology - rules - org.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionorg.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionprotected Set<org.semanticweb.owlapi.model.OWLAxiom> enrich(org.semanticweb.owlapi.model.OWLOntology ontology) throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
ReasoningService.Tasks.ENRICH. Subclasses may want to
change it.ontology - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionprotected Set<org.semanticweb.owlapi.model.OWLAxiom> enrich(org.semanticweb.owlapi.model.OWLOntology ontology, boolean filtered) throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
ReasoningService.Tasks.ENRICH. Subclasses may want to
change it.ontology - filtered - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionprotected Set<org.semanticweb.owlapi.model.OWLAxiom> enrich(org.semanticweb.owlapi.model.OWLOntology ontology, List<org.semanticweb.owlapi.model.SWRLRule> rules) throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
ReasoningService.Tasks.ENRICH. Subclasses may want to
change it.ontology - rules - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionprotected Set<org.semanticweb.owlapi.model.OWLAxiom> enrich(org.semanticweb.owlapi.model.OWLOntology ontology, List<org.semanticweb.owlapi.model.SWRLRule> rules, boolean filtered) throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException, org.apache.stanbol.reasoners.servicesapi.InconsistentInputException
ReasoningService.Tasks.ENRICH. Subclasses may want to
change it.ontology - rules - filtered - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionorg.apache.stanbol.reasoners.servicesapi.InconsistentInputExceptionpublic boolean isConsistent(org.semanticweb.owlapi.model.OWLOntology ontology)
throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException
isConsistent in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>ontology - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionpublic boolean isConsistent(org.semanticweb.owlapi.model.OWLOntology ontology,
List<org.semanticweb.owlapi.model.SWRLRule> rules)
throws org.apache.stanbol.reasoners.servicesapi.ReasoningServiceException
isConsistent in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>ontology - rules - org.apache.stanbol.reasoners.servicesapi.ReasoningServiceExceptionpublic List<String> getSupportedTasks()
ReasoningService.Tasks. Subclasses may want to extend this.getSupportedTasks in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>public boolean supportsTask(String taskID)
supportsTask in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>public Class<org.semanticweb.owlapi.model.OWLOntology> getModelType()
OWLOntology as input typegetModelType in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>public Class<org.semanticweb.owlapi.model.SWRLRule> getRuleType()
SWRLRule as rule typegetRuleType in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>public Class<org.semanticweb.owlapi.model.OWLAxiom> getStatementType()
OWLAxiom as statement typegetStatementType in interface org.apache.stanbol.reasoners.servicesapi.ReasoningService<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.model.SWRLRule,org.semanticweb.owlapi.model.OWLAxiom>Copyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.