We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69ee66b commit f18828bCopy full SHA for f18828b
2 files changed
lib/ld/patch/format.rb
@@ -11,7 +11,9 @@ module LD::Patch
11
#
12
# @see http://www.w3.org/TR/ldpatch/
13
class Format < RDF::Format
14
- content_type 'text/ldpatch', extension: :ldp
+ content_type 'text/ldpatch',
15
+ extension: :ldp,
16
+ uri: 'http://www.w3.org/ns/formats/LD_Patch'
17
content_encoding 'utf-8'
18
19
##
spec/format_spec.rb
@@ -26,6 +26,10 @@
26
specify {expect(described_class.to_sym).to eq :ldpatch}
27
end
28
29
+ describe "#to_uri" do
30
+ specify {expect(described_class.to_uri).to eq RDF::URI('http://www.w3.org/ns/formats/LD_Patch')}
31
+ end
32
+
33
describe ".cli_commands" do
34
require 'rdf/cli'
35
let(:nt) {File.expand_path("../test-files/1triple.nt", __FILE__)}
0 commit comments