|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unika.aifb.owltools.evaluation.Evaluation
public abstract class Evaluation
Performs an ontology evaluation. This is an abstract superclass that implements several common tasks for different evaluations.
Field Summary | |
---|---|
protected org.semanticweb.kaon2.api.Ontology |
context
Evaluation context |
protected java.lang.String |
description
Describes the evaluation result in a human readable form |
java.lang.String |
evaluationURIBase
The base namesapce for the generated evaluation URIs |
protected org.semanticweb.kaon2.api.Ontology |
ontology
Evaluated ontology |
protected java.util.Map<java.lang.String,Problem> |
problems
The problems and their URIs |
Method Summary | |
---|---|
protected java.util.Map<java.lang.String,Problem> |
addProblem(Problem problem)
Adds a problem to the set of problems about the ontology |
protected abstract boolean |
evaluate()
Implements the actual evaluation |
abstract java.lang.String |
evaluationClassDescription()
Human-readable description of what this evaluation is doing. |
abstract java.lang.String |
evaluationClassName()
Human-readable name of the Evaluation. |
abstract java.lang.String |
evaluationClassURI()
URI for the class of evaluations. |
org.semanticweb.kaon2.api.Ontology |
getContext()
The context of the evaluation |
java.lang.String |
getDescription()
Human readable description of how the evaluation fared |
double |
getEvaluation()
An evaluation always return a value in [0,1] |
org.semanticweb.kaon2.api.Ontology |
getOntology()
The ontology being evaluated |
java.util.Map<java.lang.String,Problem> |
getProblemMap()
Returns all the identified problems of the Evaluation |
java.util.Collection<Problem> |
getProblems()
Returns all the identified problems of the Evaluation |
protected java.lang.String |
getRandomURIProblem()
Creates a new random URI for a problem |
protected java.lang.String |
getRandomURISolution()
Creates a new random URI for a solution |
java.lang.String |
getURI()
Returns the URI of the evaluation |
protected void |
setEvaluation(double evaluation)
Sets the evaluation grade. |
boolean |
succesfulEvaluation()
Has there been a succesful evaluation? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String evaluationURIBase
protected org.semanticweb.kaon2.api.Ontology ontology
protected org.semanticweb.kaon2.api.Ontology context
protected java.lang.String description
protected java.util.Map<java.lang.String,Problem> problems
Method Detail |
---|
public abstract java.lang.String evaluationClassName()
public abstract java.lang.String evaluationClassURI()
public abstract java.lang.String evaluationClassDescription()
public java.lang.String getURI()
public double getEvaluation()
public java.util.Map<java.lang.String,Problem> getProblemMap()
public java.util.Collection<Problem> getProblems()
public java.lang.String getDescription()
public org.semanticweb.kaon2.api.Ontology getOntology()
public org.semanticweb.kaon2.api.Ontology getContext()
public boolean succesfulEvaluation()
protected abstract boolean evaluate()
protected void setEvaluation(double evaluation)
evaluation
- intented evaluation gradeprotected java.util.Map<java.lang.String,Problem> addProblem(Problem problem)
problem
- new problem
protected java.lang.String getRandomURISolution()
protected java.lang.String getRandomURIProblem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |