lib/sparql/algebra/operator/graph.rb in sparql-3.1.8 vs lib/sparql/algebra/operator/graph.rb in sparql-3.2.0
- old
+ new
@@ -3,9 +3,22 @@
##
# The SPARQL GraphPattern `graph` operator.
#
# This is a wrapper to add a `graph_name` to the query, or an array of statements.
#
+ # [58] GraphGraphPattern ::= 'GRAPH' VarOrIri GroupGraphPattern
+ #
+ # @example SPARQL Grammar
+ # PREFIX : <http://example/>
+ # SELECT * {
+ # GRAPH ?g { ?s ?p ?o }
+ # }
+ #
+ # @example SSE
+ # (prefix ((: <http://example/>))
+ # (graph ?g
+ # (bgp (triple ?s ?p ?o))))
+ #
# @example of a query
# (prefix ((: <http://example/>))
# (graph ?g
# (bgp (triple ?s ?p ?o))))
#