Class GraphPatternNotTriples
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.graphpattern.GraphPatternNotTriples
-
- All Implemented Interfaces:
QueryElement
,GraphPattern
public class GraphPatternNotTriples extends Object implements GraphPattern
-
-
Method Summary
-
Methods 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 Detail
-
and
public GraphPatternNotTriples and(GraphPattern... patterns)
LikeGraphPattern.and(GraphPattern...)
, but mutates and returns this instance- Specified by:
and
in interfaceGraphPattern
- Parameters:
patterns
- the patterns to add- Returns:
- this
- See Also:
- SPARQL Group Graph Pattern
-
union
public GraphPatternNotTriples union(GraphPattern... patterns)
LikeGraphPattern.union(GraphPattern...)
, but mutates and returns this instance- Specified by:
union
in interfaceGraphPattern
- Parameters:
patterns
- the patterns to add- Returns:
- this
- See Also:
- SPARQL Alternative Graph Pattern
-
optional
public GraphPatternNotTriples optional()
LikeGraphPattern.optional()
, but mutates and returns this instance- Specified by:
optional
in interfaceGraphPattern
- Returns:
- this
- See Also:
- SPARQL Optional Graph Patterns
-
optional
public GraphPatternNotTriples optional(boolean isOptional)
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:
- SPARQL Optional Graph Patterns
-
filter
public GraphPatternNotTriples filter(Expression<?> constraint)
LikeGraphPattern.filter(Expression)
, but mutates and returns this instance- Specified by:
filter
in interfaceGraphPattern
- Parameters:
constraint
- the filter constraint- Returns:
- this
- See Also:
- SPARQL Filter
-
minus
public GraphPatternNotTriples minus(GraphPattern... patterns)
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:
- SPARQL MINUS Graph Pattern
-
from
public GraphPatternNotTriples from(GraphName name)
LikeGraphPattern.from(GraphName)
, but mutates and returns this instance- Specified by:
from
in interfaceGraphPattern
- Parameters:
name
- the name to specify- Returns:
- this
- See Also:
- Specifying Datasets in SPARQL Queries
-
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
public String getQueryString()
- Specified by:
getQueryString
in interfaceQueryElement
- Returns:
- the String representing the SPARQL syntax of this element
-
-