Skip to content

Commit e6be506

Browse files
committed
Root RDF namespace under Rack (::RDF) due to Rack::RDF gem.
1 parent d5eef3d commit e6be506

18 files changed

+3088
-3085
lines changed

lib/rack/ldp.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def initialize(app)
5353
# @return [Array] a rack env array with added headers
5454
def call(env)
5555
@app.call(env)
56-
rescue RDF::LDP::RequestError => err
56+
rescue ::RDF::LDP::RequestError => err
5757
return [err.status, err.headers, [err.message]]
5858
end
5959
end
@@ -72,7 +72,7 @@ def initialize(app)
7272
def call(env)
7373
status, headers, response = @app.call(env)
7474

75-
if response.is_a? RDF::LDP::Resource
75+
if response.is_a? ::RDF::LDP::Resource
7676
new_response = response.to_response
7777
response.close if response.respond_to? :close
7878
response = new_response
@@ -100,7 +100,7 @@ def initialize(app)
100100
def call(env)
101101
status, headers, response = @app.call(env)
102102
return [status, headers, response] unless
103-
response.is_a? RDF::LDP::Resource
103+
response.is_a? ::RDF::LDP::Resource
104104

105105
response
106106
.send(:request, env['REQUEST_METHOD'].to_sym, status, headers, env)
@@ -114,7 +114,7 @@ def call(env)
114114
# @see Rack::LinkedData::ContentNegotiation}, making
115115
class ContentNegotiation < Rack::LinkedData::ContentNegotiation
116116
DEFAULT_PREFIXES =
117-
Hash[*RDF::Vocabulary.map { |v| [v.__prefix__, v.to_uri] }.flatten]
117+
Hash[*::RDF::Vocabulary.map { |v| [v.__prefix__, v.to_uri] }.flatten]
118118
.freeze
119119

120120
def initialize(app, options = {})
@@ -130,7 +130,7 @@ def initialize(app, options = {})
130130
#
131131
# @see Rack::LinkedData::ContentNegotiation#find_writer_for_content_type
132132
def find_writer_for_content_type(content_type)
133-
return [RDF::Writer.for(:ttl), 'text/turtle'] if
133+
return [::RDF::Writer.for(:ttl), 'text/turtle'] if
134134
content_type == 'text/*'
135135
super
136136
end

report/ldp-testsuite-execution-report.html

Lines changed: 39 additions & 39 deletions
Large diffs are not rendered by default.

test-output/LDP Test Suite/W3C Linked Data Platform Tests.html

Lines changed: 192 additions & 192 deletions
Large diffs are not rendered by default.

test-output/LDP Test Suite/W3C Linked Data Platform Tests.xml

Lines changed: 53 additions & 53 deletions
Large diffs are not rendered by default.

test-output/LDP Test Suite/testng-failed.xml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
33
<suite name="Failed suite [LDP Test Suite]">
4-
<parameter name="indirectContainer" value="http://127.0.0.1:49262/8df2b3910ac267810ad4ed3957f53d40"/>
4+
<parameter name="indirectContainer" value="http://127.0.0.1:64910/8445f580d8608641d69d68293258fc42"/>
55
<parameter name="output" value="report"/>
66
<test name="W3C Linked Data Platform Tests(failed)">
77
<groups>
@@ -47,6 +47,27 @@
4747
<include name="testTypeRdfSource"/>
4848
</methods>
4949
</class> <!-- org.w3.ldp.testsuite.test.IndirectContainerTest -->
50+
<class name="org.w3.ldp.testsuite.test.MemberResourceTest">
51+
<methods>
52+
<include name="testRestrictClientInference"/>
53+
<include name="testPutPropertiesNotPersisted"/>
54+
<include name="testPutRequiresIfMatch"/>
55+
<include name="testIsHttp11Manual"/>
56+
<include name="testPublishConstraintsUnknownProp"/>
57+
<include name="test4xxErrorHasResponseBody" invocation-numbers="0"/>
58+
<include name="addFailureToHttpLog"/>
59+
<include name="createTestResource"/>
60+
<include name="testPublishConstraintsReadOnlyProp" invocation-numbers="0"/>
61+
<include name="deleteTestResource"/>
62+
<include name="testConformsRdfSourceLdpResource"/>
63+
<include name="testUseStandardVocabularies"/>
64+
<include name="determineOptions"/>
65+
<include name="testPreconditionRequiredStatusCode"/>
66+
<include name="testReUseVocabularies"/>
67+
<include name="testPutReadOnlyProperties4xxStatus" invocation-numbers="0"/>
68+
<include name="testResponsePropertiesNotPersisted"/>
69+
</methods>
70+
</class> <!-- org.w3.ldp.testsuite.test.MemberResourceTest -->
5071
<class name="org.w3.ldp.testsuite.test.NonRDFSourceTest">
5172
<methods>
5273
<include name="testOptionsAllowHeader"/>
@@ -77,27 +98,6 @@
7798
<include name="testETagHeadersGet"/>
7899
</methods>
79100
</class> <!-- org.w3.ldp.testsuite.test.NonRDFSourceTest -->
80-
<class name="org.w3.ldp.testsuite.test.MemberResourceTest">
81-
<methods>
82-
<include name="testRestrictClientInference"/>
83-
<include name="testPutPropertiesNotPersisted"/>
84-
<include name="testPutRequiresIfMatch"/>
85-
<include name="testIsHttp11Manual"/>
86-
<include name="testPublishConstraintsUnknownProp"/>
87-
<include name="test4xxErrorHasResponseBody" invocation-numbers="0"/>
88-
<include name="addFailureToHttpLog"/>
89-
<include name="createTestResource"/>
90-
<include name="testPublishConstraintsReadOnlyProp" invocation-numbers="0"/>
91-
<include name="deleteTestResource"/>
92-
<include name="testConformsRdfSourceLdpResource"/>
93-
<include name="testUseStandardVocabularies"/>
94-
<include name="determineOptions"/>
95-
<include name="testPreconditionRequiredStatusCode"/>
96-
<include name="testReUseVocabularies"/>
97-
<include name="testPutReadOnlyProperties4xxStatus" invocation-numbers="0"/>
98-
<include name="testResponsePropertiesNotPersisted"/>
99-
</methods>
100-
</class> <!-- org.w3.ldp.testsuite.test.MemberResourceTest -->
101101
</classes>
102102
</test> <!-- W3C Linked Data Platform Tests(failed) -->
103103
</suite> <!-- Failed suite [LDP Test Suite] -->

test-output/emailable-report.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)