Package org.eclipse.rdf4j.sparqlbuilder.core

## Class GraphTemplate

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

- All Implemented Interfaces:
    `QueryElement`

      public class GraphTemplate
      extends Object
      implements QueryElement

  A SPARQL Graph Template, used in Construct queries
  See Also:
    SPARQL CONSTRUCT Query

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `GraphTemplate` | `construct​(TriplesTemplate triplesTemplate)` | Set, rather than augment, this graph template's triples template
    `GraphTemplate` | `construct​(TriplePattern... triples)` | Add triple patterns to this graph template
    `String` | `getQueryString()` |

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

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

- - ### Method Detail

    - #### construct

          public GraphTemplate construct​(TriplePattern... triples)

      Add triple patterns to this graph template
      Parameters:
        `triples` - the patterns to add
      Returns:
        this

    - #### construct

          public GraphTemplate construct​(TriplesTemplate triplesTemplate)

      Set, rather than augment, this graph template's triples template
      Parameters:
        `triplesTemplate` - the `TriplesTemplate` instance to set
      Returns:
        this graph template

    - #### getQueryString

          public String getQueryString()

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