json-ld 3.1.10 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -10
  3. data/VERSION +1 -1
  4. data/lib/json/ld/api.rb +53 -16
  5. data/lib/json/ld/context.rb +8 -8
  6. data/lib/json/ld/expand.rb +2 -2
  7. data/lib/json/ld/flatten.rb +1 -1
  8. data/lib/json/ld/format.rb +2 -1
  9. data/lib/json/ld/reader.rb +2 -2
  10. data/lib/json/ld/streaming_reader.rb +2 -1
  11. data/lib/json/ld/to_rdf.rb +9 -8
  12. data/lib/json/ld/writer.rb +9 -10
  13. data/lib/json/ld.rb +3 -0
  14. data/spec/api_spec.rb +67 -19
  15. data/spec/format_spec.rb +7 -3
  16. data/spec/frame_spec.rb +25 -1
  17. data/spec/reader_spec.rb +14 -14
  18. data/spec/suite_helper.rb +1 -0
  19. data/spec/test-files/{test-1-compacted.json → test-1-compacted.jsonld} +0 -0
  20. data/spec/test-files/{test-1-context.json → test-1-context.jsonld} +0 -0
  21. data/spec/test-files/{test-1-expanded.json → test-1-expanded.jsonld} +0 -0
  22. data/spec/test-files/{test-1-input.json → test-1-input.jsonld} +0 -0
  23. data/spec/test-files/{test-2-compacted.json → test-2-compacted.jsonld} +0 -0
  24. data/spec/test-files/{test-2-context.json → test-2-context.jsonld} +0 -0
  25. data/spec/test-files/{test-2-expanded.json → test-2-expanded.jsonld} +0 -0
  26. data/spec/test-files/{test-2-input.json → test-2-input.jsonld} +0 -0
  27. data/spec/test-files/{test-3-compacted.json → test-3-compacted.jsonld} +0 -0
  28. data/spec/test-files/{test-3-context.json → test-3-context.jsonld} +0 -0
  29. data/spec/test-files/{test-3-expanded.json → test-3-expanded.jsonld} +0 -0
  30. data/spec/test-files/{test-3-input.json → test-3-input.jsonld} +0 -0
  31. data/spec/test-files/{test-4-compacted.json → test-4-compacted.jsonld} +0 -0
  32. data/spec/test-files/{test-4-context.json → test-4-context.jsonld} +0 -0
  33. data/spec/test-files/{test-4-expanded.json → test-4-expanded.jsonld} +0 -0
  34. data/spec/test-files/{test-4-input.json → test-4-input.jsonld} +0 -0
  35. data/spec/test-files/{test-5-compacted.json → test-5-compacted.jsonld} +0 -0
  36. data/spec/test-files/{test-5-context.json → test-5-context.jsonld} +0 -0
  37. data/spec/test-files/{test-5-expanded.json → test-5-expanded.jsonld} +0 -0
  38. data/spec/test-files/{test-5-input.json → test-5-input.jsonld} +0 -0
  39. data/spec/test-files/{test-6-compacted.json → test-6-compacted.jsonld} +0 -0
  40. data/spec/test-files/{test-6-context.json → test-6-context.jsonld} +0 -0
  41. data/spec/test-files/{test-6-expanded.json → test-6-expanded.jsonld} +0 -0
  42. data/spec/test-files/{test-6-input.json → test-6-input.jsonld} +0 -0
  43. data/spec/test-files/{test-7-compacted.json → test-7-compacted.jsonld} +0 -0
  44. data/spec/test-files/{test-7-context.json → test-7-context.jsonld} +0 -0
  45. data/spec/test-files/{test-7-expanded.json → test-7-expanded.jsonld} +0 -0
  46. data/spec/test-files/{test-7-input.json → test-7-input.jsonld} +0 -0
  47. data/spec/test-files/{test-8-compacted.json → test-8-compacted.jsonld} +0 -0
  48. data/spec/test-files/{test-8-context.json → test-8-context.jsonld} +0 -0
  49. data/spec/test-files/{test-8-expanded.json → test-8-expanded.jsonld} +0 -0
  50. data/spec/test-files/{test-8-frame.json → test-8-frame.jsonld} +0 -0
  51. data/spec/test-files/{test-8-framed.json → test-8-framed.jsonld} +0 -0
  52. data/spec/test-files/{test-8-input.json → test-8-input.jsonld} +0 -0
  53. data/spec/test-files/{test-9-compacted.json → test-9-compacted.jsonld} +0 -0
  54. data/spec/test-files/{test-9-context.json → test-9-context.jsonld} +0 -0
  55. data/spec/test-files/{test-9-expanded.json → test-9-expanded.jsonld} +0 -0
  56. data/spec/test-files/{test-9-input.json → test-9-input.jsonld} +0 -0
  57. metadata +110 -111
  58. data/spec/test-files/test-1-normalized.json +0 -8
  59. data/spec/test-files/test-2-normalized.json +0 -32
  60. data/spec/test-files/test-3-normalized.json +0 -13
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.10
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-26 00:00:00.000000000 Z
11
+ date: 2022-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.14'
33
+ version: '1.15'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.14'
40
+ version: '1.15'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: link_header
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.2'
67
+ version: '0.3'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.2'
74
+ version: '0.3'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: htmlentities
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '2.0'
95
+ version: '2.2'
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '2.0'
102
+ version: '2.2'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: sinatra-linkeddata
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +134,14 @@ dependencies:
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '3.9'
137
+ version: '3.13'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '3.9'
144
+ version: '3.13'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: yajl-ruby
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -176,98 +176,98 @@ dependencies:
176
176
  requirements:
177
177
  - - "~>"
178
178
  - !ruby/object:Gem::Version
179
- version: '3.1'
179
+ version: '3.2'
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: '3.1'
186
+ version: '3.2'
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: rdf-spec
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '3.1'
193
+ version: '3.2'
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
- version: '3.1'
200
+ version: '3.2'
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: rdf-trig
203
203
  requirement: !ruby/object:Gem::Requirement
204
204
  requirements:
205
205
  - - "~>"
206
206
  - !ruby/object:Gem::Version
207
- version: '3.1'
207
+ version: '3.2'
208
208
  type: :development
209
209
  prerelease: false
210
210
  version_requirements: !ruby/object:Gem::Requirement
211
211
  requirements:
212
212
  - - "~>"
213
213
  - !ruby/object:Gem::Version
214
- version: '3.1'
214
+ version: '3.2'
215
215
  - !ruby/object:Gem::Dependency
216
216
  name: rdf-turtle
217
217
  requirement: !ruby/object:Gem::Requirement
218
218
  requirements:
219
219
  - - "~>"
220
220
  - !ruby/object:Gem::Version
221
- version: '3.1'
221
+ version: '3.2'
222
222
  type: :development
223
223
  prerelease: false
224
224
  version_requirements: !ruby/object:Gem::Requirement
225
225
  requirements:
226
226
  - - "~>"
227
227
  - !ruby/object:Gem::Version
228
- version: '3.1'
228
+ version: '3.2'
229
229
  - !ruby/object:Gem::Dependency
230
230
  name: rdf-vocab
231
231
  requirement: !ruby/object:Gem::Requirement
232
232
  requirements:
233
233
  - - "~>"
234
234
  - !ruby/object:Gem::Version
235
- version: '3.1'
235
+ version: '3.2'
236
236
  type: :development
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - "~>"
241
241
  - !ruby/object:Gem::Version
242
- version: '3.1'
242
+ version: '3.2'
243
243
  - !ruby/object:Gem::Dependency
244
244
  name: rdf-xsd
245
245
  requirement: !ruby/object:Gem::Requirement
246
246
  requirements:
247
247
  - - "~>"
248
248
  - !ruby/object:Gem::Version
249
- version: '3.1'
249
+ version: '3.2'
250
250
  type: :development
251
251
  prerelease: false
252
252
  version_requirements: !ruby/object:Gem::Requirement
253
253
  requirements:
254
254
  - - "~>"
255
255
  - !ruby/object:Gem::Version
256
- version: '3.1'
256
+ version: '3.2'
257
257
  - !ruby/object:Gem::Dependency
258
258
  name: rspec
259
259
  requirement: !ruby/object:Gem::Requirement
260
260
  requirements:
261
261
  - - "~>"
262
262
  - !ruby/object:Gem::Version
263
- version: '3.9'
263
+ version: '3.10'
264
264
  type: :development
265
265
  prerelease: false
266
266
  version_requirements: !ruby/object:Gem::Requirement
267
267
  requirements:
268
268
  - - "~>"
269
269
  - !ruby/object:Gem::Version
270
- version: '3.9'
270
+ version: '3.10'
271
271
  - !ruby/object:Gem::Dependency
272
272
  name: rspec-its
273
273
  requirement: !ruby/object:Gem::Requirement
@@ -357,61 +357,63 @@ files:
357
357
  - spec/suite_remote_doc_spec.rb
358
358
  - spec/suite_to_rdf_spec.rb
359
359
  - spec/support/extensions.rb
360
- - spec/test-files/test-1-compacted.json
361
- - spec/test-files/test-1-context.json
362
- - spec/test-files/test-1-expanded.json
363
- - spec/test-files/test-1-input.json
364
- - spec/test-files/test-1-normalized.json
360
+ - spec/test-files/test-1-compacted.jsonld
361
+ - spec/test-files/test-1-context.jsonld
362
+ - spec/test-files/test-1-expanded.jsonld
363
+ - spec/test-files/test-1-input.jsonld
365
364
  - spec/test-files/test-1-rdf.ttl
366
- - spec/test-files/test-2-compacted.json
367
- - spec/test-files/test-2-context.json
368
- - spec/test-files/test-2-expanded.json
369
- - spec/test-files/test-2-input.json
370
- - spec/test-files/test-2-normalized.json
365
+ - spec/test-files/test-2-compacted.jsonld
366
+ - spec/test-files/test-2-context.jsonld
367
+ - spec/test-files/test-2-expanded.jsonld
368
+ - spec/test-files/test-2-input.jsonld
371
369
  - spec/test-files/test-2-rdf.ttl
372
- - spec/test-files/test-3-compacted.json
373
- - spec/test-files/test-3-context.json
374
- - spec/test-files/test-3-expanded.json
375
- - spec/test-files/test-3-input.json
376
- - spec/test-files/test-3-normalized.json
370
+ - spec/test-files/test-3-compacted.jsonld
371
+ - spec/test-files/test-3-context.jsonld
372
+ - spec/test-files/test-3-expanded.jsonld
373
+ - spec/test-files/test-3-input.jsonld
377
374
  - spec/test-files/test-3-rdf.ttl
378
- - spec/test-files/test-4-compacted.json
379
- - spec/test-files/test-4-context.json
380
- - spec/test-files/test-4-expanded.json
381
- - spec/test-files/test-4-input.json
375
+ - spec/test-files/test-4-compacted.jsonld
376
+ - spec/test-files/test-4-context.jsonld
377
+ - spec/test-files/test-4-expanded.jsonld
378
+ - spec/test-files/test-4-input.jsonld
382
379
  - spec/test-files/test-4-rdf.ttl
383
- - spec/test-files/test-5-compacted.json
384
- - spec/test-files/test-5-context.json
385
- - spec/test-files/test-5-expanded.json
386
- - spec/test-files/test-5-input.json
380
+ - spec/test-files/test-5-compacted.jsonld
381
+ - spec/test-files/test-5-context.jsonld
382
+ - spec/test-files/test-5-expanded.jsonld
383
+ - spec/test-files/test-5-input.jsonld
387
384
  - spec/test-files/test-5-rdf.ttl
388
- - spec/test-files/test-6-compacted.json
389
- - spec/test-files/test-6-context.json
390
- - spec/test-files/test-6-expanded.json
391
- - spec/test-files/test-6-input.json
385
+ - spec/test-files/test-6-compacted.jsonld
386
+ - spec/test-files/test-6-context.jsonld
387
+ - spec/test-files/test-6-expanded.jsonld
388
+ - spec/test-files/test-6-input.jsonld
392
389
  - spec/test-files/test-6-rdf.ttl
393
- - spec/test-files/test-7-compacted.json
394
- - spec/test-files/test-7-context.json
395
- - spec/test-files/test-7-expanded.json
396
- - spec/test-files/test-7-input.json
390
+ - spec/test-files/test-7-compacted.jsonld
391
+ - spec/test-files/test-7-context.jsonld
392
+ - spec/test-files/test-7-expanded.jsonld
393
+ - spec/test-files/test-7-input.jsonld
397
394
  - spec/test-files/test-7-rdf.ttl
