public class BlackBoxExplanationGenerator2<E> extends Object implements ExplanationGenerator<E>, ExplanationGeneratorMediator<E>
| Constructor and Description |
|---|
BlackBoxExplanationGenerator2(Set<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms,
EntailmentCheckerFactory<E> checkerFactory,
ExpansionStrategy expansionStrategy,
ContractionStrategy contractionStrategy,
ExplanationProgressMonitor<E> progressMonitor)
Constructs a blackbox explanation generator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom) |
protected Explanation<E> |
computeExplanation(E entailment)
Computes a single justification for an entailment.
|
protected Set<org.semanticweb.owlapi.model.OWLAxiom> |
extractModule(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms,
EntailmentChecker<E> checker) |
Explanation<E> |
generateExplanation(E entailment) |
Set<Explanation<E>> |
getExplanations(E entailment)
Gets explanations for an entailment.
|
Set<Explanation<E>> |
getExplanations(E entailment,
int limit)
Gets explanations for an entailment, with limit on the number of explanations returned.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
getWorkingAxioms() |
void |
removeAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom) |
public BlackBoxExplanationGenerator2(Set<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms, EntailmentCheckerFactory<E> checkerFactory, ExpansionStrategy expansionStrategy, ContractionStrategy contractionStrategy, ExplanationProgressMonitor<E> progressMonitor)
axioms - The ontologies that provide the source axioms for the explanationcheckerFactory - A factory that creates the appropriate entailment checkers for the
type of entailment being explained.expansionStrategy - The strategy used during the expansion phasecontractionStrategy - The strategy to be used during the contraction phaseprogressMonitor - A progress monitor - may be nullpublic Set<Explanation<E>> getExplanations(E entailment) throws ExplanationException
ExplanationGeneratorgetExplanations in interface ExplanationGenerator<E>entailment - The entailment for which explanations will be generated.ExplanationException - if there was a problem generating the explanation.public Set<Explanation<E>> getExplanations(E entailment, int limit) throws ExplanationException
ExplanationGeneratorgetExplanations in interface ExplanationGenerator<E>entailment - The entailment for which explanations will be generated.limit - The maximum number of explanations to generate. This should be a positive integer.ExplanationException - if there was a problem generating the explanation.public Set<org.semanticweb.owlapi.model.OWLAxiom> getWorkingAxioms()
protected Explanation<E> computeExplanation(E entailment)
entailment - The entailmentorg.semanticweb.owlapi.model.OWLExceptionprotected Set<org.semanticweb.owlapi.model.OWLAxiom> extractModule(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms, EntailmentChecker<E> checker)
public Explanation<E> generateExplanation(E entailment)
generateExplanation in interface ExplanationGeneratorMediator<E>public void removeAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
removeAxiom in interface ExplanationGeneratorMediator<E>public void addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
addAxiom in interface ExplanationGeneratorMediator<E>Copyright © 2014. All rights reserved.