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:
andin 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:
unionin 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:
optionalin 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:
optionalin 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:
filterin 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:
minusin interfaceGraphPattern- Parameters:
patterns- the patterns to construct theMINUSgraph 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:
fromin interfaceGraphPattern- Parameters:
name- the name to specify- Returns:
- this
- See Also:
- Specifying Datasets in SPARQL Queries
-
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
public String getQueryString()
- Specified by:
getQueryStringin interfaceQueryElement- Returns:
- the String representing the SPARQL syntax of this element
-
-