earl-report 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77b18a547a9e1721a2c32e83abc8230dfb5c8a4a7170874cda1b4cf41d50d4d8
4
- data.tar.gz: 04654044c3dfca443518097550ef07bd68b74203ca9dfc239a49c1a62a5c7556
3
+ metadata.gz: a5d9b1de6d1ff74153dad8f2ff10691a43066da67b118c2c3cac375d030963e9
4
+ data.tar.gz: 2717c41b45c6f878157d070e34ca459530eda435b668e83141e6acb730f0be7b
5
5
  SHA512:
6
- metadata.gz: 743c19a11e2b87f8819d841df0d37b9a6693b8eac15546d87e025d2c14f3464604cacc78adadc6d08103326070975334cb77e50a7da7b1824baf1babc4dbd33f
7
- data.tar.gz: 23524a7e72dfd286504c422b05defa55e1ae00343a348926180d5d252a3ca041bc6a948cd929eca6e4183bdc2f8c1a0ff3b39861c34417ead1360bce7cd77525
6
+ metadata.gz: f32d6ee582e6fb93c7a87f43a88c8146ec2ca952cb6000e8459213d65260cb454a253947adefe013d8cd0026aa847fde157a0eda0949077cb72e265f06ed61b3
7
+ data.tar.gz: 6ade127c2bb38bb1bec57106a71672d091a107799e6b2e1f37e65ecc66e4608a2573455a50470be918636aa230669b88fbde660e65c9172d660619982539dd73
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
data/lib/earl_report.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # EARL reporting
2
- require 'linkeddata'
2
+ require 'json/ld'
3
+ require 'rdf/turtle'
4
+ require 'rdf/vocab'
3
5
  require 'sparql'
4
6
  require 'haml'
5
7
  require 'open-uri'
@@ -1,6 +1,7 @@
1
1
  # coding: utf-8
2
2
  $:.unshift "."
3
3
  require 'spec_helper'
4
+ require 'rdf/rdfa'
4
5
 
5
6
  describe EarlReport do
6
7
  let!(:earl) {
@@ -73,8 +73,8 @@ Implementation Report
73
73
  <h2 id='w3c-document-28-october-2015'>
74
74
  <abbr title='World Wide Web Consortium'>W3C</abbr>
75
75
  Document
76
- <time class='dt-published' datetime='2021-03-19' property='dc:issued'>
77
- 19 March 2021
76
+ <time class='dt-published' datetime='2021-03-25' property='dc:issued'>
77
+ 25 March 2021
78
78
  </time>
79
79
  </h2>
80
80
  <dl>
@@ -105,7 +105,7 @@ rules apply.
105
105
  </p>
106
106
  <hr />
107
107
  </div>
108
- <section about='' id='abstract' typeof='doap:Project Software'>
108
+ <section about='' id='abstract' typeof='Software doap:Project'>
109
109
  <h2>Abstract</h2>
110
110
  <p>
111
111
  This document report test subject conformance for and related specifications for
@@ -231,7 +231,7 @@ Report Generation Software
231
231
  <span class='secno'>2.</span>
232
232
  Test Manifests
233
233
  </h2>
234
- <section id='Description-for-Example-Test-Cases' resource='http://example/manifest.ttl' typeof='mf:Manifest Report'>
234
+ <section id='Description-for-Example-Test-Cases' resource='http://example/manifest.ttl' typeof='Report mf:Manifest'>
235
235
  <h2>
236
236
  <span class='secno'>2.1</span>
237
237
  <span property='dc:title mf:name'>Example Test Cases</span>
@@ -245,7 +245,7 @@ Test
245
245
  <a href='#subj_0'>RDF::Turtle</a>
246
246
  </th>
247
247
  </tr>
248
- <tr inlist='inlist' rel='mf:entries' resource='http://example/manifest.ttl#testeval00' typeof='http://www.w3.org/ns/rdftest#TestTurtleEval TestCase TestCriterion'>
248
+ <tr inlist='inlist' rel='mf:entries' resource='http://example/manifest.ttl#testeval00' typeof='TestCriterion TestCase http://www.w3.org/ns/rdftest#TestTurtleEval'>
249
249
  <td>
250
250
  <a href='#test_1fdd82ac4caf30510cabfdb0a5987ddd'>subm-test-00</a>
251
251
  </td>
@@ -261,7 +261,7 @@ PASS
261
261
  </span>
262
262
  </td>
263
263
  </tr>
264
- <tr inlist='inlist' rel='mf:entries' resource='_:b3' typeof='http://www.w3.org/ns/rdftest#TestTurtleEval TestCase TestCriterion'>
264
+ <tr inlist='inlist' rel='mf:entries' resource='_:b3' typeof='TestCriterion TestCase http://www.w3.org/ns/rdftest#TestTurtleEval'>
265
265
  <td>
266
266
  <a href='#test_14698d4bb89cdb1ecd9215e2a55d29c6'>subm-test-01</a>
267
267
  </td>
@@ -300,7 +300,7 @@ This report was tested using the following test subjects:
300
300
  <span about='https://rubygems.org/gems/rdf-turtle' property='doap:name'>RDF::Turtle</span>
301
301
  </a>
302
302
  </dt>
303
- <dd property='earl:testSubjects' resource='https://rubygems.org/gems/rdf-turtle' typeof='doap:Project TestSubject Software'>
303
+ <dd property='earl:testSubjects' resource='https://rubygems.org/gems/rdf-turtle' typeof='TestSubject Software doap:Project'>
304
304
  <dl>
305
305
  <dt>Description</dt>
306
306
  <dd lang='en' property='doap:description'>RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.</dd>
@@ -388,7 +388,7 @@ Test
388
388
  </div>
389
389
  </dl>
390
390
  </section>
391
- <section class='appendix' id='report-generation-software' property='earl:generatedBy' resource='https://rubygems.org/gems/earl-report' typeof='doap:Project Software'>
391
+ <section class='appendix' id='report-generation-software' property='earl:generatedBy' resource='https://rubygems.org/gems/earl-report' typeof='Software doap:Project'>
392
392
  <h2>
393
393
  <span class='secno'>D.</span>
394
394
  Report Generation Software
@@ -399,9 +399,9 @@ This report generated by
399
399
  <meta content='Earl Report summary generator' property='doap:shortdesc' />
400
400
  <meta content='EarlReport generates HTML+RDFa rollups of multiple EARL reports' property='doap:description' />
401
401
  version
402
- <span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.6.0' typeof='doap:Version'>
403
- <span property='doap:revision'>0.6.0</span>
404
- <meta content='earl-report-0.6.0' property='doap:name' />
402
+ <span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.6.1' typeof='doap:Version'>
403
+ <span property='doap:revision'>0.6.1</span>
404
+ <meta content='earl-report-0.6.1' property='doap:name' />
405
405
  </span>
406
406
  an
407
407
  <a href='http://unlicense.org' property='doap:license'>Unlicensed</a>
@@ -104,115 +104,87 @@
104
104
  },
105
105
  "@id": "",
106
106
  "@type": [
107
- "doap:Project",
108
- "Software"
107
+ "Software",
108
+ "doap:Project"
109
109
  ],
110
110
  "assertions": [
111
111
  "/Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl"
112
112
  ],
113
+ "bibRef": "[[TURTLE]]",
114
+ "name": "Turtle Test Results",
113
115
  "entries": [
114
116
  {
115
117
  "@id": "http://example/manifest.ttl",
116
118
  "@type": [
117
- "mf:Manifest",
118
- "Report"
119
+ "Report",
120
+ "mf:Manifest"
119
121
  ],
120
122
  "rdfs:comment": "Description for Example Test Cases",
123
+ "title": "Example Test Cases",
121
124
  "entries": [
122
125
  {
123
126
  "@id": "http://example/manifest.ttl#testeval00",
124
127
  "@type": [
125
- "http://www.w3.org/ns/rdftest#TestTurtleEval",
128
+ "TestCriterion",
126
129
  "TestCase",
127
- "TestCriterion"
130
+ "http://www.w3.org/ns/rdftest#TestTurtleEval"
128
131
  ],
129
132
  "rdfs:comment": "Blank subject",
133
+ "title": "subm-test-00",
130
134
  "assertions": [
131
135
  {
132
- "@id": "_:b4",
136
+ "@id": "_:b1",
133
137
  "@type": "Assertion",
134
- "subject": "https://rubygems.org/gems/rdf-turtle",
135
- "mode": "earl:automatic",
136
- "test": "http://example/manifest.ttl#testeval00",
137
138
  "assertedBy": "https://greggkellogg.net/foaf#me",
139
+ "subject": "https://rubygems.org/gems/rdf-turtle",
138
140
  "result": {
139
- "@id": "_:b5",
141
+ "@id": "_:b4",
140
142
  "@type": "TestResult",
141
143
  "outcome": "earl:passed"
142
- }
144
+ },
145
+ "mode": "earl:automatic",
146
+ "test": "http://example/manifest.ttl#testeval00"
143
147
  }
144
148
  ],
145
- "testAction": "http://example/test-00.ttl",
146
- "title": "subm-test-00",
147
- "testResult": "http://example/test-00.out"
149
+ "testResult": "http://example/test-00.out",
150
+ "testAction": "http://example/test-00.ttl"
148
151
  },
149
152
  {
150
- "@id": "_:b0",
153
+ "@id": "_:b2",
151
154
  "@type": [
152
- "http://www.w3.org/ns/rdftest#TestTurtleEval",
155
+ "TestCriterion",
153
156
  "TestCase",
154
- "TestCriterion"
157
+ "http://www.w3.org/ns/rdftest#TestTurtleEval"
155
158
  ],
156
159
  "rdfs:comment": "@prefix and qnames",
160
+ "title": "subm-test-01",
157
161
  "assertions": [
158
162
  {
159
- "@id": "_:b2",
163
+ "@id": "_:b3",
160
164
  "@type": "Assertion",
161
165
  "subject": "https://rubygems.org/gems/rdf-turtle",
162
- "test": "_:b0",
163
166
  "result": {
164
- "@id": "_:b3",
167
+ "@id": "_:b5",
165
168
  "@type": "TestResult",
166
169
  "outcome": "earl:untested"
167
170
  },
171
+ "test": "_:b2",
168
172
  "assertedBy": null
169
173
  }
170
174
  ],
171
- "testAction": "http://example/test-01.ttl",
172
- "title": "subm-test-01",
173
- "testResult": "http://example/test-01.out"
175
+ "testResult": "http://example/test-01.out",
176
+ "testAction": "http://example/test-01.ttl"
174
177
  }
175
- ],
176
- "title": "Example Test Cases"
177
- }
178
- ],
179
- "testSubjects": [
180
- {
181
- "@id": "https://rubygems.org/gems/rdf-turtle",
182
- "@type": [
183
- "doap:Project",
184
- "TestSubject",
185
- "Software"
186
- ],
187
- "developer": [
188
- {
189
- "@id": "https://greggkellogg.net/foaf#me",
190
- "@type": [
191
- "foaf:Person",
192
- "Assertor"
193
- ],
194
- "foaf:name": "Gregg Kellogg",
195
- "foaf:homepage": "https://greggkellogg.net/"
196
- }
197
- ],
198
- "doapDesc": "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.",
199
- "release": {
200
- "@id": "_:b1",
201
- "revision": "unknown"
202
- },
203
- "name": "RDF::Turtle",
204
- "homepage": "http://ruby-rdf.github.com/rdf-turtle",
205
- "language": "Ruby"
178
+ ]
206
179
  }
207
180
  ],
208
- "bibRef": "[[TURTLE]]",
209
- "name": "Turtle Test Results",
210
181
  "generatedBy": {
211
182
  "@id": "https://rubygems.org/gems/earl-report",
212
183
  "@type": [
213
- "doap:Project",
214
- "Software"
184
+ "Software",
185
+ "doap:Project"
215
186
  ],
187
+ "license": "http://unlicense.org",
216
188
  "developer": [
217
189
  {
218
190
  "@id": "https://greggkellogg.net/foaf#me",
@@ -220,25 +192,53 @@
220
192
  "foaf:Person",
221
193
  "Assertor"
222
194
  ],
223
- "foaf:name": "Gregg Kellogg",
224
- "foaf:homepage": "https://greggkellogg.net/"
195
+ "foaf:homepage": "https://greggkellogg.net/",
196
+ "foaf:name": "Gregg Kellogg"
225
197
  }
226
198
  ],
199
+ "homepage": "https://github.com/gkellogg/earl-report",
200
+ "shortdesc": "Earl Report summary generator",
227
201
  "doapDesc": "EarlReport generates HTML+RDFa rollups of multiple EARL reports",
228
- "license": "http://unlicense.org",
202
+ "name": "earl-report",
229
203
  "release": {
230
- "@id": "https://github.com/gkellogg/earl-report/tree/0.6.0",
204
+ "@id": "https://github.com/gkellogg/earl-report/tree/0.6.1",
231
205
  "@type": "doap:Version",
232
- "revision": "0.6.0",
233
206
  "doap:created": {
234
207
  "@type": "http://www.w3.org/2001/XMLSchema#date",
235
208
  "@value": "2021-03-19"
236
209
  },
237
- "name": "earl-report-0.6.0"
210
+ "revision": "0.6.1",
211
+ "name": "earl-report-0.6.1"
238
212
  },
239
- "name": "earl-report",
240
- "homepage": "https://github.com/gkellogg/earl-report",
241
- "shortdesc": "Earl Report summary generator",
242
213
  "language": "Ruby"
243
- }
214
+ },
215
+ "testSubjects": [
216
+ {
217
+ "@id": "https://rubygems.org/gems/rdf-turtle",
218
+ "@type": [
219
+ "TestSubject",
220
+ "Software",
221
+ "doap:Project"
222
+ ],
223
+ "developer": [
224
+ {
225
+ "@id": "https://greggkellogg.net/foaf#me",
226
+ "@type": [
227
+ "foaf:Person",
228
+ "Assertor"
229
+ ],
230
+ "foaf:homepage": "https://greggkellogg.net/",
231
+ "foaf:name": "Gregg Kellogg"
232
+ }
233
+ ],
234
+ "homepage": "http://ruby-rdf.github.com/rdf-turtle",
235
+ "language": "Ruby",
236
+ "doapDesc": "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.",
237
+ "name": "RDF::Turtle",
238
+ "release": {
239
+ "@id": "_:b0",
240
+ "revision": "unknown"
241
+ }
242
+ }
243
+ ]
244
244
  }
@@ -7,23 +7,24 @@
7
7
  @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8
8
  @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9
9
 
10
- <> a doap:Project, earl:Software ;
10
+ <> a earl:Software, doap:Project ;
11
11
  earl:assertions </Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl> ;
12
- mf:entries (<http://example/manifest.ttl>) ;
13
- earl:testSubjects <https://rubygems.org/gems/rdf-turtle> ;
14
12
  dc:bibliographicCitation "[[TURTLE]]" ;
15
13
  doap:name "Turtle Test Results" ;
16
- earl:generatedBy <https://rubygems.org/gems/earl-report> .
14
+ mf:entries (<http://example/manifest.ttl>) ;
15
+ earl:generatedBy <https://rubygems.org/gems/earl-report> ;
16
+ earl:testSubjects <https://rubygems.org/gems/rdf-turtle> .
17
17
 
18
18
  # Manifests
19
- <http://example/manifest.ttl> a mf:Manifest, earl:Report ;
19
+ <http://example/manifest.ttl> a earl:Report, mf:Manifest ;
20
20
  rdfs:comment "Description for Example Test Cases" ;
21
+ mf:name "Example Test Cases" ;
21
22
  mf:entries (<http://example/manifest.ttl#testeval00>
22
- _:b0) ;
23
- mf:name "Example Test Cases" .
23
+ _:b1) .
24
24
 
25
- <http://example/manifest.ttl#testeval00> a <http://www.w3.org/ns/rdftest#TestTurtleEval>, earl:TestCase, earl:TestCriterion ;
25
+ <http://example/manifest.ttl#testeval00> a earl:TestCriterion, earl:TestCase, <http://www.w3.org/ns/rdftest#TestTurtleEval> ;
26
26
  rdfs:comment "Blank subject" ;
27
+ mf:name "subm-test-00" ;
27
28
  earl:assertions [
28
29
  a earl:Assertion ;
29
30
  earl:test <http://example/manifest.ttl#testeval00> ;
@@ -34,36 +35,35 @@
34
35
  ] ;
35
36
  earl:assertedBy <https://greggkellogg.net/foaf#me> ;
36
37
  ] ;
37
- mf:action <http://example/test-00.ttl> ;
38
- mf:name "subm-test-00" ;
39
- mf:result <http://example/test-00.out> .
38
+ mf:result <http://example/test-00.out> ;
39
+ mf:action <http://example/test-00.ttl> .
40
40
 
41
- _:b0 a <http://www.w3.org/ns/rdftest#TestTurtleEval>, earl:TestCase, earl:TestCriterion ;
41
+ _:b1 a earl:TestCriterion, earl:TestCase, <http://www.w3.org/ns/rdftest#TestTurtleEval> ;
42
42
  rdfs:comment "@prefix and qnames" ;
43
+ mf:name "subm-test-01" ;
43
44
  earl:assertions [
44
45
  a earl:Assertion ;
45
- earl:test _:b0 ;
46
+ earl:test _:b1 ;
46
47
  earl:subject <https://rubygems.org/gems/rdf-turtle> ;
47
48
  earl:result [
48
49
  a earl:TestResult ;
49
50
  earl:outcome earl:untested
50
51
  ] ;
51
52
  ] ;
52
- mf:action <http://example/test-01.ttl> ;
53
- mf:name "subm-test-01" ;
54
- mf:result <http://example/test-01.out> .
53
+ mf:result <http://example/test-01.out> ;
54
+ mf:action <http://example/test-01.ttl> .
55
55
 
56
- <https://rubygems.org/gems/rdf-turtle> a doap:Project, earl:TestSubject, earl:Software ;
56
+ <https://rubygems.org/gems/rdf-turtle> a earl:TestSubject, earl:Software, doap:Project ;
57
57
  doap:developer <https://greggkellogg.net/foaf#me> ;
58
+ doap:homepage <http://ruby-rdf.github.com/rdf-turtle> ;
59
+ doap:programming-language "Ruby" ;
58
60
  doap:description "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite."@en ;
59
- doap:release [doap:revision "unknown"] ;
60
61
  doap:name "RDF::Turtle" ;
61
- doap:homepage <http://ruby-rdf.github.com/rdf-turtle> ;
62
- doap:programming-language "Ruby" .
62
+ doap:release [doap:revision "unknown"] .
63
63
 
64
64
  <https://greggkellogg.net/foaf#me> a foaf:Person, earl:Assertor ;
65
- foaf:name "Gregg Kellogg" ;
66
- foaf:homepage <https://greggkellogg.net/> .
65
+ foaf:homepage <https://greggkellogg.net/> ;
66
+ foaf:name "Gregg Kellogg" .
67
67
 
68
68
 
69
69
  # Report Generation Software
@@ -74,10 +74,10 @@ _:b0 a <http://www.w3.org/ns/rdftest#TestTurtleEval>, earl:TestCase, earl:TestCr
74
74
  doap:homepage <https://github.com/gkellogg/earl-report>;
75
75
  doap:programming-language "Ruby";
76
76
  doap:license <http://unlicense.org>;
77
- doap:release <https://github.com/gkellogg/earl-report/tree/0.6.0>;
77
+ doap:release <https://github.com/gkellogg/earl-report/tree/0.6.1>;
78
78
  doap:developer <https://greggkellogg.net/foaf#me> .
79
79
 
80
- <https://github.com/gkellogg/earl-report/tree/0.6.0> a doap:Version;
81
- doap:name "earl-report-0.6.0";
80
+ <https://github.com/gkellogg/earl-report/tree/0.6.1> a doap:Version;
81
+ doap:name "earl-report-0.6.1";
82
82
  doap:created "2021-03-19"^^xsd:date;
83
- doap:revision "0.6.0" .
83
+ doap:revision "0.6.1" .
metadata CHANGED
@@ -1,17 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earl-report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-19 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: linkeddata
14
+ name: rdf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdf-turtle
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rdf-vocab
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: json-ld
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sparql
15
71
  requirement: !ruby/object:Gem::Requirement
16
72
  requirements:
17
73
  - - "~>"
@@ -80,6 +136,20 @@ dependencies:
80
136
  - - "~>"
81
137
  - !ruby/object:Gem::Version
82
138
  version: '3.2'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rdf-rdfa
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.1'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.1'
83
153
  - !ruby/object:Gem::Dependency
84
154
  name: rspec
85
155
  requirement: !ruby/object:Gem::Requirement