Class: RDF::Query::Solution

Inherits:
Object show all
Defined in:
lib/sparql/algebra/extensions.rb

Overview

Extensions for RDF::Query::Solution.

Instance Method Summary collapse

Instance Method Details

#to_sxp(prefixes: nil, base_uri: nil) ⇒ String

Transform Solution into an SXP

Parameters:

  • prefixes (Hash{Symbol => RDF::URI}) (defaults to: nil)

    (nil)

  • base_uri (RDF::URI) (defaults to: nil)

    (nil)

Returns:

  • (String)


641
642
643
# File 'lib/sparql/algebra/extensions.rb', line 641

def to_sxp(prefixes: nil, base_uri: nil)
  to_sxp_bin.to_sxp(prefixes: prefixes, base_uri: base_uri)
end

#to_sxp_binString

Returns the SXP representation of this object, defaults to self.

Returns:

  • (String)


632
633
634
# File 'lib/sparql/algebra/extensions.rb', line 632

def to_sxp_bin
  to_a.to_sxp_bin
end