Class: RDF::Node
- Inherits:
-
Object
- Object
- RDF::Node
- Defined in:
- lib/rdf/n3/extensions.rb
Instance Method Summary collapse
-
#to_ndvar(scope) ⇒ Object
Transform to a nondistinguished exisetntial variable in a formula scope.
Instance Method Details
#to_ndvar(scope) ⇒ Object
Transform to a nondistinguished exisetntial variable in a formula scope
return [RDF::Query::Variable]
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 |