Class EvaluationData


  • public class EvaluationData
    extends Object
    Class to specify evaluation parameters. Hold all neeeded data: caches, ConfigReader, and additional folder settings.

    To support the older HashMap setting, it provides a static constructor-like method buildFromHashMap(Map<MapKey, Object> map).

    Since:
    1.0
    Version:
    1.0
    Author:
    Klaus Lyko, Mofeed Hassan (mounir@informatik.uni-leipzig.de)
    • Constructor Detail

      • EvaluationData

        public EvaluationData()
    • Method Detail

      • buildFromHashMap

        public static EvaluationData buildFromHashMap​(Map<org.aksw.limes.core.evaluation.evaluationDataLoader.DataSetChooser.MapKey,​Object> map)
        For the time beeing and convenience a method to construct EvaluationData using the outdated HashMap-based approach.
        Parameters:
        map - HashMap meeting the standards of the DataSetChooser.
        Returns:
        EvaluationData-Contains all information regarding the evaluation such as dataset folder, dataset files and property mapping
      • getConfigFile

        public File getConfigFile()
      • getSourceFile

        public File getSourceFile()
      • getTargetFile

        public File getTargetFile()
      • getReferenceDataFile

        public File getReferenceDataFile()
      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getBaseFolder

        public String getBaseFolder()
        Returns:
        the baseFolder
      • setBaseFolder

        public void setBaseFolder​(String baseFolder)
        Parameters:
        baseFolder - the baseFolder to set
      • getDatasetFolder

        public String getDatasetFolder()
        Returns:
        the datasetFolder
      • setDatasetFolder

        public void setDatasetFolder​(String datasetFolder)
        Parameters:
        datasetFolder - the datasetFolder to set
      • getConfigFileName

        public String getConfigFileName()
        Returns:
        the configFileName
      • setConfigFileName

        public void setConfigFileName​(String configFileName)
        Parameters:
        configFileName - the configFileName to set
      • getSourceFileName

        public String getSourceFileName()
        Returns:
        the sourceFileName
      • setSourceFileName

        public void setSourceFileName​(String sourceFileName)
        Parameters:
        sourceFileName - the sourceFileName to set
      • getTargetFileName

        public String getTargetFileName()
        Returns:
        the targetFileName
      • setTargetFileName

        public void setTargetFileName​(String targetFileName)
        Parameters:
        targetFileName - the targetFileName to set
      • getGoldStandardFile

        public String getGoldStandardFile()
        Returns:
        the goldStandardFile
      • setGoldStandardFile

        public void setGoldStandardFile​(String goldStandardFile)
        Parameters:
        goldStandardFile - the goldStandardFile to set
      • getEvauationResultFolder

        public String getEvauationResultFolder()
        Returns:
        the evauationResultFolder
      • setEvauationResultFolder

        public void setEvauationResultFolder​(String evauationResultFolder)
        Parameters:
        evauationResultFolder - the evauationResultFolder to set
      • getEvaluationResultFileName

        public String getEvaluationResultFileName()
        Returns:
        the evaluationResultFileName
      • setEvaluationResultFileName

        public void setEvaluationResultFileName​(String evaluationResultFileName)
        Parameters:
        evaluationResultFileName - the evaluationResultFileName to set
      • setConfigReader

        public void setConfigReader​(AConfigurationReader configReader)
        Parameters:
        configReader - the configReader to set
      • getPropertyMapping

        public PropertyMapping getPropertyMapping()
        Returns:
        the propertyMapping
      • setPropertyMapping

        public void setPropertyMapping​(PropertyMapping propertyMapping)
        Parameters:
        propertyMapping - the propertyMapping to set
      • getTargetCache

        public ACache getTargetCache()
        Returns:
        the targetCache
      • setTargetCache

        public void setTargetCache​(ACache targetCache)
        Parameters:
        targetCache - the targetCache to set
      • getSourceCache

        public ACache getSourceCache()
        Returns:
        the sourceCache
      • setSourceCache

        public void setSourceCache​(ACache sourceCache)
        Parameters:
        sourceCache - the sourceCache to set
      • getReferenceMapping

        public AMapping getReferenceMapping()
        Returns:
        the referenceMapping
      • setReferenceMapping

        public void setReferenceMapping​(AMapping referenceMapping)
        Parameters:
        referenceMapping - the referenceMapping to set
      • getValue

        public Object getValue​(org.aksw.limes.core.evaluation.evaluationDataLoader.DataSetChooser.MapKey key)
        Getter for using the deprecated MapKeys.
        Parameters:
        key - the key for the required information required concerning teh dataset
        Returns:
        The corresponding information to the given key such as the base folder
      • getMaxRuns

        public int getMaxRuns()
        Returns:
        the maxRuns
      • setMaxRuns

        public void setMaxRuns​(int maxRuns)
        Parameters:
        maxRuns - the maxRuns to set
      • getSourceClass

        public String getSourceClass()
      • setSourceClass

        public void setSourceClass​(String sourceClass)
      • getTargetClass

        public String getTargetClass()
      • setTargetClass

        public void setTargetClass​(String targetClass)