Receives as input a csv file and maps its column to the ontology of SLIPO. Functionality implemented in FieldMatcher object.
public void makeModels(String inFolderPath, String outModelsPath)
Reads all .yml and .csv from inFolderPath
. In the folder, each .yml mapping file should be matched to a .csv data file
Serializes a FieldMatcher object containing the trained classifiers to outModelsPath
.
public Mappings giveMatchings(String csvPath)
Receives the path to a .csv file. Produces a Mappings object with the mappings for each column of the .csv file.
To build the project:
mvn clean install
To create model:
java -jar target/field-matcher.jar -d "<path to data and mapping files>" -o "<path to model file>"
To compute field mappings:
java -jar target/field-matcher.jar -m "<path to model file>" -f "<path to input data file>"