Alignment API and Server 4.2.${version.update}

fr.inrialpes.exmo.align.impl.eval
Class DiffEvaluator

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.BasicEvaluator
      extended by fr.inrialpes.exmo.align.impl.eval.DiffEvaluator
All Implemented Interfaces:
Evaluator

public class DiffEvaluator
extends BasicEvaluator
implements Evaluator

Evaluate proximity between two alignments. This function implements Precision/Recall/Fallout. The first alignment is thus the expected one.

Version:
$Id: DiffEvaluator.java 1491 2010-07-21 14:35:45Z euzenat $

Field Summary
(package private)  Set<Cell> falsenegative
           
(package private)  Set<Cell> falsepositive
           
(package private)  Set<Cell> truepositive
           
 
Fields inherited from class fr.inrialpes.exmo.align.impl.BasicEvaluator
align1, align2, result
 
Constructor Summary
DiffEvaluator(Alignment align1, Alignment align2)
          Creation Initiate Evaluator for precision and recall
 
Method Summary
 void diff()
           
 double eval(Properties params)
          Run the evaluation between the two ontologies.
 double eval(Properties params, Object cache)
          Run the evaluation between the two ontologies.
 Set<Cell> getFalseNegative()
           
 Set<Cell> getFalsePositive()
           
 Properties getResults()
          Returns the results as a property list not further described but suitable for display.
 Set<Cell> getTruePositive()
           
 String HTMLString()
           
 void init()
           
 void write(PrintWriter writer)
          Outputs (in XML/RDF) a full report on the proximity of the two ontologies.
private  String writeCellsHTML(Set<Cell> set, String what)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

truepositive

Set<Cell> truepositive

falsenegative

Set<Cell> falsenegative

falsepositive

Set<Cell> falsepositive
Constructor Detail

DiffEvaluator

public DiffEvaluator(Alignment align1,
                     Alignment align2)
              throws AlignmentException
Creation Initiate Evaluator for precision and recall

Parameters:
align1 - : the reference alignment
align2 - : the alignment to evaluate The two parameters are transformed into URIAlignment before being processed Hence, if one of them is modified after initialisation, this will not be taken into account.
Throws:
AlignmentException
Method Detail

init

public void init()

diff

public void diff()

eval

public double eval(Properties params)
            throws AlignmentException
Description copied from interface: Evaluator
Run the evaluation between the two ontologies. Returns a double (between 0 and 1) providing an idea of the proximity

Specified by:
eval in interface Evaluator
Throws:
AlignmentException

eval

public double eval(Properties params,
                   Object cache)
            throws AlignmentException
Description copied from interface: Evaluator
Run the evaluation between the two ontologies. Returns a double (between 0 and 1) providing an idea of the proximity The additional argument allows to cache the ontologies if necessary //@deprecated The OntologyCache is now internal, use eval( params ) instead

Specified by:
eval in interface Evaluator
Throws:
AlignmentException

HTMLString

public String HTMLString()

writeCellsHTML

private String writeCellsHTML(Set<Cell> set,
                              String what)

write

public void write(PrintWriter writer)
           throws IOException
Description copied from interface: Evaluator
Outputs (in XML/RDF) a full report on the proximity of the two ontologies.

Specified by:
write in interface Evaluator
Overrides:
write in class BasicEvaluator
Throws:
IOException

getResults

public Properties getResults()
Description copied from interface: Evaluator
Returns the results as a property list not further described but suitable for display.

Specified by:
getResults in interface Evaluator

getTruePositive

public Set<Cell> getTruePositive()

getFalseNegative

public Set<Cell> getFalseNegative()

getFalsePositive

public Set<Cell> getFalsePositive()

Alignment API and Server 4.2.${version.update}

(C) INRIA & friends, 2003-${curryear}