@Override public Set<OWLAxiom> getJustification(Inference<?> inference) { if (Inferences.isAsserted(inference)) { Object conclusion = inference.getConclusion(); if (conclusion instanceof OWLAxiom) { return Collections .singleton((OWLAxiom) inference.getConclusion()); } } // else return Collections.emptySet(); }
public OwlInternalProof(final Reasoner reasoner, final OWLAxiom goal) { this.goal_ = goal; final ElkAxiom convertedGoal = owlConverter_.convert(goal); this.goalInference_ = Inferences.create("Converting inference", goal, Arrays.asList(convertedGoal)); try { this.proof_ = new InternalProofExtension(reasoner, owlConverter_.convert(goal)); } catch (final ElkException e) { throw elkConverter_.convert(e); } catch (final ElkRuntimeException e) { throw elkConverter_.convert(e); } }
@Override public Void visit(final ProperEntailmentQueryResult properResult) throws ElkException { try { final Entailment entailment = properResult.getEntailment(); proof_.produce(Inferences.create("Goal inference", goal_, Arrays.asList(entailment))); processEntailment(entailment, properResult.getEvidence(false)); return null; } finally { properResult.unlock(); } }
@Override public Void visit(final ProperEntailmentQueryResult properResult) throws ElkException { try { final Entailment entailment = properResult.getEntailment(); proof_.produce(Inferences.create("Goal inference", goal_, Arrays.asList(entailment))); processEntailment(entailment, properResult.getEvidence(false)); return null; } finally { properResult.unlock(); } }
@Override public Void visit(final ProperEntailmentQueryResult properResult) throws ElkException { try { final Entailment entailment = properResult.getEntailment(); proof_.produce(Inferences.create("Goal inference", goal_, Arrays.asList(entailment))); processEntailment(entailment, properResult.getEvidence(false)); return null; } finally { properResult.unlock(); } }
public OwlInternalProof(final Reasoner reasoner, final OWLAxiom goal) { this.goal_ = goal; final ElkAxiom convertedGoal = owlConverter_.convert(goal); this.goalInference_ = Inferences.create("Converting inference", goal, Arrays.asList(convertedGoal)); try { this.proof_ = new InternalProofExtension(reasoner, owlConverter_.convert(goal)); } catch (final ElkException e) { throw elkConverter_.convert(e); } catch (final ElkRuntimeException e) { throw elkConverter_.convert(e); } }
public OwlInternalProof(final Reasoner reasoner, final OWLAxiom goal) { this.goal_ = goal; final ElkAxiom convertedGoal = owlConverter_.convert(goal); this.goalInference_ = Inferences.create("Converting inference", goal, Arrays.asList(convertedGoal)); try { this.proof_ = new InternalProofExtension(reasoner, owlConverter_.convert(goal)); } catch (final ElkException e) { throw elkConverter_.convert(e); } catch (final ElkRuntimeException e) { throw elkConverter_.convert(e); } }
proof_.produce(Inferences.create(inf.getName(), inf.getConclusion(), newPremises));
proof_.produce(Inferences.create(inf.getName(), inf.getConclusion(), newPremises));
proof_.produce(Inferences.create(inf.getName(), inf.getConclusion(), newPremises));