json-ld 3.1.3 → 3.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +138 -49
- data/VERSION +1 -1
- data/bin/jsonld +28 -31
- data/lib/json/ld.rb +8 -2
- data/lib/json/ld/api.rb +55 -38
- data/lib/json/ld/compact.rb +68 -40
- data/lib/json/ld/conneg.rb +1 -1
- data/lib/json/ld/context.rb +570 -521
- data/lib/json/ld/expand.rb +203 -84
- data/lib/json/ld/extensions.rb +4 -4
- data/lib/json/ld/flatten.rb +92 -9
- data/lib/json/ld/format.rb +21 -8
- data/lib/json/ld/frame.rb +8 -8
- data/lib/json/ld/from_rdf.rb +42 -19
- data/lib/json/ld/reader.rb +21 -11
- data/lib/json/ld/streaming_reader.rb +578 -0
- data/lib/json/ld/streaming_writer.rb +4 -4
- data/lib/json/ld/to_rdf.rb +11 -7
- data/lib/json/ld/utils.rb +13 -13
- data/lib/json/ld/writer.rb +12 -5
- data/spec/api_spec.rb +1 -1
- data/spec/compact_spec.rb +207 -3
- data/spec/context_spec.rb +4 -42
- data/spec/expand_spec.rb +631 -0
- data/spec/flatten_spec.rb +517 -1
- data/spec/from_rdf_spec.rb +181 -0
- data/spec/matchers.rb +1 -1
- data/spec/rdfstar_spec.rb +25 -0
- data/spec/reader_spec.rb +33 -34
- data/spec/spec_helper.rb +33 -0
- data/spec/streaming_reader_spec.rb +237 -0
- data/spec/suite_flatten_spec.rb +4 -0
- data/spec/suite_frame_spec.rb +7 -0
- data/spec/suite_helper.rb +25 -13
- data/spec/suite_to_rdf_spec.rb +1 -0
- data/spec/to_rdf_spec.rb +209 -3
- data/spec/writer_spec.rb +193 -0
- metadata +68 -63
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-ld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -297,7 +297,7 @@ dependencies:
|
|
297
297
|
- !ruby/object:Gem::Version
|
298
298
|
version: '0.9'
|
299
299
|
description: JSON::LD parses and serializes JSON-LD into RDF and implements expansion,
|
300
|
-
compaction and framing API interfaces.
|
300
|
+
compaction and framing API interfaces for the Ruby RDF.rb library suite.
|
301
301
|
email: public-linked-json@w3.org
|
302
302
|
executables:
|
303
303
|
- jsonld
|
@@ -324,6 +324,7 @@ files:
|
|
324
324
|
- lib/json/ld/html/rexml.rb
|
325
325
|
- lib/json/ld/reader.rb
|
326
326
|
- lib/json/ld/resource.rb
|
327
|
+
- lib/json/ld/streaming_reader.rb
|
327
328
|
- lib/json/ld/streaming_writer.rb
|
328
329
|
- lib/json/ld/to_rdf.rb
|
329
330
|
- lib/json/ld/utils.rb
|
@@ -339,9 +340,11 @@ files:
|
|
339
340
|
- spec/frame_spec.rb
|
340
341
|
- spec/from_rdf_spec.rb
|
341
342
|
- spec/matchers.rb
|
343
|
+
- spec/rdfstar_spec.rb
|
342
344
|
- spec/reader_spec.rb
|
343
345
|
- spec/resource_spec.rb
|
344
346
|
- spec/spec_helper.rb
|
347
|
+
- spec/streaming_reader_spec.rb
|
345
348
|
- spec/streaming_writer_spec.rb
|
346
349
|
- spec/suite_compact_spec.rb
|
347
350
|
- spec/suite_expand_spec.rb
|
@@ -409,7 +412,7 @@ homepage: https://github.com/ruby-rdf/json-ld
|
|
409
412
|
licenses:
|
410
413
|
- Unlicense
|
411
414
|
metadata: {}
|
412
|
-
post_install_message:
|
415
|
+
post_install_message:
|
413
416
|
rdoc_options: []
|
414
417
|
require_paths:
|
415
418
|
- lib
|
@@ -424,84 +427,86 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
424
427
|
- !ruby/object:Gem::Version
|
425
428
|
version: '0'
|
426
429
|
requirements: []
|
427
|
-
rubygems_version: 3.
|
428
|
-
signing_key:
|
430
|
+
rubygems_version: 3.2.3
|
431
|
+
signing_key:
|
429
432
|
specification_version: 4
|
430
433
|
summary: JSON-LD reader/writer for Ruby.
|
431
434
|
test_files:
|
432
|
-
- spec/spec_helper.rb
|
433
|
-
- spec/matchers.rb
|
434
435
|
- spec/api_spec.rb
|
435
|
-
- spec/
|
436
|
+
- spec/compact_spec.rb
|
437
|
+
- spec/conneg_spec.rb
|
436
438
|
- spec/context_spec.rb
|
439
|
+
- spec/expand_spec.rb
|
440
|
+
- spec/flatten_spec.rb
|
441
|
+
- spec/format_spec.rb
|
442
|
+
- spec/frame_spec.rb
|
437
443
|
- spec/from_rdf_spec.rb
|
438
|
-
- spec/
|
444
|
+
- spec/matchers.rb
|
445
|
+
- spec/rdfstar_spec.rb
|
439
446
|
- spec/reader_spec.rb
|
440
|
-
- spec/streaming_writer_spec.rb
|
441
447
|
- spec/resource_spec.rb
|
442
|
-
- spec/
|
443
|
-
- spec/
|
444
|
-
- spec/
|
445
|
-
- spec/frame_spec.rb
|
446
|
-
- spec/to_rdf_spec.rb
|
447
|
-
- spec/conneg_spec.rb
|
448
|
-
- spec/support/extensions.rb
|
449
|
-
- spec/suite_html_spec.rb
|
450
|
-
- spec/flatten_spec.rb
|
451
|
-
- spec/suite_frame_spec.rb
|
448
|
+
- spec/spec_helper.rb
|
449
|
+
- spec/streaming_reader_spec.rb
|
450
|
+
- spec/streaming_writer_spec.rb
|
452
451
|
- spec/suite_compact_spec.rb
|
453
|
-
- spec/expand_spec.rb
|
454
452
|
- spec/suite_expand_spec.rb
|
455
453
|
- spec/suite_flatten_spec.rb
|
456
|
-
- spec/
|
454
|
+
- spec/suite_frame_spec.rb
|
455
|
+
- spec/suite_from_rdf_spec.rb
|
456
|
+
- spec/suite_helper.rb
|
457
|
+
- spec/suite_html_spec.rb
|
457
458
|
- spec/suite_http_spec.rb
|
459
|
+
- spec/suite_remote_doc_spec.rb
|
460
|
+
- spec/suite_to_rdf_spec.rb
|
461
|
+
- spec/support/extensions.rb
|
462
|
+
- spec/to_rdf_spec.rb
|
458
463
|
- spec/writer_spec.rb
|
459
|
-
- spec/test-files/test-
|
460
|
-
- spec/test-files/test-
|
461
|
-
- spec/test-files/test-
|
462
|
-
- spec/test-files/test-
|
463
|
-
- spec/test-files/test-3-rdf.ttl
|
464
|
-
- spec/test-files/test-5-compacted.json
|
465
|
-
- spec/test-files/test-9-expanded.json
|
466
|
-
- spec/test-files/test-8-input.json
|
467
|
-
- spec/test-files/test-2-compacted.json
|
468
|
-
- spec/test-files/test-8-compacted.json
|
469
|
-
- spec/test-files/test-7-expanded.json
|
470
|
-
- spec/test-files/test-1-rdf.ttl
|
471
|
-
- spec/test-files/test-7-context.json
|
472
|
-
- spec/test-files/test-3-expanded.json
|
473
|
-
- spec/test-files/test-8-rdf.ttl
|
464
|
+
- spec/test-files/test-1-compacted.json
|
465
|
+
- spec/test-files/test-1-context.json
|
466
|
+
- spec/test-files/test-1-expanded.json
|
467
|
+
- spec/test-files/test-1-input.json
|
474
468
|
- spec/test-files/test-1-normalized.json
|
469
|
+
- spec/test-files/test-1-rdf.ttl
|
470
|
+
- spec/test-files/test-2-compacted.json
|
471
|
+
- spec/test-files/test-2-context.json
|
472
|
+
- spec/test-files/test-2-expanded.json
|
475
473
|
- spec/test-files/test-2-input.json
|
476
|
-
- spec/test-files/test-
|
477
|
-
- spec/test-files/test-
|
478
|
-
- spec/test-files/test-
|
479
|
-
- spec/test-files/test-
|
480
|
-
- spec/test-files/test-
|
481
|
-
- spec/test-files/test-
|
482
|
-
- spec/test-files/test-
|
483
|
-
- spec/test-files/test-
|
474
|
+
- spec/test-files/test-2-normalized.json
|
475
|
+
- spec/test-files/test-2-rdf.ttl
|
476
|
+
- spec/test-files/test-3-compacted.json
|
477
|
+
- spec/test-files/test-3-context.json
|
478
|
+
- spec/test-files/test-3-expanded.json
|
479
|
+
- spec/test-files/test-3-input.json
|
480
|
+
- spec/test-files/test-3-normalized.json
|
481
|
+
- spec/test-files/test-3-rdf.ttl
|
482
|
+
- spec/test-files/test-4-compacted.json
|
484
483
|
- spec/test-files/test-4-context.json
|
484
|
+
- spec/test-files/test-4-expanded.json
|
485
485
|
- spec/test-files/test-4-input.json
|
486
|
-
- spec/test-files/test-
|
487
|
-
- spec/test-files/test-5-
|
488
|
-
- spec/test-files/test-
|
489
|
-
- spec/test-files/test-9-input.json
|
490
|
-
- spec/test-files/test-8-framed.json
|
486
|
+
- spec/test-files/test-4-rdf.ttl
|
487
|
+
- spec/test-files/test-5-compacted.json
|
488
|
+
- spec/test-files/test-5-context.json
|
491
489
|
- spec/test-files/test-5-expanded.json
|
492
|
-
- spec/test-files/test-
|
493
|
-
- spec/test-files/test-
|
490
|
+
- spec/test-files/test-5-input.json
|
491
|
+
- spec/test-files/test-5-rdf.ttl
|
492
|
+
- spec/test-files/test-6-compacted.json
|
493
|
+
- spec/test-files/test-6-context.json
|
494
494
|
- spec/test-files/test-6-expanded.json
|
495
|
-
- spec/test-files/test-2-context.json
|
496
|
-
- spec/test-files/test-5-context.json
|
497
|
-
- spec/test-files/test-1-input.json
|
498
|
-
- spec/test-files/test-4-rdf.ttl
|
499
|
-
- spec/test-files/test-8-frame.json
|
500
495
|
- spec/test-files/test-6-input.json
|
501
|
-
- spec/test-files/test-8-context.json
|
502
|
-
- spec/test-files/test-8-expanded.json
|
503
496
|
- spec/test-files/test-6-rdf.ttl
|
497
|
+
- spec/test-files/test-7-compacted.json
|
498
|
+
- spec/test-files/test-7-context.json
|
499
|
+
- spec/test-files/test-7-expanded.json
|
500
|
+
- spec/test-files/test-7-input.json
|
504
501
|
- spec/test-files/test-7-rdf.ttl
|
505
|
-
- spec/test-files/test-
|
506
|
-
- spec/test-files/test-
|
502
|
+
- spec/test-files/test-8-compacted.json
|
503
|
+
- spec/test-files/test-8-context.json
|
504
|
+
- spec/test-files/test-8-expanded.json
|
505
|
+
- spec/test-files/test-8-frame.json
|
506
|
+
- spec/test-files/test-8-framed.json
|
507
|
+
- spec/test-files/test-8-input.json
|
508
|
+
- spec/test-files/test-8-rdf.ttl
|
509
|
+
- spec/test-files/test-9-compacted.json
|
507
510
|
- spec/test-files/test-9-context.json
|
511
|
+
- spec/test-files/test-9-expanded.json
|
512
|
+
- spec/test-files/test-9-input.json
|