Module: RDF::JSON::Extensions::Node

Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-json-1af65b89b732/lib/rdf/json/extensions.rb

Overview

RDF/JSON extensions for RDF::Node.

Instance Method Summary collapse

Instance Method Details

#to_rdf_jsonHash

Returns the RDF/JSON representation of this blank node.

Returns:



49
50
51
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/rdf-json-1af65b89b732/lib/rdf/json/extensions.rb', line 49

def to_rdf_json
  {:type => :bnode, :value => to_s}
end