earl-report 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/earl_report.rb +1 -1
- data/spec/earl_report_spec.rb +67 -67
- data/spec/spec_helper.rb +1 -0
- data/spec/test-files/results.html +10 -10
- data/spec/test-files/results.jsonld +1 -1
- data/spec/test-files/results.ttl +4 -4
- metadata +53 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58a78c63721d749252d6999020e87a4e6208871d
|
4
|
+
data.tar.gz: a3c29d713373428535b130911c9b57881f7eea68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9387aa6f4019cea342f9959f6b7ec270eb1b1f5a4f02ca1b2a7f31ab16017cd2bce50d6705c4c8feb3885ac5afa15b55bf579cfc6b01b0d19a01cc49adb662d
|
7
|
+
data.tar.gz: e9cb70546185bb7fa15f1b705c2ba5e7546aebe377a4168a7ba9309ea378574c0d10a2d0c018ea358d42898d01866ab84ad3c56ce2a05f734ba26b464bf1044a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/earl_report.rb
CHANGED
@@ -342,7 +342,7 @@ class EarlReport
|
|
342
342
|
# Map ids and values to array entries
|
343
343
|
ts_info.keys.sort.map do |id|
|
344
344
|
info = ts_info[id]
|
345
|
-
subject =
|
345
|
+
subject = {}
|
346
346
|
subject["@id"] = id
|
347
347
|
subject["@type"] = %w(earl:TestSubject doap:Project)
|
348
348
|
%w(name developer doapDesc homepage language).each do |prop|
|
data/spec/earl_report_spec.rb
CHANGED
@@ -34,15 +34,15 @@ describe EarlReport do
|
|
34
34
|
}
|
35
35
|
|
36
36
|
it "requires a :manifest option" do
|
37
|
-
|
37
|
+
expect {EarlReport.new}.to raise_error("Test Manifests must be specified with :manifest option")
|
38
38
|
end
|
39
39
|
|
40
40
|
context "with base" do
|
41
41
|
it "loads manifest relative to base" do
|
42
|
-
RDF::Graph.
|
42
|
+
expect(RDF::Graph).to receive(:load)
|
43
43
|
.with(File.expand_path("../test-files/manifest.ttl", __FILE__), {:base_uri => "http://example.com/base/"})
|
44
44
|
.and_return(manifest)
|
45
|
-
RDF::Graph.
|
45
|
+
expect(RDF::Graph).to receive(:load)
|
46
46
|
.with(File.expand_path("../test-files/report-complete.ttl", __FILE__))
|
47
47
|
.and_return(reportComplete)
|
48
48
|
EarlReport.new(
|
@@ -55,10 +55,10 @@ describe EarlReport do
|
|
55
55
|
|
56
56
|
context "complete report" do
|
57
57
|
before(:each) do
|
58
|
-
RDF::Graph.
|
58
|
+
expect(RDF::Graph).to receive(:load)
|
59
59
|
.with(File.expand_path("../test-files/manifest.ttl", __FILE__), {})
|
60
60
|
.and_return(manifest)
|
61
|
-
RDF::Graph.
|
61
|
+
expect(RDF::Graph).to receive(:load)
|
62
62
|
.with(File.expand_path("../test-files/report-complete.ttl", __FILE__))
|
63
63
|
.and_return(reportComplete)
|
64
64
|
end
|
@@ -70,32 +70,32 @@ describe EarlReport do
|
|
70
70
|
:manifest => File.expand_path("../test-files/manifest.ttl", __FILE__))
|
71
71
|
}
|
72
72
|
it "loads manifest" do
|
73
|
-
subject.graph.subjects.to_a.
|
74
|
-
subject.graph.subjects.to_a.
|
73
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://example/manifest.ttl"))
|
74
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://example/manifest.ttl#testeval00"))
|
75
75
|
end
|
76
76
|
|
77
77
|
it "loads report" do
|
78
|
-
subject.graph.predicates.to_a.
|
78
|
+
expect(subject.graph.predicates.to_a).to include(RDF::URI("http://www.w3.org/ns/earl#assertedBy"))
|
79
79
|
end
|
80
80
|
|
81
81
|
it "loads doap" do
|
82
|
-
subject.graph.subjects.to_a.
|
82
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://rubygems.org/gems/rdf-turtle"))
|
83
83
|
end
|
84
84
|
|
85
85
|
it "loads foaf" do
|
86
|
-
subject.graph.objects.to_a.
|
86
|
+
expect(subject.graph.objects.to_a).to include(RDF::FOAF.Person)
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
90
|
context "no doap report" do
|
91
91
|
before(:each) do
|
92
|
-
RDF::Graph.
|
92
|
+
expect(RDF::Graph).to receive(:load)
|
93
93
|
.with(File.expand_path("../test-files/manifest.ttl", __FILE__), {})
|
94
94
|
.and_return(manifest)
|
95
|
-
RDF::Graph.
|
95
|
+
expect(RDF::Graph).to receive(:load)
|
96
96
|
.with(File.expand_path("../test-files/report-no-doap.ttl", __FILE__))
|
97
97
|
.and_return(reportNoDoap)
|
98
|
-
RDF::Graph.
|
98
|
+
expect(RDF::Graph).to receive(:load)
|
99
99
|
.with("http://rubygems.org/gems/rdf-turtle")
|
100
100
|
.and_return(doap)
|
101
101
|
end
|
@@ -107,32 +107,32 @@ describe EarlReport do
|
|
107
107
|
:manifest => File.expand_path("../test-files/manifest.ttl", __FILE__))
|
108
108
|
}
|
109
109
|
it "loads manifest" do
|
110
|
-
subject.graph.subjects.to_a.
|
111
|
-
subject.graph.subjects.to_a.
|
110
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://example/manifest.ttl"))
|
111
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://example/manifest.ttl#testeval00"))
|
112
112
|
end
|
113
113
|
|
114
114
|
it "loads report" do
|
115
|
-
subject.graph.predicates.to_a.
|
115
|
+
expect(subject.graph.predicates.to_a).to include(RDF::URI("http://www.w3.org/ns/earl#assertedBy"))
|
116
116
|
end
|
117
117
|
|
118
118
|
it "loads doap" do
|
119
|
-
subject.graph.subjects.to_a.
|
119
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://rubygems.org/gems/rdf-turtle"))
|
120
120
|
end
|
121
121
|
|
122
122
|
it "loads foaf" do
|
123
|
-
subject.graph.objects.to_a.
|
123
|
+
expect(subject.graph.objects.to_a).to include(RDF::FOAF.Person)
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
127
|
context "no foaf report" do
|
128
128
|
before(:each) do
|
129
|
-
RDF::Graph.
|
129
|
+
expect(RDF::Graph).to receive(:load)
|
130
130
|
.with(File.expand_path("../test-files/manifest.ttl", __FILE__), {})
|
131
131
|
.and_return(manifest)
|
132
|
-
RDF::Graph.
|
132
|
+
expect(RDF::Graph).to receive(:load)
|
133
133
|
.with(File.expand_path("../test-files/report-no-foaf.ttl", __FILE__))
|
134
134
|
.and_return(reportNoFoaf)
|
135
|
-
RDF::Graph.
|
135
|
+
expect(RDF::Graph).to receive(:load)
|
136
136
|
.with("http://greggkellogg.net/foaf#me")
|
137
137
|
.and_return(foaf)
|
138
138
|
end
|
@@ -144,20 +144,20 @@ describe EarlReport do
|
|
144
144
|
:manifest => File.expand_path("../test-files/manifest.ttl", __FILE__))
|
145
145
|
}
|
146
146
|
it "loads manifest" do
|
147
|
-
subject.graph.subjects.to_a.
|
148
|
-
subject.graph.subjects.to_a.
|
147
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://example/manifest.ttl"))
|
148
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://example/manifest.ttl#testeval00"))
|
149
149
|
end
|
150
150
|
|
151
151
|
it "loads report" do
|
152
|
-
subject.graph.predicates.to_a.
|
152
|
+
expect(subject.graph.predicates.to_a).to include(RDF::URI("http://www.w3.org/ns/earl#assertedBy"))
|
153
153
|
end
|
154
154
|
|
155
155
|
it "loads doap" do
|
156
|
-
subject.graph.subjects.to_a.
|
156
|
+
expect(subject.graph.subjects.to_a).to include(RDF::URI("http://rubygems.org/gems/rdf-turtle"))
|
157
157
|
end
|
158
158
|
|
159
159
|
it "loads foaf" do
|
160
|
-
subject.graph.objects.to_a.
|
160
|
+
expect(subject.graph.objects.to_a).to include(RDF::FOAF.Person)
|
161
161
|
end
|
162
162
|
end
|
163
163
|
end
|
@@ -172,7 +172,7 @@ describe EarlReport do
|
|
172
172
|
'bibRef' => "[[TURTLE]]",
|
173
173
|
'name' => "Turtle Test Results"
|
174
174
|
}.each do |prop, value|
|
175
|
-
specify(prop) {subject[prop].
|
175
|
+
specify(prop) {expect(subject[prop]).to eq value}
|
176
176
|
end
|
177
177
|
|
178
178
|
%w(assertions generatedBy testSubjects entries).each do |key|
|
@@ -185,31 +185,31 @@ describe EarlReport do
|
|
185
185
|
end
|
186
186
|
|
187
187
|
it "saves output" do
|
188
|
-
|
188
|
+
expect {
|
189
189
|
File.open(File.expand_path("../test-files/results.jsonld", __FILE__), "w") do |f|
|
190
190
|
f.write(subject.to_json)
|
191
191
|
end
|
192
|
-
}.
|
192
|
+
}.not_to raise_error
|
193
193
|
end
|
194
194
|
|
195
195
|
it "has Report" do
|
196
|
-
SPARQL.execute(REPORT_QUERY, graph).
|
196
|
+
expect(SPARQL.execute(REPORT_QUERY, graph)).to eq RDF::Literal::TRUE
|
197
197
|
end
|
198
198
|
|
199
199
|
it "has Subject" do
|
200
|
-
SPARQL.execute(SUBJECT_QUERY, graph).
|
200
|
+
expect(SPARQL.execute(SUBJECT_QUERY, graph)).to eq RDF::Literal::TRUE
|
201
201
|
end
|
202
202
|
|
203
203
|
it "has Developer" do
|
204
|
-
SPARQL.execute(DEVELOPER_QUERY, graph).
|
204
|
+
expect(SPARQL.execute(DEVELOPER_QUERY, graph)).to eq RDF::Literal::TRUE
|
205
205
|
end
|
206
206
|
|
207
207
|
it "has Test Case" do
|
208
|
-
SPARQL.execute(TC_QUERY, graph).
|
208
|
+
expect(SPARQL.execute(TC_QUERY, graph)).to eq RDF::Literal::TRUE
|
209
209
|
end
|
210
210
|
|
211
211
|
it "has Assertion" do
|
212
|
-
SPARQL.execute(ASSERTION_QUERY, graph).
|
212
|
+
expect(SPARQL.execute(ASSERTION_QUERY, graph)).to be_truthy
|
213
213
|
end
|
214
214
|
end
|
215
215
|
end
|
@@ -230,19 +230,19 @@ describe EarlReport do
|
|
230
230
|
language: "Ruby",
|
231
231
|
name: "RDF::Turtle",
|
232
232
|
}.each do |prop, value|
|
233
|
-
specify(prop) {ts[prop.to_s].
|
233
|
+
specify(prop) {expect(ts[prop.to_s]).to eq value}
|
234
234
|
end
|
235
235
|
|
236
236
|
context "developer" do
|
237
237
|
let(:dev) {ts['developer']}
|
238
|
-
specify {dev.
|
239
|
-
specify {dev.first.
|
238
|
+
specify {expect(dev).to be_a(Array)}
|
239
|
+
specify {expect(dev.first).to be_a(Hash)}
|
240
240
|
{
|
241
241
|
"@id" => "http://greggkellogg.net/foaf#me",
|
242
242
|
"@type" => %(foaf:Person),
|
243
243
|
"foaf:name" => "Gregg Kellogg",
|
244
244
|
}.each do |prop, value|
|
245
|
-
specify(prop) {dev.first[prop.to_s].
|
245
|
+
specify(prop) {expect(dev.first[prop.to_s]).to eq value}
|
246
246
|
end
|
247
247
|
end
|
248
248
|
end
|
@@ -261,11 +261,11 @@ describe EarlReport do
|
|
261
261
|
"@type" => %w(earl:Report mf:Manifest),
|
262
262
|
title: "Example Test Cases"
|
263
263
|
}.each do |prop, value|
|
264
|
-
specify(prop) {ts[prop.to_s].
|
264
|
+
specify(prop) {expect(ts[prop.to_s]).to eq value}
|
265
265
|
end
|
266
266
|
|
267
267
|
it "should have two entries" do
|
268
|
-
ts['entries'].length.
|
268
|
+
expect(ts['entries'].length).to eq 2
|
269
269
|
end
|
270
270
|
|
271
271
|
context "test case" do
|
@@ -278,17 +278,17 @@ describe EarlReport do
|
|
278
278
|
testAction: "http://example/test-00.ttl",
|
279
279
|
testResult: "http://example/test-00.out",
|
280
280
|
}.each do |prop, value|
|
281
|
-
specify(prop) {tc[prop.to_s].
|
281
|
+
specify(prop) {expect(tc[prop.to_s]).to eq value}
|
282
282
|
end
|
283
283
|
|
284
284
|
context('assertions') do
|
285
|
-
specify { tc['assertions'].
|
286
|
-
specify('has one entry') { tc['assertions'].length.
|
285
|
+
specify { expect(tc['assertions']).to be_a(Array)}
|
286
|
+
specify('has one entry') { expect(tc['assertions'].length).to eq 1}
|
287
287
|
end
|
288
288
|
|
289
289
|
context "assertion" do
|
290
290
|
let(:as) {tc['assertions'].first}
|
291
|
-
specify {as.
|
291
|
+
specify {expect(as).to be_a(Hash)}
|
292
292
|
{
|
293
293
|
"@type" => %(earl:Assertion),
|
294
294
|
assertedBy: "http://greggkellogg.net/foaf#me",
|
@@ -296,17 +296,17 @@ describe EarlReport do
|
|
296
296
|
subject: "http://rubygems.org/gems/rdf-turtle",
|
297
297
|
test: "http://example/manifest.ttl#testeval00",
|
298
298
|
}.each do |prop, value|
|
299
|
-
specify(prop) {as[prop.to_s].
|
299
|
+
specify(prop) {expect(as[prop.to_s]).to eq value}
|
300
300
|
end
|
301
301
|
|
302
302
|
context "result" do
|
303
303
|
let(:rs) {as['result']}
|
304
|
-
specify {rs.
|
304
|
+
specify {expect(rs).to be_a(Hash)}
|
305
305
|
{
|
306
306
|
"@type" => %(earl:TestResult),
|
307
307
|
outcome: "earl:passed",
|
308
308
|
}.each do |prop, value|
|
309
|
-
specify(prop) {rs[prop.to_s].
|
309
|
+
specify(prop) {expect(rs[prop.to_s]).to eq value}
|
310
310
|
end
|
311
311
|
end
|
312
312
|
end
|
@@ -401,22 +401,22 @@ describe EarlReport do
|
|
401
401
|
specify {should match(/ earl:mode #{as['mode']}\s*[;\.]$/)}
|
402
402
|
specify {should match(/ earl:result \[ a #{as['result']['@type']}; earl:outcome #{as['result']['outcome']} \]\]/)}
|
403
403
|
it "has type" do
|
404
|
-
ttl.
|
404
|
+
expect(ttl).to match(/ a #{as['@type'].join(', ')}\s*[;\.]$/)
|
405
405
|
end
|
406
406
|
it "has earl:assertedBy" do
|
407
|
-
ttl.
|
407
|
+
expect(ttl).to match(/ earl:assertedBy <#{as['assertedBy']}>\s*[;\.]$/)
|
408
408
|
end
|
409
409
|
it "has earl:test" do
|
410
|
-
ttl.
|
410
|
+
expect(ttl).to match(/ earl:test <#{as['test']}>\s*[;\.]$/)
|
411
411
|
end
|
412
412
|
it "has earl:subject" do
|
413
|
-
ttl.
|
413
|
+
expect(ttl).to match(/ earl:subject <#{as['subject']}>\s*[;\.]$/)
|
414
414
|
end
|
415
415
|
it "has earl:mode" do
|
416
|
-
ttl.
|
416
|
+
expect(ttl).to match(/ earl:mode #{as['mode']}\s*[;\.]$/)
|
417
417
|
end
|
418
418
|
it "has earl:result" do
|
419
|
-
ttl.
|
419
|
+
expect(ttl).to match(/ earl:result \[ a #{as['result']['@type']}; earl:outcome #{as['result']['outcome']} \]\]/)
|
420
420
|
end
|
421
421
|
end
|
422
422
|
|
@@ -476,31 +476,31 @@ describe EarlReport do
|
|
476
476
|
end
|
477
477
|
|
478
478
|
it "saves output" do
|
479
|
-
|
479
|
+
expect {
|
480
480
|
File.open(File.expand_path("../test-files/results.ttl", __FILE__), "w") do |f|
|
481
481
|
f.write(output)
|
482
482
|
end
|
483
|
-
}.
|
483
|
+
}.not_to raise_error
|
484
484
|
end
|
485
485
|
|
486
486
|
it "has Report" do
|
487
|
-
SPARQL.execute(REPORT_QUERY, graph).
|
487
|
+
expect(SPARQL.execute(REPORT_QUERY, graph)).to eq RDF::Literal::TRUE
|
488
488
|
end
|
489
489
|
|
490
490
|
it "has Subject" do
|
491
|
-
SPARQL.execute(SUBJECT_QUERY, graph).
|
491
|
+
expect(SPARQL.execute(SUBJECT_QUERY, graph)).to eq RDF::Literal::TRUE
|
492
492
|
end
|
493
493
|
|
494
494
|
it "has Developer" do
|
495
|
-
SPARQL.execute(DEVELOPER_QUERY, graph).
|
495
|
+
expect(SPARQL.execute(DEVELOPER_QUERY, graph)).to eq RDF::Literal::TRUE
|
496
496
|
end
|
497
497
|
|
498
498
|
it "has Test Case" do
|
499
|
-
SPARQL.execute(TC_QUERY, graph).
|
499
|
+
expect(SPARQL.execute(TC_QUERY, graph)).to eq RDF::Literal::TRUE
|
500
500
|
end
|
501
501
|
|
502
502
|
it "has Assertion" do
|
503
|
-
SPARQL.execute(ASSERTION_QUERY, graph).
|
503
|
+
expect(SPARQL.execute(ASSERTION_QUERY, graph)).to be_truthy
|
504
504
|
end
|
505
505
|
end
|
506
506
|
end
|
@@ -520,31 +520,31 @@ describe EarlReport do
|
|
520
520
|
end
|
521
521
|
|
522
522
|
it "saves output" do
|
523
|
-
|
523
|
+
expect {
|
524
524
|
File.open(File.expand_path("../test-files/results.html", __FILE__), "w") do |f|
|
525
525
|
f.write(output)
|
526
526
|
end
|
527
|
-
}.
|
527
|
+
}.not_to raise_error
|
528
528
|
end
|
529
529
|
|
530
530
|
it "has Report" do
|
531
|
-
SPARQL.execute(REPORT_QUERY, graph).
|
531
|
+
expect(SPARQL.execute(REPORT_QUERY, graph)).to eq RDF::Literal::TRUE
|
532
532
|
end
|
533
533
|
|
534
534
|
it "has Subject" do
|
535
|
-
SPARQL.execute(SUBJECT_QUERY, graph).
|
535
|
+
expect(SPARQL.execute(SUBJECT_QUERY, graph)).to eq RDF::Literal::TRUE
|
536
536
|
end
|
537
537
|
|
538
538
|
it "has Developer" do
|
539
|
-
SPARQL.execute(DEVELOPER_QUERY, graph).
|
539
|
+
expect(SPARQL.execute(DEVELOPER_QUERY, graph)).to eq RDF::Literal::TRUE
|
540
540
|
end
|
541
541
|
|
542
542
|
it "has Test Case" do
|
543
|
-
SPARQL.execute(TC_QUERY, graph).
|
543
|
+
expect(SPARQL.execute(TC_QUERY, graph)).to eq RDF::Literal::TRUE
|
544
544
|
end
|
545
545
|
|
546
546
|
it "has Assertion" do
|
547
|
-
SPARQL.execute(ASSERTION_QUERY, graph).
|
547
|
+
expect(SPARQL.execute(ASSERTION_QUERY, graph)).to be_truthy
|
548
548
|
end
|
549
549
|
end
|
550
550
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
shortName: "turtle-earl",
|
28
28
|
subtitle: "Turtle Implementation Conformance Report",
|
29
29
|
// if you wish the publication date to be other than today, set this
|
30
|
-
publishDate: "
|
30
|
+
publishDate: "2014/06/23",
|
31
31
|
|
32
32
|
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
|
33
33
|
// and its maturity status
|
@@ -173,12 +173,12 @@
|
|
173
173
|
</span>
|
174
174
|
</td>
|
175
175
|
</tr>
|
176
|
-
<tr inlist='inlist' rel='mf:entries' resource='_:
|
176
|
+
<tr inlist='inlist' rel='mf:entries' resource='_:g2238734140' typeof='earl:TestCriterion earl:TestCase http://www.w3.org/ns/rdftest#TestTurtleEval'>
|
177
177
|
<td>
|
178
|
-
<a href='#
|
178
|
+
<a href='#test_91589288e1b9c7a0c7cf546327b6bf12'>subm-test-01</a>
|
179
179
|
</td>
|
180
180
|
<td class='UNTESTED' inlist='inlist' property='earl:assertions' typeof='earl:Assertion'>
|
181
|
-
<link href='_:
|
181
|
+
<link href='_:g2238734140' property='earl:test' />
|
182
182
|
<link href='http://rubygems.org/gems/rdf-turtle' property='earl:subject' />
|
183
183
|
<link href='earl:notAvailable' property='earl:mode' />
|
184
184
|
<span property='earl:result' typeof='earl:TestResult'>
|
@@ -284,11 +284,11 @@
|
|
284
284
|
<pre class='example actionDoc' property='mf:action' resource='http://example/test-00.ttl' title='subm-test-00 Input'>http://example/test-00.ttl not loaded</pre>
|
285
285
|
<pre class='example resultDoc' property='mf:result' resource='http://example/test-00.out' title='subm-test-00 Result'>http://example/test-00.out not loaded</pre>
|
286
286
|
</dd>
|
287
|
-
<dt id='
|
287
|
+
<dt id='test_91589288e1b9c7a0c7cf546327b6bf12' resource='_:g2238734140'>
|
288
288
|
Test
|
289
289
|
<span property='dc:title mf:name'>subm-test-01</span>
|
290
290
|
</dt>
|
291
|
-
<dd resource='_:
|
291
|
+
<dd resource='_:g2238734140'>
|
292
292
|
<p lang='en' property='dc:description'>@prefix and qnames</p>
|
293
293
|
<pre class='example actionDoc' property='mf:action' resource='http://example/test-01.ttl' title='subm-test-01 Input'>http://example/test-01.ttl not loaded</pre>
|
294
294
|
<pre class='example resultDoc' property='mf:result' resource='http://example/test-01.out' title='subm-test-01 Result'>http://example/test-01.out not loaded</pre>
|
@@ -306,10 +306,10 @@
|
|
306
306
|
<meta content='Earl Report summary generator' lang='en' property='doap:shortdesc' />
|
307
307
|
<meta content='EarlReport generates HTML+RDFa rollups of multiple EARL reports' lang='en' property='doap:description' />
|
308
308
|
version
|
309
|
-
<span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.3.
|
310
|
-
<span property='doap:revision'>0.3.
|
311
|
-
<meta content='earl-report-0.3.
|
312
|
-
<meta content='2013-12-
|
309
|
+
<span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.3.1' typeof='doap:Version'>
|
310
|
+
<span property='doap:revision'>0.3.1</span>
|
311
|
+
<meta content='earl-report-0.3.1' property='doap:name' />
|
312
|
+
<meta content='2013-12-26' datatype='xsd:date' property='doap:created' />
|
313
313
|
</span>
|
314
314
|
an
|
315
315
|
<a href='http://unlicense.org' property='doap:license'>Unlicensed</a>
|
@@ -1 +1 @@
|
|
1
|
-
{"@context":{"@vocab":"http://www.w3.org/ns/earl#","foaf:homepage":{"@type":"@id"},"dc":"http://purl.org/dc/terms/","doap":"http://usefulinc.com/ns/doap#","earl":"http://www.w3.org/ns/earl#","mf":"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#","foaf":"http://xmlns.com/foaf/0.1/","rdfs":"http://www.w3.org/2000/01/rdf-schema#","assertedBy":{"@type":"@id"},"assertions":{"@type":"@id","@container":"@list"},"bibRef":{"@id":"dc:bibliographicCitation"},"created":{"@id":"doap:created","@type":"xsd:date"},"description":{"@id":"dc:description","@language":"en"},"developer":{"@id":"doap:developer","@type":"@id","@container":"@set"},"doapDesc":{"@id":"doap:description","@language":"en"},"generatedBy":{"@type":"@id"},"homepage":{"@id":"doap:homepage","@type":"@id"},"label":{"@id":"rdfs:label","@language":"en"},"language":{"@id":"doap:programming-language"},"license":{"@id":"doap:license","@type":"@id"},"mode":{"@type":"@id"},"name":{"@id":"doap:name"},"outcome":{"@type":"@id"},"release":{"@id":"doap:release","@type":"@id"},"shortdesc":{"@id":"doap:shortdesc","@language":"en"},"subject":{"@type":"@id"},"test":{"@type":"@id"},"testAction":{"@id":"mf:action","@type":"@id"},"testResult":{"@id":"mf:result","@type":"@id"},"entries":{"@id":"mf:entries","@type":"@id","@container":"@list"},"testSubjects":{"@type":"@id","@container":"@list"},"title":{"@id":"dc:title"},"xsd":{"@id":"http://www.w3.org/2001/XMLSchema#"}},"@id":"","@type":["earl:Software","doap:Project"],"name":"Turtle Test Results","bibRef":"[[TURTLE]]","generatedBy":{"@id":"http://rubygems.org/gems/earl-report","@type":"doap:Project","name":"earl-report","shortdesc":"Earl Report summary generator","doapDesc":"EarlReport generates HTML+RDFa rollups of multiple EARL reports","homepage":"https://github.com/gkellogg/earl-report","language":"Ruby","license":"http://unlicense.org","release":{"@id":"https://github.com/gkellogg/earl-report/tree/0.3.
|
1
|
+
{"@context":{"@vocab":"http://www.w3.org/ns/earl#","foaf:homepage":{"@type":"@id"},"dc":"http://purl.org/dc/terms/","doap":"http://usefulinc.com/ns/doap#","earl":"http://www.w3.org/ns/earl#","mf":"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#","foaf":"http://xmlns.com/foaf/0.1/","rdfs":"http://www.w3.org/2000/01/rdf-schema#","assertedBy":{"@type":"@id"},"assertions":{"@type":"@id","@container":"@list"},"bibRef":{"@id":"dc:bibliographicCitation"},"created":{"@id":"doap:created","@type":"xsd:date"},"description":{"@id":"dc:description","@language":"en"},"developer":{"@id":"doap:developer","@type":"@id","@container":"@set"},"doapDesc":{"@id":"doap:description","@language":"en"},"generatedBy":{"@type":"@id"},"homepage":{"@id":"doap:homepage","@type":"@id"},"label":{"@id":"rdfs:label","@language":"en"},"language":{"@id":"doap:programming-language"},"license":{"@id":"doap:license","@type":"@id"},"mode":{"@type":"@id"},"name":{"@id":"doap:name"},"outcome":{"@type":"@id"},"release":{"@id":"doap:release","@type":"@id"},"shortdesc":{"@id":"doap:shortdesc","@language":"en"},"subject":{"@type":"@id"},"test":{"@type":"@id"},"testAction":{"@id":"mf:action","@type":"@id"},"testResult":{"@id":"mf:result","@type":"@id"},"entries":{"@id":"mf:entries","@type":"@id","@container":"@list"},"testSubjects":{"@type":"@id","@container":"@list"},"title":{"@id":"dc:title"},"xsd":{"@id":"http://www.w3.org/2001/XMLSchema#"}},"@id":"","@type":["earl:Software","doap:Project"],"name":"Turtle Test Results","bibRef":"[[TURTLE]]","generatedBy":{"@id":"http://rubygems.org/gems/earl-report","@type":"doap:Project","name":"earl-report","shortdesc":"Earl Report summary generator","doapDesc":"EarlReport generates HTML+RDFa rollups of multiple EARL reports","homepage":"https://github.com/gkellogg/earl-report","language":"Ruby","license":"http://unlicense.org","release":{"@id":"https://github.com/gkellogg/earl-report/tree/0.3.1","@type":"doap:Version","name":"earl-report-0.3.1","created":"2013-12-26","revision":"0.3.1"},"developer":{"@type":"foaf:Person","@id":"http://greggkellogg.net/foaf#me","foaf:name":"Gregg Kellogg","foaf:homepage":"http://greggkellogg.net/"}},"assertions":["/Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl"],"testSubjects":[{"@id":"http://rubygems.org/gems/rdf-turtle","@type":["earl:TestSubject","doap:Project"],"name":"RDF::Turtle","developer":[{"@type":"foaf:Person","@id":"http://greggkellogg.net/foaf#me","foaf:name":"Gregg Kellogg","foaf:homepage":"http://greggkellogg.net/"}],"doapDesc":"RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.","homepage":"http://ruby-rdf.github.com/rdf-turtle","language":"Ruby"}],"entries":[{"@id":"http://example/manifest.ttl","@type":["earl:Report","mf:Manifest"],"entries":[{"@id":"http://example/manifest.ttl#testeval00","@type":["earl:TestCriterion","earl:TestCase","http://www.w3.org/ns/rdftest#TestTurtleEval"],"title":"subm-test-00","testAction":"http://example/test-00.ttl","assertions":[{"@type":"earl:Assertion","test":"http://example/manifest.ttl#testeval00","subject":"http://rubygems.org/gems/rdf-turtle","mode":"earl:automatic","result":{"@type":"earl:TestResult","outcome":"earl:passed"},"assertedBy":"http://greggkellogg.net/foaf#me"}],"description":"Blank subject","testResult":"http://example/test-00.out"},{"@id":"_:g2159695560","@type":["earl:TestCriterion","earl:TestCase","http://www.w3.org/ns/rdftest#TestTurtleEval"],"title":"subm-test-01","testAction":"http://example/test-01.ttl","assertions":[{"@type":"earl:Assertion","test":"_:g2159695560","subject":"http://rubygems.org/gems/rdf-turtle","mode":"earl:notAvailable","result":{"@type":"earl:TestResult","outcome":"earl:untested"}}],"description":"@prefix and qnames","testResult":"http://example/test-01.out"}],"title":"Example Test Cases","description":"Description for Example Test Cases"}]}
|
data/spec/test-files/results.ttl
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
doap:homepage <https://github.com/gkellogg/earl-report>;
|
30
30
|
doap:programming-language "Ruby";
|
31
31
|
doap:license <http://unlicense.org>;
|
32
|
-
doap:release <https://github.com/gkellogg/earl-report/tree/0.3.
|
32
|
+
doap:release <https://github.com/gkellogg/earl-report/tree/0.3.1>;
|
33
33
|
doap:developer <http://greggkellogg.net/foaf#me> .
|
34
34
|
|
35
35
|
|
@@ -41,7 +41,7 @@
|
|
41
41
|
rdfs:comment "Description for Example Test Cases";
|
42
42
|
mf:entries (
|
43
43
|
<http://example/manifest.ttl#testeval00>
|
44
|
-
_:
|
44
|
+
_:g2239186720) .
|
45
45
|
|
46
46
|
#
|
47
47
|
# Subject Definitions
|
@@ -76,14 +76,14 @@
|
|
76
76
|
earl:result [ a earl:TestResult; earl:outcome earl:passed ]]
|
77
77
|
) .
|
78
78
|
|
79
|
-
_:
|
79
|
+
_:g2239186720 a earl:TestCriterion, earl:TestCase, <http://www.w3.org/ns/rdftest#TestTurtleEval>;
|
80
80
|
dc:title "subm-test-01";
|
81
81
|
dc:description "@prefix and qnames"@en;
|
82
82
|
mf:result <http://example/test-01.out>;
|
83
83
|
mf:action <http://example/test-01.ttl>;
|
84
84
|
earl:assertions (
|
85
85
|
[ a earl:Assertion;
|
86
|
-
earl:test _:
|
86
|
+
earl:test _:g2239186720;
|
87
87
|
earl:subject <http://rubygems.org/gems/rdf-turtle>;
|
88
88
|
earl:mode earl:notAvailable;
|
89
89
|
earl:result [ a earl:TestResult; earl:outcome earl:untested ]]
|
metadata
CHANGED
@@ -1,127 +1,141 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: earl-report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: linkeddata
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.1
|
19
|
+
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.1
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdf-turtle
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.1
|
33
|
+
version: '1.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.1
|
40
|
+
version: '1.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: redcarpet
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.0
|
47
|
+
version: '3.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.0
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: nokogiri
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.6'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.6'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '3.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-its
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: equivalent-xml
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- -
|
101
|
+
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
103
|
+
version: '0.4'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- -
|
108
|
+
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
110
|
+
version: '0.4'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: yard
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- -
|
115
|
+
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.8
|
117
|
+
version: '0.8'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- -
|
122
|
+
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.8
|
124
|
+
version: '0.8'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rake
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- -
|
129
|
+
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
131
|
+
version: '10.3'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- -
|
136
|
+
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
138
|
+
version: '10.3'
|
125
139
|
description: EarlReport generates HTML+RDFa rollups of multiple EARL reports.
|
126
140
|
email: gregg@greggkellogg.net
|
127
141
|
executables:
|
@@ -131,9 +145,10 @@ extra_rdoc_files: []
|
|
131
145
|
files:
|
132
146
|
- README.md
|
133
147
|
- VERSION
|
148
|
+
- bin/earl-report
|
149
|
+
- lib/earl_report.rb
|
134
150
|
- lib/earl_report/version.rb
|
135
151
|
- lib/earl_report/views/earl_report.html.haml
|
136
|
-
- lib/earl_report.rb
|
137
152
|
- spec/earl_report_spec.rb
|
138
153
|
- spec/spec_helper.rb
|
139
154
|
- spec/test-files/doap.ttl
|
@@ -147,7 +162,6 @@ files:
|
|
147
162
|
- spec/test-files/results.ttl
|
148
163
|
- spec/test-files/test-00.out
|
149
164
|
- spec/test-files/test-00.ttl
|
150
|
-
- bin/earl-report
|
151
165
|
homepage: http://github.com/gkellogg/earl-report
|
152
166
|
licenses:
|
153
167
|
- Public Domain
|
@@ -158,17 +172,17 @@ require_paths:
|
|
158
172
|
- lib
|
159
173
|
required_ruby_version: !ruby/object:Gem::Requirement
|
160
174
|
requirements:
|
161
|
-
- -
|
175
|
+
- - ">="
|
162
176
|
- !ruby/object:Gem::Version
|
163
177
|
version: 1.9.3
|
164
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
179
|
requirements:
|
166
|
-
- -
|
180
|
+
- - ">="
|
167
181
|
- !ruby/object:Gem::Version
|
168
182
|
version: '0'
|
169
183
|
requirements: []
|
170
184
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
185
|
+
rubygems_version: 2.2.2
|
172
186
|
signing_key:
|
173
187
|
specification_version: 4
|
174
188
|
summary: Earl Report summary generator
|