Class ExclusiveArbitraryLengthPath

    • Method Detail

      • toQueryString

        public String toQueryString​(Set<String> varNames,
                                    BindingSet bindings)
        Description copied from interface: ExclusiveTupleExprRenderer
        Returns a SPARQL string representation of this expression that can be inserted into a SELECT query.

        Implementations are required to create a valid query string for this expression where the given bindings are inserted.

        Specified by:
        toQueryString in interface ExclusiveTupleExprRenderer
        Parameters:
        varNames - the set of resulting (unbound) variables from this expression
        bindings - the optional input bindings
        Returns:
        the query string part
      • toQueryAlgebra

        public TupleExpr toQueryAlgebra​(Set<String> varNames,
                                        BindingSet bindings)
        Description copied from interface: ExclusiveTupleExprRenderer
        Returns a SPARQL algebra representation of this expression that can be inserted into a SELECT TupleExpr

        Implementations are required to create a new equivalent expression or clone, where any provided input bindings are inserted. The free variable names after insertion need to be added to the provided set.

        Specified by:
        toQueryAlgebra in interface ExclusiveTupleExprRenderer
        Parameters:
        varNames - the set of resulting (unbound) variables from this expression
        bindings - the input bindings that need to be inserted
        Returns:
        the algebra expression
      • getFreeVars

        public List<String> getFreeVars()
        Specified by:
        getFreeVars in interface VariableExpr
        Returns:
        a list of free (i.e. unbound) variables in this expression
      • getQueryInfo

        public QueryInfo getQueryInfo()
        Description copied from interface: QueryRef
        Retrieve the attached query information of the tuple expression
        Specified by:
        getQueryInfo in interface QueryRef
        Returns:
        the QueryInfo