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 instanceboolean
isEmpty()
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.sparqlbuilder.graphpattern.GraphPattern
filterExists, filterExists, filterNotExists
-
Method Details
-
and
LikeGraphPattern.and(GraphPattern...)
, but mutates and returns this instance- Specified by:
and
in interfaceGraphPattern
- Parameters:
patterns
- the patterns to add- Returns:
- this
- See Also:
-
union
LikeGraphPattern.union(GraphPattern...)
, but mutates and returns this instance- Specified by:
union
in interfaceGraphPattern
- Parameters:
patterns
- the patterns to add- Returns:
- this
- See Also:
-
optional
LikeGraphPattern.optional()
, but mutates and returns this instance- Specified by:
optional
in interfaceGraphPattern
- Returns:
- this
- See Also:
-
optional
LikeGraphPattern.optional(boolean)
, but mutates and returns this instance- Specified by:
optional
in 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:
filter
in interfaceGraphPattern
- Parameters:
constraint
- the filter constraint- Returns:
- this
- See Also:
-
minus
LikeGraphPattern.minus(GraphPattern...)
, but mutates and returns this instance- Specified by:
minus
in interfaceGraphPattern
- Parameters:
patterns
- the patterns to construct theMINUS
graph pattern with- Returns:
- this
- See Also:
-
from
LikeGraphPattern.from(GraphName)
, but mutates and returns this instance- Specified by:
from
in interfaceGraphPattern
- Parameters:
name
- the name to specify- Returns:
- this
- See Also:
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in 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:
getQueryString
in interfaceQueryElement
- Returns:
- the String representing the SPARQL syntax of this element
-