We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@vocab: @base
1 parent f8bf0bd commit 29e4472Copy full SHA for 29e4472
spec/expand_spec.rb
@@ -254,6 +254,22 @@
254
"http://example.org/a": [{"@value": "foo"}]
255
}])
256
},
257
+ "example": {
258
+ input: %({
259
+ "@context": {
260
+ "@base": "http://example/document",
261
+ "@vocab": "@base"
262
+ },
263
+ "@id": "http://example.org/places#BrewEats",
264
+ "@type": "#Restaurant",
265
+ "#name": "Brew Eats"
266
+ }),
267
+ output: %([{
268
269
+ "@type": ["http://example/document#Restaurant"],
270
+ "http://example/document#name": [{"@value": "Brew Eats"}]
271
+ }])
272
+ }
273
}.each do |title, params|
274
it(title) {run_expand params.merge(base: "http://example.org/")}
275
end
0 commit comments