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.
The newest version!
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;
private List targetGenerators;
public MappingInfo(@Nonnull Term term, @Nonnull TermGenerator termGenerator, @Nonnull List targets, List targetGenerators) {
this.term = term;
this.termGenerator = termGenerator;
this.targets = targets;
this.targetGenerators = targetGenerators;
}
public MappingInfo(@Nonnull Term term, @Nonnull TermGenerator termGenerator) {
this.term = term;
this.termGenerator = termGenerator;
this.targets = Collections.emptyList();
this.targetGenerators = Collections.emptyList();
}
public MappingInfo(@Nonnull Term term, @Nonnull List targets, List targetGenerators) {
this.term = term;
this.termGenerator = null;
this.targets = targets;
this.targetGenerators = targetGenerators;
}
public Term getTerm() {
return term;
}
public TermGenerator getTermGenerator() {
return termGenerator;
}
public List getTargets() {
return targets;
}
public List getTargetGenerators() {
return this.targetGenerators;
}
public void addTargets(List targets) {
this.targets.addAll(targets);
}
public void addTargetGenerators(List targetGenerators) {
getTargetGenerators().addAll(targetGenerators);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy