earl-report 0.1.2 → 0.2.0
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.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/bin/earl-report +3 -6
- data/lib/earl_report.rb +114 -61
- data/lib/earl_report/views/earl_report.html.haml +113 -51
- data/spec/earl_report_spec.rb +181 -186
- data/spec/test-files/results.html +123 -79
- data/spec/test-files/results.jsonld +65 -48
- data/spec/test-files/results.ttl +18 -10
- metadata +3 -3
@@ -23,7 +23,7 @@
|
|
23
23
|
shortName: "turtle-earl",
|
24
24
|
subtitle: "Turtle Implementation Conformance Report",
|
25
25
|
// if you wish the publication date to be other than today, set this
|
26
|
-
publishDate: "
|
26
|
+
publishDate: "2013/02/22",
|
27
27
|
|
28
28
|
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
|
29
29
|
// and its maturity status
|
@@ -110,63 +110,90 @@
|
|
110
110
|
background-color: white;
|
111
111
|
-moz-border-radius: ;
|
112
112
|
}
|
113
|
+
tr.summary {font-weight: bold;}
|
114
|
+
td.passed-all {color: green;}
|
115
|
+
td.passed-most {color: darkorange;}
|
116
|
+
td.passed-some {color: red;}
|
113
117
|
/*]]>*/
|
114
118
|
</style>
|
115
119
|
</head>
|
116
|
-
<body>
|
117
|
-
<section about='' id='abstract' typeof='earl:
|
120
|
+
<body prefix='earl: http://www.w3.org/ns/earl# doap: http://usefulinc.com/ns/doap# mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#'>
|
121
|
+
<section about='' id='abstract' typeof='earl:Software doap:Project'>
|
118
122
|
<p>
|
119
|
-
This document report
|
120
|
-
<span property='
|
123
|
+
This document report test subject conformance for and related specifications for
|
124
|
+
<span property='doap:name'></span>
|
121
125
|
<span property='dc:bibliographicCitation'></span>
|
122
126
|
according to the requirements of the Evaluation and Report Language (EARL) 1.0 Schema [[EARL10-SCHEMA]].
|
123
127
|
</p>
|
128
|
+
<p>
|
129
|
+
This report is also available in alternate formats:
|
130
|
+
<a href='earl.ttl'>
|
131
|
+
Turtle
|
132
|
+
</a>
|
133
|
+
and
|
134
|
+
<a href='earl.jsonld'>
|
135
|
+
JSON-LD
|
136
|
+
</a>
|
137
|
+
</p>
|
124
138
|
</section>
|
125
139
|
<section id='sodt'></section>
|
126
140
|
<section>
|
127
141
|
<h2>
|
128
|
-
|
142
|
+
Test Manifests
|
129
143
|
</h2>
|
130
|
-
<
|
131
|
-
<
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
<
|
147
|
-
|
148
|
-
|
149
|
-
<
|
150
|
-
|
144
|
+
<section resource='http://example/manifest.ttl' typeof='earl:Report mf:Manifest'>
|
145
|
+
<h2>Example Test Cases</h2>
|
146
|
+
<p></p>
|
147
|
+
<table class='report'>
|
148
|
+
<tr>
|
149
|
+
<th>
|
150
|
+
Test
|
151
|
+
</th>
|
152
|
+
<th>
|
153
|
+
<a href='#subj_0'>RDF::Turtle</a>
|
154
|
+
</th>
|
155
|
+
</tr>
|
156
|
+
<tr inlist='inlist' rel='mf:entries' resource='http://example/manifest.ttl#testeval00' typeof='earl:TestCriterion earl:TestCase http://www.w3.org/ns/rdftest#TestTurtleEval'>
|
157
|
+
<td>
|
158
|
+
<a href='#test_testeval00'>subm-test-00</a>
|
159
|
+
</td>
|
160
|
+
<td class='PASS' inlist='inlist' property='earl:assertions' typeof='earl:Assertion'>
|
161
|
+
<link href='http://greggkellogg.net/foaf#me' property='earl:assertedBy' />
|
162
|
+
<link href='http://example/manifest.ttl#testeval00' property='earl:test' />
|
163
|
+
<link href='http://rubygems.org/gems/rdf-turtle' property='earl:subject' />
|
164
|
+
<link href='earl:automatic' property='earl:mode' />
|
165
|
+
<span property='earl:result' typeof='earl:TestResult'>
|
166
|
+
<span property='earl:outcome' resource='earl:passed'>
|
167
|
+
PASS
|
168
|
+
</span>
|
151
169
|
</span>
|
152
|
-
</
|
153
|
-
</
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
170
|
+
</td>
|
171
|
+
</tr>
|
172
|
+
<tr inlist='inlist' rel='mf:entries' resource='_:g70348361124640' typeof='earl:TestCriterion earl:TestCase http://www.w3.org/ns/rdftest#TestTurtleEval'>
|
173
|
+
<td>
|
174
|
+
<a href='#test_g70348361124640'>subm-test-01</a>
|
175
|
+
</td>
|
176
|
+
<td class='UNTESTED' inlist='inlist' property='earl:assertions' typeof='earl:Assertion'>
|
177
|
+
<link href='_:g70348361124640' property='earl:test' />
|
178
|
+
<link href='http://rubygems.org/gems/rdf-turtle' property='earl:subject' />
|
179
|
+
<link href='earl:automatic' property='earl:mode' />
|
180
|
+
<span property='earl:result' typeof='earl:TestResult'>
|
181
|
+
<span property='earl:outcome' resource='earl:untested'>
|
182
|
+
UNTESTED
|
183
|
+
</span>
|
165
184
|
</span>
|
166
|
-
</
|
167
|
-
</
|
168
|
-
|
169
|
-
|
185
|
+
</td>
|
186
|
+
</tr>
|
187
|
+
<tr class='summary'>
|
188
|
+
<td>
|
189
|
+
Percentage passed out of 2 Tests
|
190
|
+
</td>
|
191
|
+
<td class='passed-some'>
|
192
|
+
50.0%
|
193
|
+
</td>
|
194
|
+
</tr>
|
195
|
+
</table>
|
196
|
+
</section>
|
170
197
|
</section>
|
171
198
|
<section class='appendix'>
|
172
199
|
<h2>
|
@@ -176,15 +203,21 @@
|
|
176
203
|
This report was tested using the following test subjects:
|
177
204
|
</p>
|
178
205
|
<dl>
|
179
|
-
<dt id='subj_0'
|
180
|
-
<
|
181
|
-
|
206
|
+
<dt id='subj_0'>
|
207
|
+
<a href='http://rubygems.org/gems/rdf-turtle'>
|
208
|
+
<span about='http://rubygems.org/gems/rdf-turtle' property='doap:name'>RDF::Turtle</span>
|
209
|
+
</a>
|
210
|
+
</dt>
|
182
211
|
<dd inlist='inlist' property='earl:testSubjects' resource='http://rubygems.org/gems/rdf-turtle' typeof='earl:TestSubject doap:Project'>
|
183
212
|
<dl>
|
184
213
|
<dt>Description</dt>
|
185
214
|
<dd lang='en' property='doap:description'>RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.</dd>
|
186
215
|
<dt>Programming Language</dt>
|
187
216
|
<dd property='doap:programming-language'>Ruby</dd>
|
217
|
+
<dt>Home Page</dt>
|
218
|
+
<dd property='doap:homepage'>
|
219
|
+
<a href='http://ruby-rdf.github.com/rdf-turtle'>http://ruby-rdf.github.com/rdf-turtle</a>
|
220
|
+
</dd>
|
188
221
|
<dt>Developer</dt>
|
189
222
|
<dd rel='doap:developer'>
|
190
223
|
<div resource='http://greggkellogg.net/foaf#me' typeof='foaf:Person'>
|
@@ -201,6 +234,23 @@
|
|
201
234
|
</dd>
|
202
235
|
</div>
|
203
236
|
</dd>
|
237
|
+
<dt>
|
238
|
+
Test Suite Compliance
|
239
|
+
</dt>
|
240
|
+
<dd>
|
241
|
+
<table class='report'>
|
242
|
+
<tbody>
|
243
|
+
<tr>
|
244
|
+
<td>
|
245
|
+
Example Test Cases
|
246
|
+
</td>
|
247
|
+
<td class='passed-some'>
|
248
|
+
1/2 (50.0%)
|
249
|
+
</td>
|
250
|
+
</tr>
|
251
|
+
</tbody>
|
252
|
+
</table>
|
253
|
+
</dd>
|
204
254
|
</dl>
|
205
255
|
</dd>
|
206
256
|
</dl>
|
@@ -223,32 +273,26 @@
|
|
223
273
|
Test Definitions
|
224
274
|
</h2>
|
225
275
|
<dl>
|
226
|
-
<
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
<
|
232
|
-
|
233
|
-
<
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
<dt>
|
247
|
-
<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>
|
248
|
-
<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>
|
249
|
-
</dt>
|
250
|
-
</dl>
|
251
|
-
</dd>
|
276
|
+
<div inlist='inlist' property='mf:entries' resource='http://example/manifest.ttl'>
|
277
|
+
<dt id='test_testeval00' resource='http://example/manifest.ttl#testeval00'>
|
278
|
+
Test
|
279
|
+
<span property='dc:title mf:name'>subm-test-00</span>
|
280
|
+
</dt>
|
281
|
+
<dd resource='http://example/manifest.ttl#testeval00'>
|
282
|
+
<p lang='en' property='dc:description'>Blank subject</p>
|
283
|
+
<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>
|
284
|
+
<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>
|
285
|
+
</dd>
|
286
|
+
<dt id='test_g70348361124640' resource='_:g70348361124640'>
|
287
|
+
Test
|
288
|
+
<span property='dc:title mf:name'>subm-test-01</span>
|
289
|
+
</dt>
|
290
|
+
<dd resource='_:g70348361124640'>
|
291
|
+
<p lang='en' property='dc:description'>@prefix and qnames</p>
|
292
|
+
<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>
|
293
|
+
<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>
|
294
|
+
</dd>
|
295
|
+
</div>
|
252
296
|
</dl>
|
253
297
|
</section>
|
254
298
|
<section id='appendix' property='earl:generatedBy' resource='http://rubygems.org/gems/earl-report' typeof='doap:Project'>
|
@@ -259,17 +303,17 @@
|
|
259
303
|
This report generated by
|
260
304
|
<span property='doap:name'><a href='http://rubygems.org/gems/earl-report'>earl-report</a></span>
|
261
305
|
<meta content='Earl Report summary generator' lang='en' property='doap:shortdesc' />
|
262
|
-
<meta content='
|
306
|
+
<meta content='EarlReport generates HTML+RDFa rollups of multiple EARL reports' lang='en' property='doap:description' />
|
263
307
|
version
|
264
|
-
<span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.
|
265
|
-
<span property='doap:revision'>0.
|
266
|
-
<meta content='earl-report-0.
|
267
|
-
<meta content='
|
308
|
+
<span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.2.0' typeof='doap:Version'>
|
309
|
+
<span property='doap:revision'>0.2.0</span>
|
310
|
+
<meta content='earl-report-0.2.0' property='doap:name' />
|
311
|
+
<meta content='2013-02-21' datatype='xsd:date' property='doap:created' />
|
268
312
|
</span>
|
269
313
|
an
|
270
314
|
<a href='http://unlicense.org' property='doap:license'>Unlicensed</a>
|
271
315
|
<span property='doap:programming-language'>Ruby</span>
|
272
|
-
|
316
|
+
application. More information is available at
|
273
317
|
<a href='https://github.com/gkellogg/earl-report' property='doap:homepage'>https://github.com/gkellogg/earl-report</a>
|
274
318
|
.
|
275
319
|
</p>
|
@@ -86,7 +86,8 @@
|
|
86
86
|
"@id": "mf:result",
|
87
87
|
"@type": "@id"
|
88
88
|
},
|
89
|
-
"
|
89
|
+
"entries": {
|
90
|
+
"@id": "mf:entries",
|
90
91
|
"@type": "@id",
|
91
92
|
"@container": "@list"
|
92
93
|
},
|
@@ -102,24 +103,27 @@
|
|
102
103
|
}
|
103
104
|
},
|
104
105
|
"@id": "",
|
105
|
-
"@type":
|
106
|
-
|
106
|
+
"@type": [
|
107
|
+
"earl:Software",
|
108
|
+
"doap:Project"
|
109
|
+
],
|
110
|
+
"name": null,
|
107
111
|
"bibRef": null,
|
108
112
|
"generatedBy": {
|
109
113
|
"@id": "http://rubygems.org/gems/earl-report",
|
110
114
|
"@type": "doap:Project",
|
111
115
|
"name": "earl-report",
|
112
116
|
"shortdesc": "Earl Report summary generator",
|
113
|
-
"doapDesc": "
|
117
|
+
"doapDesc": "EarlReport generates HTML+RDFa rollups of multiple EARL reports",
|
114
118
|
"homepage": "https://github.com/gkellogg/earl-report",
|
115
119
|
"language": "Ruby",
|
116
120
|
"license": "http://unlicense.org",
|
117
121
|
"release": {
|
118
|
-
"@id": "https://github.com/gkellogg/earl-report/tree/0.
|
122
|
+
"@id": "https://github.com/gkellogg/earl-report/tree/0.2.0",
|
119
123
|
"@type": "doap:Version",
|
120
|
-
"name": "earl-report-0.
|
121
|
-
"created": "
|
122
|
-
"revision": "0.
|
124
|
+
"name": "earl-report-0.2.0",
|
125
|
+
"created": "2013-02-21",
|
126
|
+
"revision": "0.2.0"
|
123
127
|
},
|
124
128
|
"developer": {
|
125
129
|
"@type": "foaf:Person",
|
@@ -152,52 +156,65 @@
|
|
152
156
|
"language": "Ruby"
|
153
157
|
}
|
154
158
|
],
|
155
|
-
"
|
159
|
+
"entries": [
|
156
160
|
{
|
157
|
-
"@id": "http://example/manifest.ttl
|
161
|
+
"@id": "http://example/manifest.ttl",
|
158
162
|
"@type": [
|
159
|
-
"earl:
|
160
|
-
"
|
163
|
+
"earl:Report",
|
164
|
+
"mf:Manifest"
|
161
165
|
],
|
162
|
-
"title": "
|
163
|
-
"
|
164
|
-
"assertions": [
|
166
|
+
"title": "Example Test Cases",
|
167
|
+
"entries": [
|
165
168
|
{
|
166
|
-
"@
|
167
|
-
"
|
168
|
-
|
169
|
-
|
170
|
-
"
|
171
|
-
|
172
|
-
|
173
|
-
"
|
174
|
-
"
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
169
|
+
"@id": "http://example/manifest.ttl#testeval00",
|
170
|
+
"@type": [
|
171
|
+
"earl:TestCriterion",
|
172
|
+
"earl:TestCase",
|
173
|
+
"http://www.w3.org/ns/rdftest#TestTurtleEval"
|
174
|
+
],
|
175
|
+
"title": "subm-test-00",
|
176
|
+
"testAction": "http://example/test-00.ttl",
|
177
|
+
"assertions": [
|
178
|
+
{
|
179
|
+
"@type": "earl:Assertion",
|
180
|
+
"test": "http://example/manifest.ttl#testeval00",
|
181
|
+
"subject": "http://rubygems.org/gems/rdf-turtle",
|
182
|
+
"mode": "earl:automatic",
|
183
|
+
"result": {
|
184
|
+
"@type": "earl:TestResult",
|
185
|
+
"outcome": "earl:passed"
|
186
|
+
},
|
187
|
+
"assertedBy": "http://greggkellogg.net/foaf#me"
|
188
|
+
}
|
189
|
+
],
|
190
|
+
"description": "Blank subject",
|
191
|
+
"testResult": "http://example/test-00.out"
|
192
|
+
},
|
189
193
|
{
|
190
|
-
"@
|
191
|
-
"
|
192
|
-
|
193
|
-
|
194
|
-
"
|
195
|
-
|
196
|
-
|
194
|
+
"@id": "_:g70356963199420",
|
195
|
+
"@type": [
|
196
|
+
"earl:TestCriterion",
|
197
|
+
"earl:TestCase",
|
198
|
+
"http://www.w3.org/ns/rdftest#TestTurtleEval"
|
199
|
+
],
|
200
|
+
"title": "subm-test-01",
|
201
|
+
"testAction": "http://example/test-01.ttl",
|
202
|
+
"assertions": [
|
203
|
+
{
|
204
|
+
"@type": "earl:Assertion",
|
205
|
+
"test": "_:g70356963199420",
|
206
|
+
"subject": "http://rubygems.org/gems/rdf-turtle",
|
207
|
+
"mode": "earl:automatic",
|
208
|
+
"result": {
|
209
|
+
"@type": "earl:TestResult",
|
210
|
+
"outcome": "earl:untested"
|
211
|
+
}
|
212
|
+
}
|
213
|
+
],
|
214
|
+
"description": "@prefix and qnames",
|
215
|
+
"testResult": "http://example/test-01.out"
|
197
216
|
}
|
198
|
-
]
|
199
|
-
"description": "@prefix and qnames",
|
200
|
-
"testResult": "http://example/test-01.out"
|
217
|
+
]
|
201
218
|
}
|
202
219
|
]
|
203
220
|
}
|
data/spec/test-files/results.ttl
CHANGED
@@ -10,18 +10,16 @@
|
|
10
10
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
11
11
|
|
12
12
|
|
13
|
-
<> a earl:
|
14
|
-
|
13
|
+
<> a earl:Software, doap:Project;
|
14
|
+
doap:name "";
|
15
15
|
dc:bibliographicCitation "";
|
16
16
|
earl:generatedBy <http://rubygems.org/gems/earl-report>;
|
17
17
|
earl:assertions
|
18
18
|
<test-files/report-complete.ttl>;
|
19
19
|
earl:testSubjects (
|
20
20
|
<http://rubygems.org/gems/rdf-turtle>);
|
21
|
-
|
22
|
-
<http://example/manifest.ttl
|
23
|
-
_:g70304060229600) .
|
24
|
-
|
21
|
+
mf:entries (
|
22
|
+
<http://example/manifest.ttl>) .
|
25
23
|
|
26
24
|
|
27
25
|
<http://rubygems.org/gems/earl-report> a earl:Software, doap:Project;
|
@@ -31,10 +29,19 @@
|
|
31
29
|
doap:homepage <https://github.com/gkellogg/earl-report>;
|
32
30
|
doap:programming-language "Ruby";
|
33
31
|
doap:license <http://unlicense.org>;
|
34
|
-
doap:release <https://github.com/gkellogg/earl-report/tree/0.
|
32
|
+
doap:release <https://github.com/gkellogg/earl-report/tree/0.2.0>;
|
35
33
|
doap:developer <http://greggkellogg.net/foaf#me> .
|
36
34
|
|
37
35
|
|
36
|
+
|
37
|
+
# Manifests
|
38
|
+
<http://example/manifest.ttl> a earl:Report, mf:Manifest;
|
39
|
+
dc:title "Example Test Cases";
|
40
|
+
mf:name "Example Test Cases";
|
41
|
+
mf:entries (
|
42
|
+
<http://example/manifest.ttl#testeval00>
|
43
|
+
_:g70274704517540) .
|
44
|
+
|
38
45
|
#
|
39
46
|
# Subject Definitions
|
40
47
|
#
|
@@ -54,7 +61,7 @@
|
|
54
61
|
#
|
55
62
|
# Test Case Definitions
|
56
63
|
#
|
57
|
-
<http://example/manifest.ttl#testeval00> a earl:TestCriterion, earl:TestCase;
|
64
|
+
<http://example/manifest.ttl#testeval00> a earl:TestCriterion, earl:TestCase, http://www.w3.org/ns/rdftest#TestTurtleEval;
|
58
65
|
dc:title "subm-test-00";
|
59
66
|
dc:description """Blank subject"""@en;
|
60
67
|
mf:result <http://example/test-00.out>;
|
@@ -68,15 +75,16 @@
|
|
68
75
|
earl:result [ a earl:TestResult; earl:outcome earl:passed ]]
|
69
76
|
) .
|
70
77
|
|
71
|
-
_:
|
78
|
+
_:g70274704517540 a earl:TestCriterion, earl:TestCase, http://www.w3.org/ns/rdftest#TestTurtleEval;
|
72
79
|
dc:title "subm-test-01";
|
73
80
|
dc:description """@prefix and qnames"""@en;
|
74
81
|
mf:result <http://example/test-01.out>;
|
75
82
|
mf:action <http://example/test-01.ttl>;
|
76
83
|
earl:assertions (
|
77
84
|
[ a earl:Assertion;
|
78
|
-
earl:test _:
|
85
|
+
earl:test _:g70274704517540;
|
79
86
|
earl:subject <http://rubygems.org/gems/rdf-turtle>;
|
87
|
+
earl:mode earl:automatic;
|
80
88
|
earl:result [ a earl:TestResult; earl:outcome earl:untested ]]
|
81
89
|
) .
|
82
90
|
|