|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.clarkparsia.explanation.HSTExplanationGenerator
public class HSTExplanationGenerator
Description: An implementation of MultipleExplanationGenerator interface using Reiter's Hitting Set Tree (HST) algorithm as described in Aditya Kalyanpur's thesis. This class relies on a SingleExplanationGenerator that can compute a minimal set of axioms that cause the unsatisfiability. The core of the functionality is based on Matthew Horridge's implementation. Copyright: Copyright (c) 2007 Company: Clark & Parsia, LLC.
Field Summary | |
---|---|
static java.util.logging.Logger |
log
|
Constructor Summary | |
---|---|
HSTExplanationGenerator(SingleExplanationGenerator singleExplanationGenerator)
|
Method Summary | |
---|---|
java.util.Set<OWLAxiom> |
getExplanation(OWLDescription unsatClass)
Returns a single explanation for the given unsatisfiable class. |
java.util.Set<java.util.Set<OWLAxiom>> |
getExplanations(OWLDescription unsatClass)
Returns all the explanations for the given unsatisfiable class. |
java.util.Set<java.util.Set<OWLAxiom>> |
getExplanations(OWLDescription unsatClass,
int maxExplanations)
Return a specified number of explanations for the given unsatisfiable class. |
OWLOntology |
getOntology()
Returns the ontology according to which the explanations are generated. |
OWLOntologyManager |
getOntologyManager()
Get the ontology manager for this explanation generator. |
OWLClassReasoner |
getReasoner()
Returns the reasoner associated with this generator. |
ReasonerFactory |
getReasonerFactory()
Returns the reasoner factory used to generate reasoners. |
SingleExplanationGenerator |
getSingleExplanationGenerator()
|
void |
setOntology(OWLOntology ontology)
Sets the ontology according to which the explanations are generated. |
void |
setProgressMonitor(ExplanationProgressMonitor progressMonitor)
Sets the progress monitor for this multiple explanation generator. |
void |
setReasoner(OWLClassReasoner reasoner)
Sets the reasoner that will be used to generate explanations. |
void |
setReasonerFactory(ReasonerFactory reasonerFactory)
Sets the reasoner factory that will be used to generate fresh reasoners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.logging.Logger log
Constructor Detail |
---|
public HSTExplanationGenerator(SingleExplanationGenerator singleExplanationGenerator)
Method Detail |
---|
public void setProgressMonitor(ExplanationProgressMonitor progressMonitor)
MultipleExplanationGenerator
setProgressMonitor
in interface MultipleExplanationGenerator
progressMonitor
- The progress monitor.public OWLOntologyManager getOntologyManager()
SingleExplanationGenerator
getOntologyManager
in interface SingleExplanationGenerator
public OWLOntology getOntology()
SingleExplanationGenerator
getOntology
in interface SingleExplanationGenerator
public void setOntology(OWLOntology ontology)
SingleExplanationGenerator
setOntology
in interface SingleExplanationGenerator
public OWLClassReasoner getReasoner()
SingleExplanationGenerator
getReasoner
in interface SingleExplanationGenerator
public void setReasoner(OWLClassReasoner reasoner)
SingleExplanationGenerator
SingleExplanationGenerator.setReasonerFactory(ReasonerFactory)
because the reasoning
results already computed by the given reasoner can be reused. It is
guaranteed that the state of this reasoner will not be invalidated by
explanation generation, i.e. if the reasoner was in classified state it
will stay in classified state.
setReasoner
in interface SingleExplanationGenerator
public ReasonerFactory getReasonerFactory()
SingleExplanationGenerator
getReasonerFactory
in interface SingleExplanationGenerator
public void setReasonerFactory(ReasonerFactory reasonerFactory)
SingleExplanationGenerator
setReasonerFactory
in interface SingleExplanationGenerator
public SingleExplanationGenerator getSingleExplanationGenerator()
public java.util.Set<OWLAxiom> getExplanation(OWLDescription unsatClass)
ExplanationGenerator
getExplanation
in interface ExplanationGenerator
getExplanation
in interface SingleExplanationGenerator
unsatClass
- The class that is unsatisfiable for which an explanation
will be generated.
public java.util.Set<java.util.Set<OWLAxiom>> getExplanations(OWLDescription unsatClass)
ExplanationGenerator
getExplanations
in interface ExplanationGenerator
unsatClass
- The class that is unsatisfiable for which an explanation
will be generated.
public java.util.Set<java.util.Set<OWLAxiom>> getExplanations(OWLDescription unsatClass, int maxExplanations)
ExplanationGenerator
getExplanations
in interface ExplanationGenerator
unsatClass
- The class that is unsatisfiable for which an explanation
will be generated.maxExplanations
- Maximum number of explanations requested, or 0 to get all the
explanations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |