Class: SPARQL::Algebra::Operator::BGP

Inherits:
SPARQL::Algebra::Operator show all
Defined in:
lib/sparql/algebra/operator/bgp.rb

Overview

The SPARQL GraphPattern bgp operator.

Query with context set to false.

Examples:

(prefix ((: <http://example/>))
  (bgp (triple ?s ?p ?o)))

See Also:

Constant Summary

NAME =
[:bgp]

Constants inherited from SPARQL::Algebra::Operator

ARITY

Instance Attribute Summary

Attributes inherited from SPARQL::Algebra::Operator

#operands, #options

Class Method Summary collapse

Methods inherited from SPARQL::Algebra::Operator

arity, base_uri, #base_uri, base_uri=, #boolean, #constant?, #eql?, #evaluatable?, evaluate, #executable?, for, #initialize, #inspect, #operand, #optimize, prefixes, #prefixes, prefixes=, #to_sse, #to_sxp, #variable?

Methods included from Evaluatable

#apply, #evaluate, #memoize

Methods included from Expression

cast, #constant?, #evaluate, for, open, #optimize, parse, #to_sse, #variable?

Constructor Details

This class inherits a constructor from SPARQL::Algebra::Operator

Class Method Details

.new(*patterns) ⇒ RDF::Query

A graph is an RDF::Query with a context.



21
22
23
# File 'lib/sparql/algebra/operator/bgp.rb', line 21

def self.new(*patterns)
  RDF::Query.new(*patterns, :context => false)
end