Class: RDF::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/json/ld/extensions.rb,
lib/json/ld/extensions.rb

Instance Method Summary collapse

Instance Method Details

#+(value) ⇒ Object

Odd case of appending to a BNode identifier


6
7
8
# File 'lib/json/ld/extensions.rb', line 6

def +(value)
  Node.new(id + value.to_s)
end

#valid_extended?Boolean

Validate extended RDF

Returns:

  • (Boolean)

30
31
32
# File 'lib/json/ld/extensions.rb', line 30

def valid_extended?
  self.valid?
end