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