be.ugent.rml.Template 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 java.util.ArrayList;
import java.util.List;
public class Template {
private List templateElements;
public Template() {
this.templateElements = new ArrayList<>();
}
public Template(List templateElements) {
this.templateElements = templateElements;
}
public List getTemplateElements() {
return templateElements;
}
public void addElement(TemplateElement templateElement) {
this.templateElements.add(templateElement);
}
public int countVariables() {
int counter = 0;
for (TemplateElement aTemplate : this.templateElements) {
if (aTemplate.getType() == TEMPLATETYPE.VARIABLE) {
counter++;
}
}
return counter;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy