class RDF::Statement
Public Instance Methods
executable?()
click to toggle source
# File lib/sparql/algebra/extensions.rb, line 378 def executable?; false; end
optimize(**options)
click to toggle source
A duplicate of this Statement
.
@return [RDF::Statement] a copy of `self` @see SPARQL::Algebra::Expression#optimize
# File lib/sparql/algebra/extensions.rb, line 374 def optimize(**options) self.dup end
to_sxp()
click to toggle source
Returns an S-Expression (SXP) representation
@return [String]
# File lib/sparql/algebra/extensions.rb, line 365 def to_sxp to_sxp_bin.to_sxp end
to_sxp_bin()
click to toggle source
Transform Statement
Pattern into an SXP @return [Array]
# File lib/sparql/algebra/extensions.rb, line 351 def to_sxp_bin [ (has_graph? ? :quad : :triple), (:inferred if inferred?), subject, predicate, object, graph_name ].compact.map(&:to_sxp_bin) end