File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ module RDF::RDFXML
20
20
#
21
21
# @see http://www.w3.org/TR/rdf-testcases/#ntriples
22
22
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'
24
26
content_encoding 'utf-8'
25
27
26
28
reader { RDF ::RDFXML ::Reader }
Original file line number Diff line number Diff line change 37
37
specify { expect ( described_class . to_sym ) . to eq :rdfxml }
38
38
end
39
39
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
+
40
44
describe ".detect" do
41
45
{
42
46
rdfxml : '<rdf:RDF about="foo"></rdf:RDF>' ,
You can’t perform that action at this time.
0 commit comments