earl-report 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +37 -37
- data/VERSION +1 -1
- data/bin/earl-report +29 -1
- data/lib/earl_report.rb +208 -164
- data/spec/earl_report_spec.rb +293 -68
- data/spec/test-files/foaf.ttl +3 -0
- data/spec/test-files/results.html +98 -60
- data/spec/test-files/results.jsonld +72 -44
- data/spec/test-files/results.ttl +23 -13
- metadata +2 -2
data/spec/test-files/foaf.ttl
CHANGED
@@ -1,23 +1,29 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html
|
2
|
+
<html 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#'>
|
3
3
|
<head>
|
4
4
|
<meta content='text/html;charset=utf-8' http-equiv='Content-Type' />
|
5
|
-
<title
|
6
|
-
|
5
|
+
<title>
|
6
|
+
Turtle
|
7
|
+
</title>
|
7
8
|
<script class='remove' src='http://www.w3.org/Tools/respec/respec-w3c-common' type='text/javascript'></script>
|
8
9
|
<script type='text/javascript'>
|
9
10
|
//<![CDATA[
|
10
11
|
var respecConfig = {
|
12
|
+
// extend the bibliography entries
|
13
|
+
"localBiblio": {
|
14
|
+
"TURTLE": "Eric Prud'hommeaux, Gavin Carothers. <cite><a href=\"http://www.w3.org/TR/2011/WD-turtle-20110809/\">Turtle: Terse RDF Triple Language.</a></cite> 09 August 2011. W3C Working Draft. URL: <a href=\"http://www.w3.org/TR/2011/WD-turtle-20110809/\">http://www.w3.org/TR/2011/WD-turtle-20110809/</a>",
|
15
|
+
},
|
16
|
+
|
11
17
|
// specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
|
12
18
|
specStatus: "unofficial",
|
13
19
|
copyrightStart: "2010",
|
14
20
|
doRDFa: "1.1",
|
15
21
|
|
16
22
|
// the specification's short name, as in http://www.w3.org/TR/short-name/
|
17
|
-
shortName: "
|
18
|
-
subtitle: "
|
23
|
+
shortName: "turtle-earl",
|
24
|
+
subtitle: "Turtle Implementation Conformance Report",
|
19
25
|
// if you wish the publication date to be other than today, set this
|
20
|
-
publishDate: "2012/11/
|
26
|
+
publishDate: "2012/11/25",
|
21
27
|
|
22
28
|
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
|
23
29
|
// and its maturity status
|
@@ -40,30 +46,38 @@
|
|
40
46
|
|
41
47
|
// editors, add as many as you like
|
42
48
|
// only "name" is required
|
43
|
-
editors: [
|
49
|
+
editors: [
|
50
|
+
{ name: "Gregg Kellogg", url: "http://greggkellogg.net/",
|
51
|
+
company: "Kellogg Associates" },
|
52
|
+
{ name: "Andy Seaborne",
|
53
|
+
company: "The Apache Software Foundation"}
|
54
|
+
],
|
44
55
|
|
45
56
|
// authors, add as many as you like.
|
46
57
|
// This is optional, uncomment if you have authors as well as editors.
|
47
58
|
// only "name" is required. Same format as editors.
|
48
|
-
authors: [
|
49
|
-
],
|
59
|
+
//authors: [
|
60
|
+
//RDF Working Group],
|
50
61
|
|
51
62
|
// name of the WG
|
52
|
-
wg: "
|
63
|
+
wg: "RDF Working Group",
|
53
64
|
|
54
65
|
// URI of the public WG page
|
55
|
-
wgURI: "
|
66
|
+
wgURI: "http://www.w3.org/2011/rdf-wg/",
|
56
67
|
|
57
68
|
// name (with the @w3c.org) of the public mailing to which comments are due
|
58
|
-
wgPublicList: "
|
69
|
+
wgPublicList: "public-rdf-comments",
|
59
70
|
|
60
71
|
// URI of the patent status for this WG, for Rec-track documents
|
61
72
|
// !!!! IMPORTANT !!!!
|
62
73
|
// This is important for Rec-track documents, do not copy a patent URI from a random
|
63
74
|
// document unless you know what you're doing. If in doubt ask your friendly neighbourhood
|
64
75
|
// Team Contact.
|
65
|
-
wgPatentURI: "
|
66
|
-
|
76
|
+
wgPatentURI: "http://www.w3.org/2004/01/pp-impl/46168/status",
|
77
|
+
alternateFormats: [
|
78
|
+
{uri: "earl.ttl", label: "Turtle"},
|
79
|
+
{uri: "earl.jsonld", label: "JSON-LD"}
|
80
|
+
],
|
67
81
|
};
|
68
82
|
//]]>
|
69
83
|
</script>
|
@@ -96,29 +110,23 @@
|
|
96
110
|
background-color: white;
|
97
111
|
-moz-border-radius: ;
|
98
112
|
}
|
99
|
-
pre.example.inputDoc, pre.example.resultDoc { margin-left: 0;}
|
100
|
-
pre.example.inputDoc::before { content: "Input Document";}
|
101
|
-
pre.example.sparqlResults::before { content: "Result Document";}
|
102
113
|
/*]]>*/
|
103
114
|
</style>
|
104
115
|
</head>
|
105
|
-
<body
|
106
|
-
<section about='' id='abstract' typeof='
|
116
|
+
<body>
|
117
|
+
<section about='' id='abstract' typeof='earl:Software doap:Project'>
|
107
118
|
<p>
|
108
|
-
This document report processor conformance for and related specifications
|
109
|
-
|
119
|
+
This document report processor conformance for and related specifications for
|
120
|
+
<span property='doap:name'>Turtle</span>
|
121
|
+
<span property='dc:bibliographicCitation'>[[TURTLE]]</span>
|
110
122
|
according to the requirements of the Evaluation and Report Language (EARL) 1.0 Schema [[EARL10-SCHEMA]].
|
111
123
|
</p>
|
112
|
-
<p>
|
113
|
-
This document describes
|
114
|
-
<span property='doap:name'>Turtle Test Results</span>
|
115
|
-
.
|
116
|
-
</p>
|
117
124
|
<p>
|
118
125
|
This report is also available in alternate formats:
|
119
126
|
<a href='earl.ttl'>
|
120
127
|
Turtle
|
121
128
|
</a>
|
129
|
+
and
|
122
130
|
<a href='earl.jsonld'>
|
123
131
|
JSON-LD
|
124
132
|
</a>
|
@@ -135,30 +143,39 @@
|
|
135
143
|
Test
|
136
144
|
</th>
|
137
145
|
<th>
|
138
|
-
<a href='
|
146
|
+
<a href='#subj_0'>RDF::Turtle</a>
|
139
147
|
</th>
|
140
148
|
</tr>
|
141
|
-
<tr resource='http://example/manifest.ttl#testeval00'
|
149
|
+
<tr resource='http://example/manifest.ttl#testeval00'>
|
142
150
|
<td>
|
143
|
-
<a href='#test_testeval00'>
|
144
|
-
<span property='dc:title'>subm-test-00</span>
|
145
|
-
<span property='dc:description'>Blank subject</span>
|
151
|
+
<a href='#test_testeval00'>subm-test-00</a>
|
146
152
|
</td>
|
147
|
-
<td class='PASS' typeof='earl:Assertion'>
|
153
|
+
<td class='PASS' inlist='inlist' property='earl:assertions' typeof='earl:Assertion'>
|
148
154
|
<link href='http://greggkellogg.net/foaf#me' property='earl:assertedBy' />
|
149
155
|
<link href='http://example/manifest.ttl#testeval00' property='earl:test' />
|
150
156
|
<link href='http://rubygems.org/gems/rdf-turtle' property='earl:subject' />
|
151
157
|
<link href='earl:automatic' property='earl:mode' />
|
152
|
-
<span property='earl:result' resource='
|
153
|
-
|
158
|
+
<span property='earl:result' resource='_' typeof='earl:TestResult'>
|
159
|
+
<span property='earl:outcome' resource='earl:passed'>
|
160
|
+
PASS
|
161
|
+
</span>
|
154
162
|
</span>
|
155
163
|
</td>
|
156
164
|
</tr>
|
157
|
-
<tr resource='_:
|
165
|
+
<tr resource='_:g70363621872700'>
|
158
166
|
<td>
|
159
|
-
<a href='#
|
160
|
-
|
161
|
-
|
167
|
+
<a href='#test_g70363621872700'>subm-test-01</a>
|
168
|
+
</td>
|
169
|
+
<td class='UNTEST' inlist='inlist' property='earl:assertions' typeof='earl:Assertion'>
|
170
|
+
<link property='earl:assertedBy' />
|
171
|
+
<link href='_:g70363621872700' property='earl:test' />
|
172
|
+
<link href='http://rubygems.org/gems/rdf-turtle' property='earl:subject' />
|
173
|
+
<link property='earl:mode' />
|
174
|
+
<span property='earl:result' resource='_' typeof='earl:TestResult'>
|
175
|
+
<span property='earl:outcome' resource='earl:untested'>
|
176
|
+
UNTEST
|
177
|
+
</span>
|
178
|
+
</span>
|
162
179
|
</td>
|
163
180
|
</tr>
|
164
181
|
</table>
|
@@ -171,55 +188,76 @@
|
|
171
188
|
This report was tested using the following test subjects:
|
172
189
|
</p>
|
173
190
|
<dl>
|
174
|
-
<dt
|
175
|
-
|
191
|
+
<dt id='subj_0'><a href='http://rubygems.org/gems/rdf-turtle'>
|
192
|
+
<span about='http://rubygems.org/gems/rdf-turtle' property='doap:name'>RDF::Turtle</span>
|
193
|
+
</a></dt>
|
194
|
+
<dd inlist='inlist' property='earl:testSubjects' resource='http://rubygems.org/gems/rdf-turtle' typeof='earl:TestSubject doap:Project'>
|
176
195
|
<dl>
|
177
196
|
<dt>Description</dt>
|
178
197
|
<dd property='doap:description'>RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.</dd>
|
179
198
|
<dt>Programming Language</dt>
|
180
199
|
<dd property='doap:programming-language'>Ruby</dd>
|
181
200
|
<dt>Developer</dt>
|
182
|
-
<dd
|
183
|
-
<
|
184
|
-
<
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
201
|
+
<dd rel='doap:developer'>
|
202
|
+
<div resource='http://greggkellogg.net/foaf#me' typeof='foaf:Person'>
|
203
|
+
<a href='http://greggkellogg.net/foaf#me'>
|
204
|
+
<span property='foaf:name'>Gregg Kellogg</span>
|
205
|
+
</a>
|
206
|
+
<dt>
|
207
|
+
Home Page
|
208
|
+
</dt>
|
209
|
+
<dd>
|
210
|
+
<a href='http://greggkellogg.net/' property='foaf:homepage'>
|
211
|
+
http://greggkellogg.net/
|
212
|
+
</a>
|
213
|
+
</dd>
|
214
|
+
</div>
|
190
215
|
</dd>
|
191
216
|
</dl>
|
192
217
|
</dd>
|
193
218
|
</dl>
|
194
219
|
</section>
|
220
|
+
<section class='appendix' rel='earl:assertions'>
|
221
|
+
<h2>
|
222
|
+
Individual Test Results
|
223
|
+
</h2>
|
224
|
+
<p>
|
225
|
+
Individual test results used to construct this report are available here:
|
226
|
+
</p>
|
227
|
+
<ul>
|
228
|
+
<li>
|
229
|
+
<a class='source' href='test-files/report-complete.ttl'>test-files/report-complete.ttl</a>
|
230
|
+
</li>
|
231
|
+
</ul>
|
232
|
+
</section>
|
195
233
|
<section class='appendix'>
|
196
234
|
<h2>
|
197
235
|
Test Definitions
|
198
236
|
</h2>
|
199
237
|
<dl>
|
200
|
-
<dt
|
238
|
+
<dt id='test_testeval00' resource='http://example/manifest.ttl#testeval00'>
|
201
239
|
Test
|
202
|
-
<span property='dc:title'>subm-test-
|
240
|
+
<span property='dc:title'>subm-test-00</span>
|
203
241
|
</dt>
|
204
|
-
<dd>
|
205
|
-
<p property='dc:description'
|
242
|
+
<dd inlist='inlist' property='earl:tests' resource='http://example/manifest.ttl#testeval00' typeof='earl:TestCriterion earl:TestCase'>
|
243
|
+
<p property='dc:description'>Blank subject</p>
|
206
244
|
<dl>
|
207
245
|
<dt>
|
208
|
-
<pre class='example actionDoc' property='mf:action' resource='http://example/test-
|
209
|
-
<pre class='example resultDoc' property='mf:result' resource='http://example/test-
|
246
|
+
<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>
|
247
|
+
<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>
|
210
248
|
</dt>
|
211
249
|
</dl>
|
212
250
|
</dd>
|
213
|
-
<dt
|
251
|
+
<dt id='test_g70363621872700' resource='_:g70363621872700'>
|
214
252
|
Test
|
215
|
-
<span property='dc:title'>subm-test-
|
253
|
+
<span property='dc:title'>subm-test-01</span>
|
216
254
|
</dt>
|
217
|
-
<dd>
|
218
|
-
<p property='dc:description'
|
255
|
+
<dd inlist='inlist' property='earl:tests' resource='_:g70363621872700' typeof='earl:TestCriterion earl:TestCase'>
|
256
|
+
<p property='dc:description'>@prefix and qnames</p>
|
219
257
|
<dl>
|
220
258
|
<dt>
|
221
|
-
<pre class='example actionDoc' property='mf:action' resource='http://example/test-
|
222
|
-
<pre class='example resultDoc' property='mf:result' resource='http://example/test-
|
259
|
+
<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>
|
260
|
+
<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>
|
223
261
|
</dt>
|
224
262
|
</dl>
|
225
263
|
</dd>
|
@@ -1,5 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"@context": {
|
3
|
+
"@vocab": "http://www.w3.org/ns/earl#",
|
4
|
+
"foaf:homepage": {
|
5
|
+
"@type": "@id"
|
6
|
+
},
|
3
7
|
"dc": "http://purl.org/dc/terms/",
|
4
8
|
"doap": "http://usefulinc.com/ns/doap#",
|
5
9
|
"earl": "http://www.w3.org/ns/earl#",
|
@@ -7,62 +11,67 @@
|
|
7
11
|
"foaf": "http://xmlns.com/foaf/0.1/",
|
8
12
|
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
|
9
13
|
"assertedBy": {
|
10
|
-
"@id": "earl:assertedBy",
|
11
14
|
"@type": "@id"
|
12
15
|
},
|
16
|
+
"assertions": {
|
17
|
+
"@type": "@id",
|
18
|
+
"@container": "@list"
|
19
|
+
},
|
13
20
|
"bibRef": {
|
14
|
-
"@id": "dc:
|
21
|
+
"@id": "dc:bibliographicCitation"
|
15
22
|
},
|
16
23
|
"description": {
|
17
24
|
"@id": "dc:description"
|
18
25
|
},
|
19
26
|
"developer": {
|
20
27
|
"@id": "doap:developer",
|
21
|
-
"@type": "@id"
|
28
|
+
"@type": "@id",
|
29
|
+
"@container": "@set"
|
30
|
+
},
|
31
|
+
"doapDesc": {
|
32
|
+
"@id": "doap:description"
|
22
33
|
},
|
23
34
|
"homepage": {
|
24
35
|
"@id": "doap:homepage",
|
25
36
|
"@type": "@id"
|
26
37
|
},
|
27
|
-
"
|
28
|
-
"@id": "
|
38
|
+
"label": {
|
39
|
+
"@id": "rdfs:label"
|
29
40
|
},
|
30
41
|
"language": {
|
31
42
|
"@id": "doap:programming-language"
|
32
43
|
},
|
33
|
-
"testAction": {
|
34
|
-
"@id": "mf:action",
|
35
|
-
"@type": "@id"
|
36
|
-
},
|
37
|
-
"testResult": {
|
38
|
-
"@id": "mf:result",
|
39
|
-
"@type": "@id"
|
40
|
-
},
|
41
|
-
"label": {
|
42
|
-
"@id": "rdfs:label"
|
43
|
-
},
|
44
44
|
"mode": {
|
45
|
-
"@id": "earl:mode",
|
46
45
|
"@type": "@id"
|
47
46
|
},
|
48
47
|
"name": {
|
49
48
|
"@id": "doap:name"
|
50
49
|
},
|
51
50
|
"outcome": {
|
52
|
-
"@id": "earl:outcome",
|
53
51
|
"@type": "@id"
|
54
52
|
},
|
55
|
-
"result": {
|
56
|
-
"@id": "earl:result"
|
57
|
-
},
|
58
53
|
"subject": {
|
59
|
-
"@id": "earl:subject",
|
60
54
|
"@type": "@id"
|
61
55
|
},
|
62
56
|
"test": {
|
63
|
-
"@id": "earl:test",
|
64
57
|
"@type": "@id"
|
65
58
|
},
|
59
|
+
"testAction": {
|
60
|
+
"@id": "mf:action",
|
61
|
+
"@type": "@id"
|
62
|
+
},
|
63
|
+
"testResult": {
|
64
|
+
"@id": "mf:result",
|
65
|
+
"@type": "@id"
|
66
|
+
},
|
67
|
+
"tests": {
|
68
|
+
"@type": "@id",
|
69
|
+
"@container": "@list"
|
70
|
+
},
|
71
|
+
"testSubjects": {
|
72
|
+
"@type": "@id",
|
73
|
+
"@container": "@list"
|
74
|
+
},
|
66
75
|
"title": {
|
67
76
|
"@id": "dc:title"
|
68
77
|
}
|
@@ -72,7 +81,10 @@
|
|
72
81
|
"earl:Software",
|
73
82
|
"doap:Project"
|
74
83
|
],
|
75
|
-
"
|
84
|
+
"assertions": [
|
85
|
+
"test-files/report-complete.ttl"
|
86
|
+
],
|
87
|
+
"name": "Turtle",
|
76
88
|
"bibRef": "[[TURTLE]]",
|
77
89
|
"testSubjects": [
|
78
90
|
{
|
@@ -82,12 +94,15 @@
|
|
82
94
|
"doap:Project"
|
83
95
|
],
|
84
96
|
"name": "RDF::Turtle",
|
85
|
-
"developer":
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
97
|
+
"developer": [
|
98
|
+
{
|
99
|
+
"@type": "foaf:Person",
|
100
|
+
"@id": "http://greggkellogg.net/foaf#me",
|
101
|
+
"foaf:name": "Gregg Kellogg",
|
102
|
+
"foaf:homepage": "http://greggkellogg.net/"
|
103
|
+
}
|
104
|
+
],
|
105
|
+
"doapDesc": "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.",
|
91
106
|
"homepage": "http://ruby-rdf.github.com/rdf-turtle",
|
92
107
|
"language": "Ruby"
|
93
108
|
}
|
@@ -100,30 +115,43 @@
|
|
100
115
|
"earl:TestCase"
|
101
116
|
],
|
102
117
|
"title": "subm-test-00",
|
103
|
-
"description": "Blank subject",
|
104
118
|
"testAction": "http://example/test-00.ttl",
|
105
|
-
"
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
"
|
119
|
+
"assertions": [
|
120
|
+
{
|
121
|
+
"@type": "earl:Assertion",
|
122
|
+
"test": "http://example/manifest.ttl#testeval00",
|
123
|
+
"subject": "http://rubygems.org/gems/rdf-turtle",
|
124
|
+
"result": {
|
125
|
+
"@type": "earl:TestResult",
|
126
|
+
"outcome": "earl:passed"
|
127
|
+
},
|
128
|
+
"assertedBy": "http://greggkellogg.net/foaf#me",
|
129
|
+
"mode": "earl:automatic"
|
115
130
|
}
|
116
|
-
|
131
|
+
],
|
132
|
+
"description": "Blank subject",
|
133
|
+
"testResult": "http://example/test-00.out"
|
117
134
|
},
|
118
135
|
{
|
119
|
-
"@id": "_:
|
136
|
+
"@id": "_:g70363621872700",
|
120
137
|
"@type": [
|
121
138
|
"earl:TestCriterion",
|
122
139
|
"earl:TestCase"
|
123
140
|
],
|
124
141
|
"title": "subm-test-01",
|
125
|
-
"description": "@prefix and qnames",
|
126
142
|
"testAction": "http://example/test-01.ttl",
|
143
|
+
"assertions": [
|
144
|
+
{
|
145
|
+
"@type": "earl:Assertion",
|
146
|
+
"test": "_:g70363621872700",
|
147
|
+
"subject": "http://rubygems.org/gems/rdf-turtle",
|
148
|
+
"result": {
|
149
|
+
"@type": "earl:TestResult",
|
150
|
+
"outcome": "earl:untested"
|
151
|
+
}
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"description": "@prefix and qnames",
|
127
155
|
"testResult": "http://example/test-01.out"
|
128
156
|
}
|
129
157
|
]
|