Class AlternativeGraphPattern
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<GroupGraphPattern>
-
- org.eclipse.rdf4j.sparqlbuilder.graphpattern.AlternativeGraphPattern
-
- All Implemented Interfaces:
QueryElement,GraphPattern
class AlternativeGraphPattern extends QueryElementCollection<GroupGraphPattern> implements GraphPattern
A SPARQL Alternative Graph Pattern.- See Also:
- SPARQL Alternative Graph Patterns
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringDELIMETERprivate static java.lang.StringUNION-
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements
-
-
Constructor Summary
Constructors Constructor Description AlternativeGraphPattern()AlternativeGraphPattern(GraphPattern original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcopy(AlternativeGraphPattern original)AlternativeGraphPatternunion(GraphPattern... patterns)Convert this graph pattern into an alternative graph pattern, combining this graph pattern with the given patterns:-
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
addElements, addElements, getQueryString, isEmpty
-
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
and, filter, filterExists, filterExists, filterNotExists, from, isEmpty, minus, optional, optional
-
Methods inherited from interface org.eclipse.rdf4j.sparqlbuilder.core.QueryElement
getQueryString
-
-
-
-
Field Detail
-
UNION
private static final java.lang.String UNION
- See Also:
- Constant Field Values
-
DELIMETER
private static final java.lang.String DELIMETER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AlternativeGraphPattern
AlternativeGraphPattern()
-
AlternativeGraphPattern
AlternativeGraphPattern(GraphPattern original)
-
-
Method Detail
-
copy
private void copy(AlternativeGraphPattern original)
-
union
public AlternativeGraphPattern union(GraphPattern... patterns)
Description copied from interface:GraphPatternConvert this graph pattern into an alternative graph pattern, combining this graph pattern with the given patterns:
{ { thisPattern } UNION { pattern1 } UNION { pattern2 } UNION ... { patternN } }- Specified by:
unionin interfaceGraphPattern- Parameters:
patterns- the patterns to add- Returns:
- the new
GraphPatterninstance - See Also:
- SPARQL Alternative Graph Pattern
-
-