Class AnalyticalAlignmentInformation

java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.util.AnalyticalAlignmentInformation
All Implemented Interfaces:
IExplainerMapping

public class AnalyticalAlignmentInformation extends Object implements IExplainerMapping
This data structure can be used to store all kind of analytical information about one alignment.
Author:
Jan Portisch
  • Field Details

    • mappingInformation

      private HashMap<Correspondence,HashMap<String,String>> mappingInformation
      Core data structure where all the analytical mapping information is held. Cell -> Feature Map <FeatureName, FeatureValue></FeatureName,>
    • mappingFeatureNames

      private HashSet<String> mappingFeatureNames
      This data structure holds the FeatureNames.
  • Constructor Details

    • AnalyticalAlignmentInformation

      public AnalyticalAlignmentInformation()
  • Method Details

    • add

      public void add(Correspondence cell, String featureName, String featureValue)
      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

      public void addAll(Iterable<Correspondence> cells, String featureName, String featureValue)
      Add multiple cells that have the same feature value.
      Parameters:
      cells - Set of cells.
      featureName - Feature name.
      featureValue - Feature value.
    • addAll

      public void addAll(Iterable<Correspondence> cells, HashMap<String,String> features)
      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 interface IExplainerMapping
      Parameters:
      uriOne - the uri of the first matched entity
      uriTwo - the uri of the second matched entity
      relation - the relation from the mapping
      confidence - the confidence of teh mapping
      Returns:
      a map of feature name and corresponding value.
    • getMappingFeatureNames

      public List<String> getMappingFeatureNames()
      Description copied from interface: IExplainerMapping
      Get the names of the mapping features which will also appear in the result of IExplainerMapping.getMappingFeatures(String, String, String, double).
      Specified by:
      getMappingFeatureNames in interface IExplainerMapping
      Returns:
      A list of the feature names.
    • getMappingInformation

      public HashMap<Correspondence,HashMap<String,String>> getMappingInformation()