Class AnalyticalAlignmentInformation
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.util.AnalyticalAlignmentInformation
- All Implemented Interfaces:
IExplainerMapping
This data structure can be used to store all kind of analytical information about one alignment.
- Author:
- Jan Portisch
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Data structure for some often used features. -
Field Summary
Modifier and TypeFieldDescriptionThis data structure holds the FeatureNames.private HashMap<Correspondence,
HashMap<String, String>> Core data structure where all the analytical mapping information is held. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Correspondence cell, String featureName, String featureValue) Add information about a cell.void
addAll
(Iterable<Correspondence> cells, String featureName, String featureValue) Add multiple cells that have the same feature value.void
Add multiple cells that have the same feature values.Get the names of the mapping features which will also appear in the result ofIExplainerMapping.getMappingFeatures(String, String, String, double)
.getMappingFeatures
(String uriOne, String uriTwo, String relation, double confidence) Gets information (features) about a mapping (represent through the parameters) from e.g.
-
Field Details
-
mappingInformation
Core data structure where all the analytical mapping information is held. Cell -> Feature Map <FeatureName, FeatureValue></FeatureName,> -
mappingFeatureNames
This data structure holds the FeatureNames.
-
-
Constructor Details
-
AnalyticalAlignmentInformation
public AnalyticalAlignmentInformation()
-
-
Method Details
-
add
Add information about a cell. If the information exists already, it will be overwritten. If there has not been a data set entry, the entry will be created.- Parameters:
cell
- The cell for which information shall be persisted.featureName
- The name of the feature.featureValue
- The feature value.
-
addAll
Add multiple cells that have the same feature value.- Parameters:
cells
- Set of cells.featureName
- Feature name.featureValue
- Feature value.
-
addAll
Add multiple cells that have the same feature values.- Parameters:
cells
- Set of cells.features
- Features
-
getMappingFeatures
public Map<String,String> getMappingFeatures(String uriOne, String uriTwo, String relation, double confidence) Description copied from interface:IExplainerMapping
Gets information (features) about a mapping (represent through the parameters) from e.g. a matcher. The result is a map of feature name and corresponding value.- Specified by:
getMappingFeatures
in interfaceIExplainerMapping
- Parameters:
uriOne
- the uri of the first matched entityuriTwo
- the uri of the second matched entityrelation
- the relation from the mappingconfidence
- the confidence of teh mapping- Returns:
- a map of feature name and corresponding value.
-
getMappingFeatureNames
Description copied from interface:IExplainerMapping
Get the names of the mapping features which will also appear in the result ofIExplainerMapping.getMappingFeatures(String, String, String, double)
.- Specified by:
getMappingFeatureNames
in interfaceIExplainerMapping
- Returns:
- A list of the feature names.
-
getMappingInformation
-