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:
-
Field Summary
FieldsFields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
copy
(AlternativeGraphPattern original) union
(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 Details
-
UNION
- See Also:
-
DELIMETER
- See Also:
-
-
Constructor Details
-
AlternativeGraphPattern
AlternativeGraphPattern() -
AlternativeGraphPattern
AlternativeGraphPattern(GraphPattern original)
-
-
Method Details
-
copy
-
union
Description copied from interface:GraphPattern
Convert 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:
union
in interfaceGraphPattern
- Parameters:
patterns
- the patterns to add- Returns:
- the new
GraphPattern
instance - See Also:
-