Class 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)
    • Constructor Detail

      • DataSetChooser

        public DataSetChooser()
    • 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 item
        String 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.