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

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

Go to download

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

The newest version!
package be.ugent.rml.functions;

import be.ugent.idlab.knows.dataio.record.Record;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractSingleRecordFunctionExecutor implements SingleRecordFunctionExecutor {

    protected MultipleRecordsFunctionExecutor functionExecutor;

    public Object execute(Record record) throws Exception {
        Map recordsMap = new HashMap<>();
        recordsMap.put("_default", record);

        return this.functionExecutor.execute(recordsMap);
    }

    @Override
    public boolean needsEOFMarker() {
        return functionExecutor.needsEOFMarker();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy