Module: JSON::LD
- Defined in:
- lib/json/ld.rb,
lib/json/ld/format.rb,
lib/json/ld/reader.rb,
lib/json/ld/writer.rb,
lib/json/ld/normalize.rb
Overview
**‘JSON::LD`** is a JSON-LD plugin for RDF.rb.
Defined Under Namespace
Modules: VERSION Classes: Format, JSONLD, Normalize, Reader, Writer
Constant Summary collapse
- DEFAULT_CONTEXT =
Default context
{ '@coerce' => { '@iri' => ['@type'] } }.freeze
- DEFAULT_COERCE =
Default type coercion, in property => datatype order
{ '@type' => '@iri', RDF.first.to_s => false, # Make sure @coerce isn't generated for this RDF.rest.to_s => '@iri', }.freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#normalize(graph) ⇒ Object
Normalize a graph, returning a new graph with node names normalized.
Class Method Details
.debug=(value) ⇒ Object
47 |
# File 'lib/json/ld.rb', line 47 def self.debug=(value); @debug = value; end |
.debug? ⇒ Boolean
46 |
# File 'lib/json/ld.rb', line 46 def self.debug?; @debug; end |