Package org.eclipse.rdf4j.sparqlbuilder.core

## Class TriplesTemplate

- java.lang.Object
- - org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<T>
  - - org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection<TriplePattern>
    - - org.eclipse.rdf4j.sparqlbuilder.core.TriplesTemplate

- All Implemented Interfaces:
    `QueryElement`

      public class TriplesTemplate
      extends StandardQueryElementCollection<TriplePattern>

  Represents a collection of triple patterns

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection

      `elements`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `TriplesTemplate` | `and​(TriplePattern... triples)` | add triples to this template

    - ### Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection

      `getQueryString, printBodyIfEmpty, printNameIfEmpty, resetWrapperMethod, setOperatorName, setOperatorName, setWrapperMethod`

    - ### Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection

      `addElements, addElements, isEmpty`

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

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

- - ### Method Detail

    - #### and

          public TriplesTemplate and​(TriplePattern... triples)

      add triples to this template
      Parameters:
        `triples` - the triples to add
      Returns:
        this TriplesTemplate instance