public interface GraphPattern extends QueryElement
Modifier and Type | Method and Description |
---|---|
default GraphPattern |
and(GraphPattern... patterns)
Convert this graph pattern into a group graph pattern, combining this graph pattern with the given patterns:
|
default GraphPattern |
filter(Expression<?> constraint)
Convert this graph pattern into a group graph pattern and add a filter:
|
default GraphPattern |
filterExists(boolean exists,
GraphPattern... patterns)
Create an
EXISTS or NOT EXISTS filter expression with the given patterns based on the
exists paramater and add it to this graph pattern (converting this to a group graph pattern in the
process) |
default GraphPattern |
filterExists(GraphPattern... patterns)
Create an
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 GraphPattern |
filterNotExists(GraphPattern... patterns)
Create a
NOT 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 GraphPattern |
from(GraphName name)
Convert this graph pattern into a named group graph pattern:
|
default boolean |
isEmpty() |
default GraphPattern |
minus(GraphPattern... patterns)
Create a
MINUS graph pattern with the given graph patterns and add it to this graph pattern
(converting this to a group graph pattern in the process): |
default GraphPattern |
optional()
Convert this graph pattern into an optional group graph pattern:
|
default GraphPattern |
optional(boolean isOptional)
Specify if this graph pattern should be optional.
|
default GraphPattern |
union(GraphPattern... patterns)
Convert this graph pattern into an alternative graph pattern, combining this graph pattern with the given
patterns:
|
getQueryString
default GraphPattern and(GraphPattern... patterns)
{ thisPattern . pattern1 . pattern2 . ... patternN }
patterns
- the patterns to addGraphPattern
instancedefault GraphPattern union(GraphPattern... patterns)
{ { thisPattern } UNION { pattern1 } UNION { pattern2 } UNION ... { patternN } }
patterns
- the patterns to addGraphPattern
instancedefault GraphPattern optional()
OPTIONAL {thisPattern}
GraphPattern
instancedefault GraphPattern optional(boolean isOptional)
NOTE: This converts this graph pattern into a group graph pattern.
isOptional
- if this graph pattern should be optional or notGraphPattern
instancedefault GraphPattern filter(Expression<?> constraint)
{ thisPattern FILTER { constraint } }
constraint
- the filter constraintGraphPattern
instancedefault GraphPattern filterExists(GraphPattern... patterns)
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): { thisPattern FILTER EXISTS { patterns } }
patterns
- the patterns to pass as arguments to the EXISTS
expressionGraphPattern
instancedefault GraphPattern filterNotExists(GraphPattern... patterns)
NOT 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): { thisPattern FILTER NOT EXISTS { patterns } }
patterns
- the patterns to pass as arguments to the NOT EXISTS
expressionGraphPattern
instancedefault GraphPattern filterExists(boolean exists, GraphPattern... patterns)
EXISTS
or NOT EXISTS
filter expression with the given patterns based on the
exists
paramater and add it to this graph pattern (converting this to a group graph pattern in the
process)exists
- if the filter should ensure the patterns exist or notpatterns
- the patterns to pass to the filterGraphPattern
instancedefault GraphPattern minus(GraphPattern... patterns)
MINUS
graph pattern with the given graph patterns and add it to this graph pattern
(converting this to a group graph pattern in the process): { thisPattern MINUS { patterns } }
patterns
- the patterns to construct the MINUS
graph pattern withGraphPattern
instancedefault GraphPattern from(GraphName name)
GRAPH graphName { thisPattern }
name
- the name to specifyGraphPattern
instancedefault boolean isEmpty()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.