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

be.ugent.rml.conformer.Converter 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.conformer;

import be.ugent.rml.term.Term;

import java.util.Map;

/**
 * Interface for converters of a mapping format to the RML mapping format. Used by MappingConformer
 * to convert to RML if needed.
 */
interface Converter {
    /**
     * Detection logic needed to determine mapping format of TriplesMap.
     * @param tm TriplesMap
     * @return true if is specific mapping format false if not
     */
    boolean detect(Term tm);

    /**
     * Try to convert mapping language TriplesMap to RML.
     * Has to be atomic. Original model must be recovered if conversion fails.
     * @param tm TriplesMap
     */
    void convert(Term tm, Map mappingOptions) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy