All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.ugent.rml.functions.DynamicSingleRecordFunctionExecutor Maven / Gradle / Ivy

Go to download

The RMLMapper executes RML rules to generate high quality Linked Data from multiple originally (semi-)structured data sources.

There is a newer version: 7.2.0
Show newest version
package be.ugent.rml.functions;

import java.util.ArrayList;
import java.util.List;

public class DynamicSingleRecordFunctionExecutor extends AbstractSingleRecordFunctionExecutor {

    public DynamicSingleRecordFunctionExecutor(List parameterValuePairs, FunctionLoader functionLoader) {
        ArrayList pairs = new ArrayList<>();

        parameterValuePairs.forEach(pair -> {
            ArrayList objectGeneratorOriginPairs = new ArrayList<>();

            pair.getValueGenerators().forEach(vGen -> {
                objectGeneratorOriginPairs.add(new TermGeneratorOriginPair(vGen, "_default"));
            });

            pairs.add(new ParameterValueOriginPair(pair.getParameterGenerators(), objectGeneratorOriginPairs));
        });

        functionExecutor = new DynamicMultipleRecordsFunctionExecutor(pairs, functionLoader);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy