Skip to content

Commit 855fa7f

Browse files
committed
Release 2.0.0.beta1
2 parents 901ab96 + 7e0aafc commit 855fa7f

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

lib/rdf/spec/mutable.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@
196196
en = RDF::Literal('abc', language: 'en')
197197
fi = RDF::Literal('abc', language: 'fi')
198198

199-
subject.insert([RDF::URI('s'), RDF::URI('p'), en])
200-
expect { subject.delete([RDF::URI('s'), RDF::URI('p'), fi]) }
199+
subject.insert([RDF::URI('http://example.com/s'), RDF::URI('http://example.com/p'), en])
200+
expect { subject.delete([RDF::URI('http://example.com/s'), RDF::URI('http://example.com/p'), fi]) }
201201
.not_to change { subject.count }
202202
end
203203
end
@@ -207,9 +207,9 @@
207207
dec = RDF::Literal::Decimal.new(1)
208208
int = RDF::Literal::Integer.new(1)
209209

210-
subject.insert([RDF::URI('s'), RDF::URI('p'), dec])
210+
subject.insert([RDF::URI('http://example.com/s'), RDF::URI('http://example.com/p'), dec])
211211

212-
expect { subject.delete([RDF::URI('s'), RDF::URI('p'), int]) }
212+
expect { subject.delete([RDF::URI('http://example.com/s'), RDF::URI('http://example.com/p'), int]) }
213213
.not_to change { subject.count }
214214
end
215215
end
@@ -219,9 +219,9 @@
219219
one = RDF::Literal::Integer.new("1")
220220
zero_one = RDF::Literal::Integer.new("01")
221221

222-
subject.insert([RDF::URI('s'), RDF::URI('p'), one])
222+
subject.insert([RDF::URI('http://example.com/s'), RDF::URI('http://example.com/p'), one])
223223

224-
expect { subject.delete([RDF::URI('s'), RDF::URI('p'), zero_one]) }
224+
expect { subject.delete([RDF::URI('http://example.com/s'), RDF::URI('http://example.com/p'), zero_one]) }
225225
.not_to change { subject.count }
226226
end
227227
end
@@ -262,9 +262,9 @@
262262
it 'handles Graph names' do
263263
if @supports_named_graphs
264264
dels = non_bnode_statements.take(10).map do |st|
265-
RDF::Statement.from(st.to_hash.merge(graph_name: RDF::URI('fake')))
265+
RDF::Statement.from(st.to_hash.merge(graph_name: RDF::URI('http://example.com/fake')))
266266
end
267-
dels.map! { |st| st.graph_name = RDF::URI('fake'); st }
267+
dels.map! { |st| st.graph_name = RDF::URI('http://example.com/fake'); st }
268268
dels.extend(RDF::Enumerable)
269269
expect { subject.delete_insert(dels, []) }
270270
.not_to change { subject.statements.count }

lib/rdf/spec/transaction.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
context 'with a graph_name' do
2828
let(:queryable) do
29-
graph_name = RDF::URI('g')
29+
graph_name = RDF::URI('http://example.com/g')
3030
graph = RDF::Graph.new(graph_name: graph_name, data: repository)
3131
graph.insert(*RDF::Spec.quads)
3232
klass.new(repository, graph_name: graph_name)
@@ -96,7 +96,7 @@
9696
end
9797

9898
describe "#delete" do
99-
let(:st) { RDF::Statement(:s, RDF::URI('p'), 'o') }
99+
let(:st) { RDF::Statement(:s, RDF::URI('http://example.com/p'), 'o') }
100100

101101
it 'adds to deletes' do
102102
repository.insert(st)
@@ -108,7 +108,7 @@
108108
end
109109

110110
it 'adds multiple to deletes' do
111-
sts = [st] << RDF::Statement(:x, RDF::URI('y'), 'z')
111+
sts = [st] << RDF::Statement(:x, RDF::URI('http://example.com/y'), 'z')
112112
repository.insert(*sts)
113113

114114
expect do
@@ -118,7 +118,7 @@
118118
end
119119

120120
it 'adds enumerable to deletes' do
121-
sts = [st] << RDF::Statement(:x, RDF::URI('y'), 'z')
121+
sts = [st] << RDF::Statement(:x, RDF::URI('http://example.com/y'), 'z')
122122
sts.extend(RDF::Enumerable)
123123
repository.insert(sts)
124124

@@ -149,7 +149,7 @@
149149
end
150150

151151
it 'overwrites existing graph names' do
152-
st.graph_name = RDF::URI('g')
152+
st.graph_name = RDF::URI('http://example.com/g')
153153
repository.insert(st)
154154

155155
expect do
@@ -172,7 +172,7 @@
172172
end
173173

174174
describe "#insert" do
175-
let(:st) { RDF::Statement(:s, RDF::URI('p'), 'o') }
175+
let(:st) { RDF::Statement(:s, RDF::URI('http://example.com/p'), 'o') }
176176

177177
it 'adds to inserts' do
178178
expect do
@@ -183,7 +183,7 @@
183183
end
184184

185185
it 'adds multiple to inserts' do
186-
sts = [st] << RDF::Statement(:x, RDF::URI('y'), 'z')
186+
sts = [st] << RDF::Statement(:x, RDF::URI('http://example.com/y'), 'z')
187187

188188
expect do
189189
subject.insert(*sts)
@@ -193,7 +193,7 @@
193193
end
194194

195195
it 'adds enumerable to inserts' do
196-
sts = [st] << RDF::Statement(:x, RDF::URI('y'), 'z')
196+
sts = [st] << RDF::Statement(:x, RDF::URI('http://example.com/y'), 'z')
197197
sts.extend(RDF::Enumerable)
198198

199199
expect do
@@ -221,7 +221,7 @@
221221
end
222222

223223
it 'overwrites existing graph names' do
224-
st.graph_name = RDF::URI('g')
224+
st.graph_name = RDF::URI('http://example.com/g')
225225
with_name = st.dup
226226
with_name.graph_name = graph_uri
227227

@@ -251,7 +251,7 @@
251251
end
252252

253253
describe '#execute' do
254-
let(:st) { RDF::Statement(:s, RDF::URI('p'), 'o') }
254+
let(:st) { RDF::Statement(:s, RDF::URI('http://example.com/p'), 'o') }
255255

256256
context 'after rollback' do
257257
before { subject.rollback }
@@ -333,7 +333,7 @@
333333

334334
describe '#rollback' do
335335
before { subject.insert(st); subject.delete(st) }
336-
let(:st) { RDF::Statement(:s, RDF::URI('p'), 'o') }
336+
let(:st) { RDF::Statement(:s, RDF::URI('http://example.com/p'), 'o') }
337337

338338
it 'empties changes when available' do
339339
expect { subject.rollback }.to change { subject.changes }.to be_empty

0 commit comments

Comments
 (0)