398
- - spec/test-files/test-8-compacted.json
399
- - spec/test-files/test-8-context.json
400
- - spec/test-files/test-8-expanded.json
401
- - spec/test-files/test-8-frame.json
402
- - spec/test-files/test-8-framed.json
403
- - spec/test-files/test-8-input.json
395
+ - spec/test-files/test-8-compacted.jsonld
396
+ - spec/test-files/test-8-context.jsonld
397
+ - spec/test-files/test-8-expanded.jsonld
398
+ - spec/test-files/test-8-frame.jsonld
399
+ - spec/test-files/test-8-framed.jsonld
400
+ - spec/test-files/test-8-input.jsonld
404
401
  - spec/test-files/test-8-rdf.ttl
405
- - spec/test-files/test-9-compacted.json
406
- - spec/test-files/test-9-context.json
407
- - spec/test-files/test-9-expanded.json
408
- - spec/test-files/test-9-input.json
402
+ - spec/test-files/test-9-compacted.jsonld
403
+ - spec/test-files/test-9-context.jsonld
404
+ - spec/test-files/test-9-expanded.jsonld
405
+ - spec/test-files/test-9-input.jsonld
409
406
  - spec/to_rdf_spec.rb
410
407
  - spec/writer_spec.rb
411
408
  homepage: https://github.com/ruby-rdf/json-ld
412
409
  licenses:
413
410
  - Unlicense
414
- metadata: {}
411
+ metadata:
412
+ documentation_uri: https://ruby-rdf.github.io/json-ld
413
+ bug_tracker_uri: https://github.com/ruby-rdf/json-ld/issues
414
+ homepage_uri: https://github.com/ruby-rdf/json-ld
415
+ mailing_list_uri: https://lists.w3.org/Archives/Public/public-rdf-ruby/
416
+ source_code_uri: https://github.com/ruby-rdf/json-ld
415
417
  post_install_message:
416
418
  rdoc_options: []
417
419
  require_paths:
@@ -420,14 +422,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
420
422
  requirements:
421
423
  - - ">="
422
424
  - !ruby/object:Gem::Version
423
- version: '2.4'
425
+ version: '2.6'
424
426
  required_rubygems_version: !ruby/object:Gem::Requirement
425
427
  requirements:
426
428
  - - ">="
427
429
  - !ruby/object:Gem::Version
428
430
  version: '0'
429
431
  requirements: []
430
- rubygems_version: 3.2.22
432
+ rubygems_version: 3.3.3
431
433
  signing_key:
432
434
  specification_version: 4
433
435
  summary: JSON-LD reader/writer for Ruby.
@@ -461,52 +463,49 @@ test_files:
461
463
  - spec/support/extensions.rb
462
464
  - spec/to_rdf_spec.rb
463
465
  - spec/writer_spec.rb
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
468
- - spec/test-files/test-1-normalized.json
466
+ - spec/test-files/test-1-compacted.jsonld
467
+ - spec/test-files/test-1-context.jsonld
468
+ - spec/test-files/test-1-expanded.jsonld
469
+ - spec/test-files/test-1-input.jsonld
469
470
  - 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
473
- - spec/test-files/test-2-input.json
474
- - spec/test-files/test-2-normalized.json
471
+ - spec/test-files/test-2-compacted.jsonld
472
+ - spec/test-files/test-2-context.jsonld
473
+ - spec/test-files/test-2-expanded.jsonld
474
+ - spec/test-files/test-2-input.jsonld
475
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
476
+ - spec/test-files/test-3-compacted.jsonld
477
+ - spec/test-files/test-3-context.jsonld
478
+ - spec/test-files/test-3-expanded.jsonld
479
+ - spec/test-files/test-3-input.jsonld
481
480
  - spec/test-files/test-3-rdf.ttl
482
- - spec/test-files/test-4-compacted.json
483
- - spec/test-files/test-4-context.json
484
- - spec/test-files/test-4-expanded.json
485
- - spec/test-files/test-4-input.json
481
+ - spec/test-files/test-4-compacted.jsonld
482
+ - spec/test-files/test-4-context.jsonld
483
+ - spec/test-files/test-4-expanded.jsonld
484
+ - spec/test-files/test-4-input.jsonld
486
485
  - spec/test-files/test-4-rdf.ttl
