Class TestCase
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_data.TestCase
A TestCase is an individual matching task that may be a component of a
Track
.-
Field Summary
Modifier and TypeFieldDescriptionprivate URI
Alignment of correspondences which should be removed from the matcher during evaluation.private GoldStandardCompleteness
How complete is the gold standard for this test case.private URI
Input alignment for the matcher.private static final org.slf4j.Logger
private final String
This is the identifier for the test caseprivate URI
URI pointing to the parameter file.private Alignment
The parsed version of the alignment of correspondences which should be removed from the matcher during evaluation.private Alignment
The parsed input alignment which is initialized lazily.private Alignment
The parsed reference which is initialized lazily.private final URI
URI pointing to the reference file.private final URI
URI pointing to the source file for matching.private final URI
URI pointing to the target file for matching.private Track
A test case always belongs to a track. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Returns the parsed version of the alignment of correspondences which should be removed from the matcher during evaluation.This method parses the input alignment and returns it.<T> T
getParsedParameters
(Class<T> type) This method parses the parameters and returns it in the given class type.This method parses the reference alignment and returns it.<T> T
getSourceOntology
(Class<T> clazz) Get the source ontology.<T> T
getSourceOntology
(Class<T> clazz, Properties parameters) Get the source ontology.<T> T
getTargetOntology
(Class<T> clazz) Get the target ontology.<T> T
getTargetOntology
(Class<T> clazz, Properties parameters) Get the target ontology.getTrack()
int
hashCode()
(package private) void
toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
name
This is the identifier for the test case -
track
A test case always belongs to a track. -
source
URI pointing to the source file for matching. -
target
URI pointing to the target file for matching. -
reference
URI pointing to the reference file. -
parsedReference
The parsed reference which is initialized lazily. -
inputAlignment
Input alignment for the matcher. It is null in case there is no inputAlignment. -
parsedInputAlignment
The parsed input alignment which is initialized lazily. -
evaluationExclusionAlignment
Alignment of correspondences which should be removed from the matcher during evaluation. This could be used to create a test case with a sampled reference alignment and complete mapping which does not evaluate correspondences which are sampled to be in the input alignment. -
parsedEvaluationExclusionAlignment
The parsed version of the alignment of correspondences which should be removed from the matcher during evaluation. This could be used to create a test case with a sampled reference alignment and complete mapping which does not evaluate correspondences which are sampled to be in the input alignment. -
goldStandardCompleteness
How complete is the gold standard for this test case. -
parameters
URI pointing to the parameter file. Can be null (which means no parameters at all). The format can currently be JSON and YAML. The available keys are listed inParameterConfigKeys
-
-
Constructor Details
-
TestCase
public TestCase(String name, URI source, URI target, URI reference, Track track, URI inputAlignment, GoldStandardCompleteness goldStandardCompleteness, URI parameters, URI evaluationExclusionAlignment) Constructor- Parameters:
name
- Name of the test case.source
- URI to the source ontology.target
- URI to the target ontology.reference
- URI to the alignment reference file.track
- The track to which the test case belongs.inputAlignment
- The input alignment for the matcher.goldStandardCompleteness
- How complete is the gold standard for this test case.parameters
- the parameters which the matcher get.evaluationExclusionAlignment
- the alignment which should be removed from system alignment during eval.
-
TestCase
Constructor with a complete gold standard and no input alignment.- Parameters:
name
- Name of the test case.source
- URI to the source ontology.target
- URI to the target ontology.reference
- URI to the alignment reference file.track
- The track to which the test case belongs.
-
-
Method Details
-
setTrack
-
getName
-
getTrack
-
getSource
-
getTarget
-
getReference
-
getInputAlignment
-
getGoldStandardCompleteness
-
getParameters
-
getEvaluationExclusionAlignment
-
toString
-
getSourceOntology
Get the source ontology.- Type Parameters:
T
- Type of the ontology class e.g. OntModel- Parameters:
clazz
- The result type that is expected.- Returns:
- Source ontology in the specified format.
-
getSourceOntology
Get the source ontology.- Type Parameters:
T
- Type of the ontology class e.g. OntModel- Parameters:
clazz
- The result type that is expected.parameters
- parameters for the transformation of URL to corresponding model type.- Returns:
- Source ontology in the specified format.
-
getTargetOntology
Get the target ontology.- Type Parameters:
T
- Type of the ontology class e.g. OntModel- Parameters:
clazz
- The result type that is expected.- Returns:
- Target ontology in the specified format.
-
getTargetOntology
Get the target ontology.- Type Parameters:
T
- Type of the ontology class e.g. OntModel- Parameters:
clazz
- The result type that is expected.parameters
- parameters for the transformation of URL to corresponding model type.- Returns:
- Target ontology in the specified format.
-
getParsedReferenceAlignment
This method parses the reference alignment and returns it. If called again, a cached parsed instance will be returned.- Returns:
- Parsed reference
Alignment
.
-
getParsedInputAlignment
This method parses the input alignment and returns it. If called again, a cached parsed instance will be returned.- Returns:
- Parsed input
Alignment
(this is not null - but maybe an empty alignment).
-
getParsedEvaluationExclusionAlignment
Returns the parsed version of the alignment of correspondences which should be removed from the matcher during evaluation.- Returns:
- the alignment which should be removed from system during eval (this is not null - but maybe an empty alignment).
-
getParsedParameters
This method parses the parameters and returns it in the given class type. If no parameters are given, then a new instance of the required class is returned (if possible).- Type Parameters:
T
- the type of parameter class- Parameters:
type
- the requested type- Returns:
- Parsed parameters.
-
hashCode
public int hashCode() -
equals
-