Interface PrologClause<T extends AbstractQueryBuilder<T>>

Type Parameters:
T - The Builder type that the clause is part of.
All Known Implementing Classes:
AbstractQueryBuilder, AskBuilder, ConstructBuilder, DescribeBuilder, SelectBuilder, WhereBuilder

public interface PrologClause<T extends AbstractQueryBuilder<T>>
Interface that defines the PrologClause as per http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rPrologue
  • Method Details

    • getPrologHandler

      PrologHandler getPrologHandler()
      Get the prolog handler for this clause.
      Returns:
      The PrologHandler this clause is using.
    • getExprFactory

      ExprFactory getExprFactory()
      Get the expression factory that works with the prefixes for this builder.
      Returns:
      an ExprFactory for this builder.
    • addPrefix

      T addPrefix(String pfx, Resource uri)
      Adds a prefix.
      Parameters:
      pfx - The prefix.
      uri - The URI for the prefix
      Returns:
      This builder for chaining.
    • addPrefix

      T addPrefix(String pfx, Node uri)
      Adds a prefix.
      Parameters:
      pfx - The prefix.
      uri - The URI for the prefix
      Returns:
      This builder for chaining.
    • addPrefix

      T addPrefix(String pfx, String uri)
      Adds a prefix.
      Parameters:
      pfx - The prefix.
      uri - The URI for the prefix
      Returns:
      This builder for chaining.
    • addPrefixes

      T addPrefixes(Map<String,String> prefixes)
      Adds prefixes.
      Parameters:
      prefixes - A mapping of prefix to URI to add.
      Returns:
      This builder for chaining.
    • addPrefixes

      T addPrefixes(PrefixMapping prefixes)
      Adds prefixes.
      Parameters:
      prefixes - A PrefixMapping instance..
      Returns:
      This builder for chaining.
    • setBase

      T setBase(Object uri)
      Sets the base URI. See AbstractQueryBuilder.makeNode(java.lang.Object) for conversion of the uri param. The resulting Node must be a URI.
      Parameters:
      uri - The base URI to use.
      Returns:
      This builder for chaining.
    • setBase

      T setBase(String uri)
      Sets the base URI.
      Parameters:
      uri - The base URI to use.
      Returns:
      This builder for chaining.