Module: RDF::JSON::Extensions
- Defined in:
- lib/rdf/json/extensions.rb
Overview
RDF/JSON extensions for RDF.rb core classes and mixins.
Classes are extended with two new instance methods:
#to_rdf_jsonreturns the RDF/JSON representation as aHashobject.#to_rdf_json.to_jsonreturns the serialized RDF/JSON representation as a string.
Defined Under Namespace
Modules: Enumerable, Graph, Literal, Node, Repository, Statement, Transaction, URI
Class Method Summary collapse
Class Method Details
.install! ⇒ Object
36 37 38 39 40 |
# File 'lib/rdf/json/extensions.rb', line 36 def self.install! self.constants.each do |klass| RDF.const_get(klass).send(:include, self.const_get(klass)) end end |