All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.ugent.rml.Template Maven / Gradle / Ivy

Go to download

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