Class QuadTemplate


  • public class QuadTemplate
    extends Object
    This class models a NQuads template, that is a quadruple in which any component can be a variable.
    Author:
    Michele Mostarda (mostarda@fbk.eu)
    • Method Detail

      • getSubject

        public TemplateSubject getSubject()
        Returns:
        the template subject.
      • getPredicate

        public TemplatePredicate getPredicate()
        Returns:
        the template predicate.
      • getObject

        public TemplateObject getObject()
        Returns:
        the template object.
      • getGraph

        public TemplateGraph getGraph()
        Returns:
        the template graph, can be null.
      • printOut

        public void printOut​(org.apache.any23.extractor.ExtractionResult er,
                             Map<String,​String> variableAssignment)
        Prints out this quad template in the given ExtractionResult, using the passed variableAssignment to expand variables.
        Parameters:
        er - extraction result instance on which write the quad produced by this template.
        variableAssignment - the assignment used to expand variables.