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 QueryElementCollection
elements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcopy(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 QueryElementCollection
addElements, addElements, getQueryString, isEmptyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GraphPattern
and, filter, filterExists, filterExists, filterNotExists, from, isEmpty, minus, optional, optionalMethods inherited from interface 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: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:
-