yaml-ld 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/AUTHORS +1 -0
- data/README.md +150 -0
- data/UNLICENSE +24 -0
- data/VERSION +1 -0
- data/lib/yaml_ld/api.rb +295 -0
- data/lib/yaml_ld/format.rb +56 -0
- data/lib/yaml_ld/reader.rb +40 -0
- data/lib/yaml_ld/version.rb +20 -0
- data/lib/yaml_ld/writer.rb +42 -0
- data/lib/yaml_ld.rb +37 -0
- data/spec/api_spec.rb +92 -0
- data/spec/compact_spec.rb +358 -0
- data/spec/expand_spec.rb +565 -0
- data/spec/flatten_spec.rb +225 -0
- data/spec/format_spec.rb +54 -0
- data/spec/frame_spec.rb +662 -0
- data/spec/from_rdf_spec.rb +730 -0
- data/spec/matchers.rb +22 -0
- data/spec/reader_spec.rb +138 -0
- data/spec/spec_helper.rb +265 -0
- data/spec/support/extensions.rb +44 -0
- data/spec/test-files/test-1-compacted.jsonld +10 -0
- data/spec/test-files/test-1-context.jsonld +7 -0
- data/spec/test-files/test-1-expanded.jsonld +5 -0
- data/spec/test-files/test-1-input.yamlld +8 -0
- data/spec/test-files/test-1-rdf.ttl +8 -0
- data/spec/test-files/test-2-compacted.jsonld +20 -0
- data/spec/test-files/test-2-context.jsonld +7 -0
- data/spec/test-files/test-2-expanded.jsonld +16 -0
- data/spec/test-files/test-2-input.yamlld +16 -0
- data/spec/test-files/test-2-rdf.ttl +14 -0
- data/spec/test-files/test-3-compacted.jsonld +11 -0
- data/spec/test-files/test-3-context.jsonld +8 -0
- data/spec/test-files/test-3-expanded.jsonld +10 -0
- data/spec/test-files/test-3-input.yamlld +13 -0
- data/spec/test-files/test-3-rdf.ttl +8 -0
- data/spec/test-files/test-4-compacted.jsonld +10 -0
- data/spec/test-files/test-4-context.jsonld +7 -0
- data/spec/test-files/test-4-expanded.jsonld +6 -0
- data/spec/test-files/test-4-input.yamlld +9 -0
- data/spec/test-files/test-4-rdf.ttl +5 -0
- data/spec/test-files/test-5-compacted.jsonld +13 -0
- data/spec/test-files/test-5-context.jsonld +7 -0
- data/spec/test-files/test-5-expanded.jsonld +9 -0
- data/spec/test-files/test-5-input.yamlld +10 -0
- data/spec/test-files/test-5-rdf.ttl +7 -0
- data/spec/test-files/test-6-compacted.jsonld +10 -0
- data/spec/test-files/test-6-context.jsonld +7 -0
- data/spec/test-files/test-6-expanded.jsonld +10 -0
- data/spec/test-files/test-6-input.yamlld +12 -0
- data/spec/test-files/test-6-rdf.ttl +6 -0
- data/spec/test-files/test-7-compacted.jsonld +23 -0
- data/spec/test-files/test-7-context.jsonld +4 -0
- data/spec/test-files/test-7-expanded.jsonld +20 -0
- data/spec/test-files/test-7-input.yamlld +16 -0
- data/spec/test-files/test-7-rdf.ttl +14 -0
- data/spec/test-files/test-8-compacted.jsonld +34 -0
- data/spec/test-files/test-8-context.jsonld +11 -0
- data/spec/test-files/test-8-expanded.jsonld +24 -0
- data/spec/test-files/test-8-frame.jsonld +18 -0
- data/spec/test-files/test-8-framed.jsonld +25 -0
- data/spec/test-files/test-8-input.yamlld +24 -0
- data/spec/test-files/test-8-rdf.ttl +15 -0
- data/spec/test-files/test-9-compacted.jsonld +20 -0
- data/spec/test-files/test-9-context.jsonld +13 -0
- data/spec/test-files/test-9-expanded.jsonld +14 -0
- data/spec/test-files/test-9-input.yamlld +16 -0
- data/spec/to_rdf_spec.rb +556 -0
- data/spec/writer_spec.rb +441 -0
- metadata +350 -0
metadata
ADDED
@@ -0,0 +1,350 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: yaml-ld
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gregg Kellogg
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-07-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: json-ld
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.2.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.2.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: psych
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rdf
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.2'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.2'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rdf-isomorphic
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '3.2'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '3.2'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rdf-spec
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '3.2'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3.2'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rdf-trig
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '3.2'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '3.2'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rdf-turtle
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.2'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '3.2'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rdf-vocab
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '3.2'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '3.2'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: rdf-xsd
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '3.2'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '3.2'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: rspec
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '3.10'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '3.10'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rspec-its
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '1.3'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '1.3'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: yard
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.9'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0.9'
|
187
|
+
description: YAML_LD parses and serializes YAML-LD into RDF and implements expansion,
|
188
|
+
compaction and framing API interfaces for the Ruby RDF.rb library suite.
|
189
|
+
email: public-linked-json@w3.org
|
190
|
+
executables: []
|
191
|
+
extensions: []
|
192
|
+
extra_rdoc_files: []
|
193
|
+
files:
|
194
|
+
- AUTHORS
|
195
|
+
- README.md
|
196
|
+
- UNLICENSE
|
197
|
+
- VERSION
|
198
|
+
- lib/yaml_ld.rb
|
199
|
+
- lib/yaml_ld/api.rb
|
200
|
+
- lib/yaml_ld/format.rb
|
201
|
+
- lib/yaml_ld/reader.rb
|
202
|
+
- lib/yaml_ld/version.rb
|
203
|
+
- lib/yaml_ld/writer.rb
|
204
|
+
- spec/api_spec.rb
|
205
|
+
- spec/compact_spec.rb
|
206
|
+
- spec/expand_spec.rb
|
207
|
+
- spec/flatten_spec.rb
|
208
|
+
- spec/format_spec.rb
|
209
|
+
- spec/frame_spec.rb
|
210
|
+
- spec/from_rdf_spec.rb
|
211
|
+
- spec/matchers.rb
|
212
|
+
- spec/reader_spec.rb
|
213
|
+
- spec/spec_helper.rb
|
214
|
+
- spec/support/extensions.rb
|
215
|
+
- spec/test-files/test-1-compacted.jsonld
|
216
|
+
- spec/test-files/test-1-context.jsonld
|
217
|
+
- spec/test-files/test-1-expanded.jsonld
|
218
|
+
- spec/test-files/test-1-input.yamlld
|
219
|
+
- spec/test-files/test-1-rdf.ttl
|
220
|
+
- spec/test-files/test-2-compacted.jsonld
|
221
|
+
- spec/test-files/test-2-context.jsonld
|
222
|
+
- spec/test-files/test-2-expanded.jsonld
|
223
|
+
- spec/test-files/test-2-input.yamlld
|
224
|
+
- spec/test-files/test-2-rdf.ttl
|
225
|
+
- spec/test-files/test-3-compacted.jsonld
|
226
|
+
- spec/test-files/test-3-context.jsonld
|
227
|
+
- spec/test-files/test-3-expanded.jsonld
|
228
|
+
- spec/test-files/test-3-input.yamlld
|
229
|
+
- spec/test-files/test-3-rdf.ttl
|
230
|
+
- spec/test-files/test-4-compacted.jsonld
|
231
|
+
- spec/test-files/test-4-context.jsonld
|
232
|
+
- spec/test-files/test-4-expanded.jsonld
|
233
|
+
- spec/test-files/test-4-input.yamlld
|
234
|
+
- spec/test-files/test-4-rdf.ttl
|
235
|
+
- spec/test-files/test-5-compacted.jsonld
|
236
|
+
- spec/test-files/test-5-context.jsonld
|
237
|
+
- spec/test-files/test-5-expanded.jsonld
|
238
|
+
- spec/test-files/test-5-input.yamlld
|
239
|
+
- spec/test-files/test-5-rdf.ttl
|
240
|
+
- spec/test-files/test-6-compacted.jsonld
|
241
|
+
- spec/test-files/test-6-context.jsonld
|
242
|
+
- spec/test-files/test-6-expanded.jsonld
|
243
|
+
- spec/test-files/test-6-input.yamlld
|
244
|
+
- spec/test-files/test-6-rdf.ttl
|
245
|
+
- spec/test-files/test-7-compacted.jsonld
|
246
|
+
- spec/test-files/test-7-context.jsonld
|
247
|
+
- spec/test-files/test-7-expanded.jsonld
|
248
|
+
- spec/test-files/test-7-input.yamlld
|
249
|
+
- spec/test-files/test-7-rdf.ttl
|
250
|
+
- spec/test-files/test-8-compacted.jsonld
|
251
|
+
- spec/test-files/test-8-context.jsonld
|
252
|
+
- spec/test-files/test-8-expanded.jsonld
|
253
|
+
- spec/test-files/test-8-frame.jsonld
|
254
|
+
- spec/test-files/test-8-framed.jsonld
|
255
|
+
- spec/test-files/test-8-input.yamlld
|
256
|
+
- spec/test-files/test-8-rdf.ttl
|
257
|
+
- spec/test-files/test-9-compacted.jsonld
|
258
|
+
- spec/test-files/test-9-context.jsonld
|
259
|
+
- spec/test-files/test-9-expanded.jsonld
|
260
|
+
- spec/test-files/test-9-input.yamlld
|
261
|
+
- spec/to_rdf_spec.rb
|
262
|
+
- spec/writer_spec.rb
|
263
|
+
homepage: https://github.com/ruby-rdf/yaml-ld
|
264
|
+
licenses:
|
265
|
+
- Unlicense
|
266
|
+
metadata:
|
267
|
+
documentation_uri: https://ruby-rdf.github.io/yaml-ld
|
268
|
+
bug_tracker_uri: https://github.com/ruby-rdf/yaml-ld/issues
|
269
|
+
homepage_uri: https://github.com/ruby-rdf/yaml-ld
|
270
|
+
mailing_list_uri: https://lists.w3.org/Archives/Public/public-rdf-ruby/
|
271
|
+
source_code_uri: https://github.com/ruby-rdf/yaml-ld
|
272
|
+
post_install_message:
|
273
|
+
rdoc_options: []
|
274
|
+
require_paths:
|
275
|
+
- lib
|
276
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
277
|
+
requirements:
|
278
|
+
- - ">="
|
279
|
+
- !ruby/object:Gem::Version
|
280
|
+
version: '2.6'
|
281
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
requirements: []
|
287
|
+
rubygems_version: 3.3.3
|
288
|
+
signing_key:
|
289
|
+
specification_version: 4
|
290
|
+
summary: YAML-LD reader/writer for Ruby.
|
291
|
+
test_files:
|
292
|
+
- spec/api_spec.rb
|
293
|
+
- spec/compact_spec.rb
|
294
|
+
- spec/expand_spec.rb
|
295
|
+
- spec/flatten_spec.rb
|
296
|
+
- spec/format_spec.rb
|
297
|
+
- spec/frame_spec.rb
|
298
|
+
- spec/from_rdf_spec.rb
|
299
|
+
- spec/matchers.rb
|
300
|
+
- spec/reader_spec.rb
|
301
|
+
- spec/spec_helper.rb
|
302
|
+
- spec/support/extensions.rb
|
303
|
+
- spec/to_rdf_spec.rb
|
304
|
+
- spec/writer_spec.rb
|
305
|
+
- spec/test-files/test-1-compacted.jsonld
|
306
|
+
- spec/test-files/test-1-context.jsonld
|
307
|
+
- spec/test-files/test-1-expanded.jsonld
|
308
|
+
- spec/test-files/test-1-input.yamlld
|
309
|
+
- spec/test-files/test-1-rdf.ttl
|
310
|
+
- spec/test-files/test-2-compacted.jsonld
|
311
|
+
- spec/test-files/test-2-context.jsonld
|
312
|
+
- spec/test-files/test-2-expanded.jsonld
|
313
|
+
- spec/test-files/test-2-input.yamlld
|
314
|
+
- spec/test-files/test-2-rdf.ttl
|
315
|
+
- spec/test-files/test-3-compacted.jsonld
|
316
|
+
- spec/test-files/test-3-context.jsonld
|
317
|
+
- spec/test-files/test-3-expanded.jsonld
|
318
|
+
- spec/test-files/test-3-input.yamlld
|
319
|
+
- spec/test-files/test-3-rdf.ttl
|
320
|
+
- spec/test-files/test-4-compacted.jsonld
|
321
|
+
- spec/test-files/test-4-context.jsonld
|
322
|
+
- spec/test-files/test-4-expanded.jsonld
|
323
|
+
- spec/test-files/test-4-input.yamlld
|
324
|
+
- spec/test-files/test-4-rdf.ttl
|
325
|
+
- spec/test-files/test-5-compacted.jsonld
|
326
|
+
- spec/test-files/test-5-context.jsonld
|
327
|
+
- spec/test-files/test-5-expanded.jsonld
|
328
|
+
- spec/test-files/test-5-input.yamlld
|
329
|
+
- spec/test-files/test-5-rdf.ttl
|
330
|
+
- spec/test-files/test-6-compacted.jsonld
|
331
|
+
- spec/test-files/test-6-context.jsonld
|
332
|
+
- spec/test-files/test-6-expanded.jsonld
|
333
|
+
- spec/test-files/test-6-input.yamlld
|
334
|
+
- spec/test-files/test-6-rdf.ttl
|
335
|
+
- spec/test-files/test-7-compacted.jsonld
|
336
|
+
- spec/test-files/test-7-context.jsonld
|
337
|
+
- spec/test-files/test-7-expanded.jsonld
|
338
|
+
- spec/test-files/test-7-input.yamlld
|
339
|
+
- spec/test-files/test-7-rdf.ttl
|
340
|
+
- spec/test-files/test-8-compacted.jsonld
|
341
|
+
- spec/test-files/test-8-context.jsonld
|
342
|
+
- spec/test-files/test-8-expanded.jsonld
|
343
|
+
- spec/test-files/test-8-frame.jsonld
|
344
|
+
- spec/test-files/test-8-framed.jsonld
|
345
|
+
- spec/test-files/test-8-input.yamlld
|
346
|
+
- spec/test-files/test-8-rdf.ttl
|
347
|
+
- spec/test-files/test-9-compacted.jsonld
|
348
|
+
- spec/test-files/test-9-context.jsonld
|
349
|
+
- spec/test-files/test-9-expanded.jsonld
|
350
|
+
- spec/test-files/test-9-input.yamlld
|