de.dfleischhacker.uni.thesis.utils.wrapper
Class Wrapper

java.lang.Object
  extended by de.dfleischhacker.uni.thesis.utils.wrapper.Wrapper

public class Wrapper
extends java.lang.Object

Wraps the step necessary to calculate precision and recall and provides methods to check the validity of input files.


Constructor Summary
Wrapper()
           
 
Method Summary
static CalculationResult calculate(java.net.URI uriOnto1, java.net.URI uriOnto2, java.lang.String nameEvAlign, java.lang.String nameRefAlign, java.lang.String nameSemantic)
          Calculates recall and precision and returns an CalculationResult object
static CalculationResult calculate(java.net.URI uriOnto1, java.net.URI uriOnto2, java.lang.String nameEvAlign, java.lang.String nameRefAlign, java.lang.String nameSemantic, boolean deleteABox)
          Calculates recall and precision and returns an CalculationResult object
static CalculationResult calculate(java.net.URI uriOnto1, java.net.URI uriOnto2, java.lang.String nameEvAlign, java.lang.String nameRefAlign, java.lang.String nameSemantic, float threshold)
          Calculates recall and precision and returns an CalculationResult object
static CalculationResult calculate(java.net.URI uriOnto1, java.net.URI uriOnto2, java.lang.String nameEvAlign, java.lang.String nameRefAlign, java.lang.String nameSemantic, float threshold, boolean deleteABox)
          Calculates recall and precision and returns an CalculationResult object
static void checkEvaluationAlignment(java.lang.String filename)
          Loads the evaluation alignment from the given file
static void checkOntology1(java.lang.String filename)
          Checks if it is possible to load the ontology from the given filename
static void checkOntology1(java.net.URI uri)
          Checks if it is possible to load the ontology from the given URI
static void checkOntology2(java.lang.String filename)
          Checks if it is possible to load the ontology from the given filename
static void checkOntology2(java.net.URI uri)
          Checks if it is possible to load the ontology from the given URI
static void checkReferenceAlignment(java.lang.String filename)
          Loads the reference alignment from the given file
static void checkSemantic(java.lang.String semantic)
          Checks if the given string is a valid semantic identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wrapper

public Wrapper()
Method Detail

checkOntology1

public static void checkOntology1(java.lang.String filename)
                           throws WrapperException
Checks if it is possible to load the ontology from the given filename

Parameters:
filename - name of ontology file
Throws:
WrapperException

checkOntology1

public static void checkOntology1(java.net.URI uri)
                           throws WrapperException
Checks if it is possible to load the ontology from the given URI

Parameters:
uri - URI of ontology file
Throws:
WrapperException

checkOntology2

public static void checkOntology2(java.lang.String filename)
                           throws WrapperException
Checks if it is possible to load the ontology from the given filename

Parameters:
filename - name of ontology file
Throws:
WrapperException

checkOntology2

public static void checkOntology2(java.net.URI uri)
                           throws WrapperException
Checks if it is possible to load the ontology from the given URI

Parameters:
uri - URI of ontology file
Throws:
WrapperException

checkEvaluationAlignment

public static void checkEvaluationAlignment(java.lang.String filename)
                                     throws WrapperException
Loads the evaluation alignment from the given file

Parameters:
filename - alignment's filename
Throws:
WrapperException

checkReferenceAlignment

public static void checkReferenceAlignment(java.lang.String filename)
                                    throws WrapperException
Loads the reference alignment from the given file

Parameters:
filename - alignment's filename
Throws:
WrapperException

checkSemantic

public static void checkSemantic(java.lang.String semantic)
                          throws WrapperException
Checks if the given string is a valid semantic identifier

Parameters:
semantic - string identifying the semantic
Throws:
WrapperException

calculate

public static CalculationResult calculate(java.net.URI uriOnto1,
                                          java.net.URI uriOnto2,
                                          java.lang.String nameEvAlign,
                                          java.lang.String nameRefAlign,
                                          java.lang.String nameSemantic)
                                   throws WrapperException
Calculates recall and precision and returns an CalculationResult object

Throws:
WrapperException

calculate

public static CalculationResult calculate(java.net.URI uriOnto1,
                                          java.net.URI uriOnto2,
                                          java.lang.String nameEvAlign,
                                          java.lang.String nameRefAlign,
                                          java.lang.String nameSemantic,
                                          boolean deleteABox)
                                   throws WrapperException
Calculates recall and precision and returns an CalculationResult object

Throws:
WrapperException

calculate

public static CalculationResult calculate(java.net.URI uriOnto1,
                                          java.net.URI uriOnto2,
                                          java.lang.String nameEvAlign,
                                          java.lang.String nameRefAlign,
                                          java.lang.String nameSemantic,
                                          float threshold)
                                   throws WrapperException
Calculates recall and precision and returns an CalculationResult object

Throws:
WrapperException

calculate

public static CalculationResult calculate(java.net.URI uriOnto1,
                                          java.net.URI uriOnto2,
                                          java.lang.String nameEvAlign,
                                          java.lang.String nameRefAlign,
                                          java.lang.String nameSemantic,
                                          float threshold,
                                          boolean deleteABox)
                                   throws WrapperException
Calculates recall and precision and returns an CalculationResult object

Throws:
WrapperException