Module: RDF::JSON::Extensions::Statement
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/rdf-json-7d579de01769/lib/rdf/json/extensions.rb
Overview
RDF/JSON extensions for RDF::Statement
.
Instance Method Summary collapse
-
#to_rdf_json ⇒ Hash
Returns the RDF/JSON representation of this statement.
Instance Method Details
#to_rdf_json ⇒ Hash
Returns the RDF/JSON representation of this statement.
92 93 94 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-json-7d579de01769/lib/rdf/json/extensions.rb', line 92 def to_rdf_json {subject.to_s => {predicate.to_s => [object.to_rdf_json]}} end |