Sha256: 1b2bd3f0ba426c8a6962bd4edee70184521cc03f0f0eaf413797be47569294c9
Contents?: true
Size: 1.23 KB
Versions: 6
Compression:
Stored size: 1.23 KB
Contents
module SPARQL; module Algebra class Operator ## # The SPARQL GraphPattern `bgp` operator. # # Query with `graph_name` set to false. # # @example SPARQL Grammar # PREFIX : <http://example/> # SELECT * { ?s ?p ?o } # # @example SSE # (prefix ((: <http://example/>)) # (bgp (triple ?s ?p ?o))) # # @example SPARQL Grammar (sparql-star) # PREFIX : <http://example.com/ns#> # SELECT * {<< :a :b :c >> :p1 :o1.} # # @example SSE (sparql-star) # (prefix ((: <http://example.com/ns#>)) # (bgp (triple (qtriple :a :b :c) :p1 :o1))) # # @see https://www.w3.org/TR/sparql11-query/#sparqlAlgebra class BGP < Operator NAME = [:bgp] ## # A `graph` is an RDF::Query with a graph_name. # # @overload self.new(*patterns) # @param [Array<RDF::Query::Pattern>] patterns # @yield [solution] # each matching solution # @yieldparam [RDF::Query::Solution] solution # @yieldreturn [void] ignored # @return [RDF::Query] def self.new(*patterns, **options, &block) RDF::Query.new(*patterns, graph_name: false, &block) end end # BGP end # Operator end; end # SPARQL::Algebra
Version data entries
6 entries across 6 versions & 1 rubygems