Module: RDF::JSON::Extensions::URI

Defined in:
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-json-3f36e90af14f/lib/rdf/json/extensions.rb

Overview

RDF/JSON extensions for RDF::URI.

Instance Method Summary collapse

Instance Method Details

#to_rdf_jsonHash

Returns the RDF/JSON representation of this URI reference.

Returns:



61
62
63
# File 'vendor/bundler/ruby/2.4.0/bundler/gems/rdf-json-3f36e90af14f/lib/rdf/json/extensions.rb', line 61

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