Module: RDF::Value

Defined in:
lib/rdf/n3/extensions.rb

Instance Method Summary collapse

Instance Method Details

#formula?Boolean

Returns true if self is a N3::Algebra::Formula.

Returns:

  • (Boolean)


46
47
48
# File 'lib/rdf/n3/extensions.rb', line 46

def formula?
  false
end

#to_ndvar(scope) ⇒ Object

By default, returns itself. Can be used for terms such as blank nodes to be turned into non-disinguished variables.

return [RDF::Query::Variable]

Parameters:



54
55
56
# File 'lib/rdf/n3/extensions.rb', line 54

def to_ndvar(scope)
  self
end