public class Config extends Configuration
| Modifier and Type | Field and Description |
|---|---|
static double |
defaultAcceptanceThreshold |
static double |
defaultReviewThreshold |
PropertyMapping |
propertyMapping
PropertyMapping of current query
|
acceptanceFile, acceptanceRelation, acceptanceThreshold, executionEngine, executionPlanner, executionRewriter, granularity, metricExpression, mlAlgorithmName, mlAlgorithmParameters, mlImplementationType, mlPseudoFMeasure, mlTrainingDataFile, outputFormat, prefixes, sourceInfo, targetInfo, verificationFile, verificationRelation, verificationThreshold| Constructor and Description |
|---|
Config()
Constructor
|
Config(KBInfo sourceInfo,
KBInfo targetInfo,
String metricExpression,
String acceptanceRelation,
String verificationRelation,
double acceptanceThreshold,
String acceptanceFile,
double verificationThreshold,
String verificationFile,
Map<String,String> prefixes,
String outputFormat,
String executionRewriter,
String executionPlanner,
String executionEngine,
int granularity,
String mlAlgorithmName,
List<LearningParameter> mlParameters,
MLImplementationType mlImplementationType,
String mlTrainingDataFile,
EvaluatorType mlPseudoFMeasure)
Config of the GUI
|
| Modifier and Type | Method and Description |
|---|---|
javafx.concurrent.Task<Void> |
createMappingTask(javafx.collections.ObservableList<Result> results)
creates the Task in which the mappingProcess is realized
|
double |
getAcceptanceThreshold()
Returns the Acceptance Threshold
|
AMapping |
getMapping()
returns mapping
|
Output |
getMetric()
Getter Metric as Output
|
HashMap<String,String> |
getPrefixes() |
String |
getPropertyString(String propString,
SourceOrTarget sourceOrTarget)
Returns the property Label
|
Endpoint |
getSourceEndpoint()
Getter SourceEndpoint
|
Endpoint |
getTargetEndpoint()
Getter TargetEndpoint
|
double |
getVerificationThreshold()
Returns the Verification Threshold
|
static Config |
loadFromFile(File file)
loads the linkspec from file
|
String |
removeVar(String property,
SourceOrTarget sot)
Returns the property without the source or target variable
|
String |
reverseRename(String property,
SourceOrTarget sot) |
void |
save(File file)
saves the config to file
|
void |
setAcceptanceThreshold(double acceptanceThreshold)
Sets the acceptanceThreshold
|
void |
setMapping(AMapping mapping)
sets mapping
|
void |
setMetric(Output metric) |
void |
setMetricExpression(String metricExpression)
Sets the metric to the metricExpression and source using the MetricParser
|
void |
setPropertiesMatching(List<String> sourcePropertiesToAdd,
List<String> targetPropertiesToAdd)
sets property matching
|
void |
setSourceEndpoint(Endpoint sourceEndpoint) |
void |
setTargetEndpoint(Endpoint targetEndpoint) |
void |
switchPropertyOptional(String property,
SourceOrTarget sot) |
addMlAlgorithmParameter, addPrefix, equals, getAcceptanceFile, getAcceptanceRelation, getConfigurationParametersNames, getExecutionEngine, getExecutionPlanner, getExecutionRewriter, getGranularity, getMetricExpression, getMlAlgorithmName, getMlAlgorithmParameters, getMlImplementationType, getMlPseudoFMeasure, getMlTrainingDataFile, getOutputFormat, getSourceInfo, getTargetInfo, getTrainingDataFile, getVerificationFile, getVerificationRelation, hashCode, setAcceptanceFile, setAcceptanceRelation, setExecutionEngine, setExecutionPlanner, setExecutionRewriter, setGranularity, setMlAlgorithmName, setMlAlgorithmParameters, setMlImplementationType, setMlPseudoFMeasure, setMlTrainingDataFile, setOutputFormat, setPrefixes, setPrefixes, setSourceInfo, setTargetInfo, setTrainingDataFile, setVerificationFile, setVerificationRelation, setVerificationThreshold, toStringpublic PropertyMapping propertyMapping
public static final double defaultAcceptanceThreshold
public static final double defaultReviewThreshold
public Config()
public Config(KBInfo sourceInfo, KBInfo targetInfo, String metricExpression, String acceptanceRelation, String verificationRelation, double acceptanceThreshold, String acceptanceFile, double verificationThreshold, String verificationFile, Map<String,String> prefixes, String outputFormat, String executionRewriter, String executionPlanner, String executionEngine, int granularity, String mlAlgorithmName, List<LearningParameter> mlParameters, MLImplementationType mlImplementationType, String mlTrainingDataFile, EvaluatorType mlPseudoFMeasure)
sourceInfo - sourceInfotargetInfo - targetInfometricExpression - metricExpressionacceptanceRelation - acceptanceRelationverificationRelation - verificationRelationacceptanceThreshold - acceptanceThresholdacceptanceFile - acceptanceFileverificationThreshold - verificationThresholdverificationFile - verificationFileprefixes - prefixesoutputFormat - outputFormatexecutionRewriter - executionRewriterexecutionPlanner - executionPlannerexecutionEngine - executionEnginegranularity - granularitymlAlgorithmName - mlAlgorithmNamemlParameters - mlParametersmlImplementationType - mlImplementationTypemlTrainingDataFile - mlTrainingDataFilemlPseudoFMeasure - mlPseudoFMeasurepublic static Config loadFromFile(File file) throws Exception
file - file that should be loadedException - FileNotFoundExceptionpublic void save(File file) throws Exception
file - file in which the config should be savedException - FileNotFoundExceptionpublic double getAcceptanceThreshold()
getAcceptanceThreshold in class Configurationpublic void setAcceptanceThreshold(double acceptanceThreshold)
setAcceptanceThreshold in class ConfigurationacceptanceThreshold - thresholdpublic double getVerificationThreshold()
getVerificationThreshold in class Configurationpublic javafx.concurrent.Task<Void> createMappingTask(javafx.collections.ObservableList<Result> results)
results - of the mappingpublic Endpoint getSourceEndpoint()
public Endpoint getTargetEndpoint()
public void setMetricExpression(String metricExpression)
setMetricExpression in class ConfigurationmetricExpression - to be written to metricpublic String removeVar(String property, SourceOrTarget sot)
property - name of propertysot - is Source or Targetpublic String getPropertyString(String propString, SourceOrTarget sourceOrTarget)
propString - name of propertysourceOrTarget - is Source or Targetpublic Output getMetric()
public HashMap<String,String> getPrefixes()
getPrefixes in class Configurationpublic void setPropertiesMatching(List<String> sourcePropertiesToAdd, List<String> targetPropertiesToAdd)
sourcePropertiesToAdd - source propertiestargetPropertiesToAdd - target propertiespublic void switchPropertyOptional(String property, SourceOrTarget sot)
public String reverseRename(String property, SourceOrTarget sot)
public AMapping getMapping()
public void setMetric(Output metric)
public void setMapping(AMapping mapping)
mapping - mappingpublic void setSourceEndpoint(Endpoint sourceEndpoint)
public void setTargetEndpoint(Endpoint targetEndpoint)
Copyright © 2018. All rights reserved.