module RDF::JSON::Extensions::Statement

RDF/JSON extensions for `RDF::Statement`.

Public Instance Methods

to_rdf_json() click to toggle source

Returns the RDF/JSON representation of this statement.

@return [Hash]

# File lib/rdf/json/extensions.rb, line 92
def to_rdf_json
  {subject.to_s => {predicate.to_s => [object.to_rdf_json]}}
end