json-ld 3.1.6 → 3.1.7
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/json/ld/compact.rb +9 -2
- data/lib/json/ld/context.rb +1 -1
- data/spec/compact_spec.rb +206 -2
- data/spec/writer_spec.rb +193 -0
- metadata +60 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9345f0853c9ee6d7e1bb91817ca7d9effc1ce5d591f98fa92a11c396c1f0fbb
|
4
|
+
data.tar.gz: 7a84d8f7b4dd0fe379dd8b915d6e899f610807959d9ea4ef66c0ab4c22657807
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2ff1429edeea61f1655e445862140b5477dfa978cfaeaa3a417417fff24adfc17b6adea77cb24041c8c3daafaf7661d05023a3f1e2e4c161194be7dc4c96dd7
|
7
|
+
data.tar.gz: e04b64a78d9bfdc88d808219440b758540a3e6bd2f7dae4ee73831b093ab8ada77641acfc2c4c079b413f17b0d88a0149058fa3959c2fbdd6e0d421c8885fa5a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.7
|
data/lib/json/ld/compact.rb
CHANGED
@@ -98,8 +98,15 @@ module JSON::LD
|
|
98
98
|
log_debug("", depth: log_depth.to_i) {"#{expanded_property}: #{expanded_value.inspect}"}
|
99
99
|
|
100
100
|
if expanded_property == '@id'
|
101
|
-
compacted_value =
|
102
|
-
|
101
|
+
compacted_value = as_array(expanded_value).map do |expanded_id|
|
102
|
+
if node?(expanded_id) && @options[:rdfstar]
|
103
|
+
# This can only really happen for valid RDF*
|
104
|
+
compact(expanded_id, base: base,
|
105
|
+
property: '@id',
|
106
|
+
log_depth: log_depth.to_i + 1)
|
107
|
+
else
|
108
|
+
context.compact_iri(expanded_id, base: @options[:base])
|
109
|
+
end
|
103
110
|
end
|
104
111
|
|
105
112
|
kw_alias = context.compact_iri('@id', vocab: true)
|
data/lib/json/ld/context.rb
CHANGED
@@ -1038,7 +1038,7 @@ module JSON::LD
|
|
1038
1038
|
# @param [Term, #to_s] term in unexpanded form
|
1039
1039
|
# @return [Array<'@index', '@language', '@index', '@set', '@type', '@id', '@graph'>]
|
1040
1040
|
def container(term)
|
1041
|
-
return [term] if term == '@list'
|
1041
|
+
return Set[term] if term == '@list'
|
1042
1042
|
term = find_definition(term)
|
1043
1043
|
term ? term.container_mapping : Set.new
|
1044
1044
|
end
|
data/spec/compact_spec.rb
CHANGED
@@ -3113,6 +3113,210 @@ describe JSON::LD::API do
|
|
3113
3113
|
end
|
3114
3114
|
end
|
3115
3115
|
|
3116
|
+
context "JSON-LD*" do
|
3117
|
+
{
|
3118
|
+
"subject-iii": {
|
3119
|
+
input: %([{
|
3120
|
+
"@id": {
|
3121
|
+
"@id": "http://example/s1",
|
3122
|
+
"http://example/p1": [{"@id": "http://example/o1"}]
|
3123
|
+
},
|
3124
|
+
"http://example/p": [{"@id": "http://example/o"}]
|
3125
|
+
}]),
|
3126
|
+
context: %({"ex": "http://example/"}),
|
3127
|
+
output: %({
|
3128
|
+
"@context": {"ex": "http://example/"},
|
3129
|
+
"@id": {
|
3130
|
+
"@id": "ex:s1",
|
3131
|
+
"ex:p1": {"@id": "ex:o1"}
|
3132
|
+
},
|
3133
|
+
"ex:p": {"@id": "ex:o"}
|
3134
|
+
})
|
3135
|
+
},
|
3136
|
+
"subject-iib": {
|
3137
|
+
input: %([{
|
3138
|
+
"@id": {
|
3139
|
+
"@id": "http://example/s1",
|
3140
|
+
"http://example/p1": [{"@id": "_:o1"}]
|
3141
|
+
},
|
3142
|
+
"http://example/p": [{"@id": "http://example/o"}]
|
3143
|
+
}]),
|
3144
|
+
context: %({"ex": "http://example/"}),
|
3145
|
+
output: %({
|
3146
|
+
"@context": {"ex": "http://example/"},
|
3147
|
+
"@id": {
|
3148
|
+
"@id": "ex:s1",
|
3149
|
+
"ex:p1": {"@id": "_:o1"}
|
3150
|
+
},
|
3151
|
+
"ex:p": {"@id": "ex:o"}
|
3152
|
+
})
|
3153
|
+
},
|
3154
|
+
"subject-iil": {
|
3155
|
+
input: %([{
|
3156
|
+
"@id": {
|
3157
|
+
"@id": "http://example/s1",
|
3158
|
+
"http://example/p1": [{"@value": "o1"}]
|
3159
|
+
},
|
3160
|
+
"http://example/p": [{"@id": "http://example/o"}]
|
3161
|
+
}]),
|
3162
|
+
context: %({"ex": "http://example/"}),
|
3163
|
+
output: %({
|
3164
|
+
"@context": {"ex": "http://example/"},
|
3165
|
+
"@id": {
|
3166
|
+
"@id": "ex:s1",
|
3167
|
+
"ex:p1": "o1"
|
3168
|
+
},
|
3169
|
+
"ex:p": {"@id": "ex:o"}
|
3170
|
+
})
|
3171
|
+
},
|
3172
|
+
"subject-bii": {
|
3173
|
+
input: %([{
|
3174
|
+
"@id": {
|
3175
|
+
"@id": "_:s1",
|
3176
|
+
"http://example/p1": [{"@id": "http://example/o1"}]
|
3177
|
+
},
|
3178
|
+
"http://example/p": [{"@id": "http://example/o"}]
|
3179
|
+
}]),
|
3180
|
+
context: %({"ex": "http://example/"}),
|
3181
|
+
output: %({
|
3182
|
+
"@context": {"ex": "http://example/"},
|
3183
|
+
"@id": {
|
3184
|
+
"@id": "_:s1",
|
3185
|
+
"ex:p1": {"@id": "ex:o1"}
|
3186
|
+
},
|
3187
|
+
"ex:p": {"@id": "ex:o"}
|
3188
|
+
})
|
3189
|
+
},
|
3190
|
+
"subject-bib": {
|
3191
|
+
input: %([{
|
3192
|
+
"@id": {
|
3193
|
+
"@id": "_:s1",
|
3194
|
+
"http://example/p1": [{"@id": "_:o1"}]
|
3195
|
+
},
|
3196
|
+
"http://example/p": [{"@id": "http://example/o"}]
|
3197
|
+
}]),
|
3198
|
+
context: %({"ex": "http://example/"}),
|
3199
|
+
output: %({
|
3200
|
+
"@context": {"ex": "http://example/"},
|
3201
|
+
"@id": {
|
3202
|
+
"@id": "_:s1",
|
3203
|
+
"ex:p1": {"@id": "_:o1"}
|
3204
|
+
},
|
3205
|
+
"ex:p": {"@id": "ex:o"}
|
3206
|
+
})
|
3207
|
+
},
|
3208
|
+
"subject-bil": {
|
3209
|
+
input: %([{
|
3210
|
+
"@id": {
|
3211
|
+
"@id": "_:s1",
|
3212
|
+
"http://example/p1": [{"@value": "o1"}]
|
3213
|
+
},
|
3214
|
+
"http://example/p": [{"@id": "http://example/o"}]
|
3215
|
+
}]),
|
3216
|
+
context: %({"ex": "http://example/"}),
|
3217
|
+
output: %({
|
3218
|
+
"@context": {"ex": "http://example/"},
|
3219
|
+
"@id": {
|
3220
|
+
"@id": "_:s1",
|
3221
|
+
"ex:p1": "o1"
|
3222
|
+
},
|
3223
|
+
"ex:p": {"@id": "ex:o"}
|
3224
|
+
})
|
3225
|
+
},
|
3226
|
+
"object-iii": {
|
3227
|
+
input: %([{
|
3228
|
+
"@id": "http://example/s",
|
3229
|
+
"http://example/p": [{
|
3230
|
+
"@id": {
|
3231
|
+
"@id": "http://example/s1",
|
3232
|
+
"http://example/p1": [{"@id": "http://example/o1"}]
|
3233
|
+
}
|
3234
|
+
}]
|
3235
|
+
}]),
|
3236
|
+
context: %({"ex": "http://example/"}),
|
3237
|
+
output: %({
|
3238
|
+
"@context": {"ex": "http://example/"},
|
3239
|
+
"@id": "ex:s",
|
3240
|
+
"ex:p": {
|
3241
|
+
"@id": {
|
3242
|
+
"@id": "ex:s1",
|
3243
|
+
"ex:p1": {"@id": "ex:o1"}
|
3244
|
+
}
|
3245
|
+
}
|
3246
|
+
})
|
3247
|
+
},
|
3248
|
+
"object-iib": {
|
3249
|
+
input: %([{
|
3250
|
+
"@id": "http://example/s",
|
3251
|
+
"http://example/p": [{
|
3252
|
+
"@id": {
|
3253
|
+
"@id": "http://example/s1",
|
3254
|
+
"http://example/p1": [{"@id": "_:o1"}]
|
3255
|
+
}
|
3256
|
+
}]
|
3257
|
+
}]),
|
3258
|
+
context: %({"ex": "http://example/"}),
|
3259
|
+
output: %({
|
3260
|
+
"@context": {"ex": "http://example/"},
|
3261
|
+
"@id": "ex:s",
|
3262
|
+
"ex:p": {
|
3263
|
+
"@id": {
|
3264
|
+
"@id": "ex:s1",
|
3265
|
+
"ex:p1": {"@id": "_:o1"}
|
3266
|
+
}
|
3267
|
+
}
|
3268
|
+
})
|
3269
|
+
},
|
3270
|
+
"object-iil": {
|
3271
|
+
input: %([{
|
3272
|
+
"@id": "http://example/s",
|
3273
|
+
"http://example/p": [{
|
3274
|
+
"@id": {
|
3275
|
+
"@id": "http://example/s1",
|
3276
|
+
"http://example/p1": [{"@value": "o1"}]
|
3277
|
+
}
|
3278
|
+
}]
|
3279
|
+
}]),
|
3280
|
+
context: %({"ex": "http://example/"}),
|
3281
|
+
output: %({
|
3282
|
+
"@context": {"ex": "http://example/"},
|
3283
|
+
"@id": "ex:s",
|
3284
|
+
"ex:p": {
|
3285
|
+
"@id": {
|
3286
|
+
"@id": "ex:s1",
|
3287
|
+
"ex:p1": "o1"
|
3288
|
+
}
|
3289
|
+
}
|
3290
|
+
})
|
3291
|
+
},
|
3292
|
+
"recursive-subject": {
|
3293
|
+
input: %([{
|
3294
|
+
"@id": {
|
3295
|
+
"@id": {
|
3296
|
+
"@id": "http://example/s2",
|
3297
|
+
"http://example/p2": [{"@id": "http://example/o2"}]
|
3298
|
+
},
|
3299
|
+
"http://example/p1": [{"@id": "http://example/o1"}]
|
3300
|
+
},
|
3301
|
+
"http://example/p": [{"@id": "http://example/o"}]
|
3302
|
+
}]),
|
3303
|
+
context: %({"ex": "http://example/"}),
|
3304
|
+
output: %({
|
3305
|
+
"@context": {"ex": "http://example/"},
|
3306
|
+
"@id": {
|
3307
|
+
"@id": {
|
3308
|
+
"@id": "ex:s2",
|
3309
|
+
"ex:p2": {"@id": "ex:o2"}
|
3310
|
+
},
|
3311
|
+
"ex:p1": {"@id": "ex:o1"}
|
3312
|
+
},
|
3313
|
+
"ex:p": {"@id": "ex:o"}
|
3314
|
+
})
|
3315
|
+
},
|
3316
|
+
}.each do |name, params|
|
3317
|
+
it(name) {run_compact(params.merge(rdfstar: true))}
|
3318
|
+
end
|
3319
|
+
end
|
3116
3320
|
|
3117
3321
|
context "problem cases" do
|
3118
3322
|
{
|
@@ -3200,8 +3404,8 @@ describe JSON::LD::API do
|
|
3200
3404
|
expect(jld).to produce_jsonld(output, logger)
|
3201
3405
|
|
3202
3406
|
# Compare expanded jld/output too to make sure list values remain ordered
|
3203
|
-
exp_jld = JSON::LD::API.expand(jld, processingMode: 'json-ld-1.1')
|
3204
|
-
exp_output = JSON::LD::API.expand(output, processingMode: 'json-ld-1.1')
|
3407
|
+
exp_jld = JSON::LD::API.expand(jld, processingMode: 'json-ld-1.1', rdfstar: params[:rdfstar])
|
3408
|
+
exp_output = JSON::LD::API.expand(output, processingMode: 'json-ld-1.1', rdfstar: params[:rdfstar])
|
3205
3409
|
expect(exp_jld).to produce_jsonld(exp_output, logger)
|
3206
3410
|
end
|
3207
3411
|
end
|
data/spec/writer_spec.rb
CHANGED
@@ -189,6 +189,199 @@ describe JSON::LD::Writer do
|
|
189
189
|
end
|
190
190
|
end
|
191
191
|
|
192
|
+
context "RDF*" do
|
193
|
+
{
|
194
|
+
"subject-iii": {
|
195
|
+
input: RDF::Statement(
|
196
|
+
RDF::Statement(
|
197
|
+
RDF::URI('http://example/s1'),
|
198
|
+
RDF::URI('http://example/p1'),
|
199
|
+
RDF::URI('http://example/o1')),
|
200
|
+
RDF::URI('http://example/p'),
|
201
|
+
RDF::URI('http://example/o')),
|
202
|
+
output: %({
|
203
|
+
"@context": {"ex": "http://example/"},
|
204
|
+
"@id": {
|
205
|
+
"@id": "ex:s1",
|
206
|
+
"ex:p1": {"@id": "ex:o1"}
|
207
|
+
},
|
208
|
+
"ex:p": {"@id": "ex:o"}
|
209
|
+
})
|
210
|
+
},
|
211
|
+
"subject-iib": {
|
212
|
+
input: RDF::Statement(
|
213
|
+
RDF::Statement(
|
214
|
+
RDF::URI('http://example/s1'),
|
215
|
+
RDF::URI('http://example/p1'),
|
216
|
+
RDF::Node.new('o1')),
|
217
|
+
RDF::URI('http://example/p'),
|
218
|
+
RDF::URI('http://example/o')),
|
219
|
+
output: %({
|
220
|
+
"@context": {"ex": "http://example/"},
|
221
|
+
"@id": {
|
222
|
+
"@id": "ex:s1",
|
223
|
+
"ex:p1": {"@id": "_:o1"}
|
224
|
+
},
|
225
|
+
"ex:p": {"@id": "ex:o"}
|
226
|
+
})
|
227
|
+
},
|
228
|
+
"subject-iil": {
|
229
|
+
input: RDF::Statement(
|
230
|
+
RDF::Statement(
|
231
|
+
RDF::URI('http://example/s1'),
|
232
|
+
RDF::URI('http://example/p1'),
|
233
|
+
RDF::Literal('o1')),
|
234
|
+
RDF::URI('http://example/p'),
|
235
|
+
RDF::URI('http://example/o')),
|
236
|
+
output: %({
|
237
|
+
"@context": {"ex": "http://example/"},
|
238
|
+
"@id": {
|
239
|
+
"@id": "ex:s1",
|
240
|
+
"ex:p1": "o1"
|
241
|
+
},
|
242
|
+
"ex:p": {"@id": "ex:o"}
|
243
|
+
})
|
244
|
+
},
|
245
|
+
"subject-bii": {
|
246
|
+
input: RDF::Statement(
|
247
|
+
RDF::Statement(
|
248
|
+
RDF::Node('s1'),
|
249
|
+
RDF::URI('http://example/p1'),
|
250
|
+
RDF::URI('http://example/o1')),
|
251
|
+
RDF::URI('http://example/p'),
|
252
|
+
RDF::URI('http://example/o')),
|
253
|
+
output: %({
|
254
|
+
"@context": {"ex": "http://example/"},
|
255
|
+
"@id": {
|
256
|
+
"@id": "_:s1",
|
257
|
+
"ex:p1": {"@id": "ex:o1"}
|
258
|
+
},
|
259
|
+
"ex:p": {"@id": "ex:o"}
|
260
|
+
})
|
261
|
+
},
|
262
|
+
"subject-bib": {
|
263
|
+
input: RDF::Statement(
|
264
|
+
RDF::Statement(
|
265
|
+
RDF::Node('s1'),
|
266
|
+
RDF::URI('http://example/p1'),
|
267
|
+
RDF::Node.new('o1')),
|
268
|
+
RDF::URI('http://example/p'), RDF::URI('http://example/o')),
|
269
|
+
output: %({
|
270
|
+
"@context": {"ex": "http://example/"},
|
271
|
+
"@id": {
|
272
|
+
"@id": "_:s1",
|
273
|
+
"ex:p1": {"@id": "_:o1"}
|
274
|
+
},
|
275
|
+
"ex:p": {"@id": "ex:o"}
|
276
|
+
})
|
277
|
+
},
|
278
|
+
"subject-bil": {
|
279
|
+
input: RDF::Statement(
|
280
|
+
RDF::Statement(
|
281
|
+
RDF::Node('s1'),
|
282
|
+
RDF::URI('http://example/p1'),
|
283
|
+
RDF::Literal('o1')),
|
284
|
+
RDF::URI('http://example/p'),
|
285
|
+
RDF::URI('http://example/o')),
|
286
|
+
output: %({
|
287
|
+
"@context": {"ex": "http://example/"},
|
288
|
+
"@id": {
|
289
|
+
"@id": "_:s1",
|
290
|
+
"ex:p1": "o1"
|
291
|
+
},
|
292
|
+
"ex:p": {"@id": "ex:o"}
|
293
|
+
})
|
294
|
+
},
|
295
|
+
"object-iii": {
|
296
|
+
input: RDF::Statement(
|
297
|
+
RDF::URI('http://example/s'),
|
298
|
+
RDF::URI('http://example/p'),
|
299
|
+
RDF::Statement(
|
300
|
+
RDF::URI('http://example/s1'),
|
301
|
+
RDF::URI('http://example/p1'),
|
302
|
+
RDF::URI('http://example/o1'))),
|
303
|
+
output: %({
|
304
|
+
"@context": {"ex": "http://example/"},
|
305
|
+
"@id": "ex:s",
|
306
|
+
"ex:p": {
|
307
|
+
"@id": {
|
308
|
+
"@id": "ex:s1",
|
309
|
+
"ex:p1": {"@id": "ex:o1"}
|
310
|
+
}
|
311
|
+
}
|
312
|
+
})
|
313
|
+
},
|
314
|
+
"object-iib": {
|
315
|
+
input: RDF::Statement(
|
316
|
+
RDF::URI('http://example/s'),
|
317
|
+
RDF::URI('http://example/p'),
|
318
|
+
RDF::Statement(
|
319
|
+
RDF::URI('http://example/s1'),
|
320
|
+
RDF::URI('http://example/p1'),
|
321
|
+
RDF::Node.new('o1'))),
|
322
|
+
output: %({
|
323
|
+
"@context": {"ex": "http://example/"},
|
324
|
+
"@id": "ex:s",
|
325
|
+
"ex:p": {
|
326
|
+
"@id": {
|
327
|
+
"@id": "ex:s1",
|
328
|
+
"ex:p1": {"@id": "_:o1"}
|
329
|
+
}
|
330
|
+
}
|
331
|
+
})
|
332
|
+
},
|
333
|
+
"object-iil": {
|
334
|
+
input: RDF::Statement(
|
335
|
+
RDF::URI('http://example/s'),
|
336
|
+
RDF::URI('http://example/p'),
|
337
|
+
RDF::Statement(
|
338
|
+
RDF::URI('http://example/s1'),
|
339
|
+
RDF::URI('http://example/p1'),
|
340
|
+
RDF::Literal('o1'))),
|
341
|
+
output: %({
|
342
|
+
"@context": {"ex": "http://example/"},
|
343
|
+
"@id": "ex:s",
|
344
|
+
"ex:p": {
|
345
|
+
"@id": {
|
346
|
+
"@id": "ex:s1",
|
347
|
+
"ex:p1": "o1"
|
348
|
+
}
|
349
|
+
}
|
350
|
+
})
|
351
|
+
},
|
352
|
+
"recursive-subject": {
|
353
|
+
input: RDF::Statement(
|
354
|
+
RDF::Statement(
|
355
|
+
RDF::Statement(
|
356
|
+
RDF::URI('http://example/s2'),
|
357
|
+
RDF::URI('http://example/p2'),
|
358
|
+
RDF::URI('http://example/o2')),
|
359
|
+
RDF::URI('http://example/p1'),
|
360
|
+
RDF::URI('http://example/o1')),
|
361
|
+
RDF::URI('http://example/p'),
|
362
|
+
RDF::URI('http://example/o')),
|
363
|
+
output: %({
|
364
|
+
"@context": {"ex": "http://example/"},
|
365
|
+
"@id": {
|
366
|
+
"@id": {
|
367
|
+
"@id": "ex:s2",
|
368
|
+
"ex:p2": {"@id": "ex:o2"}
|
369
|
+
},
|
370
|
+
"ex:p1": {"@id": "ex:o1"}
|
371
|
+
},
|
372
|
+
"ex:p": {"@id": "ex:o"}
|
373
|
+
})
|
374
|
+
},
|
375
|
+
}.each do |name, params|
|
376
|
+
it name do
|
377
|
+
graph = RDF::Graph.new {|g| g << params[:input]}
|
378
|
+
expect(
|
379
|
+
serialize(graph, rdfstar: true, prefixes: {ex: 'http://example/'})
|
380
|
+
).to produce_jsonld(JSON.parse(params[:output]), logger)
|
381
|
+
end
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
192
385
|
context "Writes fromRdf tests to isomorphic graph" do
|
193
386
|
require 'suite_helper'
|
194
387
|
m = Fixtures::SuiteTest::Manifest.open("#{Fixtures::SuiteTest::SUITE}fromRdf-manifest.jsonld")
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -426,85 +426,85 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
426
426
|
- !ruby/object:Gem::Version
|
427
427
|
version: '0'
|
428
428
|
requirements: []
|
429
|
-
rubygems_version: 3.
|
429
|
+
rubygems_version: 3.1.4
|
430
430
|
signing_key:
|
431
431
|
specification_version: 4
|
432
432
|
summary: JSON-LD reader/writer for Ruby.
|
433
433
|
test_files:
|
434
|
+
- spec/spec_helper.rb
|
435
|
+
- spec/matchers.rb
|
434
436
|
- spec/api_spec.rb
|
435
|
-
- spec/
|
436
|
-
- spec/conneg_spec.rb
|
437
|
+
- spec/suite_from_rdf_spec.rb
|
437
438
|
- spec/context_spec.rb
|
438
|
-
- spec/expand_spec.rb
|
439
|
-
- spec/flatten_spec.rb
|
440
|
-
- spec/format_spec.rb
|
441
|
-
- spec/frame_spec.rb
|
442
439
|
- spec/from_rdf_spec.rb
|
443
|
-
- spec/
|
440
|
+
- spec/suite_helper.rb
|
444
441
|
- spec/reader_spec.rb
|
445
|
-
- spec/resource_spec.rb
|
446
|
-
- spec/spec_helper.rb
|
447
|
-
- spec/streaming_reader_spec.rb
|
448
442
|
- spec/streaming_writer_spec.rb
|
443
|
+
- spec/resource_spec.rb
|
444
|
+
- spec/suite_to_rdf_spec.rb
|
445
|
+
- spec/suite_remote_doc_spec.rb
|
446
|
+
- spec/format_spec.rb
|
447
|
+
- spec/frame_spec.rb
|
448
|
+
- spec/to_rdf_spec.rb
|
449
|
+
- spec/conneg_spec.rb
|
450
|
+
- spec/support/extensions.rb
|
451
|
+
- spec/suite_html_spec.rb
|
452
|
+
- spec/flatten_spec.rb
|
453
|
+
- spec/suite_frame_spec.rb
|
449
454
|
- spec/suite_compact_spec.rb
|
455
|
+
- spec/expand_spec.rb
|
450
456
|
- spec/suite_expand_spec.rb
|
451
457
|
- spec/suite_flatten_spec.rb
|
452
|
-
- spec/
|
453
|
-
- spec/suite_from_rdf_spec.rb
|
454
|
-
- spec/suite_helper.rb
|
455
|
-
- spec/suite_html_spec.rb
|
458
|
+
- spec/compact_spec.rb
|
456
459
|
- spec/suite_http_spec.rb
|
457
|
-
- spec/
|
458
|
-
- spec/suite_to_rdf_spec.rb
|
459
|
-
- spec/support/extensions.rb
|
460
|
-
- spec/to_rdf_spec.rb
|
460
|
+
- spec/streaming_reader_spec.rb
|
461
461
|
- spec/writer_spec.rb
|
462
|
-
- spec/test-files/test-1-compacted.json
|
463
|
-
- spec/test-files/test-1-context.json
|
464
|
-
- spec/test-files/test-1-expanded.json
|
465
|
-
- spec/test-files/test-1-input.json
|
466
|
-
- spec/test-files/test-1-normalized.json
|
467
|
-
- spec/test-files/test-1-rdf.ttl
|
468
|
-
- spec/test-files/test-2-compacted.json
|
469
|
-
- spec/test-files/test-2-context.json
|
470
|
-
- spec/test-files/test-2-expanded.json
|
471
|
-
- spec/test-files/test-2-input.json
|
472
|
-
- spec/test-files/test-2-normalized.json
|
473
|
-
- spec/test-files/test-2-rdf.ttl
|
474
462
|
- spec/test-files/test-3-compacted.json
|
475
|
-
- spec/test-files/test-
|
476
|
-
- spec/test-files/test-3-expanded.json
|
477
|
-
- spec/test-files/test-3-input.json
|
478
|
-
- spec/test-files/test-3-normalized.json
|
479
|
-
- spec/test-files/test-3-rdf.ttl
|
463
|
+
- spec/test-files/test-2-rdf.ttl
|
480
464
|
- spec/test-files/test-4-compacted.json
|
481
|
-
- spec/test-files/test-
|
465
|
+
- spec/test-files/test-5-input.json
|
466
|
+
- spec/test-files/test-3-rdf.ttl
|
467
|
+
- spec/test-files/test-5-compacted.json
|
468
|
+
- spec/test-files/test-9-expanded.json
|
469
|
+
- spec/test-files/test-8-input.json
|
470
|
+
- spec/test-files/test-2-compacted.json
|
471
|
+
- spec/test-files/test-8-compacted.json
|
472
|
+
- spec/test-files/test-7-expanded.json
|
473
|
+
- spec/test-files/test-1-rdf.ttl
|
474
|
+
- spec/test-files/test-7-context.json
|
475
|
+
- spec/test-files/test-3-expanded.json
|
476
|
+
- spec/test-files/test-8-rdf.ttl
|
477
|
+
- spec/test-files/test-1-normalized.json
|
478
|
+
- spec/test-files/test-2-input.json
|
479
|
+
- spec/test-files/test-7-compacted.json
|
480
|
+
- spec/test-files/test-1-context.json
|
481
|
+
- spec/test-files/test-6-context.json
|
482
|
+
- spec/test-files/test-6-compacted.json
|
483
|
+
- spec/test-files/test-7-input.json
|
484
|
+
- spec/test-files/test-1-compacted.json
|
482
485
|
- spec/test-files/test-4-expanded.json
|
486
|
+
- spec/test-files/test-9-compacted.json
|
487
|
+
- spec/test-files/test-4-context.json
|
483
488
|
- spec/test-files/test-4-input.json
|
484
|
-
- spec/test-files/test-
|
485
|
-
- spec/test-files/test-5-compacted.json
|
486
|
-
- spec/test-files/test-5-context.json
|
487
|
-
- spec/test-files/test-5-expanded.json
|
488
|
-
- spec/test-files/test-5-input.json
|
489
|
+
- spec/test-files/test-3-context.json
|
489
490
|
- spec/test-files/test-5-rdf.ttl
|
490
|
-
- spec/test-files/test-
|
491
|
-
- spec/test-files/test-
|
491
|
+
- spec/test-files/test-1-expanded.json
|
492
|
+
- spec/test-files/test-9-input.json
|
493
|
+
- spec/test-files/test-8-framed.json
|
494
|
+
- spec/test-files/test-5-expanded.json
|
495
|
+
- spec/test-files/test-3-normalized.json
|
496
|
+
- spec/test-files/test-2-expanded.json
|
492
497
|
- spec/test-files/test-6-expanded.json
|
498
|
+
- spec/test-files/test-2-context.json
|
499
|
+
- spec/test-files/test-5-context.json
|
500
|
+
- spec/test-files/test-1-input.json
|
501
|
+
- spec/test-files/test-4-rdf.ttl
|
502
|
+
- spec/test-files/test-8-frame.json
|
493
503
|
- spec/test-files/test-6-input.json
|
494
|
-
- spec/test-files/test-6-rdf.ttl
|
495
|
-
- spec/test-files/test-7-compacted.json
|
496
|
-
- spec/test-files/test-7-context.json
|
497
|
-
- spec/test-files/test-7-expanded.json
|
498
|
-
- spec/test-files/test-7-input.json
|
499
|
-
- spec/test-files/test-7-rdf.ttl
|
500
|
-
- spec/test-files/test-8-compacted.json
|
501
504
|
- spec/test-files/test-8-context.json
|
502
505
|
- spec/test-files/test-8-expanded.json
|
503
|
-
- spec/test-files/test-
|
504
|
-
- spec/test-files/test-
|
505
|
-
- spec/test-files/test-
|
506
|
-
- spec/test-files/test-
|
507
|
-
- spec/test-files/test-9-compacted.json
|
506
|
+
- spec/test-files/test-6-rdf.ttl
|
507
|
+
- spec/test-files/test-7-rdf.ttl
|
508
|
+
- spec/test-files/test-3-input.json
|
509
|
+
- spec/test-files/test-2-normalized.json
|
508
510
|
- spec/test-files/test-9-context.json
|
509
|
-
- spec/test-files/test-9-expanded.json
|
510
|
-
- spec/test-files/test-9-input.json
|