org.eclipse.rdf4j.sparqlbuilder.core

## Class QueryPattern

- java.lang.Object
- - org.eclipse.rdf4j.sparqlbuilder.core.QueryPattern

- All Implemented Interfaces:
    QueryElement

      public class QueryPattern
      extends Object
      implements QueryElement

  A SPARQL Query Pattern (`WHERE` clause)
  See Also:
    Query Pattern Definition

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getQueryString()`
    `QueryPattern` | `where(GraphPattern... patterns)` Add graph patterns to this query pattern.
    `QueryPattern` | `where(GraphPatternNotTriples where)` Set this query pattern's where clause

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### where

          public QueryPattern where(GraphPattern... patterns)

      Add graph patterns to this query pattern. Adds the given patterns into this query pattern's group graph pattern
      Parameters:
        `patterns` - the patterns to add
      Returns:
        this

    - #### where

          public QueryPattern where(GraphPatternNotTriples where)

      Set this query pattern's where clause
      Parameters:
        `where` - the `GraphPatternNotTriples` instance to set the where clause to
      Returns:
        this QueryPattern instance

    - #### getQueryString

          public String getQueryString()

      Specified by:
        `getQueryString` in interface `QueryElement`
      Returns:
        the String representing the SPARQL syntax of this element

Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.