yaml-ld 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/psych/amazing_print.rb +61 -0
- data/lib/yaml_ld/api.rb +69 -11
- data/lib/yaml_ld/format.rb +25 -0
- data/lib/yaml_ld/reader.rb +3 -1
- data/lib/yaml_ld/representation.rb +256 -0
- data/lib/yaml_ld/version.rb +1 -1
- data/lib/yaml_ld.rb +1 -0
- data/spec/api_spec.rb +21 -27
- data/spec/compact_spec.rb +1 -1
- data/spec/expand_spec.rb +1 -1
- data/spec/format_spec.rb +56 -0
- data/spec/frame_spec.rb +55 -110
- data/spec/from_rdf_spec.rb +3 -3
- data/spec/matchers.rb +2 -2
- data/spec/reader_spec.rb +1 -1
- data/spec/representation_spec.rb +170 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/test-files/test-1-compacted.yamlld +9 -0
- data/spec/test-files/test-1-context.yamlld +6 -0
- data/spec/test-files/test-1-expanded.yamlld +8 -0
- data/spec/test-files/test-1-input.yamlld +1 -0
- data/spec/test-files/test-2-compacted.yamlld +17 -0
- data/spec/test-files/test-2-context.yamlld +5 -0
- data/spec/test-files/test-2-expanded.yamlld +21 -0
- data/spec/test-files/test-3-compacted.yamlld +14 -0
- data/spec/test-files/test-3-context.yamlld +11 -0
- data/spec/test-files/test-3-expanded.yamlld +9 -0
- data/spec/test-files/test-4-compacted.yamlld +10 -0
- data/spec/test-files/test-4-context.yamlld +5 -0
- data/spec/test-files/test-4-expanded.yamlld +9 -0
- data/spec/test-files/test-5-compacted.yamlld +11 -0
- data/spec/test-files/test-5-context.yamlld +5 -0
- data/spec/test-files/test-5-expanded.yamlld +12 -0
- data/spec/test-files/test-6-compacted.yamlld +13 -0
- data/spec/test-files/test-6-context.yamlld +5 -0
- data/spec/test-files/test-6-expanded.yamlld +12 -0
- data/spec/test-files/test-7-compacted.yamlld +17 -0
- data/spec/test-files/test-7-context.yamlld +4 -0
- data/spec/test-files/test-7-expanded.yamlld +23 -0
- data/spec/test-files/test-8-compacted.yamlld +25 -0
- data/spec/test-files/test-8-context.yamlld +12 -0
- data/spec/test-files/test-8-expanded.yamlld +23 -0
- data/spec/test-files/test-8-frame.yamlld +15 -0
- data/spec/test-files/test-8-framed.yamlld +22 -0
- data/spec/test-files/test-9-compacted.yamlld +31 -0
- data/spec/test-files/test-9-context.yamlld +20 -0
- data/spec/test-files/test-9-expanded.yamlld +17 -0
- data/spec/to_rdf_spec.rb +10 -8
- metadata +89 -61
- data/spec/test-files/test-1-expanded.jsonld +0 -5
- data/spec/test-files/test-2-compacted.jsonld +0 -20
- data/spec/test-files/test-2-context.jsonld +0 -7
- data/spec/test-files/test-2-expanded.jsonld +0 -16
- data/spec/test-files/test-3-compacted.jsonld +0 -11
- data/spec/test-files/test-3-context.jsonld +0 -8
- data/spec/test-files/test-3-expanded.jsonld +0 -10
- data/spec/test-files/test-4-compacted.jsonld +0 -10
- data/spec/test-files/test-4-context.jsonld +0 -7
- data/spec/test-files/test-4-expanded.jsonld +0 -6
- data/spec/test-files/test-5-compacted.jsonld +0 -13
- data/spec/test-files/test-5-context.jsonld +0 -7
- data/spec/test-files/test-5-expanded.jsonld +0 -9
- data/spec/test-files/test-6-compacted.jsonld +0 -10
- data/spec/test-files/test-6-context.jsonld +0 -7
- data/spec/test-files/test-6-expanded.jsonld +0 -10
- data/spec/test-files/test-7-compacted.jsonld +0 -23
- data/spec/test-files/test-7-context.jsonld +0 -4
- data/spec/test-files/test-7-expanded.jsonld +0 -20
- data/spec/test-files/test-8-compacted.jsonld +0 -34
- data/spec/test-files/test-8-context.jsonld +0 -11
- data/spec/test-files/test-8-expanded.jsonld +0 -24
- data/spec/test-files/test-8-frame.jsonld +0 -18
- data/spec/test-files/test-8-framed.jsonld +0 -25
- data/spec/test-files/test-9-compacted.jsonld +0 -20
- data/spec/test-files/test-9-context.jsonld +0 -13
- data/spec/test-files/test-9-expanded.jsonld +0 -14
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml-ld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.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: 2022-07
|
11
|
+
date: 2022-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-ld
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3.2'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.2.
|
22
|
+
version: 3.2.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,23 +29,43 @@ dependencies:
|
|
29
29
|
version: '3.2'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.2.
|
32
|
+
version: 3.2.3
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: psych
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '3.3'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '3.3'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rdf
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
36
50
|
requirements:
|
37
51
|
- - "~>"
|
38
52
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
53
|
+
version: '3.2'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 3.2.9
|
40
57
|
type: :runtime
|
41
58
|
prerelease: false
|
42
59
|
version_requirements: !ruby/object:Gem::Requirement
|
43
60
|
requirements:
|
44
61
|
- - "~>"
|
45
62
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
63
|
+
version: '3.2'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 3.2.9
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
|
-
name: rdf
|
68
|
+
name: rdf-xsd
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
50
70
|
requirements:
|
51
71
|
- - "~>"
|
@@ -195,10 +215,12 @@ files:
|
|
195
215
|
- README.md
|
196
216
|
- UNLICENSE
|
197
217
|
- VERSION
|
218
|
+
- lib/psych/amazing_print.rb
|
198
219
|
- lib/yaml_ld.rb
|
199
220
|
- lib/yaml_ld/api.rb
|
200
221
|
- lib/yaml_ld/format.rb
|
201
222
|
- lib/yaml_ld/reader.rb
|
223
|
+
- lib/yaml_ld/representation.rb
|
202
224
|
- lib/yaml_ld/version.rb
|
203
225
|
- lib/yaml_ld/writer.rb
|
204
226
|
- spec/api_spec.rb
|
@@ -210,53 +232,56 @@ files:
|
|
210
232
|
- spec/from_rdf_spec.rb
|
211
233
|
- spec/matchers.rb
|
212
234
|
- spec/reader_spec.rb
|
235
|
+
- spec/representation_spec.rb
|
213
236
|
- spec/spec_helper.rb
|
214
237
|
- spec/support/extensions.rb
|
215
238
|
- spec/test-files/test-1-compacted.jsonld
|
239
|
+
- spec/test-files/test-1-compacted.yamlld
|
216
240
|
- spec/test-files/test-1-context.jsonld
|
217
|
-
- spec/test-files/test-1-
|
241
|
+
- spec/test-files/test-1-context.yamlld
|
242
|
+
- spec/test-files/test-1-expanded.yamlld
|
218
243
|
- spec/test-files/test-1-input.yamlld
|
219
244
|
- spec/test-files/test-1-rdf.ttl
|
220
|
-
- spec/test-files/test-2-compacted.
|
221
|
-
- spec/test-files/test-2-context.
|
222
|
-
- spec/test-files/test-2-expanded.
|
245
|
+
- spec/test-files/test-2-compacted.yamlld
|
246
|
+
- spec/test-files/test-2-context.yamlld
|
247
|
+
- spec/test-files/test-2-expanded.yamlld
|
223
248
|
- spec/test-files/test-2-input.yamlld
|
224
249
|
- spec/test-files/test-2-rdf.ttl
|
225
|
-
- spec/test-files/test-3-compacted.
|
226
|
-
- spec/test-files/test-3-context.
|
227
|
-
- spec/test-files/test-3-expanded.
|
250
|
+
- spec/test-files/test-3-compacted.yamlld
|
251
|
+
- spec/test-files/test-3-context.yamlld
|
252
|
+
- spec/test-files/test-3-expanded.yamlld
|
228
253
|
- spec/test-files/test-3-input.yamlld
|
229
254
|
- spec/test-files/test-3-rdf.ttl
|
230
|
-
- spec/test-files/test-4-compacted.
|
231
|
-
- spec/test-files/test-4-context.
|
232
|
-
- spec/test-files/test-4-expanded.
|
255
|
+
- spec/test-files/test-4-compacted.yamlld
|
256
|
+
- spec/test-files/test-4-context.yamlld
|
257
|
+
- spec/test-files/test-4-expanded.yamlld
|
233
258
|
- spec/test-files/test-4-input.yamlld
|
234
259
|
- spec/test-files/test-4-rdf.ttl
|
235
|
-
- spec/test-files/test-5-compacted.
|
236
|
-
- spec/test-files/test-5-context.
|
237
|
-
- spec/test-files/test-5-expanded.
|
260
|
+
- spec/test-files/test-5-compacted.yamlld
|
261
|
+
- spec/test-files/test-5-context.yamlld
|
262
|
+
- spec/test-files/test-5-expanded.yamlld
|
238
263
|
- spec/test-files/test-5-input.yamlld
|
239
264
|
- spec/test-files/test-5-rdf.ttl
|
240
|
-
- spec/test-files/test-6-compacted.
|
241
|
-
- spec/test-files/test-6-context.
|
242
|
-
- spec/test-files/test-6-expanded.
|
265
|
+
- spec/test-files/test-6-compacted.yamlld
|
266
|
+
- spec/test-files/test-6-context.yamlld
|
267
|
+
- spec/test-files/test-6-expanded.yamlld
|
243
268
|
- spec/test-files/test-6-input.yamlld
|
244
269
|
- spec/test-files/test-6-rdf.ttl
|
245
|
-
- spec/test-files/test-7-compacted.
|
246
|
-
- spec/test-files/test-7-context.
|
247
|
-
- spec/test-files/test-7-expanded.
|
270
|
+
- spec/test-files/test-7-compacted.yamlld
|
271
|
+
- spec/test-files/test-7-context.yamlld
|
272
|
+
- spec/test-files/test-7-expanded.yamlld
|
248
273
|
- spec/test-files/test-7-input.yamlld
|
249
274
|
- spec/test-files/test-7-rdf.ttl
|
250
|
-
- spec/test-files/test-8-compacted.
|
251
|
-
- spec/test-files/test-8-context.
|
252
|
-
- spec/test-files/test-8-expanded.
|
253
|
-
- spec/test-files/test-8-frame.
|
254
|
-
- spec/test-files/test-8-framed.
|
275
|
+
- spec/test-files/test-8-compacted.yamlld
|
276
|
+
- spec/test-files/test-8-context.yamlld
|
277
|
+
- spec/test-files/test-8-expanded.yamlld
|
278
|
+
- spec/test-files/test-8-frame.yamlld
|
279
|
+
- spec/test-files/test-8-framed.yamlld
|
255
280
|
- spec/test-files/test-8-input.yamlld
|
256
281
|
- spec/test-files/test-8-rdf.ttl
|
257
|
-
- spec/test-files/test-9-compacted.
|
258
|
-
- spec/test-files/test-9-context.
|
259
|
-
- spec/test-files/test-9-expanded.
|
282
|
+
- spec/test-files/test-9-compacted.yamlld
|
283
|
+
- spec/test-files/test-9-context.yamlld
|
284
|
+
- spec/test-files/test-9-expanded.yamlld
|
260
285
|
- spec/test-files/test-9-input.yamlld
|
261
286
|
- spec/to_rdf_spec.rb
|
262
287
|
- spec/writer_spec.rb
|
@@ -298,53 +323,56 @@ test_files:
|
|
298
323
|
- spec/from_rdf_spec.rb
|
299
324
|
- spec/matchers.rb
|
300
325
|
- spec/reader_spec.rb
|
326
|
+
- spec/representation_spec.rb
|
301
327
|
- spec/spec_helper.rb
|
302
328
|
- spec/support/extensions.rb
|
303
329
|
- spec/to_rdf_spec.rb
|
304
330
|
- spec/writer_spec.rb
|
305
331
|
- spec/test-files/test-1-compacted.jsonld
|
332
|
+
- spec/test-files/test-1-compacted.yamlld
|
306
333
|
- spec/test-files/test-1-context.jsonld
|
307
|
-
- spec/test-files/test-1-
|
334
|
+
- spec/test-files/test-1-context.yamlld
|
335
|
+
- spec/test-files/test-1-expanded.yamlld
|
308
336
|
- spec/test-files/test-1-input.yamlld
|
309
337
|
- spec/test-files/test-1-rdf.ttl
|
310
|
-
- spec/test-files/test-2-compacted.
|
311
|
-
- spec/test-files/test-2-context.
|
312
|
-
- spec/test-files/test-2-expanded.
|
338
|
+
- spec/test-files/test-2-compacted.yamlld
|
339
|
+
- spec/test-files/test-2-context.yamlld
|
340
|
+
- spec/test-files/test-2-expanded.yamlld
|
313
341
|
- spec/test-files/test-2-input.yamlld
|
314
342
|
- spec/test-files/test-2-rdf.ttl
|
315
|
-
- spec/test-files/test-3-compacted.
|
316
|
-
- spec/test-files/test-3-context.
|
317
|
-
- spec/test-files/test-3-expanded.
|
343
|
+
- spec/test-files/test-3-compacted.yamlld
|
344
|
+
- spec/test-files/test-3-context.yamlld
|
345
|
+
- spec/test-files/test-3-expanded.yamlld
|
318
346
|
- spec/test-files/test-3-input.yamlld
|
319
347
|
- spec/test-files/test-3-rdf.ttl
|
320
|
-
- spec/test-files/test-4-compacted.
|
321
|
-
- spec/test-files/test-4-context.
|
322
|
-
- spec/test-files/test-4-expanded.
|
348
|
+
- spec/test-files/test-4-compacted.yamlld
|
349
|
+
- spec/test-files/test-4-context.yamlld
|
350
|
+
- spec/test-files/test-4-expanded.yamlld
|
323
351
|
- spec/test-files/test-4-input.yamlld
|
324
352
|
- spec/test-files/test-4-rdf.ttl
|
325
|
-
- spec/test-files/test-5-compacted.
|
326
|
-
- spec/test-files/test-5-context.
|
327
|
-
- spec/test-files/test-5-expanded.
|
353
|
+
- spec/test-files/test-5-compacted.yamlld
|
354
|
+
- spec/test-files/test-5-context.yamlld
|
355
|
+
- spec/test-files/test-5-expanded.yamlld
|
328
356
|
- spec/test-files/test-5-input.yamlld
|
329
357
|
- spec/test-files/test-5-rdf.ttl
|
330
|
-
- spec/test-files/test-6-compacted.
|
331
|
-
- spec/test-files/test-6-context.
|
332
|
-
- spec/test-files/test-6-expanded.
|
358
|
+
- spec/test-files/test-6-compacted.yamlld
|
359
|
+
- spec/test-files/test-6-context.yamlld
|
360
|
+
- spec/test-files/test-6-expanded.yamlld
|
333
361
|
- spec/test-files/test-6-input.yamlld
|
334
362
|
- spec/test-files/test-6-rdf.ttl
|
335
|
-
- spec/test-files/test-7-compacted.
|
336
|
-
- spec/test-files/test-7-context.
|
337
|
-
- spec/test-files/test-7-expanded.
|
363
|
+
- spec/test-files/test-7-compacted.yamlld
|
364
|
+
- spec/test-files/test-7-context.yamlld
|
365
|
+
- spec/test-files/test-7-expanded.yamlld
|
338
366
|
- spec/test-files/test-7-input.yamlld
|
339
367
|
- spec/test-files/test-7-rdf.ttl
|
340
|
-
- spec/test-files/test-8-compacted.
|
341
|
-
- spec/test-files/test-8-context.
|
342
|
-
- spec/test-files/test-8-expanded.
|
343
|
-
- spec/test-files/test-8-frame.
|
344
|
-
- spec/test-files/test-8-framed.
|
368
|
+
- spec/test-files/test-8-compacted.yamlld
|
369
|
+
- spec/test-files/test-8-context.yamlld
|
370
|
+
- spec/test-files/test-8-expanded.yamlld
|
371
|
+
- spec/test-files/test-8-frame.yamlld
|
372
|
+
- spec/test-files/test-8-framed.yamlld
|
345
373
|
- spec/test-files/test-8-input.yamlld
|
346
374
|
- spec/test-files/test-8-rdf.ttl
|
347
|
-
- spec/test-files/test-9-compacted.
|
348
|
-
- spec/test-files/test-9-context.
|
349
|
-
- spec/test-files/test-9-expanded.
|
375
|
+
- spec/test-files/test-9-compacted.yamlld
|
376
|
+
- spec/test-files/test-9-context.yamlld
|
377
|
+
- spec/test-files/test-9-expanded.yamlld
|
350
378
|
- spec/test-files/test-9-input.yamlld
|
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"dc": "http://purl.org/dc/elements/1.1/",
|
4
|
-
"ex": "http://example.org/vocab#"
|
5
|
-
},
|
6
|
-
"@id": "http://example.org/library",
|
7
|
-
"@type": "ex:Library",
|
8
|
-
"ex:contains": {
|
9
|
-
"@id": "http://example.org/library/the-republic",
|
10
|
-
"@type": "ex:Book",
|
11
|
-
"dc:creator": "Plato",
|
12
|
-
"dc:title": "The Republic",
|
13
|
-
"ex:contains": {
|
14
|
-
"@id": "http://example.org/library/the-republic#introduction",
|
15
|
-
"@type": "ex:Chapter",
|
16
|
-
"dc:description": "An introductory chapter on The Republic.",
|
17
|
-
"dc:title": "The Introduction"
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
[{
|
2
|
-
"@id": "http://example.org/library",
|
3
|
-
"@type": ["http://example.org/vocab#Library"],
|
4
|
-
"http://example.org/vocab#contains": [{
|
5
|
-
"@id": "http://example.org/library/the-republic",
|
6
|
-
"@type": ["http://example.org/vocab#Book"],
|
7
|
-
"http://purl.org/dc/elements/1.1/creator": [{"@value": "Plato"}],
|
8
|
-
"http://purl.org/dc/elements/1.1/title": [{"@value": "The Republic"}],
|
9
|
-
"http://example.org/vocab#contains": [{
|
10
|
-
"@id": "http://example.org/library/the-republic#introduction",
|
11
|
-
"@type": ["http://example.org/vocab#Chapter"],
|
12
|
-
"http://purl.org/dc/elements/1.1/description": [{"@value": "An introductory chapter on The Republic."}],
|
13
|
-
"http://purl.org/dc/elements/1.1/title": [{"@value": "The Introduction"}]
|
14
|
-
}]
|
15
|
-
}]
|
16
|
-
}]
|
@@ -1,11 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
4
|
-
"name": "http://xmlns.com/foaf/0.1/name",
|
5
|
-
"age": {"@id": "http://xmlns.com/foaf/0.1/age", "@type": "xsd:integer"},
|
6
|
-
"homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"}
|
7
|
-
},
|
8
|
-
"name": "Manu Sporny",
|
9
|
-
"age": "41",
|
10
|
-
"homepage": "http://manu.sporny.org/"
|
11
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
4
|
-
"name": "http://xmlns.com/foaf/0.1/name",
|
5
|
-
"age": {"@id": "http://xmlns.com/foaf/0.1/age", "@type": "xsd:integer"},
|
6
|
-
"homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"}
|
7
|
-
}
|
8
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
[{
|
2
|
-
"http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}],
|
3
|
-
"http://xmlns.com/foaf/0.1/age": [{
|
4
|
-
"@type": "http://www.w3.org/2001/XMLSchema#integer",
|
5
|
-
"@value": "41"
|
6
|
-
}],
|
7
|
-
"http://xmlns.com/foaf/0.1/homepage": [{
|
8
|
-
"@id": "http://manu.sporny.org/"
|
9
|
-
}]
|
10
|
-
}]
|
@@ -1,9 +0,0 @@
|
|
1
|
-
[{
|
2
|
-
"@id": "http://manu.sporny.org/#me",
|
3
|
-
"@type": ["http://xmlns.com/foaf/0.1/Person"],
|
4
|
-
"http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}],
|
5
|
-
"http://xmlns.com/foaf/0.1/knows": [{
|
6
|
-
"@type": ["http://xmlns.com/foaf/0.1/Person"],
|
7
|
-
"http://xmlns.com/foaf/0.1/name": [{"@value": "Gregg Kellogg"}]
|
8
|
-
}]
|
9
|
-
}]
|
@@ -1,10 +0,0 @@
|
|
1
|
-
[{
|
2
|
-
"@id": "http://example.org/people#joebob",
|
3
|
-
"@type": ["http://xmlns.com/foaf/0.1/Person"],
|
4
|
-
"http://xmlns.com/foaf/0.1/name": [{"@value": "Joe Bob"}],
|
5
|
-
"http://xmlns.com/foaf/0.1/nick": [{ "@list": [
|
6
|
-
{"@value": "joe"},
|
7
|
-
{"@value": "bob"},
|
8
|
-
{"@value": "jaybe"}
|
9
|
-
]}]
|
10
|
-
}]
|
@@ -1,23 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": { "foaf": "http://xmlns.com/foaf/0.1/" },
|
3
|
-
"@graph": [
|
4
|
-
{
|
5
|
-
"@id": "_:bnode1",
|
6
|
-
"@type": "foaf:Person",
|
7
|
-
"foaf:homepage": "http://example.com/bob/",
|
8
|
-
"foaf:name": "Bob"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"@id": "_:bnode2",
|
12
|
-
"@type": "foaf:Person",
|
13
|
-
"foaf:homepage": "http://example.com/eve/",
|
14
|
-
"foaf:name": "Eve"
|
15
|
-
},
|
16
|
-
{
|
17
|
-
"@id": "_:bnode3",
|
18
|
-
"@type": "foaf:Person",
|
19
|
-
"foaf:homepage": "http://example.com/manu/",
|
20
|
-
"foaf:name": "Manu"
|
21
|
-
}
|
22
|
-
]
|
23
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"@id": "_:bnode1",
|
4
|
-
"@type": ["http://xmlns.com/foaf/0.1/Person"],
|
5
|
-
"http://xmlns.com/foaf/0.1/homepage": [{"@value": "http://example.com/bob/"}],
|
6
|
-
"http://xmlns.com/foaf/0.1/name": [{"@value": "Bob"}]
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"@id": "_:bnode2",
|
10
|
-
"@type": ["http://xmlns.com/foaf/0.1/Person"],
|
11
|
-
"http://xmlns.com/foaf/0.1/homepage": [{"@value": "http://example.com/eve/"}],
|
12
|
-
"http://xmlns.com/foaf/0.1/name": [{"@value": "Eve"}]
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"@id": "_:bnode3",
|
16
|
-
"@type": ["http://xmlns.com/foaf/0.1/Person"],
|
17
|
-
"http://xmlns.com/foaf/0.1/homepage": [{"@value": "http://example.com/manu/"}],
|
18
|
-
"http://xmlns.com/foaf/0.1/name": [{"@value": "Manu"}]
|
19
|
-
}
|
20
|
-
]
|
@@ -1,34 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"Book": "http://example.org/vocab#Book",
|
4
|
-
"Chapter": "http://example.org/vocab#Chapter",
|
5
|
-
"contains": {
|
6
|
-
"@id": "http://example.org/vocab#contains",
|
7
|
-
"@type": "@id"
|
8
|
-
},
|
9
|
-
"creator": "http://purl.org/dc/terms/creator",
|
10
|
-
"description": "http://purl.org/dc/terms/description",
|
11
|
-
"Library": "http://example.org/vocab#Library",
|
12
|
-
"title": "http://purl.org/dc/terms/title"
|
13
|
-
},
|
14
|
-
"@graph": [
|
15
|
-
{
|
16
|
-
"@id": "http://example.com/library",
|
17
|
-
"@type": "Library",
|
18
|
-
"contains": "http://example.org/library/the-republic"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"@id": "http://example.org/library/the-republic",
|
22
|
-
"@type": "Book",
|
23
|
-
"creator": "Plato",
|
24
|
-
"title": "The Republic",
|
25
|
-
"contains": "http://example.org/library/the-republic#introduction"
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"@id": "http://example.org/library/the-republic#introduction",
|
29
|
-
"@type": "Chapter",
|
30
|
-
"description": "An introductory chapter on The Republic.",
|
31
|
-
"title": "The Introduction"
|
32
|
-
}
|
33
|
-
]
|
34
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"Book": "http://example.org/vocab#Book",
|
4
|
-
"Chapter": "http://example.org/vocab#Chapter",
|
5
|
-
"contains": {"@id": "http://example.org/vocab#contains", "@type": "@id"},
|
6
|
-
"creator": "http://purl.org/dc/terms/creator",
|
7
|
-
"description": "http://purl.org/dc/terms/description",
|
8
|
-
"Library": "http://example.org/vocab#Library",
|
9
|
-
"title": "http://purl.org/dc/terms/title"
|
10
|
-
}
|
11
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"@id": "http://example.com/library",
|
4
|
-
"@type": ["http://example.org/vocab#Library"],
|
5
|
-
"http://example.org/vocab#contains": [{
|
6
|
-
"@id": "http://example.org/library/the-republic"
|
7
|
-
}]
|
8
|
-
},
|
9
|
-
{
|
10
|
-
"@id": "http://example.org/library/the-republic",
|
11
|
-
"@type": ["http://example.org/vocab#Book"],
|
12
|
-
"http://purl.org/dc/terms/creator": [{"@value": "Plato"}],
|
13
|
-
"http://purl.org/dc/terms/title": [{"@value": "The Republic"}],
|
14
|
-
"http://example.org/vocab#contains": [{
|
15
|
-
"@id": "http://example.org/library/the-republic#introduction"
|
16
|
-
}]
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"@id": "http://example.org/library/the-republic#introduction",
|
20
|
-
"@type": ["http://example.org/vocab#Chapter"],
|
21
|
-
"http://purl.org/dc/terms/description": [{"@value": "An introductory chapter on The Republic."}],
|
22
|
-
"http://purl.org/dc/terms/title": [{"@value": "The Introduction"}]
|
23
|
-
}
|
24
|
-
]
|
@@ -1,18 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"Book": "http://example.org/vocab#Book",
|
4
|
-
"Chapter": "http://example.org/vocab#Chapter",
|
5
|
-
"contains": "http://example.org/vocab#contains",
|
6
|
-
"creator": "http://purl.org/dc/terms/creator",
|
7
|
-
"description": "http://purl.org/dc/terms/description",
|
8
|
-
"Library": "http://example.org/vocab#Library",
|
9
|
-
"title": "http://purl.org/dc/terms/title"
|
10
|
-
},
|
11
|
-
"@type": "Library",
|
12
|
-
"contains": {
|
13
|
-
"@type": "Book",
|
14
|
-
"contains": {
|
15
|
-
"@type": "Chapter"
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"Book": "http://example.org/vocab#Book",
|
4
|
-
"Chapter": "http://example.org/vocab#Chapter",
|
5
|
-
"contains": "http://example.org/vocab#contains",
|
6
|
-
"creator": "http://purl.org/dc/terms/creator",
|
7
|
-
"description": "http://purl.org/dc/terms/description",
|
8
|
-
"Library": "http://example.org/vocab#Library",
|
9
|
-
"title": "http://purl.org/dc/terms/title"
|
10
|
-
},
|
11
|
-
"@id": "http://example.com/library",
|
12
|
-
"@type": "Library",
|
13
|
-
"contains": {
|
14
|
-
"@id": "http://example.org/library/the-republic",
|
15
|
-
"@type": "Book",
|
16
|
-
"contains": {
|
17
|
-
"@id": "http://example.org/library/the-republic#introduction",
|
18
|
-
"@type": "Chapter",
|
19
|
-
"description": "An introductory chapter on The Republic.",
|
20
|
-
"title": "The Introduction"
|
21
|
-
},
|
22
|
-
"creator": "Plato",
|
23
|
-
"title": "The Republic"
|
24
|
-
}
|
25
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"id1": "http://example.com/id1",
|
4
|
-
"t1": "http://example.com/t1",
|
5
|
-
"t2": "http://example.com/t2",
|
6
|
-
"term1": "http://example.com/term",
|
7
|
-
"term2": {"@id": "http://example.com/term", "@type": "t2"},
|
8
|
-
"term3": {"@id": "http://example.com/term", "@language": "en"},
|
9
|
-
"term4": {"@id": "http://example.com/term", "@container": "@list"},
|
10
|
-
"term5": {"@id": "http://example.com/term", "@language": null},
|
11
|
-
"@language": "de"
|
12
|
-
},
|
13
|
-
"@id": "http://example.com/id1",
|
14
|
-
"@type": "t1",
|
15
|
-
"term1": "v1",
|
16
|
-
"term2": "v2",
|
17
|
-
"term3": "v3",
|
18
|
-
"term4": [ 1, 2 ],
|
19
|
-
"term5": [ "v5", "plain literal" ]
|
20
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"@context": {
|
3
|
-
"id1": "http://example.com/id1",
|
4
|
-
"t1": "http://example.com/t1",
|
5
|
-
"t2": "http://example.com/t2",
|
6
|
-
"term1": "http://example.com/term",
|
7
|
-
"term2": {"@id": "http://example.com/term", "@type": "t2"},
|
8
|
-
"term3": {"@id": "http://example.com/term", "@language": "en"},
|
9
|
-
"term4": {"@id": "http://example.com/term", "@container": "@list"},
|
10
|
-
"term5": {"@id": "http://example.com/term", "@language": null},
|
11
|
-
"@language": "de"
|
12
|
-
}
|
13
|
-
}
|