earl-report 0.2.4 → 0.2.5
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 +15 -0
- data/README.md +12 -5
- data/VERSION +1 -1
- data/lib/earl_report.rb +12 -9
- data/lib/earl_report/views/earl_report.html.haml +6 -6
- data/spec/earl_report_spec.rb +1 -0
- data/spec/test-files/manifest.ttl +2 -1
- data/spec/test-files/results.html +330 -0
- data/spec/test-files/results.jsonld +1 -0
- data/spec/test-files/results.ttl +91 -0
- metadata +11 -20
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDMxMGNkMWEwNzg5ZDczNWMzOTk1NjkwZDc2OTU0NmZiYTI4NjE0NA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YTM0NjU1NTk4M2M0Njc5MGUxZTVhODAzNDA0NTk4ZmFlMGQwYzViMw==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
M2Y1OWYzODJlODk3NmRlMTU5M2RjZDk5MGU4NGZjNjdhYjRjNzk2NzdlYTlh
|
10
|
+
MTg2MDlhMmU0YjM5NDMxZTZlNWY2ZWMzNTc3YmZiNzBiMjA4ZmQ2Yjg0MWQ4
|
11
|
+
ZjZhMmNmYzcxOTI1NGIzYzdmNDJiOTM2YmViOWZkZDNiMzc3OGI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjUzNDVjZTczYWIzZGY4ZTFkYzY0ODZjOGFhNGVkOTVhNmQ2MDQzZTNiYjI1
|
14
|
+
ZjgyNzdlMTc1YjI2NTRmMzBmM2I3OGE3NjdmNzI1ZWI3NzRiYWNhZjRlYzI1
|
15
|
+
NzMwMjJiMDQ2ODczNDAxZjI0ODU1MjdmMjYxYjBmZjJjYzdjMTE=
|
data/README.md
CHANGED
@@ -62,12 +62,19 @@ is the following:
|
|
62
62
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
63
63
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
64
64
|
|
65
|
-
SELECT ?lh ?uri ?title ?description ?testAction ?testResult
|
65
|
+
SELECT ?lh ?uri ?type ?title ?description ?testAction ?testResult ?manUri ?manTitle ?manDescription
|
66
66
|
WHERE {
|
67
|
-
?uri
|
68
|
-
|
69
|
-
|
70
|
-
OPTIONAL {
|
67
|
+
?uri a ?type;
|
68
|
+
mf:name ?title;
|
69
|
+
mf:action ?testAction .
|
70
|
+
OPTIONAL { ?uri rdfs:comment ?description . }
|
71
|
+
OPTIONAL { ?uri mf:result ?testResult . }
|
72
|
+
OPTIONAL {
|
73
|
+
?manUri a mf:Manifest; mf:entries ?lh .
|
74
|
+
?lh rdf:first ?uri .
|
75
|
+
OPTIONAL { ?manUri mf:name ?manTitle . }
|
76
|
+
OPTIONAL { ?manUri rdfs:comment ?manDescription . }
|
77
|
+
}
|
71
78
|
}
|
72
79
|
|
73
80
|
If any result has a non-null `?lh`, it is taken as the list head and used
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/lib/earl_report.rb
CHANGED
@@ -19,7 +19,7 @@ class EarlReport
|
|
19
19
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
20
20
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
21
21
|
|
22
|
-
SELECT ?lh ?uri ?type ?title ?description ?testAction ?testResult ?manUri
|
22
|
+
SELECT ?lh ?uri ?type ?title ?description ?testAction ?testResult ?manUri ?manTitle ?manDescription
|
23
23
|
WHERE {
|
24
24
|
?uri a ?type;
|
25
25
|
mf:name ?title;
|
@@ -29,7 +29,8 @@ class EarlReport
|
|
29
29
|
OPTIONAL {
|
30
30
|
?manUri a mf:Manifest; mf:entries ?lh .
|
31
31
|
?lh rdf:first ?uri .
|
32
|
-
OPTIONAL { ?manUri
|
32
|
+
OPTIONAL { ?manUri mf:name ?manTitle . }
|
33
|
+
OPTIONAL { ?manUri rdfs:comment ?manDescription . }
|
33
34
|
}
|
34
35
|
}
|
35
36
|
).freeze
|
@@ -149,7 +150,7 @@ class EarlReport
|
|
149
150
|
man_opts = {}
|
150
151
|
man_opts[:base_uri] = RDF::URI(@options[:base]) if @options[:base]
|
151
152
|
@graph = RDF::Graph.new
|
152
|
-
|
153
|
+
Array(@options[:manifest]).each do |man|
|
153
154
|
g = RDF::Graph.load(man, man_opts)
|
154
155
|
status " loaded #{g.count} triples from #{man}"
|
155
156
|
@graph << g
|
@@ -364,9 +365,10 @@ class EarlReport
|
|
364
365
|
man_info = {
|
365
366
|
'@id' => man_soln[:manUri].to_s,
|
366
367
|
"@type" => %w{earl:Report mf:Manifest},
|
367
|
-
'title' => man_soln[:manComment].to_s,
|
368
368
|
'entries' => []
|
369
369
|
}
|
370
|
+
man_info['title'] = man_soln[:manTitle].to_s if man_soln[:manTitle]
|
371
|
+
man_info['description'] = man_soln[:manDescription].to_s if man_soln[:manDescription]
|
370
372
|
manifests << man_info
|
371
373
|
end
|
372
374
|
|
@@ -497,8 +499,9 @@ class EarlReport
|
|
497
499
|
io.puts %(\n# Manifests)
|
498
500
|
json_hash['entries'].each do |man|
|
499
501
|
io.puts %(#{as_resource(man['@id'])} a earl:Report, mf:Manifest;)
|
500
|
-
io.puts %( dc:title "#{man['title']}";)
|
501
|
-
io.puts %( mf:name "#{man['title']}";)
|
502
|
+
io.puts %( dc:title "#{man['title']}";) if man['title']
|
503
|
+
io.puts %( mf:name "#{man['title']}";) if man['title']
|
504
|
+
io.puts %( rdfs:comment "#{man['description']}";) if man['description']
|
502
505
|
|
503
506
|
# Test Cases
|
504
507
|
test_defs = man['entries'].map {|defn| as_resource(defn['@id'])}.join("\n ")
|
@@ -554,13 +557,13 @@ class EarlReport
|
|
554
557
|
# @prarm[Hash] desc
|
555
558
|
# @return [String]
|
556
559
|
def tc_turtle(desc)
|
557
|
-
types =
|
560
|
+
types = Array(desc['@type']).map do |t|
|
558
561
|
t.include?("://") ? "<#{t}>" : t
|
559
562
|
end
|
560
563
|
res = %{#{as_resource desc['@id']} a #{types.join(', ')};\n}
|
561
564
|
res += %{ dc:title "#{desc['title']}";\n}
|
562
|
-
res += %{ dc:description """#{desc['description']}"""@en;\n} if desc
|
563
|
-
res += %{ mf:result #{as_resource desc['testResult']};\n} if desc
|
565
|
+
res += %{ dc:description """#{desc['description']}"""@en;\n} if desc['description']
|
566
|
+
res += %{ mf:result #{as_resource desc['testResult']};\n} if desc['testResult']
|
564
567
|
res += %{ mf:action #{as_resource desc['testAction']};\n}
|
565
568
|
res += %{ earl:assertions (\n}
|
566
569
|
desc['assertions'].each do |as_desc|
|
@@ -155,7 +155,7 @@
|
|
155
155
|
td.passed-most {color: darkorange;}
|
156
156
|
td.passed-some {color: red;}
|
157
157
|
%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#"}
|
158
|
-
%section#abstract{:about => tests['@id'], :typeof =>
|
158
|
+
%section#abstract{:about => tests['@id'], :typeof => Array(tests['@type']).join(" ")}
|
159
159
|
%p
|
160
160
|
This document report test subject conformance for and related specifications for
|
161
161
|
%span{:property => "doap:name"}<=tests['name']
|
@@ -179,9 +179,9 @@
|
|
179
179
|
- tests['entries'].each do |manifest|
|
180
180
|
- test_cases = manifest['entries']
|
181
181
|
%section{:typeof => manifest['@type'].join(" "), :resource => manifest['@id']}
|
182
|
-
%h2<=manifest['title']
|
183
|
-
-
|
184
|
-
%p<
|
182
|
+
%h2{:property => "dc:title mf:name"}<=manifest['title'] || 'Test Manifest'
|
183
|
+
- Array(manifest['description']).each do |desc|
|
184
|
+
%p{:property => "rdfs:comment"}<
|
185
185
|
~ CGI.escapeHTML desc
|
186
186
|
%table.report
|
187
187
|
- skip_subject = {}
|
@@ -235,7 +235,7 @@
|
|
235
235
|
%dt{:id => subject_refs[subject['@id']]}
|
236
236
|
%a{:href => subject['@id']}
|
237
237
|
%span{:about => subject['@id'], :property => "doap:name"}<= subject['name']
|
238
|
-
%dd{:property => "earl:testSubjects", :resource => subject['@id'], :typeof =>
|
238
|
+
%dd{:property => "earl:testSubjects", :resource => subject['@id'], :typeof => Array(subject['@type']).join(" "), :inlist => true}
|
239
239
|
%dl
|
240
240
|
- if subject['doapDesc']
|
241
241
|
%dt= "Description"
|
@@ -254,7 +254,7 @@
|
|
254
254
|
%dt= "Developer"
|
255
255
|
%dd{:rel => "doap:developer"}
|
256
256
|
- subject['developer'].each do |dev|
|
257
|
-
%div{:resource => dev['@id'], :typeof =>
|
257
|
+
%div{:resource => dev['@id'], :typeof => Array((dev['@type'])).join(" ")}
|
258
258
|
- if dev.has_key?('@id')
|
259
259
|
%a{:href => dev['@id']}
|
260
260
|
%span{:property => "foaf:name"}<
|
data/spec/earl_report_spec.rb
CHANGED
@@ -0,0 +1,330 @@
|
|
1
|
+
<!DOCTYPE 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
|
+
<head>
|
4
|
+
<meta content='text/html;charset=utf-8' http-equiv='Content-Type' />
|
5
|
+
<title>
|
6
|
+
Turtle Test Results
|
7
|
+
</title>
|
8
|
+
<script class='remove' src='http://www.w3.org/Tools/respec/respec-w3c-common' type='text/javascript'></script>
|
9
|
+
<script type='text/javascript'>
|
10
|
+
//<![CDATA[
|
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
|
+
DOAP: "Ed Dumbill. <cite><a href=\"https://github.com/edumbill/doap/wiki\">Turtle: Terse RDF Triple Language.</a></cite> Community Specification. URL: <a href=\"https://github.com/edumbill/doap/wiki\">https://github.com/edumbill/doap/wiki</a>",
|
16
|
+
},
|
17
|
+
|
18
|
+
// specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
|
19
|
+
specStatus: "unofficial",
|
20
|
+
copyrightStart: "2010",
|
21
|
+
doRDFa: "1.1",
|
22
|
+
|
23
|
+
// the specification's short name, as in http://www.w3.org/TR/short-name/
|
24
|
+
shortName: "turtle-earl",
|
25
|
+
subtitle: "Turtle Implementation Conformance Report",
|
26
|
+
// if you wish the publication date to be other than today, set this
|
27
|
+
publishDate: "2013/08/06",
|
28
|
+
|
29
|
+
// if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
|
30
|
+
// and its maturity status
|
31
|
+
//previousPublishDate: "2011-10-23",
|
32
|
+
//previousMaturity: "ED",
|
33
|
+
//previousDiffURI: "http://json-ld.org/spec/ED/json-ld-syntax/20111023/index.html",
|
34
|
+
//diffTool: "http://www.aptest.com/standards/htmldiff/htmldiff.pl",
|
35
|
+
|
36
|
+
// if there a publicly available Editor's Draft, this is the link
|
37
|
+
//edDraftURI: "",
|
38
|
+
|
39
|
+
// if this is a LCWD, uncomment and set the end of its review period
|
40
|
+
// lcEnd: "2009-08-05",
|
41
|
+
|
42
|
+
// if you want to have extra CSS, append them to this list
|
43
|
+
// it is recommended that the respec.css stylesheet be kept
|
44
|
+
extraCSS: [
|
45
|
+
"http://dev.w3.org/2009/dap/ReSpec.js/css/respec.css"
|
46
|
+
],
|
47
|
+
|
48
|
+
// editors, add as many as you like
|
49
|
+
// only "name" is required
|
50
|
+
editors: [
|
51
|
+
{ name: "Gregg Kellogg", url: "http://greggkellogg.net/",
|
52
|
+
company: "Kellogg Associates" },
|
53
|
+
{ name: "Andy Seaborne",
|
54
|
+
company: "The Apache Software Foundation"}
|
55
|
+
],
|
56
|
+
|
57
|
+
// authors, add as many as you like.
|
58
|
+
// This is optional, uncomment if you have authors as well as editors.
|
59
|
+
// only "name" is required. Same format as editors.
|
60
|
+
//authors: [
|
61
|
+
//RDF Working Group],
|
62
|
+
|
63
|
+
// name of the WG
|
64
|
+
wg: "RDF Working Group",
|
65
|
+
|
66
|
+
// URI of the public WG page
|
67
|
+
wgURI: "http://www.w3.org/2011/rdf-wg/",
|
68
|
+
|
69
|
+
// name (with the @w3c.org) of the public mailing to which comments are due
|
70
|
+
wgPublicList: "public-rdf-comments",
|
71
|
+
|
72
|
+
// URI of the patent status for this WG, for Rec-track documents
|
73
|
+
// !!!! IMPORTANT !!!!
|
74
|
+
// This is important for Rec-track documents, do not copy a patent URI from a random
|
75
|
+
// document unless you know what you're doing. If in doubt ask your friendly neighbourhood
|
76
|
+
// Team Contact.
|
77
|
+
wgPatentURI: "http://www.w3.org/2004/01/pp-impl/46168/status",
|
78
|
+
alternateFormats: [
|
79
|
+
{uri: "earl.ttl", label: "Turtle"},
|
80
|
+
{uri: "earl.jsonld", label: "JSON-LD"}
|
81
|
+
],
|
82
|
+
};
|
83
|
+
//]]>
|
84
|
+
</script>
|
85
|
+
<style type='text/css'>
|
86
|
+
/*<![CDATA[*/
|
87
|
+
span[property='dc:description'] { display: none; }
|
88
|
+
td.PASS { color: green; }
|
89
|
+
td.FAIL { color: red; }
|
90
|
+
table.report {
|
91
|
+
border-width: 1px;
|
92
|
+
border-spacing: 2px;
|
93
|
+
border-style: outset;
|
94
|
+
border-color: gray;
|
95
|
+
border-collapse: separate;
|
96
|
+
background-color: white;
|
97
|
+
}
|
98
|
+
table.report th {
|
99
|
+
border-width: 1px;
|
100
|
+
padding: 1px;
|
101
|
+
border-style: inset;
|
102
|
+
border-color: gray;
|
103
|
+
background-color: white;
|
104
|
+
-moz-border-radius: ;
|
105
|
+
}
|
106
|
+
table.report td {
|
107
|
+
border-width: 1px;
|
108
|
+
padding: 1px;
|
109
|
+
border-style: inset;
|
110
|
+
border-color: gray;
|
111
|
+
background-color: white;
|
112
|
+
-moz-border-radius: ;
|
113
|
+
}
|
114
|
+
tr.summary {font-weight: bold;}
|
115
|
+
td.passed-all {color: green;}
|
116
|
+
td.passed-most {color: darkorange;}
|
117
|
+
td.passed-some {color: red;}
|
118
|
+
/*]]>*/
|
119
|
+
</style>
|
120
|
+
</head>
|
121
|
+
<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#'>
|
122
|
+
<section about='' id='abstract' typeof='earl:Software doap:Project'>
|
123
|
+
<p>
|
124
|
+
This document report test subject conformance for and related specifications for
|
125
|
+
<span property='doap:name'>Turtle Test Results</span>
|
126
|
+
<span property='dc:bibliographicCitation'>[[TURTLE]]</span>
|
127
|
+
according to the requirements of the Evaluation and Report Language (EARL) 1.0 Schema [[EARL10-SCHEMA]].
|
128
|
+
</p>
|
129
|
+
<p>
|
130
|
+
This report is also available in alternate formats:
|
131
|
+
<a href='earl.ttl'>
|
132
|
+
Turtle
|
133
|
+
</a>
|
134
|
+
and
|
135
|
+
<a href='earl.jsonld'>
|
136
|
+
JSON-LD
|
137
|
+
</a>
|
138
|
+
</p>
|
139
|
+
</section>
|
140
|
+
<section id='sodt'></section>
|
141
|
+
<section>
|
142
|
+
<h2>
|
143
|
+
Test Manifests
|
144
|
+
</h2>
|
145
|
+
<section resource='http://example/manifest.ttl' typeof='earl:Report mf:Manifest'>
|
146
|
+
<h2 property='dc:title mf:name'>Example Test Cases</h2>
|
147
|
+
<p property='rdfs:comment'>Description for Example Test Cases</p>
|
148
|
+
<table class='report'>
|
149
|
+
<tr>
|
150
|
+
<th>
|
151
|
+
Test
|
152
|
+
</th>
|
153
|
+
<th>
|
154
|
+
<a href='#subj_0'>RDF::Turtle</a>
|
155
|
+
</th>
|
156
|
+
</tr>
|
157
|
+
<tr inlist='inlist' rel='mf:entries' resource='http://example/manifest.ttl#testeval00' typeof='earl:TestCriterion earl:TestCase http://www.w3.org/ns/rdftest#TestTurtleEval'>
|
158
|
+
<td>
|
159
|
+
<a href='#test_1fdd82ac4caf30510cabfdb0a5987ddd'>subm-test-00</a>
|
160
|
+
</td>
|
161
|
+
<td class='PASS' inlist='inlist' property='earl:assertions' typeof='earl:Assertion'>
|
162
|
+
<link href='http://greggkellogg.net/foaf#me' property='earl:assertedBy' />
|
163
|
+
<link href='http://example/manifest.ttl#testeval00' property='earl:test' />
|
164
|
+
<link href='http://rubygems.org/gems/rdf-turtle' property='earl:subject' />
|
165
|
+
<link href='earl:automatic' property='earl:mode' />
|
166
|
+
<span property='earl:result' typeof='earl:TestResult'>
|
167
|
+
<span property='earl:outcome' resource='earl:passed'>
|
168
|
+
PASS
|
169
|
+
</span>
|
170
|
+
</span>
|
171
|
+
</td>
|
172
|
+
</tr>
|
173
|
+
<tr inlist='inlist' rel='mf:entries' resource='_:g70098319653320' typeof='earl:TestCriterion earl:TestCase http://www.w3.org/ns/rdftest#TestTurtleEval'>
|
174
|
+
<td>
|
175
|
+
<a href='#test_219889ba615a599783055e171a8a2c11'>subm-test-01</a>
|
176
|
+
</td>
|
177
|
+
<td class='UNTESTED' inlist='inlist' property='earl:assertions' typeof='earl:Assertion'>
|
178
|
+
<link href='_:g70098319653320' property='earl:test' />
|
179
|
+
<link href='http://rubygems.org/gems/rdf-turtle' property='earl:subject' />
|
180
|
+
<link href='earl:notAvailable' property='earl:mode' />
|
181
|
+
<span property='earl:result' typeof='earl:TestResult'>
|
182
|
+
<span property='earl:outcome' resource='earl:untested'>
|
183
|
+
UNTESTED
|
184
|
+
</span>
|
185
|
+
</span>
|
186
|
+
</td>
|
187
|
+
</tr>
|
188
|
+
<tr class='summary'>
|
189
|
+
<td>
|
190
|
+
Percentage passed out of 2 Tests
|
191
|
+
</td>
|
192
|
+
<td class='passed-some'>
|
193
|
+
50.0%
|
194
|
+
</td>
|
195
|
+
</tr>
|
196
|
+
</table>
|
197
|
+
</section>
|
198
|
+
</section>
|
199
|
+
<section class='appendix'>
|
200
|
+
<h2>
|
201
|
+
Test Subjects
|
202
|
+
</h2>
|
203
|
+
<p>
|
204
|
+
This report was tested using the following test subjects:
|
205
|
+
</p>
|
206
|
+
<dl>
|
207
|
+
<dt id='subj_0'>
|
208
|
+
<a href='http://rubygems.org/gems/rdf-turtle'>
|
209
|
+
<span about='http://rubygems.org/gems/rdf-turtle' property='doap:name'>RDF::Turtle</span>
|
210
|
+
</a>
|
211
|
+
</dt>
|
212
|
+
<dd inlist='inlist' property='earl:testSubjects' resource='http://rubygems.org/gems/rdf-turtle' typeof='earl:TestSubject doap:Project'>
|
213
|
+
<dl>
|
214
|
+
<dt>Description</dt>
|
215
|
+
<dd lang='en' property='doap:description'>RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.</dd>
|
216
|
+
<dt>Programming Language</dt>
|
217
|
+
<dd property='doap:programming-language'>Ruby</dd>
|
218
|
+
<dt>Home Page</dt>
|
219
|
+
<dd property='doap:homepage'>
|
220
|
+
<a href='http://ruby-rdf.github.com/rdf-turtle'>
|
221
|
+
http://ruby-rdf.github.com/rdf-turtle
|
222
|
+
</a>
|
223
|
+
</dd>
|
224
|
+
<dt>Developer</dt>
|
225
|
+
<dd rel='doap:developer'>
|
226
|
+
<div resource='http://greggkellogg.net/foaf#me' typeof='foaf:Person'>
|
227
|
+
<a href='http://greggkellogg.net/foaf#me'>
|
228
|
+
<span property='foaf:name'>Gregg Kellogg</span>
|
229
|
+
</a>
|
230
|
+
<dt>
|
231
|
+
Home Page
|
232
|
+
</dt>
|
233
|
+
<dd>
|
234
|
+
<a href='http://greggkellogg.net/' property='foaf:homepage'>
|
235
|
+
http://greggkellogg.net/
|
236
|
+
</a>
|
237
|
+
</dd>
|
238
|
+
</div>
|
239
|
+
</dd>
|
240
|
+
<dt>
|
241
|
+
Test Suite Compliance
|
242
|
+
</dt>
|
243
|
+
<dd>
|
244
|
+
<table class='report'>
|
245
|
+
<tbody>
|
246
|
+
<tr>
|
247
|
+
<td>
|
248
|
+
Example Test Cases
|
249
|
+
</td>
|
250
|
+
<td class='passed-some'>
|
251
|
+
1/2 (50.0%)
|
252
|
+
</td>
|
253
|
+
</tr>
|
254
|
+
</tbody>
|
255
|
+
</table>
|
256
|
+
</dd>
|
257
|
+
</dl>
|
258
|
+
</dd>
|
259
|
+
</dl>
|
260
|
+
</section>
|
261
|
+
<section class='appendix' rel='earl:assertions'>
|
262
|
+
<h2>
|
263
|
+
Individual Test Results
|
264
|
+
</h2>
|
265
|
+
<p>
|
266
|
+
Individual test results used to construct this report are available here:
|
267
|
+
</p>
|
268
|
+
<ul>
|
269
|
+
<li>
|
270
|
+
<a class='source' href='/Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl'>/Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl</a>
|
271
|
+
</li>
|
272
|
+
</ul>
|
273
|
+
</section>
|
274
|
+
<section class='appendix'>
|
275
|
+
<h2>
|
276
|
+
Test Definitions
|
277
|
+
</h2>
|
278
|
+
<dl>
|
279
|
+
<div inlist='inlist' property='mf:entries' resource='http://example/manifest.ttl'>
|
280
|
+
<dt id='test_1fdd82ac4caf30510cabfdb0a5987ddd' resource='http://example/manifest.ttl#testeval00'>
|
281
|
+
Test
|
282
|
+
<span property='dc:title mf:name'>subm-test-00</span>
|
283
|
+
</dt>
|
284
|
+
<dd resource='http://example/manifest.ttl#testeval00'>
|
285
|
+
<p lang='en' property='dc:description'>Blank subject</p>
|
286
|
+
<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>
|
287
|
+
<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>
|
288
|
+
</dd>
|
289
|
+
<dt id='test_219889ba615a599783055e171a8a2c11' resource='_:g70098319653320'>
|
290
|
+
Test
|
291
|
+
<span property='dc:title mf:name'>subm-test-01</span>
|
292
|
+
</dt>
|
293
|
+
<dd resource='_:g70098319653320'>
|
294
|
+
<p lang='en' property='dc:description'>@prefix and qnames</p>
|
295
|
+
<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>
|
296
|
+
<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>
|
297
|
+
</dd>
|
298
|
+
</div>
|
299
|
+
</dl>
|
300
|
+
</section>
|
301
|
+
<section id='appendix' property='earl:generatedBy' resource='http://rubygems.org/gems/earl-report' typeof='doap:Project'>
|
302
|
+
<h2>
|
303
|
+
Report Generation Software
|
304
|
+
</h2>
|
305
|
+
<p>
|
306
|
+
This report generated by
|
307
|
+
<span property='doap:name'><a href='http://rubygems.org/gems/earl-report'>earl-report</a></span>
|
308
|
+
<meta content='Earl Report summary generator' lang='en' property='doap:shortdesc' />
|
309
|
+
<meta content='EarlReport generates HTML+RDFa rollups of multiple EARL reports' lang='en' property='doap:description' />
|
310
|
+
version
|
311
|
+
<span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.2.4' typeof='doap:Version'>
|
312
|
+
<span property='doap:revision'>0.2.4</span>
|
313
|
+
<meta content='earl-report-0.2.4' property='doap:name' />
|
314
|
+
<meta content='2013-05-10' datatype='xsd:date' property='doap:created' />
|
315
|
+
</span>
|
316
|
+
an
|
317
|
+
<a href='http://unlicense.org' property='doap:license'>Unlicensed</a>
|
318
|
+
<span property='doap:programming-language'>Ruby</span>
|
319
|
+
application. More information is available at
|
320
|
+
<a href='https://github.com/gkellogg/earl-report' property='doap:homepage'>https://github.com/gkellogg/earl-report</a>
|
321
|
+
.
|
322
|
+
</p>
|
323
|
+
<p property='doap:developer' resource='http://greggkellogg.net/foaf#me' typeof='foaf:Person'>
|
324
|
+
This software is provided by
|
325
|
+
<a href='http://greggkellogg.net/' property='foaf:homepage'><span aboue='http://greggkellogg.net/foaf#me' property='foaf:name'>Gregg Kellogg</span></a>
|
326
|
+
in hopes that it might make the lives of conformance testers easier.
|
327
|
+
</p>
|
328
|
+
</section>
|
329
|
+
</body>
|
330
|
+
</html>
|
@@ -0,0 +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.2.4","@type":"doap:Version","name":"earl-report-0.2.4","created":"2013-05-10","revision":"0.2.4"},"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":"_:g70116850663340","@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":"_:g70116850663340","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"}]}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
@prefix dc: <http://purl.org/dc/terms/> .
|
2
|
+
@prefix doap: <http://usefulinc.com/ns/doap#> .
|
3
|
+
@prefix earl: <http://www.w3.org/ns/earl#> .
|
4
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
5
|
+
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
|
6
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
7
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
8
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
9
|
+
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
|
10
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
11
|
+
|
12
|
+
|
13
|
+
<> a earl:Software, doap:Project;
|
14
|
+
doap:name "Turtle Test Results";
|
15
|
+
dc:bibliographicCitation "[[TURTLE]]";
|
16
|
+
earl:generatedBy <http://rubygems.org/gems/earl-report>;
|
17
|
+
earl:assertions
|
18
|
+
</Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl>;
|
19
|
+
earl:testSubjects (
|
20
|
+
<http://rubygems.org/gems/rdf-turtle>);
|
21
|
+
mf:entries (
|
22
|
+
<http://example/manifest.ttl>) .
|
23
|
+
|
24
|
+
|
25
|
+
<http://rubygems.org/gems/earl-report> a earl:Software, doap:Project;
|
26
|
+
doap:name "earl-report";
|
27
|
+
doap:shortdesc "Earl Report summary generator"@en;
|
28
|
+
doap:description "EarlReport generates HTML+RDFa rollups of multiple EARL reports"@en;
|
29
|
+
doap:homepage <https://github.com/gkellogg/earl-report>;
|
30
|
+
doap:programming-language "Ruby";
|
31
|
+
doap:license <http://unlicense.org>;
|
32
|
+
doap:release <https://github.com/gkellogg/earl-report/tree/0.2.4>;
|
33
|
+
doap:developer <http://greggkellogg.net/foaf#me> .
|
34
|
+
|
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
|
+
rdfs:comment "Description for Example Test Cases";
|
42
|
+
mf:entries (
|
43
|
+
<http://example/manifest.ttl#testeval00>
|
44
|
+
_:g70116882172400) .
|
45
|
+
|
46
|
+
#
|
47
|
+
# Subject Definitions
|
48
|
+
#
|
49
|
+
<http://rubygems.org/gems/rdf-turtle> a earl:TestSubject, doap:Project;
|
50
|
+
doap:name "RDF::Turtle";
|
51
|
+
doap:description """RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite."""@en;
|
52
|
+
doap:programming-language "Ruby";
|
53
|
+
.
|
54
|
+
|
55
|
+
<http://rubygems.org/gems/rdf-turtle> doap:developer <http://greggkellogg.net/foaf#me> .
|
56
|
+
|
57
|
+
<http://greggkellogg.net/foaf#me> a foaf:Person;
|
58
|
+
foaf:homepage <http://greggkellogg.net/>;
|
59
|
+
foaf:name "Gregg Kellogg" .
|
60
|
+
|
61
|
+
|
62
|
+
#
|
63
|
+
# Test Case Definitions
|
64
|
+
#
|
65
|
+
<http://example/manifest.ttl#testeval00> a earl:TestCriterion, earl:TestCase, <http://www.w3.org/ns/rdftest#TestTurtleEval>;
|
66
|
+
dc:title "subm-test-00";
|
67
|
+
dc:description """Blank subject"""@en;
|
68
|
+
mf:result <http://example/test-00.out>;
|
69
|
+
mf:action <http://example/test-00.ttl>;
|
70
|
+
earl:assertions (
|
71
|
+
[ a earl:Assertion;
|
72
|
+
earl:assertedBy <http://greggkellogg.net/foaf#me>;
|
73
|
+
earl:test <http://example/manifest.ttl#testeval00>;
|
74
|
+
earl:subject <http://rubygems.org/gems/rdf-turtle>;
|
75
|
+
earl:mode earl:automatic;
|
76
|
+
earl:result [ a earl:TestResult; earl:outcome earl:passed ]]
|
77
|
+
) .
|
78
|
+
|
79
|
+
_:g70116882172400 a earl:TestCriterion, earl:TestCase, <http://www.w3.org/ns/rdftest#TestTurtleEval>;
|
80
|
+
dc:title "subm-test-01";
|
81
|
+
dc:description """@prefix and qnames"""@en;
|
82
|
+
mf:result <http://example/test-01.out>;
|
83
|
+
mf:action <http://example/test-01.ttl>;
|
84
|
+
earl:assertions (
|
85
|
+
[ a earl:Assertion;
|
86
|
+
earl:test _:g70116882172400;
|
87
|
+
earl:subject <http://rubygems.org/gems/rdf-turtle>;
|
88
|
+
earl:mode earl:notAvailable;
|
89
|
+
earl:result [ a earl:TestResult; earl:outcome earl:untested ]]
|
90
|
+
) .
|
91
|
+
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: earl-report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Gregg Kellogg
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: linkeddata
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: sparql
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: yard
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rake
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ! '>='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ! '>='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -111,36 +100,35 @@ files:
|
|
111
100
|
- spec/test-files/report-complete.ttl
|
112
101
|
- spec/test-files/report-no-doap.ttl
|
113
102
|
- spec/test-files/report-no-foaf.ttl
|
103
|
+
- spec/test-files/results.html
|
104
|
+
- spec/test-files/results.jsonld
|
105
|
+
- spec/test-files/results.ttl
|
114
106
|
- spec/test-files/test-00.out
|
115
107
|
- spec/test-files/test-00.ttl
|
116
108
|
- bin/earl-report
|
117
109
|
homepage: http://github.com/gkellogg/earl-report
|
118
110
|
licenses:
|
119
111
|
- Public Domain
|
112
|
+
metadata: {}
|
120
113
|
post_install_message:
|
121
114
|
rdoc_options: []
|
122
115
|
require_paths:
|
123
116
|
- lib
|
124
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
118
|
requirements:
|
127
119
|
- - ! '>='
|
128
120
|
- !ruby/object:Gem::Version
|
129
121
|
version: 1.9.3
|
130
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
123
|
requirements:
|
133
124
|
- - ! '>='
|
134
125
|
- !ruby/object:Gem::Version
|
135
126
|
version: '0'
|
136
|
-
segments:
|
137
|
-
- 0
|
138
|
-
hash: 1691574576379206311
|
139
127
|
requirements: []
|
140
128
|
rubyforge_project:
|
141
|
-
rubygems_version:
|
129
|
+
rubygems_version: 2.0.5
|
142
130
|
signing_key:
|
143
|
-
specification_version:
|
131
|
+
specification_version: 4
|
144
132
|
summary: Earl Report summary generator
|
145
133
|
test_files:
|
146
134
|
- spec/earl_report_spec.rb
|
@@ -151,6 +139,9 @@ test_files:
|
|
151
139
|
- spec/test-files/report-complete.ttl
|
152
140
|
- spec/test-files/report-no-doap.ttl
|
153
141
|
- spec/test-files/report-no-foaf.ttl
|
142
|
+
- spec/test-files/results.html
|
143
|
+
- spec/test-files/results.jsonld
|
144
|
+
- spec/test-files/results.ttl
|
154
145
|
- spec/test-files/test-00.out
|
155
146
|
- spec/test-files/test-00.ttl
|
156
147
|
has_rdoc: false
|