Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1.11 KB

README.md

File metadata and controls

37 lines (20 loc) · 1.11 KB

triplegeo-ml-mappings

Receives as input a csv file and maps its column to the ontology of SLIPO. Functionality implemented in FieldMatcher object.

FieldMatcher Functions

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.

Build

To build the project:

mvn clean install

Run

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>"