Class: RDF::Statement

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

Overview

Refinements on RDF::Statement

Instance Method Summary collapse

Instance Method Details

#evaluate(bindings, formulae:, **options) ⇒ RDF::Statement

As a statement is constant, this returns itself.

Parameters:

  • bindings (Hash{Symbol => RDF::Term})

    a query solution containing zero or more variable bindings

  • options (Hash{Symbol => Object})

    ({}) options passed from query

Returns:

See Also:

  • SPARQL::Algebra::Expression.evaluate


25
# File 'lib/rdf/n3/refinements.rb', line 25

def evaluate(bindings, formulae:, **options); end

#invalid?Boolean

Refines invalid? to allow literal subjects and BNode predicates.

Returns:

  • (Boolean)


9
# File 'lib/rdf/n3/refinements.rb', line 9

def invalid?; end

#valid?Boolean

Refines valid? to allow literal subjects and BNode predicates.

Returns:

  • (Boolean)


5
# File 'lib/rdf/n3/refinements.rb', line 5

def valid?; end

#validate!RDF::Value

Refines validate! to allow literal subjects and BNode predicates.

Returns:

Raises:

  • (ArgumentError)

    if the value is invalid



14
# File 'lib/rdf/n3/refinements.rb', line 14

def validate!; end