Class Projection

All Implemented Interfaces:
QueryElement

public class Projection extends QueryElementCollection<Projectable>
A SPARQL Projection
See Also:
  • Method Details

    • distinct

      public Projection distinct()
      Specify this projection to be distinct
      Returns:
      this
      See Also:
    • distinct

      public Projection distinct(boolean isDistinct)
      Specify if this projection should be distinct or not
      Parameters:
      isDistinct - if this projection should be distinct
      Returns:
      this
      See Also:
    • all

      public Projection all()
      Specify that this projection should select all in-scope expressions
      Returns:
      this
      See Also:
    • all

      public Projection all(boolean selectAll)
      Specify if this projection should select all in-scope expressions or not
      Parameters:
      selectAll - if this projection should select all expressions
      Returns:
      this
      See Also:
    • select

      public Projection select(Projectable... projectables)
      Add expressions for this projection to select
      Parameters:
      projectables - the projectable expressions to add
      Returns:
      this
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface QueryElement
      Overrides:
      getQueryString in class QueryElementCollection<Projectable>
      Returns:
      the String representing the SPARQL syntax of this element