module RDF::Term

Public Instance Methods

as_datetime() click to toggle source

Parse the value as a dateTime literal, or return now.

@return [RDF::Literal::DateTime]

# File lib/rdf/n3/extensions.rb, line 78
def as_datetime
  RDF::Literal::DateTime.new(DateTime.now)
end
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 70
def as_number
  RDF::Literal(0)
end
sameTerm?(other) click to toggle source

Is this the same term? Like ‘#eql?`, but no variable matching

# File lib/rdf/n3/extensions.rb, line 62
def sameTerm?(other)
  eql?(other)
end