Skip to content

Commit 6c3a535

Browse files
committed
Define the format URI to http://www.w3.org/ns/formats/Turtle.
1 parent c52cb1c commit 6c3a535

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

lib/rdf/turtle/format.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module RDF::Turtle
1818
class Format < RDF::Format
1919
content_type 'text/turtle',
2020
extension: :ttl,
21+
uri: 'http://www.w3.org/ns/formats/Turtle',
2122
aliases: %w(
2223
text/rdf+turtle
2324
application/turtle;q=0.2

spec/format_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
specify {expect(described_class.to_sym).to eq :turtle}
4949
end
5050

51+
describe "#to_uri" do
52+
specify {expect(described_class.to_uri).to eq RDF::URI('http://www.w3.org/ns/formats/Turtle')}
53+
end
54+
5155
describe ".detect" do
5256
{
5357
ntriples: "<a> <b> <c> .",

0 commit comments

Comments
 (0)