class RDF::Query

Public Instance Methods

to_sxp() click to toggle source

Transform Query into an Array form of an SXP

If Query is named, it's treated as a GroupGraphPattern, otherwise, a BGP

@return [Array]

# File lib/sxp/writer.rb, line 196
def to_sxp
  res = [:bgp] + patterns
  (named? ? [:graph, graph_name, res] : res).to_sxp
end