Class DataSetChooser
- java.lang.Object
-
- org.aksw.limes.core.evaluation.evaluationDataLoader.DataSetChooser
-
public class DataSetChooser extends Object
Class to grant central access to evaluation datasets.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Klaus Lyko, Mofeed Hassan (mounir@informatik.uni-leipzig.de)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataSetChooser.DataSets
-
Constructor Summary
Constructors Constructor Description DataSetChooser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AMappingfixReferenceMap(AMapping original, ACache sC, ACache tC)Method to remove mapping which corresponding instance doesn't exist.static EvaluationDatagetData(String dataSetName)provides the information of the link specification path, the gold standard path, the datasets path and additional information of a required datasetstatic EvaluationDatagetData(DataSetChooser.DataSets a)Central class to configure evaluation datasets.static StringgetEvalFolder()Static getter for the common evaluation folder,static Set<org.aksw.limes.core.evaluation.evaluationDataLoader.DataSetChooser.MapKey>getLoggingKeys()
-
-
-
Method Detail
-
getData
public static EvaluationData getData(String dataSetName)
provides the information of the link specification path, the gold standard path, the datasets path and additional information of a required dataset- Parameters:
dataSetName- The name of the dataset to get its information given as string- Returns:
- The parameters to load the dataset
-
getData
public static EvaluationData getData(DataSetChooser.DataSets a)
Central class to configure evaluation datasets.- Parameters:
a- DataSets enum- Returns:
- HashMap
Paths and files required to load a dataset
This table shows the list of information required to load the dataset which are stored in this hash map as a key that represent the information title and the value of such itemString key Object data MapKey.BASE_FOLDER MapKey.DATASET_FOLDER MapKey.CONFIG_FILE "referencepath" MapKey.EVALUATION_RESULTS_FOLDER MapKey.EVALUATION_FILENAME MapKey.SOURCE_CACHE Source Cache MapKey.TARGET_CACHE Target Cache MapKey.PROPERTY_MAPPING PopertyMapping MapKey.REFERENCE_MAPPING Gold standard Mapping
-
getLoggingKeys
public static Set<org.aksw.limes.core.evaluation.evaluationDataLoader.DataSetChooser.MapKey> getLoggingKeys()
-
getEvalFolder
public static String getEvalFolder()
Static getter for the common evaluation folder,- Returns:
- String- the path to the evaluation folder
-
fixReferenceMap
public static AMapping fixReferenceMap(AMapping original, ACache sC, ACache tC)
Method to remove mapping which corresponding instance doesn't exist.- Parameters:
original- Mapping original Mapping.sC- Source Cache.tC- Target Cache.- Returns:
- A Mapping holding only those mappings of the original for which instance where found in the source or target Caches.
-
-