be.ugent.rml.functions.DynamicSingleRecordFunctionExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rmlmapper Show documentation
Show all versions of rmlmapper Show documentation
The RMLMapper executes RML rules to generate high quality Linked Data from multiple originally (semi-)structured data sources.
package be.ugent.rml.functions;
import be.ugent.idlab.knows.functions.agent.Agent;
import java.util.ArrayList;
import java.util.List;
public class DynamicSingleRecordFunctionExecutor extends AbstractSingleRecordFunctionExecutor {
public DynamicSingleRecordFunctionExecutor(List parameterValuePairs, final Agent functionAgent) {
List pairs = new ArrayList<>();
parameterValuePairs.forEach(pair -> {
List objectGeneratorOriginPairs = new ArrayList<>();
pair.getValueGenerators().forEach(vGen -> objectGeneratorOriginPairs.add(new TermGeneratorOriginPair(vGen, "_default")));
pairs.add(new ParameterValueOriginPair(pair.getParameterGenerators(), objectGeneratorOriginPairs));
});
functionExecutor = new DynamicMultipleRecordsFunctionExecutor(pairs, functionAgent);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy