earl-report 0.2.3 → 0.2.4

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 CHANGED
@@ -1,6 +1,9 @@
1
1
  # earl-report
2
2
  Ruby gem to consolidate multiple EARL report and generate a rollup conformance report.
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/earl-report.png)](http://badge.fury.io/rb/earl-report)
5
+ [![Build Status](https://travis-ci.org/gkellogg/earl-report.png?branch=master)](http://travis-ci.org/gkellogg/earl-report)
6
+
4
7
  ## Description
5
8
  Reads a test manifest in the
6
9
  [standard RDF WG format](http://www.w3.org/2011/rdf-wg/wiki/Turtle_Test_Suite)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -40,13 +40,11 @@ class EarlReport
40
40
 
41
41
  SELECT DISTINCT ?uri ?name ?doapDesc ?homepage ?language ?developer ?devName ?devType ?devHomepage
42
42
  WHERE {
43
- ?uri a doap:Project; doap:name ?name .
44
- OPTIONAL { ?uri doap:developer ?developer .}
43
+ ?uri a doap:Project; doap:name ?name; doap:developer ?developer .
45
44
  OPTIONAL { ?uri doap:homepage ?homepage . }
46
45
  OPTIONAL { ?uri doap:description ?doapDesc . }
47
46
  OPTIONAL { ?uri doap:programming-language ?language . }
48
- OPTIONAL { ?developer a ?devType .}
49
- OPTIONAL { ?developer foaf:name ?devName .}
47
+ OPTIONAL { ?developer a ?devType; foaf:name ?devName .}
50
48
  OPTIONAL { ?developer foaf:homepage ?devHomepage .}
51
49
  }
52
50
  ).freeze
@@ -556,7 +554,10 @@ class EarlReport
556
554
  # @prarm[Hash] desc
557
555
  # @return [String]
558
556
  def tc_turtle(desc)
559
- res = %{#{as_resource desc['@id']} a #{[desc['@type']].flatten.join(', ')};\n}
557
+ types = [desc['@type']].flatten.compact.map do |t|
558
+ t.include?("://") ? "<#{t}>" : t
559
+ end
560
+ res = %{#{as_resource desc['@id']} a #{types.join(', ')};\n}
560
561
  res += %{ dc:title "#{desc['title']}";\n}
561
562
  res += %{ dc:description """#{desc['description']}"""@en;\n} if desc.has_key?('description')
562
563
  res += %{ mf:result #{as_resource desc['testResult']};\n} if desc.has_key?('testResult')
@@ -39,6 +39,7 @@
39
39
  -# }]
40
40
  -# }
41
41
  - require 'cgi'
42
+ - require 'digest'
42
43
 
43
44
  !!! 5
44
45
  %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#"}
@@ -53,6 +54,7 @@
53
54
  // extend the bibliography entries
54
55
  localBiblio: {
55
56
  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>",
57
+ 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>",
56
58
  },
57
59
 
58
60
  // specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
@@ -195,7 +197,7 @@
195
197
  %th
196
198
  %a{:href => '#' + subject_refs[subject['@id']]}<=subject['name']
197
199
  - test_cases.each do |test|
198
- - tid = 'test_' + (test['@id'][0,2] == '_:' ? test['@id'][2..-1] : test['@id'].split('#').last)
200
+ - tid = "test_#{Digest::MD5.hexdigest(test['@id'])}"
199
201
  - (test_info[tid] ||= []) << test
200
202
  - test_refs[test['@id']] = tid
201
203
  %tr{:rel => "mf:entries", :typeof => test['@type'].join(" "), :resource => test['@id'], :inlist => true}
@@ -184,6 +184,14 @@ describe EarlReport do
184
184
  RDF::Graph.new << JSON::LD::Reader.new(subject.to_json, :base_uri => "http://example.com/report")
185
185
  end
186
186
 
187
+ it "saves output" do
188
+ lambda {
189
+ File.open(File.expand_path("../test-files/results.jsonld", __FILE__), "w") do |f|
190
+ f.write(subject.to_json)
191
+ end
192
+ }.should_not raise_error
193
+ end
194
+
187
195
  it "has Report" do
188
196
  SPARQL.execute(REPORT_QUERY, graph).should == RDF::Literal::TRUE
189
197
  end
@@ -448,7 +456,12 @@ describe EarlReport do
448
456
  end
449
457
 
450
458
  context "Test Case Definitions" do
451
- specify {should match(/<#{tc['@id']}> a #{tc['@type'].join(', ')}\s*[;\.]$/)}
459
+ let(:types) {
460
+ tc['@type'].map do |t|
461
+ t.include?("://") ? "<#{t}>" : t
462
+ end
463
+ }
464
+ specify {should match(/<#{tc['@id']}> a #{types.join(', ')}\s*[;\.]$/)}
452
465
  end
453
466
 
454
467
  context "Assertion" do
@@ -462,6 +475,14 @@ describe EarlReport do
462
475
  end
463
476
  end
464
477
 
478
+ it "saves output" do
479
+ lambda {
480
+ File.open(File.expand_path("../test-files/results.ttl", __FILE__), "w") do |f|
481
+ f.write(output)
482
+ end
483
+ }.should_not raise_error
484
+ end
485
+
465
486
  it "has Report" do
466
487
  SPARQL.execute(REPORT_QUERY, graph).should == RDF::Literal::TRUE
467
488
  end
@@ -498,6 +519,14 @@ describe EarlReport do
498
519
  end
499
520
  end
500
521
 
522
+ it "saves output" do
523
+ lambda {
524
+ File.open(File.expand_path("../test-files/results.html", __FILE__), "w") do |f|
525
+ f.write(output)
526
+ end
527
+ }.should_not raise_error
528
+ end
529
+
501
530
  it "has Report" do
502
531
  SPARQL.execute(REPORT_QUERY, graph).should == RDF::Literal::TRUE
503
532
  end
@@ -573,7 +602,7 @@ describe EarlReport do
573
602
 
574
603
  ASK WHERE {
575
604
  <http://example/manifest.ttl#testeval00> a earl:TestCriterion, earl:TestCase;
576
- #dc:title "subm-test-00";
605
+ dc:title "subm-test-00";
577
606
  dc:description """Blank subject"""@en;
578
607
  mf:action <http://example/test-00.ttl>;
579
608
  mf:result <http://example/test-00.out>;
@@ -1,7 +1,7 @@
1
1
  $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
2
  $:.unshift File.dirname(__FILE__)
3
3
 
4
- #require "bundler/setup"
4
+ require "bundler/setup"
5
5
  require 'rspec'
6
6
  require 'earl_report'
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earl-report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
12
+ date: 2013-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: linkeddata
@@ -59,6 +59,38 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.8.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: yard
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: 0.8.3
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 0.8.3
78
+ - !ruby/object:Gem::Dependency
79
+ name: rake
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
62
94
  description: EarlReport generates HTML+RDFa rollups of multiple EARL reports.
63
95
  email: gregg@greggkellogg.net
64
96
  executables:
@@ -79,9 +111,6 @@ files:
79
111
  - spec/test-files/report-complete.ttl
80
112
  - spec/test-files/report-no-doap.ttl
81
113
  - spec/test-files/report-no-foaf.ttl
82
- - spec/test-files/results.html
83
- - spec/test-files/results.jsonld
84
- - spec/test-files/results.ttl
85
114
  - spec/test-files/test-00.out
86
115
  - spec/test-files/test-00.ttl
87
116
  - bin/earl-report
@@ -104,6 +133,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
133
  - - ! '>='
105
134
  - !ruby/object:Gem::Version
106
135
  version: '0'
136
+ segments:
137
+ - 0
138
+ hash: 1691574576379206311
107
139
  requirements: []
108
140
  rubyforge_project:
109
141
  rubygems_version: 1.8.25
@@ -119,9 +151,6 @@ test_files:
119
151
  - spec/test-files/report-complete.ttl
120
152
  - spec/test-files/report-no-doap.ttl
121
153
  - spec/test-files/report-no-foaf.ttl
122
- - spec/test-files/results.html
123
- - spec/test-files/results.jsonld
124
- - spec/test-files/results.ttl
125
154
  - spec/test-files/test-00.out
126
155
  - spec/test-files/test-00.ttl
127
156
  has_rdoc: false
@@ -1,327 +0,0 @@
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
-
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
- },
16
-
17
- // specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
18
- specStatus: "unofficial",
19
- copyrightStart: "2010",
20
- doRDFa: "1.1",
21
-
22
- // the specification's short name, as in http://www.w3.org/TR/short-name/
23
- shortName: "turtle-earl",
24
- subtitle: "Turtle Implementation Conformance Report",
25
- // if you wish the publication date to be other than today, set this
26
- publishDate: "2013/02/22",
27
-
28
- // if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
29
- // and its maturity status
30
- //previousPublishDate: "2011-10-23",
31
- //previousMaturity: "ED",
32
- //previousDiffURI: "http://json-ld.org/spec/ED/json-ld-syntax/20111023/index.html",
33
- //diffTool: "http://www.aptest.com/standards/htmldiff/htmldiff.pl",
34
-
35
- // if there a publicly available Editor's Draft, this is the link
36
- //edDraftURI: "",
37
-
38
- // if this is a LCWD, uncomment and set the end of its review period
39
- // lcEnd: "2009-08-05",
40
-
41
- // if you want to have extra CSS, append them to this list
42
- // it is recommended that the respec.css stylesheet be kept
43
- extraCSS: [
44
- "http://dev.w3.org/2009/dap/ReSpec.js/css/respec.css"
45
- ],
46
-
47
- // editors, add as many as you like
48
- // only "name" is required
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
- ],
55
-
56
- // authors, add as many as you like.
57
- // This is optional, uncomment if you have authors as well as editors.
58
- // only "name" is required. Same format as editors.
59
- //authors: [
60
- //RDF Working Group],
61
-
62
- // name of the WG
63
- wg: "RDF Working Group",
64
-
65
- // URI of the public WG page
66
- wgURI: "http://www.w3.org/2011/rdf-wg/",
67
-
68
- // name (with the @w3c.org) of the public mailing to which comments are due
69
- wgPublicList: "public-rdf-comments",
70
-
71
- // URI of the patent status for this WG, for Rec-track documents
72
- // !!!! IMPORTANT !!!!
73
- // This is important for Rec-track documents, do not copy a patent URI from a random
74
- // document unless you know what you're doing. If in doubt ask your friendly neighbourhood
75
- // Team Contact.
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
- ],
81
- };
82
- //]]>
83
- </script>
84
- <style type='text/css'>
85
- /*<![CDATA[*/
86
- span[property='dc:description'] { display: none; }
87
- td.PASS { color: green; }
88
- td.FAIL { color: red; }
89
- table.report {
90
- border-width: 1px;
91
- border-spacing: 2px;
92
- border-style: outset;
93
- border-color: gray;
94
- border-collapse: separate;
95
- background-color: white;
96
- }
97
- table.report th {
98
- border-width: 1px;
99
- padding: 1px;
100
- border-style: inset;
101
- border-color: gray;
102
- background-color: white;
103
- -moz-border-radius: ;
104
- }
105
- table.report td {
106
- border-width: 1px;
107
- padding: 1px;
108
- border-style: inset;
109
- border-color: gray;
110
- background-color: white;
111
- -moz-border-radius: ;
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;}
117
- /*]]>*/
118
- </style>
119
- </head>
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'>
122
- <p>
123
- This document report test subject conformance for and related specifications for
124
- <span property='doap:name'></span>
125
- <span property='dc:bibliographicCitation'></span>
126
- according to the requirements of the Evaluation and Report Language (EARL) 1.0 Schema [[EARL10-SCHEMA]].
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>
138
- </section>
139
- <section id='sodt'></section>
140
- <section>
141
- <h2>
142
- Test Manifests
143
- </h2>
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>
169
- </span>
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>
184
- </span>
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>
197
- </section>
198
- <section class='appendix'>
199
- <h2>
200
- Test Subjects
201
- </h2>
202
- <p>
203
- This report was tested using the following test subjects:
204
- </p>
205
- <dl>
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>
211
- <dd inlist='inlist' property='earl:testSubjects' resource='http://rubygems.org/gems/rdf-turtle' typeof='earl:TestSubject doap:Project'>
212
- <dl>
213
- <dt>Description</dt>
214
- <dd lang='en' property='doap:description'>RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.</dd>
215
- <dt>Programming Language</dt>
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>
221
- <dt>Developer</dt>
222
- <dd rel='doap:developer'>
223
- <div resource='http://greggkellogg.net/foaf#me' typeof='foaf:Person'>
224
- <a href='http://greggkellogg.net/foaf#me'>
225
- <span property='foaf:name'>Gregg Kellogg</span>
226
- </a>
227
- <dt>
228
- Home Page
229
- </dt>
230
- <dd>
231
- <a href='http://greggkellogg.net/' property='foaf:homepage'>
232
- http://greggkellogg.net/
233
- </a>
234
- </dd>
235
- </div>
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>
254
- </dl>
255
- </dd>
256
- </dl>
257
- </section>
258
- <section class='appendix' rel='earl:assertions'>
259
- <h2>
260
- Individual Test Results
261
- </h2>
262
- <p>
263
- Individual test results used to construct this report are available here:
264
- </p>
265
- <ul>
266
- <li>
267
- <a class='source' href='test-files/report-complete.ttl'>test-files/report-complete.ttl</a>
268
- </li>
269
- </ul>
270
- </section>
271
- <section class='appendix'>
272
- <h2>
273
- Test Definitions
274
- </h2>
275
- <dl>
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>
296
- </dl>
297
- </section>
298
- <section id='appendix' property='earl:generatedBy' resource='http://rubygems.org/gems/earl-report' typeof='doap:Project'>
299
- <h2>
300
- Report Generation Software
301
- </h2>
302
- <p>
303
- This report generated by
304
- <span property='doap:name'><a href='http://rubygems.org/gems/earl-report'>earl-report</a></span>
305
- <meta content='Earl Report summary generator' lang='en' property='doap:shortdesc' />
306
- <meta content='EarlReport generates HTML+RDFa rollups of multiple EARL reports' lang='en' property='doap:description' />
307
- version
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' />
312
- </span>
313
- an
314
- <a href='http://unlicense.org' property='doap:license'>Unlicensed</a>
315
- <span property='doap:programming-language'>Ruby</span>
316
- application. More information is available at
317
- <a href='https://github.com/gkellogg/earl-report' property='doap:homepage'>https://github.com/gkellogg/earl-report</a>
318
- .
319
- </p>
320
- <p property='doap:developer' resource='http://greggkellogg.net/foaf#me' typeof='foaf:Person'>
321
- This software is provided by
322
- <a href='http://greggkellogg.net/' property='foaf:homepage'><span aboue='http://greggkellogg.net/foaf#me' property='foaf:name'>Gregg Kellogg</span></a>
323
- in hopes that it might make the lives of conformance testers easier.
324
- </p>
325
- </section>
326
- </body>
327
- </html>
@@ -1,220 +0,0 @@
1
- {
2
- "@context": {
3
- "@vocab": "http://www.w3.org/ns/earl#",
4
- "foaf:homepage": {
5
- "@type": "@id"
6
- },
7
- "dc": "http://purl.org/dc/terms/",
8
- "doap": "http://usefulinc.com/ns/doap#",
9
- "earl": "http://www.w3.org/ns/earl#",
10
- "mf": "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",
11
- "foaf": "http://xmlns.com/foaf/0.1/",
12
- "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
13
- "assertedBy": {
14
- "@type": "@id"
15
- },
16
- "assertions": {
17
- "@type": "@id",
18
- "@container": "@list"
19
- },
20
- "bibRef": {
21
- "@id": "dc:bibliographicCitation"
22
- },
23
- "created": {
24
- "@id": "doap:created",
25
- "@type": "xsd:date"
26
- },
27
- "description": {
28
- "@id": "dc:description",
29
- "@language": "en"
30
- },
31
- "developer": {
32
- "@id": "doap:developer",
33
- "@type": "@id",
34
- "@container": "@set"
35
- },
36
- "doapDesc": {
37
- "@id": "doap:description",
38
- "@language": "en"
39
- },
40
- "generatedBy": {
41
- "@type": "@id"
42
- },
43
- "homepage": {
44
- "@id": "doap:homepage",
45
- "@type": "@id"
46
- },
47
- "label": {
48
- "@id": "rdfs:label",
49
- "@language": "en"
50
- },
51
- "language": {
52
- "@id": "doap:programming-language"
53
- },
54
- "license": {
55
- "@id": "doap:license",
56
- "@type": "@id"
57
- },
58
- "mode": {
59
- "@type": "@id"
60
- },
61
- "name": {
62
- "@id": "doap:name"
63
- },
64
- "outcome": {
65
- "@type": "@id"
66
- },
67
- "release": {
68
- "@id": "doap:release",
69
- "@type": "@id"
70
- },
71
- "shortdesc": {
72
- "@id": "doap:shortdesc",
73
- "@language": "en"
74
- },
75
- "subject": {
76
- "@type": "@id"
77
- },
78
- "test": {
79
- "@type": "@id"
80
- },
81
- "testAction": {
82
- "@id": "mf:action",
83
- "@type": "@id"
84
- },
85
- "testResult": {
86
- "@id": "mf:result",
87
- "@type": "@id"
88
- },
89
- "entries": {
90
- "@id": "mf:entries",
91
- "@type": "@id",
92
- "@container": "@list"
93
- },
94
- "testSubjects": {
95
- "@type": "@id",
96
- "@container": "@list"
97
- },
98
- "title": {
99
- "@id": "dc:title"
100
- },
101
- "xsd": {
102
- "@id": "http://www.w3.org/2001/XMLSchema#"
103
- }
104
- },
105
- "@id": "",
106
- "@type": [
107
- "earl:Software",
108
- "doap:Project"
109
- ],
110
- "name": null,
111
- "bibRef": null,
112
- "generatedBy": {
113
- "@id": "http://rubygems.org/gems/earl-report",
114
- "@type": "doap:Project",
115
- "name": "earl-report",
116
- "shortdesc": "Earl Report summary generator",
117
- "doapDesc": "EarlReport generates HTML+RDFa rollups of multiple EARL reports",
118
- "homepage": "https://github.com/gkellogg/earl-report",
119
- "language": "Ruby",
120
- "license": "http://unlicense.org",
121
- "release": {
122
- "@id": "https://github.com/gkellogg/earl-report/tree/0.2.0",
123
- "@type": "doap:Version",
124
- "name": "earl-report-0.2.0",
125
- "created": "2013-02-21",
126
- "revision": "0.2.0"
127
- },
128
- "developer": {
129
- "@type": "foaf:Person",
130
- "@id": "http://greggkellogg.net/foaf#me",
131
- "foaf:name": "Gregg Kellogg",
132
- "foaf:homepage": "http://greggkellogg.net/"
133
- }
134
- },
135
- "assertions": [
136
- "test-files/report-complete.ttl"
137
- ],
138
- "testSubjects": [
139
- {
140
- "@id": "http://rubygems.org/gems/rdf-turtle",
141
- "@type": [
142
- "earl:TestSubject",
143
- "doap:Project"
144
- ],
145
- "name": "RDF::Turtle",
146
- "developer": [
147
- {
148
- "@type": "foaf:Person",
149
- "@id": "http://greggkellogg.net/foaf#me",
150
- "foaf:name": "Gregg Kellogg",
151
- "foaf:homepage": "http://greggkellogg.net/"
152
- }
153
- ],
154
- "doapDesc": "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.",
155
- "homepage": "http://ruby-rdf.github.com/rdf-turtle",
156
- "language": "Ruby"
157
- }
158
- ],
159
- "entries": [
160
- {
161
- "@id": "http://example/manifest.ttl",
162
- "@type": [
163
- "earl:Report",
164
- "mf:Manifest"
165
- ],
166
- "title": "Example Test Cases",
167
- "entries": [
168
- {
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
- },
193
- {
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"
216
- }
217
- ]
218
- }
219
- ]
220
- }
@@ -1,90 +0,0 @@
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 "";
15
- dc:bibliographicCitation "";
16
- earl:generatedBy <http://rubygems.org/gems/earl-report>;
17
- earl:assertions
18
- <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.0>;
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
- mf:entries (
42
- <http://example/manifest.ttl#testeval00>
43
- _:g70274704517540) .
44
-
45
- #
46
- # Subject Definitions
47
- #
48
- <http://rubygems.org/gems/rdf-turtle> a earl:TestSubject, doap:Project;
49
- doap:name "RDF::Turtle";
50
- doap:description """RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite."""@en;
51
- doap:programming-language "Ruby";
52
- .
53
-
54
- <http://rubygems.org/gems/rdf-turtle> doap:developer <http://greggkellogg.net/foaf#me> .
55
-
56
- <http://greggkellogg.net/foaf#me> a foaf:Person;
57
- foaf:homepage <http://greggkellogg.net/>;
58
- foaf:name "Gregg Kellogg" .
59
-
60
-
61
- #
62
- # Test Case Definitions
63
- #
64
- <http://example/manifest.ttl#testeval00> a earl:TestCriterion, earl:TestCase, http://www.w3.org/ns/rdftest#TestTurtleEval;
65
- dc:title "subm-test-00";
66
- dc:description """Blank subject"""@en;
67
- mf:result <http://example/test-00.out>;
68
- mf:action <http://example/test-00.ttl>;
69
- earl:assertions (
70
- [ a earl:Assertion;
71
- earl:assertedBy <http://greggkellogg.net/foaf#me>;
72
- earl:test <http://example/manifest.ttl#testeval00>;
73
- earl:subject <http://rubygems.org/gems/rdf-turtle>;
74
- earl:mode earl:automatic;
75
- earl:result [ a earl:TestResult; earl:outcome earl:passed ]]
76
- ) .
77
-
78
- _:g70274704517540 a earl:TestCriterion, earl:TestCase, http://www.w3.org/ns/rdftest#TestTurtleEval;
79
- dc:title "subm-test-01";
80
- dc:description """@prefix and qnames"""@en;
81
- mf:result <http://example/test-01.out>;
82
- mf:action <http://example/test-01.ttl>;
83
- earl:assertions (
84
- [ a earl:Assertion;
85
- earl:test _:g70274704517540;
86
- earl:subject <http://rubygems.org/gems/rdf-turtle>;
87
- earl:mode earl:automatic;
88
- earl:result [ a earl:TestResult; earl:outcome earl:untested ]]
89
- ) .
90
-