Sha256: 13b13eea7d2cdea047fdee29cc656aa7b3f7d5067c339cdf102a97a475592e10
Contents?: true
Size: 875 Bytes
Versions: 3
Compression:
Stored size: 875 Bytes
Contents
module SPARQL; module Algebra class Operator ## # The SPARQL GraphPattern `bgp` operator. # # Query with `graph_name` set to false. # # @example # (prefix ((: <http://example/>)) # (bgp (triple ?s ?p ?o))) # # @see http://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, &block) RDF::Query.new(*(patterns + [{graph_name: false}]), &block) end end # BGP end # Operator end; end # SPARQL::Algebra
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sparql-2.0.0 | lib/sparql/algebra/operator/bgp.rb |
sparql-2.0.0.beta2 | lib/sparql/algebra/operator/bgp.rb |
sparql-2.0.0.beta1 | lib/sparql/algebra/operator/bgp.rb |