public class SimpleGroupGraphPattern extends Object implements GroupGraphPattern
GroupGraphPattern
.Constructor and Description |
---|
SimpleGroupGraphPattern() |
Modifier and Type | Method and Description |
---|---|
void |
addConstraint(Expression constraint)
Adds a constraint to the
GroupGraphPattern . |
void |
addGraphPattern(GraphPattern graphPattern)
Adds a
GraphPattern to the group. |
void |
addMinusGraphPattern(GroupGraphPattern subtrahend) |
void |
addOptionalGraphPattern(GroupGraphPattern optional)
Adds an
OptionalGraphPattern to the group consisting of
a main ImmutableGraph pattern and the specified GroupGraphPattern as
the optional pattern. |
void |
addPropertyPathPatterns(Set<PropertyPathPattern> propertyPathPatterns)
If the last
GraphPattern added to the group is not a
SimplePathSupportedBasicGraphPattern , then creates one containing the
specified PropertyPathPattern s and adds it to the group. |
void |
addTriplePatterns(Set<TriplePattern> triplePatterns)
If the last
GraphPattern added to the group is not a
SimpleBasicGraphPattern , then creates one containing the
specified TriplePattern s and adds it to the group. |
void |
endLastBasicGraphPattern() |
List<Expression> |
getFilter() |
Set<GraphPattern> |
getGraphPatterns() |
Set<IRI> |
getReferredGraphs() |
SelectQuery |
getSubSelect() |
boolean |
isSubSelect() |
void |
setSubSelect(SelectQuery subSelect) |
public boolean isSubSelect()
isSubSelect
in interface GroupGraphPattern
SelectQuery
, false otherwise.public SelectQuery getSubSelect()
getSubSelect
in interface GroupGraphPattern
SelectQuery
, null otherwise.public Set<GraphPattern> getGraphPatterns()
getGraphPatterns
in interface GroupGraphPattern
SelectQuery
, otherwise
a set of all patterns, ANDed together.public List<Expression> getFilter()
getFilter
in interface GroupGraphPattern
SelectQuery
, otherwise
a list of filter expressions for all patterns in the group if any.public void setSubSelect(SelectQuery subSelect)
public void addGraphPattern(GraphPattern graphPattern)
GraphPattern
to the group.graphPattern
- the GraphPattern to be added.public void addConstraint(Expression constraint)
GroupGraphPattern
.constraint
- an Expression
as the constraint to be added.public void endLastBasicGraphPattern()
public void addPropertyPathPatterns(Set<PropertyPathPattern> propertyPathPatterns)
GraphPattern
added to the group is not a
SimplePathSupportedBasicGraphPattern
, then creates one containing the
specified PropertyPathPattern
s and adds it to the group.
Otherwise, adds the specified PropertyPathPattern
s to the last
added SimplePathSupportedBasicGraphPattern
in the group.propertyPathPatterns
- a set of PropertyPathPattern
s to be added into a
SimplePathSupportedBasicGraphPattern
of the group.public void addTriplePatterns(Set<TriplePattern> triplePatterns)
GraphPattern
added to the group is not a
SimpleBasicGraphPattern
, then creates one containing the
specified TriplePattern
s and adds it to the group.
Otherwise, adds the specified TriplePattern
s to the last
added SimpleBasicGraphPattern
in the group.triplePatterns
- a set of TriplePattern
s to be added into a
SimpleBasicGraphPattern
of the group.public void addOptionalGraphPattern(GroupGraphPattern optional)
OptionalGraphPattern
to the group consisting of
a main ImmutableGraph pattern and the specified GroupGraphPattern
as
the optional pattern.
The main ImmutableGraph pattern is taken from the last added GraphPattern
in the group, if it exists. Otherwise, the main ImmutableGraph pattern is null.optional
- a GroupGraphPattern
as the optional pattern of
an OptionalGraphPattern
.public void addMinusGraphPattern(GroupGraphPattern subtrahend)
public Set<IRI> getReferredGraphs()
getReferredGraphs
in interface GroupGraphPattern
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.