Class JustificationComputationService
java.lang.Object
org.liveontologies.protege.explanation.justification.service.JustificationComputationService
- All Implemented Interfaces:
org.protege.editor.core.Disposable,org.protege.editor.core.plugin.ProtegePluginInstance
public abstract class JustificationComputationService
extends Object
implements org.protege.editor.core.plugin.ProtegePluginInstance
A skeleton for a plugin that can provide justification based explanation for
OWL axioms and inconsistent ontologies
- Author:
- Alexander Stupnikov Date: 08-02-2017, Yevgeny Kazakov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancanJustify(org.semanticweb.owlapi.model.OWLAxiom entailment) Check if computation of justifications is supported for a givenOWLAxiombooleanabstract JustificationComputationManagercreateComputationManager(org.semanticweb.owlapi.model.OWLAxiom entailment, JustificationListener listener, JustificationComputation.InterruptMonitor monitor) Creates aJustificationComputationManagercomputation object designed to compute everything regarding the service.createInconsistentOntologyJustificationComputation(JustificationListener listener, JustificationComputation.InterruptMonitor monitor) abstract StringgetName()Should return a name for the pluginorg.protege.editor.owl.OWLEditorKittoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.protege.editor.core.Disposable
disposeMethods inherited from interface org.protege.editor.core.plugin.ProtegePluginInstance
initialise
-
Constructor Details
-
JustificationComputationService
public JustificationComputationService()
-
-
Method Details
-
canJustify
public abstract boolean canJustify(org.semanticweb.owlapi.model.OWLAxiom entailment) Check if computation of justifications is supported for a givenOWLAxiom- Parameters:
entailment- anOWLAxiomfor which justification should be computed- Returns:
trueifcreateComputationManager(org.semanticweb.owlapi.model.OWLAxiom, org.liveontologies.protege.explanation.justification.service.JustificationListener, org.liveontologies.protege.explanation.justification.service.JustificationComputation.InterruptMonitor)can compute the output for the givenOWLAxiom
-
createComputationManager
public abstract JustificationComputationManager createComputationManager(org.semanticweb.owlapi.model.OWLAxiom entailment, JustificationListener listener, JustificationComputation.InterruptMonitor monitor) Creates aJustificationComputationManagercomputation object designed to compute everything regarding the service.- Parameters:
entailment- an axiom to compute justification forlistener- a listener through which to report the computed justificationsmonitor- an object that should be used to see if the computation should be interrupted- Returns:
JustificationComputationManagerwhich maintains computations for the entailment
-
canJustifyInconsistentOntology
public boolean canJustifyInconsistentOntology() -
createInconsistentOntologyJustificationComputation
public JustificationComputationManager createInconsistentOntologyJustificationComputation(JustificationListener listener, JustificationComputation.InterruptMonitor monitor) -
getName
Should return a name for the plugin- Returns:
- the name to be displayed in available plugins list
-
toString
-
getOWLEditorKit
public org.protege.editor.owl.OWLEditorKit getOWLEditorKit()- Returns:
- OWLEditorKit for the service.
-