Sha256: cadc2887a385d6a536fd98c3cd3e94fc76085742272e3a48d951cac5ec779107
Contents?: true
Size: 706 Bytes
Versions: 15
Compression:
Stored size: 706 Bytes
Contents
module SPARQL; module Algebra class Operator ## # The SPARQL GraphPattern `bgp` operator. # # Query with `context` set to false. # # @example # (prefix ((: <http://example/>)) # (bgp (triple ?s ?p ?o))) # # @see http://www.w3.org/TR/rdf-sparql-query/#sparqlAlgebra class BGP < Operator NAME = [:bgp] ## # A `graph` is an RDF::Query with a context. # # @overload self.new(*patterns) # @param [Array<RDF::Query::Pattern>] patterns # @return [RDF::Query] def self.new(*patterns) RDF::Query.new(*(patterns + [{:context => false}])) end end # BGP end # Operator end; end # SPARQL::Algebra
Version data entries
15 entries across 15 versions & 1 rubygems