Skip to content

Commit 8d0edd3

Browse files
committed
Define the format URI to http://www.w3.org/ns/formats/RDF_XML.
1 parent db405a1 commit 8d0edd3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/rdf/rdfxml/format.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ module RDF::RDFXML
2020
#
2121
# @see http://www.w3.org/TR/rdf-testcases/#ntriples
2222
class Format < RDF::Format
23-
content_type 'application/rdf+xml', extensions: [:rdf, :owl]
23+
content_type 'application/rdf+xml',
24+
extensions: [:rdf, :owl],
25+
uri: 'http://www.w3.org/ns/formats/RDF_XML'
2426
content_encoding 'utf-8'
2527

2628
reader { RDF::RDFXML::Reader }

spec/format_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
specify {expect(described_class.to_sym).to eq :rdfxml}
3838
end
3939

40+
describe "#to_uri" do
41+
specify {expect(described_class.to_uri).to eq RDF::URI('http://www.w3.org/ns/formats/RDF_XML')}
42+
end
43+
4044
describe ".detect" do
4145
{
4246
rdfxml: '<rdf:RDF about="foo"></rdf:RDF>',

0 commit comments

Comments
 (0)