Interface SPARQLGroupPattern
- All Superinterfaces:
Query
,SPARQLGraphPattern
- All Known Implementing Classes:
SPARQLGroupPatternImpl
A SPARQL group pattern represents a collection of SPARQL graph patterns
for which the results are meant to be joined. Hence, when considering an
algebraic representation of SPARQL queries, the algebraic operator that
corresponds to such a group pattern is a multiway join.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of graph patterns that are combined in this group pattern.Returns all graph patterns that are combined in this group pattern.getSubPatterns
(int i) Returns the i-th of the graph patterns that are combined in this group pattern, where i starts at index 0 (zero).
-
Method Details
-
getNumberOfSubPatterns
int getNumberOfSubPatterns()Returns the number of graph patterns that are combined in this group pattern. -
getSubPatterns
Iterable<SPARQLGraphPattern> getSubPatterns()Returns all graph patterns that are combined in this group pattern. -
getSubPatterns
Returns the i-th of the graph patterns that are combined in this group pattern, where i starts at index 0 (zero). If this group pattern has fewer sub-patterns, then anIndexOutOfBoundsException
will be thrown.- Throws:
IndexOutOfBoundsException
-