Class UpdateQuery<T extends UpdateQuery<T>>
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.core.query.UpdateQuery<T>
-
- Type Parameters:
T
- The type of update query. Used to support fluency.
- All Implemented Interfaces:
QueryElement
- Direct Known Subclasses:
ModifyQuery
,UpdateDataQuery
abstract class UpdateQuery<T extends UpdateQuery<T>> extends java.lang.Object implements QueryElement
A SPARQL Update query- See Also:
- SPARQL Update Query
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Optional<Base>
base
private java.util.Optional<PrefixDeclarations>
prefixes
-
Constructor Summary
Constructors Constructor Description UpdateQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
appendNamedTriplesTemplates(java.lang.StringBuilder queryString, java.util.Optional<GraphName> graphName, TriplesTemplate triples)
T
base(IRI iri)
Set the base IRI of this queryT
base(Base base)
Set the Base clause of this queryT
base(Iri iri)
Set the base IRI of this queryprotected abstract java.lang.String
getQueryActionString()
java.lang.String
getQueryString()
T
prefix(Namespace... namespaces)
Add prefix declarations to this queryT
prefix(Prefix... prefixes)
Add prefix declarations to this queryT
prefix(PrefixDeclarations prefixes)
Set the Prefix declarations of this query
-
-
-
Field Detail
-
base
private java.util.Optional<Base> base
-
prefixes
private java.util.Optional<PrefixDeclarations> prefixes
-
-
Method Detail
-
base
public T base(Iri iri)
Set the base IRI of this query- Parameters:
iri
- the base IRI- Returns:
- this
-
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
- theBase
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(Namespace... namespaces)
Add prefix declarations to this query- Parameters:
namespaces
- the namespaces to use for prefixes- Returns:
-
prefix
public T prefix(PrefixDeclarations prefixes)
Set the Prefix declarations of this query- Parameters:
prefixes
- thePrefixDeclarations
to set- Returns:
- this
-
getQueryActionString
protected abstract java.lang.String getQueryActionString()
-
getQueryString
public java.lang.String getQueryString()
- Specified by:
getQueryString
in interfaceQueryElement
- Returns:
- the String representing the SPARQL syntax of this element
-
appendNamedTriplesTemplates
protected void appendNamedTriplesTemplates(java.lang.StringBuilder queryString, java.util.Optional<GraphName> graphName, TriplesTemplate triples)
-
-