Class: RDF::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/rdf/n3/extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_ndvar(scope) ⇒ Object

Transform to a nondistinguished exisetntial variable in a formula scope

return [RDF::Query::Variable]

Parameters:



121
122
123
124
# File 'lib/rdf/n3/extensions.rb', line 121

def to_ndvar(scope)
  label = "#{id}_#{scope ? scope.id : 'base'}_undext"
  RDF::Query::Variable.new(label, existential: true, distinguished: false)
end