be.ugent.rml.PredicateObjectGraphMapping 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.functions.MultipleRecordsFunctionExecutor;
import be.ugent.rml.term.Term;
import java.util.ArrayList;
import java.util.List;
public class PredicateObjectGraphMapping {
private final MappingInfo predicateMappingInfo;
private final MappingInfo objectMappingInfo;
private final MappingInfo graphMappingInfo;
private final MappingInfo languageMappingInfo;
private final List joinConditions;
private Term parentTriplesMap;
public PredicateObjectGraphMapping(MappingInfo predicateMappingInfo, MappingInfo objectMappingInfo, MappingInfo graphMappingInfo, MappingInfo languageMappingInfo) {
this.predicateMappingInfo = predicateMappingInfo;
this.graphMappingInfo = graphMappingInfo;
this.joinConditions = new ArrayList();
this.objectMappingInfo = objectMappingInfo;
this.languageMappingInfo = languageMappingInfo;
// Language Maps are tightly connected to the object, merge the target lists
if(this.languageMappingInfo != null) {
this.objectMappingInfo.addTargetGenerators(this.languageMappingInfo.getTargetGenerators());
this.objectMappingInfo.addTargets(this.languageMappingInfo.getTargets());
}
}
public Term getParentTriplesMap() {
return parentTriplesMap;
}
public List getJoinConditions() {
return joinConditions;
}
public void setParentTriplesMap(Term parentTriplesMap) {
this.parentTriplesMap = parentTriplesMap;
}
public void addJoinCondition(MultipleRecordsFunctionExecutor condition) {
joinConditions.add(condition);
}
public MappingInfo getPredicateMappingInfo() {
return predicateMappingInfo;
}
public MappingInfo getObjectMappingInfo() {
return objectMappingInfo;
}
public MappingInfo getGraphMappingInfo() {
return graphMappingInfo;
}
public MappingInfo getLanguageMappingInfo() {
return this.languageMappingInfo;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy