Class PropMapper


  • public class PropMapper
    extends Object
    Just a little helper method to get PropertyMappings of the evaluation datasets.
    Since:
    1.0
    Version:
    1.0
    Author:
    Klaus Lyko, Mofeed Hassan (mounir@informatik.uni-leipzig.de)
    • Constructor Detail

      • PropMapper

        public PropMapper()
    • Method Detail

      • getPropertyMapping

        public static PropertyMapping getPropertyMapping​(String configFile)
        We basically decide by the name of the config file.
        Parameters:
        configFile - The configureation file path
        Returns:
        PropertyMapping-The properties mapping between the two datasets
      • getPropertyMapping

        public static PropertyMapping getPropertyMapping​(AConfigurationReader cR,
                                                         String name)
        Parameters:
        cR - An AConfigurationReader object that contains the configuration informmation
        name - The name of the property mapping file
        Returns:
        PropertyMapping-The properties mapping between the two datasets
      • getPropertyMappingFromFile

        public static PropertyMapping getPropertyMappingFromFile​(String folder,
                                                                 String name)
        Get propertyMapping from a file with the same name as the LIMES config file without ".xml" concateneted with "propertymatch". Content should be lines Source Property \t Target Property \t {"number", "string"}. E.g. "dbo:name refs:label string".
        Parameters:
        folder - Path of the folder
        name - Name of the LIMES config file.
        Returns:
        PropertyMapping read from the file.
      • getPropertyMappingFromFile

        public static PropertyMapping getPropertyMappingFromFile​(String filePath)