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

be.ugent.rml.term.ProvenancedTerm 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.term;

import be.ugent.rml.MappingInfo;
import be.ugent.rml.metadata.Metadata;

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

public class ProvenancedTerm {

    private Term term;
    private Metadata metadata;
    private List targets;

    public ProvenancedTerm(Term term, Metadata metadata, List targets) {
        this.term = term;
        this.metadata = metadata;
        this.targets = targets;
    }

    public ProvenancedTerm(Term term, MappingInfo mappingInfo) {
        this.term = term;
        this.metadata = new Metadata();
        this.metadata.setSourceMap(mappingInfo.getTerm());
        this.targets = mappingInfo.getTargets();
    }

    public ProvenancedTerm(Term term) {
        this.term = term;
        this.targets = new ArrayList();
    }

    public Term getTerm() {
        return term;
    }

    public Metadata getMetadata() {
        return metadata;
    }

    public List getTargets() {
        return targets;
    };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy