org.eclipse.rdf4j.sparqlbuilder.core.query

## Class DeleteDataQuery

- java.lang.Object
- - org.eclipse.rdf4j.sparqlbuilder.core.query.DeleteDataQuery

- All Implemented Interfaces:
    QueryElement

      public class DeleteDataQuery
      extends Object

  The SPARQL Delete Data Query
  See Also:
    SPARQL DELETE DATA Query

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Optional<GraphName>` | `graphName`
    `protected TriplesTemplate` | `triplesTemplate`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DeleteDataQuery()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected T` | `addTriples(TriplePattern... triples)`
    `protected void` | `appendNamedTriplesTemplates(StringBuilder queryString, Optional<GraphName> graphName, TriplesTemplate triples)`
    `T` | `base(Base base)` Set the Base clause of this query
    `T` | `base(Iri iri)` Set the base IRI of this query
    `DeleteDataQuery` | `deleteData(TriplePattern... triples)` Add triples to be deleted
    `DeleteDataQuery` | `deleteData(TriplesTemplate triplesTemplate)` Set this query's triples template
    `DeleteDataQuery` | `from(GraphName graph)` Specify a graph to delete the data from
    `protected String` | `getPrefix()`
    `protected String` | `getQueryActionString()`
    `String` | `getQueryString()`
    `T` | `graph(GraphName graph)`
    `T` | `prefix(Prefix... prefixes)` Add prefix declarations to this query
    `T` | `prefix(PrefixDeclarations prefixes)` Set the Prefix declarations of this query
    `protected T` | `setTriplesTemplate(TriplesTemplate triplesTemplate)`

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

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

- - ### Field Detail

    - #### triplesTemplate

          protected TriplesTemplate triplesTemplate

    - #### graphName

          protected Optional<GraphName> graphName

  - ### Constructor Detail

    - #### DeleteDataQuery

          public DeleteDataQuery()

  - ### Method Detail

    - #### deleteData

          public DeleteDataQuery deleteData(TriplePattern... triples)

      Add triples to be deleted
      Parameters:
        `triples` - the triples to add to this delete data query
      Returns:
        this Delete Data query instance

    - #### deleteData

          public DeleteDataQuery deleteData(TriplesTemplate triplesTemplate)

      Set this query's triples template
      Parameters:
        `triplesTemplate` - the `TriplesTemplate` instance to set
      Returns:
        this instance

    - #### from

          public DeleteDataQuery from(GraphName graph)

      Specify a graph to delete the data from
      Parameters:
        `graph` - the identifier of the graph
      Returns:
        this Delete Data query instance

    - #### getPrefix

          protected String getPrefix()

    - #### addTriples

          protected T addTriples(TriplePattern... triples)

    - #### setTriplesTemplate

          protected T setTriplesTemplate(TriplesTemplate triplesTemplate)

    - #### graph

          public T graph(GraphName graph)

    - #### getQueryActionString

          protected String getQueryActionString()

    - #### base

          public T base(Iri iri)

      Set the base IRI of this query
      Parameters:
        `iri` - the base IRI
      Returns:
        this

    - #### base

          public T base(Base base)

      Set the Base clause of this query
      Parameters:
        `base` - the `Base` clause to set
      Returns:
        this

    - #### prefix

          public T prefix(Prefix... prefixes)

      Add prefix declarations to this query
      Parameters:
        `prefixes` - the prefixes to add
      Returns:
        this

    - #### prefix

          public T prefix(PrefixDeclarations prefixes)

      Set the Prefix declarations of this query
      Parameters:
        `prefixes` - the `PrefixDeclarations` to set
      Returns:
        this

    - #### getQueryString

          public String getQueryString()

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

    - #### appendNamedTriplesTemplates

          protected void appendNamedTriplesTemplates(StringBuilder queryString,
                                                     Optional<GraphName> graphName,
                                                     TriplesTemplate triples)

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