You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use RDF::Util::File.open_file for retrieving remote contexts; this enables the use of HTTP caching if RestClient is included.
* When opening a context, make sure options are passed to documentLoader, but exclude 'Cache-Control' directive. This ensures that frequently accessed contexts can be cached, even if the referencing document isn't cached.
* Added :stream option to JSON::LD::Writer to write out blocks where context and subject are the same. If quads come sorted by context and subject, this dramatically improves write performance by avoiding core algorithms. (use --stream option to jsonld CLI).
* For API#initialize, set context to link header only if the document doesn't define a context, and one is not passed.
* Define Context#merge and Context#merge!
* Relax absolute IRI validation in context unless :validate flag is set.
* Recover from bad JSON/RDF serialization in debug messages, typically due to UTF-8 errors.
* Ignore input header options when requesting remote files to ensure property Accept sequence is used.
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,12 @@ JSON::LD can now be used to create a _context_ from an RDFS/OWL definition, and
13
13
14
14
Install with `gem install json-ld`
15
15
16
+
### JSON-LD Streaming Profile
17
+
This gem implements an optimized streaming writer used for generating JSON-LD from large repositories. Such documents result in the JSON-LD Streaming Profile:
18
+
19
+
* Each statement written as a separate node in expanded/flattened form.
20
+
* RDF Lists are written as separate nodes using `rdf:first` and `rdf:rest` properties.
21
+
16
22
## Examples
17
23
18
24
require 'rubygems'
@@ -165,7 +171,7 @@ Install with `gem install json-ld`
0 commit comments