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:
  • Field Details Link icon

  • Constructor Details Link icon

    • DeleteDataQuery Link icon

      public DeleteDataQuery()
  • Method Details Link icon

    • deleteData Link icon

      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 Link icon

      public DeleteDataQuery deleteData(TriplesTemplate triplesTemplate)
      Set this query's triples template
      Parameters:
      triplesTemplate - the TriplesTemplate instance to set
      Returns:
      this instance
    • from Link icon

      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 Link icon

      protected String getPrefix()
    • addTriples Link icon

      protected DeleteDataQuery addTriples(TriplePattern... triples)
    • setTriplesTemplate Link icon

      protected DeleteDataQuery setTriplesTemplate(TriplesTemplate triplesTemplate)
    • graph Link icon

      public DeleteDataQuery graph(GraphName graph)
    • getQueryActionString Link icon

      protected String getQueryActionString()
    • base Link icon

      public DeleteDataQuery base(Iri iri)
      Set the base IRI of this query
      Parameters:
      iri - the base IRI
      Returns:
      this
    • base Link icon

      public DeleteDataQuery base(IRI iri)
      Set the base IRI of this query
      Parameters:
      iri - the base IRI
      Returns:
      this
    • base Link icon

      public DeleteDataQuery base(Base base)
      Set the Base clause of this query
      Parameters:
      base - the Base clause to set
      Returns:
      this
    • prefix Link icon

      public DeleteDataQuery prefix(Prefix... prefixes)
      Add prefix declarations to this query
      Parameters:
      prefixes - the prefixes to add
      Returns:
      this
    • prefix Link icon

      public DeleteDataQuery prefix(Namespace... namespaces)
      Add prefix declarations to this query
      Parameters:
      namespaces - the namespaces to use for prefixes
      Returns:
    • prefix Link icon

      public DeleteDataQuery prefix(PrefixDeclarations prefixes)
      Set the Prefix declarations of this query
      Parameters:
      prefixes - the PrefixDeclarations to set
      Returns:
      this
    • getQueryString Link icon

      public String getQueryString()
      Specified by:
      getQueryString in interface QueryElement
      Returns:
      the String representing the SPARQL syntax of this element
    • appendNamedTriplesTemplates Link icon

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