487
- - spec/test-files/test-5-compacted.json
488
- - spec/test-files/test-5-context.json
489
- - spec/test-files/test-5-expanded.json
490
- - spec/test-files/test-5-input.json
486
+ - spec/test-files/test-5-compacted.jsonld
487
+ - spec/test-files/test-5-context.jsonld
488
+ - spec/test-files/test-5-expanded.jsonld
489
+ - spec/test-files/test-5-input.jsonld
491
490
  - spec/test-files/test-5-rdf.ttl
492
- - spec/test-files/test-6-compacted.json
493
- - spec/test-files/test-6-context.json
494
- - spec/test-files/test-6-expanded.json
495
- - spec/test-files/test-6-input.json
491
+ - spec/test-files/test-6-compacted.jsonld
492
+ - spec/test-files/test-6-context.jsonld
493
+ - spec/test-files/test-6-expanded.jsonld
494
+ - spec/test-files/test-6-input.jsonld
496
495
  - 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
496
+ - spec/test-files/test-7-compacted.jsonld
497
+ - spec/test-files/test-7-context.jsonld
498
+ - spec/test-files/test-7-expanded.jsonld
499
+ - spec/test-files/test-7-input.jsonld
501
500
  - spec/test-files/test-7-rdf.ttl
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
501
+ - spec/test-files/test-8-compacted.jsonld
502
+ - spec/test-files/test-8-context.jsonld
503
+ - spec/test-files/test-8-expanded.jsonld
504
+ - spec/test-files/test-8-frame.jsonld
505
+ - spec/test-files/test-8-framed.jsonld
506
+ - spec/test-files/test-8-input.jsonld
508
507
  - spec/test-files/test-8-rdf.ttl
509
- - spec/test-files/test-9-compacted.json
510
- - spec/test-files/test-9-context.json
511
- - spec/test-files/test-9-expanded.json
512
- - spec/test-files/test-9-input.json
508
+ - spec/test-files/test-9-compacted.jsonld
509
+ - spec/test-files/test-9-context.jsonld
510
+ - spec/test-files/test-9-expanded.jsonld
511
+ - spec/test-files/test-9-input.jsonld
@@ -1,8 +0,0 @@
1
- [{
2
- "@id": {
3
- "@id": "_:c14n0"
4
- },
5
- "http://xmlns.com/foaf/0.1/avatar": "http://twitter.com/account/profile_image/manusporny",
6
- "http://xmlns.com/foaf/0.1/homepage": "http://manu.sporny.org/",
7
- "http://xmlns.com/foaf/0.1/name": "Manu Sporny"
8
- }]
@@ -1,32 +0,0 @@
1
- [{
2
- "@id": {
3
- "@id": "http://example.org/library"
4
- },
5
- "http://example.org/vocab#contains": {
6
- "@id": "http://example.org/library/the-republic"
7
- },
8
- "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": {
9
- "@id": "http://example.org/vocab#Library"
10
- }
11
- }, {
12
- "@id": {
13
- "@id": "http://example.org/library/the-republic"
14
- },
15
- "http://example.org/vocab#contains": {
16
- "@id": "http://example.org/library/the-republic#introduction"
17
- },
18
- "http://purl.org/dc/elements/1.1/creator": "Plato",
19
- "http://purl.org/dc/elements/1.1/title": "The Republic",
20
- "@type": {
21
- "@id": "http://example.org/vocab#Book"
22
- }
23
- }, {
24
- "@id": {
25
- "@id": "http://example.org/library/the-republic#introduction"
26
- },
27
- "http://purl.org/dc/elements/1.1/description": "An introductory chapter on The Republic.",
28
- "http://purl.org/dc/elements/1.1/title": "The Introduction",
29
- "@type": {
30
- "@id": "http://example.org/vocab#Chapter"
31
- }
32
- }]
@@ -1,13 +0,0 @@
1
- [{
2
- "@id": {
3
- "@id": "_:c14n0"
4
- },
5
- "http://xmlns.com/foaf/0.1/age": {
6
- "@type": "http://www.w3.org/2001/XMLSchema#integer",
7
- "@value": "41"
8
- },
9
- "http://xmlns.com/foaf/0.1/homepage": {
10
- "@id": "http://manu.sporny.org/"
11
- },
12
- "http://xmlns.com/foaf/0.1/name": "Manu Sporny"
13
- }]