class RDF::Query::Variable

Public Instance Methods

as_number() click to toggle source

Parse the value as a numeric literal, or return 0.

@return [RDF::Literal::Numeric]

# File lib/rdf/n3/extensions.rb, line 194
def as_number
  RDF::Literal(0)
end
sameTerm?(other) click to toggle source

True if the other is the same variable

# File lib/rdf/n3/extensions.rb, line 186
def sameTerm?(other)
  other.is_a?(::RDF::Query::Variable) && name.eql?(other.name)
end