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

Version Path
sparql-1.1.1 lib/sparql/algebra/operator/bgp.rb
sparql-1.1.0 lib/sparql/algebra/operator/bgp.rb
sparql-1.1.0p0 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.8 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.7 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.6 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.5 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.4 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.3 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.2 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.1 lib/sparql/algebra/operator/bgp.rb
sparql-1.0.0 lib/sparql/algebra/operator/bgp.rb
sparql-0.3.3 lib/sparql/algebra/operator/bgp.rb
sparql-0.3.2 lib/sparql/algebra/operator/bgp.rb
sparql-0.3.1 lib/sparql/algebra/operator/bgp.rb