-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set software architecture for probabilistic reasoners
- Loading branch information
Showing
7 changed files
with
141 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...rc/main/java/org/dllearner/core/probabilistic/unife/OWLProbExplanationReasonerResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.dllearner.core.probabilistic.unife; | ||
|
||
import java.util.Set; | ||
import org.semanticweb.owlapi.model.OWLAxiom; | ||
|
||
/** | ||
* | ||
* @author Giuseppe Cota <giuseppe.cota@unife.it> | ||
*/ | ||
public class OWLProbExplanationReasonerResult extends OWLProbReasonerResult { | ||
|
||
private Set<Set<OWLAxiom>> explanations; | ||
|
||
public OWLProbExplanationReasonerResult(OWLAxiom axiom, Double probability, Set<Set<OWLAxiom>> explanations) { | ||
super(axiom, probability); | ||
this.explanations = explanations; | ||
} | ||
|
||
/** | ||
* @return the explanations | ||
*/ | ||
public Set<Set<OWLAxiom>> getExplanations() { | ||
return explanations; | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...nents-ext/src/main/java/org/dllearner/core/probabilistic/unife/OWLProbReasonerResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.dllearner.core.probabilistic.unife; | ||
|
||
import org.semanticweb.owlapi.model.OWLAxiom; | ||
|
||
/** | ||
* | ||
* @author Giuseppe Cota <giuseppe.cota@unife.it> | ||
*/ | ||
public class OWLProbReasonerResult { | ||
|
||
private OWLAxiom axiom; | ||
|
||
private Double probability; | ||
|
||
public OWLProbReasonerResult(OWLAxiom axiom, Double probability) { | ||
this.axiom = axiom; | ||
this.probability = probability; | ||
} | ||
|
||
/** | ||
* @return the axiom | ||
*/ | ||
public OWLAxiom getAxiom() { | ||
return axiom; | ||
} | ||
|
||
/** | ||
* @return the probability | ||
*/ | ||
public Double getProbability() { | ||
return probability; | ||
} | ||
|
||
|
||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...main/java/org/dllearner/core/probabilistic/unife/OWLProbabilisticExplanationReasoner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.dllearner.core.probabilistic.unife; | ||
|
||
import org.semanticweb.owlapi.model.OWLAxiom; | ||
|
||
/** | ||
* This marker interface for those probabilistic reasoner that returns the | ||
* set of explanations as well. | ||
* | ||
* @author Giuseppe Cota <giuseppe.cota@unife.it> | ||
*/ | ||
public interface OWLProbabilisticExplanationReasoner extends ProbabilisticReasoner { | ||
|
||
public OWLProbExplanationReasonerResult computeQuery(OWLAxiom axiom); | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...ts-ext/src/main/java/org/dllearner/core/probabilistic/unife/OWLProbabilisticReasoner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.dllearner.core.probabilistic.unife; | ||
|
||
import org.semanticweb.owlapi.model.OWLAxiom; | ||
|
||
/** | ||
* | ||
* @author Giuseppe Cota <giuseppe.cota@unife.it> | ||
*/ | ||
public interface OWLProbabilisticReasoner extends ProbabilisticReasoner { | ||
|
||
public OWLProbReasonerResult computeQuery(OWLAxiom axiom); | ||
|
||
} |