fr.inrialpes.exmo.align.impl.eval
Class ExtPREvaluator
java.lang.Object
fr.inrialpes.exmo.align.impl.BasicEvaluator
fr.inrialpes.exmo.align.impl.eval.ExtPREvaluator
- All Implemented Interfaces:
- Evaluator
public class ExtPREvaluator
- extends BasicEvaluator
Implement extended precision and recall between alignments.
These are the measures corresponding to [Ehrig&Euzenat2005].
The implementation is based on that of PRecEvaluator.
- Version:
- $Id: ExtPREvaluator.java 416 2007-02-17 23:51:24Z euzenat $
- Author:
- Jerome Euzenat
Method Summary |
protected double |
computeSymSimilarity(Cell c1,
Enumeration s2)
|
double |
eval(Parameters params)
This is a partial implementation of [Ehrig & Euzenat 2005]
because the relations are not taken into account
(they are supposed to be always =) |
double |
eval(Parameters params,
Object cache)
Run the evaluation between the two ontologies. |
double |
getEffPrecision()
|
double |
getEffRecall()
|
double |
getEffSimilarity()
|
int |
getExpected()
|
int |
getFound()
|
double |
getOrientPrecision()
|
double |
getOrientRecall()
|
double |
getOrientSimilarity()
|
double |
getSymPrecision()
|
double |
getSymRecall()
|
double |
getSymSimilarity()
|
int |
isSuperClass(org.semanticweb.owl.model.OWLClass class1,
org.semanticweb.owl.model.OWLClass class2,
org.semanticweb.owl.model.OWLOntology ontology)
|
boolean |
isSuperProperty(org.semanticweb.owl.model.OWLProperty prop1,
org.semanticweb.owl.model.OWLProperty prop2,
org.semanticweb.owl.model.OWLOntology ontology)
|
protected int |
relativePosition(org.semanticweb.owl.model.OWLEntity o1,
org.semanticweb.owl.model.OWLEntity o2,
org.semanticweb.owl.model.OWLOntology onto)
|
int |
superClassPosition(org.semanticweb.owl.model.OWLClass class1,
org.semanticweb.owl.model.OWLClass class2,
org.semanticweb.owl.model.OWLOntology onto)
|
void |
write(PrintWriter writer)
This now output the results in Lockheed format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
onto1
private org.semanticweb.owl.model.OWLOntology onto1
onto2
private org.semanticweb.owl.model.OWLOntology onto2
symALPHA
private double symALPHA
symprec
private double symprec
symrec
private double symrec
effprec
private double effprec
effrec
private double effrec
orientprec
private double orientprec
orientrec
private double orientrec
nbexpected
private int nbexpected
nbfound
private int nbfound
symsimilarity
private double symsimilarity
effsimilarity
private double effsimilarity
orientsimilarity
private double orientsimilarity
ExtPREvaluator
public ExtPREvaluator(Alignment align1,
Alignment align2)
- Creation
getSymPrecision
public double getSymPrecision()
getSymRecall
public double getSymRecall()
getSymSimilarity
public double getSymSimilarity()
getEffPrecision
public double getEffPrecision()
getEffRecall
public double getEffRecall()
getEffSimilarity
public double getEffSimilarity()
getOrientPrecision
public double getOrientPrecision()
getOrientRecall
public double getOrientRecall()
getOrientSimilarity
public double getOrientSimilarity()
getExpected
public int getExpected()
getFound
public int getFound()
eval
public double eval(Parameters params)
throws AlignmentException
- This is a partial implementation of [Ehrig & Euzenat 2005]
because the relations are not taken into account
(they are supposed to be always =)
- Throws:
AlignmentException
eval
public double eval(Parameters 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
- Throws:
AlignmentException
computeSymSimilarity
protected double computeSymSimilarity(Cell c1,
Enumeration s2)
relativePosition
protected int relativePosition(org.semanticweb.owl.model.OWLEntity o1,
org.semanticweb.owl.model.OWLEntity o2,
org.semanticweb.owl.model.OWLOntology onto)
superClassPosition
public int superClassPosition(org.semanticweb.owl.model.OWLClass class1,
org.semanticweb.owl.model.OWLClass class2,
org.semanticweb.owl.model.OWLOntology onto)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
isSuperClass
public int isSuperClass(org.semanticweb.owl.model.OWLClass class1,
org.semanticweb.owl.model.OWLClass class2,
org.semanticweb.owl.model.OWLOntology ontology)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
isSuperProperty
public boolean isSuperProperty(org.semanticweb.owl.model.OWLProperty prop1,
org.semanticweb.owl.model.OWLProperty prop2,
org.semanticweb.owl.model.OWLOntology ontology)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
write
public void write(PrintWriter writer)
throws IOException
- This now output the results in Lockheed format.
- Specified by:
write
in interface Evaluator
- Overrides:
write
in class BasicEvaluator
- Throws:
IOException
(C) INRIA & friends, 2003-2008