class RDF::List

Public Instance Methods

to_sxp(**options) click to toggle source

Returns an S-Expression (SXP) representation

@return [String]

# File lib/rdf/n3/extensions.rb, line 36
def to_sxp(**options)
  to_a.to_sxp_bin.to_sxp(**options)
end
to_sxp_bin() click to toggle source

Transform Statement into an SXP @return [Array]

# File lib/rdf/n3/extensions.rb, line 28
def to_sxp_bin
  to_a.to_sxp_bin
end
variable?() click to toggle source

A list is variable if any of its members are variable?

@return [Boolean]

# File lib/rdf/n3/extensions.rb, line 22
def variable?
  to_a.any?(&:variable?)
end