Class: RDF::Query::Variable
- Inherits:
-
Object
- Object
- RDF::Query::Variable
- Defined in:
- lib/rdf/n3/refinements.rb,
lib/rdf/n3/extensions.rb
Overview
Refinements on RDF::Query::Variable
Instance Method Summary collapse
-
#as_number ⇒ RDF::Literal::Numeric
Parse the value as a numeric literal, or return 0.
-
#evaluate(bindings, formulae:, **options) ⇒ RDF::Term
If variable is bound, replace with the bound value, otherwise, returns itself.
-
#sameTerm?(other) ⇒ Boolean
True if the other is the same variable.
Instance Method Details
#as_number ⇒ RDF::Literal::Numeric
Parse the value as a numeric literal, or return 0.
194 195 196 |
# File 'lib/rdf/n3/extensions.rb', line 194 def as_number RDF::Literal(0) end |
#evaluate(bindings, formulae:, **options) ⇒ RDF::Term
If variable is bound, replace with the bound value, otherwise, returns itself
12 |
# File 'lib/rdf/n3/refinements.rb', line 12 def evaluate(bindings, formulae:, **); end |