Class PropMapper
- java.lang.Object
-
- org.aksw.limes.core.evaluation.evaluationDataLoader.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 Summary
Constructors Constructor Description PropMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyMappinggetPropertyMapping(String configFile)We basically decide by the name of the config file.static PropertyMappinggetPropertyMapping(AConfigurationReader cR, String name)static PropertyMappinggetPropertyMappingFromFile(String filePath)static PropertyMappinggetPropertyMappingFromFile(String folder, String name)Get propertyMapping from a file with the same name as the LIMES config file without ".xml" concateneted with "propertymatch".
-
-
-
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 informmationname- 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 foldername- Name of the LIMES config file.- Returns:
- PropertyMapping read from the file.
-
getPropertyMappingFromFile
public static PropertyMapping getPropertyMappingFromFile(String filePath)
-
-