Interface SPARQLGroupPattern

All Superinterfaces:
Query, SPARQLGraphPattern
All Known Implementing Classes:
SPARQLGroupPatternImpl

public interface SPARQLGroupPattern extends SPARQLGraphPattern
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 Type
    Method
    Description
    int
    Returns the number of graph patterns that are combined in this group pattern.
    Returns all graph patterns that are combined in this group pattern.
    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

      SPARQLGraphPattern getSubPatterns(int i) throws IndexOutOfBoundsException
      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 an IndexOutOfBoundsException will be thrown.
      Throws:
      IndexOutOfBoundsException