be.ugent.rml.MappingInfo 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;
import be.ugent.rml.term.Term;
import be.ugent.rml.termgenerator.TermGenerator;
import javax.annotation.Nonnull;
import java.util.Collections;
import java.util.List;
public class MappingInfo {
private final Term term;
private final TermGenerator termGenerator;
private final List targets;
public MappingInfo(@Nonnull Term term, @Nonnull TermGenerator termGenerator, @Nonnull List targets) {
this.term = term;
this.termGenerator = termGenerator;
this.targets = targets;
}
public MappingInfo(@Nonnull Term term, @Nonnull TermGenerator termGenerator) {
this.term = term;
this.termGenerator = termGenerator;
this.targets = Collections.emptyList();
}
public MappingInfo(@Nonnull Term term, @Nonnull List targets) {
this.term = term;
this.termGenerator = null;
this.targets = targets;
}
public Term getTerm() {
return term;
}
public TermGenerator getTermGenerator() {
return termGenerator;
}
public List getTargets() {
return targets;
}
public void addTargets(List targets) {
this.targets.addAll(targets);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy