module RDF::Term
Public Instance Methods
Source
# File lib/rdf/n3/extensions.rb, line 78 def as_datetime RDF::Literal::DateTime.new(DateTime.now) end
Parse the value as a dateTime literal, or return now.
@return [RDF::Literal::DateTime]
Source
# File lib/rdf/n3/extensions.rb, line 70 def as_number RDF::Literal(0) end
Parse the value as a numeric literal, or return 0.
@return [RDF::Literal::Numeric]
Source
# File lib/rdf/n3/extensions.rb, line 62 def sameTerm?(other) eql?(other) end
Is this the same term? Like ‘#eql?`, but no variable matching