Sha256: 9b8b77c5e684032627e9972531f0638c8ea602ea8b93e1adddae97d30f4d0ce8
Contents?: true
Size: 869 Bytes
Versions: 3
Compression:
Stored size: 869 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 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, &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-3.1.4 | lib/sparql/algebra/operator/bgp.rb |
sparql-3.1.3 | lib/sparql/algebra/operator/bgp.rb |
sparql-3.1.2 | lib/sparql/algebra/operator/bgp.rb |