Class GraphPatternNotTriples
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.graphpattern.GraphPatternNotTriples
- All Implemented Interfaces:
QueryElement, GraphPattern
-
Method Summary
Modifier and TypeMethodDescriptionand(GraphPattern... patterns) LikeGraphPattern.and(GraphPattern...), but mutates and returns this instancefilter(Expression<?> constraint) LikeGraphPattern.filter(Expression), but mutates and returns this instanceLikeGraphPattern.from(GraphName), but mutates and returns this instancebooleanisEmpty()minus(GraphPattern... patterns) LikeGraphPattern.minus(GraphPattern...), but mutates and returns this instanceoptional()LikeGraphPattern.optional(), but mutates and returns this instanceoptional(boolean isOptional) LikeGraphPattern.optional(boolean), but mutates and returns this instanceunion(GraphPattern... patterns) LikeGraphPattern.union(GraphPattern...), but mutates and returns this instanceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GraphPattern
filterExists, filterExists, filterNotExists, valuesModifier and TypeMethodDescriptiondefault GraphPatternfilterExists(boolean exists, GraphPattern... patterns) Create anEXISTSorNOT EXISTSfilter expression with the given patterns based on theexistsparamater and add it to this graph pattern (converting this to a group graph pattern in the process)default GraphPatternfilterExists(GraphPattern... patterns) Create anEXISTS{}filter expression with the given graph patterns and add it to this graph pattern (converting this to a group graph pattern in the process):default GraphPatternfilterNotExists(GraphPattern... patterns) Create aNOT EXISTS{}filter expression with the given graph patterns and add it to this graph pattern (converting this to a group graph pattern in the process):default GraphPatternvalues(Consumer<Values.VariablesBuilder> valuesConfigurer)
-
Method Details
-
and
LikeGraphPattern.and(GraphPattern...), but mutates and returns this instance- Specified by:
andin interfaceGraphPattern- Parameters:
patterns- the patterns to add- Returns:
- this
- See Also:
-
union
LikeGraphPattern.union(GraphPattern...), but mutates and returns this instance- Specified by:
unionin interfaceGraphPattern- Parameters:
patterns- the patterns to add- Returns:
- this
- See Also:
-
optional
LikeGraphPattern.optional(), but mutates and returns this instance- Specified by:
optionalin interfaceGraphPattern- Returns:
- this
- See Also:
-
optional
LikeGraphPattern.optional(boolean), but mutates and returns this instance- Specified by:
optionalin interfaceGraphPattern- Parameters:
isOptional- if this graph pattern should be optional or not- Returns:
- this
- See Also:
-
filter
LikeGraphPattern.filter(Expression), but mutates and returns this instance- Specified by:
filterin interfaceGraphPattern- Parameters:
constraint- the filter constraint- Returns:
- this
- See Also:
-
minus
LikeGraphPattern.minus(GraphPattern...), but mutates and returns this instance- Specified by:
minusin interfaceGraphPattern- Parameters:
patterns- the patterns to construct theMINUSgraph pattern with- Returns:
- this
- See Also:
-
from
LikeGraphPattern.from(GraphName), but mutates and returns this instance- Specified by:
fromin interfaceGraphPattern- Parameters:
name- the name to specify- Returns:
- this
- See Also:
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceGraphPattern- Returns:
- if this pattern is a collection of GraphPatterns (ie., Group or Alternative patterns), returns if the collection contains any patterns
-
getQueryString
- Specified by:
getQueryStringin interfaceQueryElement- Returns:
- the String representing the SPARQL syntax of this element
-