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.
1 parent 8b636d6 commit ea603b8Copy full SHA for ea603b8
lib/json/ld/format.rb
@@ -23,7 +23,8 @@ module JSON::LD
23
class Format < RDF::Format
24
content_type 'application/ld+json',
25
extension: :jsonld,
26
- alias: 'application/x-ld+json'
+ alias: 'application/x-ld+json',
27
+ uri: 'http://www.w3.org/ns/formats/JSON-LD'
28
content_encoding 'utf-8'
29
30
reader { JSON::LD::Reader }
spec/format_spec.rb
@@ -41,6 +41,10 @@
41
specify {expect(described_class.to_sym).to eq :jsonld}
42
end
43
44
+ describe "#to_uri" do
45
+ specify {expect(described_class.to_uri).to eq RDF::URI('http://www.w3.org/ns/formats/JSON-LD')}
46
+ end
47
+
48
describe ".detect" do
49
{
50
jsonld: '{"@context" => "foo"}',
0 commit comments