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

Inherits:
SPARQL::Algebra::Operator show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/sparql-bb59900f675b/lib/sparql/algebra/operator/bgp.rb

Overview

The SPARQL GraphPattern bgp operator.

Query with graph_name 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, IsURI, URI

Instance Attribute Summary

Attributes inherited from SPARQL::Algebra::Operator

#operands

Class Method Summary collapse

Methods inherited from SPARQL::Algebra::Operator

#aggregate?, arity, #base_uri, base_uri, base_uri=, #boolean, #constant?, #each_descendant, #eql?, #evaluatable?, evaluate, #executable?, #first_ancestor, for, #initialize, #inspect, #ndvars, #node?, #operand, #optimize, #parent, #parent=, prefixes, #prefixes, prefixes=, #rewrite, #to_binary, #to_sxp, #to_sxp_bin, #validate!, #variable?, #vars

Methods included from Expression

cast, #constant?, #evaluate, extension, extensions, for, #invalid?, #node?, open, #optimize, parse, register_extension, #to_sxp_bin, #valid?, #validate!, #variable?

Constructor Details

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

Class Method Details

.self.new(*patterns) ⇒ RDF::Query

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

Parameters:

Yields:

  • (solution)

    each matching solution

Yield Parameters:

Yield Returns:

  • (void)

    ignored

Returns:



25
26
27
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/sparql-bb59900f675b/lib/sparql/algebra/operator/bgp.rb', line 25

def self.new(*patterns, &block)
  RDF::Query.new(*patterns, graph_name: false, &block)
end