Object
Transform Query into an Array form of an SXP
Query
Array
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