Skip to content

Commit db3ea0f

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 1c6d005 + 2c8e4b7 commit db3ea0f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/rdf/rdfxml/format.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ 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', extension: :rdf
23+
content_type 'application/rdf+xml', extensions: [:rdf, :owl]
2424
content_encoding 'utf-8'
2525

2626
reader { RDF::RDFXML::Reader }
@@ -45,7 +45,7 @@ def self.name
4545
end
4646

4747
def self.symbols
48-
[:rdfxml, :rdf]
48+
[:rdfxml, :rdf, :owl]
4949
end
5050
end
5151
end

spec/format_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@
1111
formats = [
1212
:rdfxml,
1313
:rdf,
14+
:owl,
1415
'etc/doap.rdf',
16+
'etc/doap.owl',
1517
{file_name: 'etc/doap.rdf'},
18+
{file_name: 'etc/doap.owl'},
1619
{file_extension: 'rdf'},
20+
{file_extension: 'owl'},
1721
{content_type: 'application/rdf+xml'},
1822
].each do |arg|
1923
it "discovers with #{arg.inspect}" do

0 commit comments

Comments
 (0)