Class MatchTreeRoot


  • public class MatchTreeRoot
    extends MatchTreeNode
    The root node of a match-tree
    Author:
    nk-fouque
    • Field Detail

      • logger

        public static org.apache.log4j.Logger logger
    • Constructor Detail

      • MatchTreeRoot

        public MatchTreeRoot​(java.util.Set<org.apache.jena.sparql.core.Var> top,
                             CollectionsModel colMd)
        Base Constructor
        Parameters:
        top - A list with the variables to be returned in the answer, in the basic implementation, only one Var is relevant here
        colMd - The RDF Graph to work in
      • MatchTreeRoot

        public MatchTreeRoot​(MatchTreeNode other)
        Constructor for copies
        Parameters:
        other - The MatchTreeRoot to copy
    • Method Detail

      • getMatchSet

        public org.apache.jena.sparql.algebra.Table getMatchSet()
        Description copied from class: MatchTreeNode
        M : the match-set
        Overrides:
        getMatchSet in class MatchTreeNode
        Returns:
        A Table containing all the proper answers for the Cluster
      • lazyJoin

        public MatchTreeRoot lazyJoin​(org.apache.jena.sparql.syntax.Element element,
                                      CollectionsModel colMd,
                                      java.util.Set<org.apache.jena.sparql.core.Var> varPprime)
        Applies The Lazy Joins Algorithm to insert a new node
        Parameters:
        element - The element defining the new node
        colMd - The RDF Graph to work in
        varPprime - The variables already defined in the cluster
        Returns:
        A copy of this tree with the new element
        See Also:
        MatchTreeNode.lazyJoin(MatchTreeRoot, MatchTreeNode)