edu.unika.aifb.owltools.evaluation
Class Problem

java.lang.Object
  extended by edu.unika.aifb.owltools.evaluation.Problem

public class Problem
extends java.lang.Object

A problem that is identified by an ontology evaluation


Field Summary
protected  java.lang.String description
          Human-readable description of the problem.
protected  org.semanticweb.kaon2.api.Ontology problematicPart
          The part of the ontology that includes the problem.
protected  double severity
          How bad is the problem (in [0, 1]
protected  java.util.Map<java.lang.String,Solution> solutions
          A number of possible solutions.
 
Constructor Summary
Problem(java.lang.String URI, org.semanticweb.kaon2.api.Ontology whichPartIsWrong, java.lang.String whatIsWrong, java.util.Map<java.lang.String,Solution> possibleSolutions, double howBadIsIt)
          Creates a Problem
 
Method Summary
 Solution getBestSolution()
          Returns the solution that is rated best by the evaluation.
 java.lang.String getDescription()
          Human readable description of the problem
 org.semanticweb.kaon2.api.Ontology getProblematicPart()
          Which part of the ontology is problematic?
 double getSeverity()
          How bad is the problem?
 java.util.Map<java.lang.String,Solution> getSolutionMap()
          Returns possible solutions to the problem.
 java.util.Collection<Solution> getSolutions()
          Returns possible solutions to the problem.
 java.lang.String getURI()
          The URI of the problem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

problematicPart

protected org.semanticweb.kaon2.api.Ontology problematicPart
The part of the ontology that includes the problem.


description

protected java.lang.String description
Human-readable description of the problem.


solutions

protected java.util.Map<java.lang.String,Solution> solutions
A number of possible solutions. Mapping from their URIs to the solutions.


severity

protected double severity
How bad is the problem (in [0, 1]

Constructor Detail

Problem

public Problem(java.lang.String URI,
               org.semanticweb.kaon2.api.Ontology whichPartIsWrong,
               java.lang.String whatIsWrong,
               java.util.Map<java.lang.String,Solution> possibleSolutions,
               double howBadIsIt)
Creates a Problem

Parameters:
URI - the URI of the problem.
whichPartIsWrong - The part of the ontology that has the problem.
whatIsWrong - Description of the problem.
possibleSolutions - Possible solutions to the problem.
howBadIsIt - The severity of the problem, clipped to [0,1].
Method Detail

getURI

public java.lang.String getURI()
The URI of the problem

Returns:
URI

getProblematicPart

public org.semanticweb.kaon2.api.Ontology getProblematicPart()
Which part of the ontology is problematic? Can be used to highlight the part.

Returns:
Problemaitc part

getDescription

public java.lang.String getDescription()
Human readable description of the problem

Returns:
Human readable description of the problem

getSeverity

public double getSeverity()
How bad is the problem? In [0, 1], where 0 means no problem at all, and 1 means a real showstopper. The severity of the problem is not comparable between evaluation types.

Returns:
Severity of the problem

getSolutionMap

public java.util.Map<java.lang.String,Solution> getSolutionMap()
Returns possible solutions to the problem. May be empty

Returns:
A map of solutions with their URIs

getSolutions

public java.util.Collection<Solution> getSolutions()
Returns possible solutions to the problem. May be empty

Returns:
All possible solutions

getBestSolution

public Solution getBestSolution()
Returns the solution that is rated best by the evaluation. If no solution is available, null is returned.

Returns:
Best rated solution. May be null.