earl-report 0.7.0 → 0.7.1

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: 7879d1953b9802807a57232a01207aa3b63f5ed80c025273ccdfe826e6f86c93
4
- data.tar.gz: bf899c9f720aa8b8f67694e7398f693502fef7fb748b3fa5136acd05fe7495ca
3
+ metadata.gz: c6dcbb408bb40367d46daa74a9992ccb11b5ccec84d63ab89eb75cc94ad45fdb
4
+ data.tar.gz: 5731c42e85ff773264d754c3cf7aea3ecb7eedfa0507e5c7289e7390de669f11
5
5
  SHA512:
6
- metadata.gz: 57c7ec9fff3d0634c35fc96d646febda4c7ce71fdaa9f8c8f78702335fdedb7c0babe6ccddf515cd17065284dc0627d085a3d41ee05dfeea5dd96b73b25b61d5
7
- data.tar.gz: fdee07b06ca6344764876c8649f0c906c974326f27427120afb0455ef47fd35d4387e9f64b9f84ecf552bad44581769eec9455e3c27612b66ba26c8ac510a609
6
+ metadata.gz: 76722b2059adaf67a4ab6166e9d7c8ed1f1216f9026598f93597ec0bfcaf724b7ea09f8612045f86857c47cf51e8943a3bc274b3e1d1397c3ccdee04b938c95c
7
+ data.tar.gz: cd209db5e59d358121730784e2b2f76da344dd2d324e50df5bc2b70013ccabd4aff341c58d637fc11a11f3adccc7ebaf52cf86912ac051ec4ac647df6c8dc707
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
data/lib/earl_report.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # EARL reporting
2
2
  require 'json/ld'
3
+ require 'rdf/ordered_repo'
3
4
  require 'rdf/turtle'
4
5
  require 'rdf/vocab'
5
6
  require 'sparql'
@@ -310,19 +311,22 @@ class EarlReport
310
311
  end
311
312
 
312
313
  # Load developers referenced from Test Subjects
313
- if !solutions.first[:developer]
314
+ if !solutions.all? {|s| s[:developer]}
314
315
  warn "\nNo developer identified for #{solutions.first[:uri]}"
315
- elsif !solutions.first[:devName]
316
- status " read description for developer #{solutions.first[:developer].inspect}"
317
- begin
318
- foaf_graph = RDF::Graph.load(solutions.first[:developer])
319
- status " loaded #{foaf_graph.count} triples"
320
- file_graph << foaf_graph.to_a
321
- # Reload solutions
322
- solutions = SPARQL.execute(TEST_SUBJECT_QUERY, file_graph)
323
- rescue
324
- warn "\nfailed to load FOAF from #{solutions.first[:developer]}: #{$!}"
316
+ elsif !solutions.all? {|s| s[:devName]}
317
+ solutions.reject {|s| s[:devName]}.each do |no_foaf|
318
+ status " read description for developer #{no_foaf[:developer].inspect}"
319
+ begin
320
+ foaf_graph = RDF::Graph.load(no_foaf[:developer])
321
+ status " loaded #{foaf_graph.count} triples"
322
+ file_graph << foaf_graph.to_a
323
+ rescue
324
+ warn "\nfailed to load FOAF from #{no_foaf[:developer]}: #{$!}"
325
+ end
325
326
  end
327
+
328
+ # Reload solutions
329
+ solutions = SPARQL.execute(TEST_SUBJECT_QUERY, file_graph)
326
330
  end
327
331
 
328
332
  release = nil
data/spec/spec_helper.rb CHANGED
@@ -5,14 +5,20 @@ require "bundler/setup"
5
5
  require 'rspec'
6
6
  require 'rspec/its'
7
7
  require 'amazing_print'
8
- require 'nokogumbo'
8
+ require 'nokogiri'
9
9
 
10
10
  begin
11
11
  require 'simplecov'
12
- require 'coveralls'
12
+ require 'simplecov-lcov'
13
+ SimpleCov::Formatter::LcovFormatter.config do |config|
14
+ #Coveralls is coverage by default/lcov. Send info results
15
+ config.report_with_single_file = true
16
+ config.single_report_path = 'coverage/lcov.info'
17
+ end
18
+
13
19
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
14
20
  SimpleCov::Formatter::HTMLFormatter,
15
- Coveralls::SimpleCov::Formatter
21
+ SimpleCov::Formatter::LcovFormatter
16
22
  ])
17
23
  SimpleCov.start do
18
24
  add_filter "/spec/"
@@ -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-25' property='dc:issued'>
77
- 25 March 2021
76
+ <time class='dt-published' datetime='2021-12-18' property='dc:issued'>
77
+ 18 December 2021
78
78
  </time>
79
79
  </h2>
80
80
  <dl>
@@ -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 http://www.w3.org/ns/rdftest#TestTurtleEval TestCase'>
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='_:b1' typeof='http://www.w3.org/ns/rdftest#TestTurtleEval TestCase TestCriterion'>
264
+ <tr inlist='inlist' rel='mf:entries' resource='_:b1' typeof='TestCriterion http://www.w3.org/ns/rdftest#TestTurtleEval TestCase'>
265
265
  <td>
266
266
  <a href='#test_b4d4f9531721bf1a6e4562f27353abd3'>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='TestSubject Software doap:Project'>
303
+ <dd property='earl:testSubjects' resource='https://rubygems.org/gems/rdf-turtle' typeof='Software doap:Project TestSubject'>
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>
@@ -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.2' typeof='doap:Version'>
403
- <span property='doap:revision'>0.6.2</span>
404
- <meta content='earl-report-0.6.2' property='doap:name' />
402
+ <span property='doap:release' resource='https://github.com/gkellogg/earl-report/tree/0.7.0' typeof='doap:Version'>
403
+ <span property='doap:revision'>0.7.0</span>
404
+ <meta content='earl-report-0.7.0' property='doap:name' />
405
405
  </span>
406
406
  an
407
407
  <a href='http://unlicense.org' property='doap:license'>Unlicensed</a>
@@ -115,27 +115,26 @@
115
115
  "Software",
116
116
  "doap:Project"
117
117
  ],
118
+ "bibRef": "[[TURTLE]]",
118
119
  "generatedBy": {
119
120
  "@id": "https://rubygems.org/gems/earl-report",
120
121
  "@type": [
121
122
  "Software",
122
123
  "doap:Project"
123
124
  ],
125
+ "homepage": "https://github.com/gkellogg/earl-report",
126
+ "shortdesc": "Earl Report summary generator",
127
+ "doapDesc": "EarlReport generates HTML+RDFa rollups of multiple EARL reports",
124
128
  "release": {
125
- "@id": "https://github.com/gkellogg/earl-report/tree/0.6.2",
129
+ "@id": "https://github.com/gkellogg/earl-report/tree/0.7.0",
126
130
  "@type": "doap:Version",
127
131
  "doap:created": {
128
132
  "@type": "http://www.w3.org/2001/XMLSchema#date",
129
- "@value": "2021-03-25"
133
+ "@value": "2021-12-18"
130
134
  },
131
- "revision": "0.6.2",
132
- "name": "earl-report-0.6.2"
135
+ "revision": "0.7.0",
136
+ "name": "earl-report-0.7.0"
133
137
  },
134
- "language": "Ruby",
135
- "license": "http://unlicense.org",
136
- "name": "earl-report",
137
- "doapDesc": "EarlReport generates HTML+RDFa rollups of multiple EARL reports",
138
- "homepage": "https://github.com/gkellogg/earl-report",
139
138
  "developer": [
140
139
  {
141
140
  "@id": "https://greggkellogg.net/foaf#me",
@@ -147,24 +146,24 @@
147
146
  "foaf:name": "Gregg Kellogg"
148
147
  }
149
148
  ],
150
- "shortdesc": "Earl Report summary generator"
149
+ "language": "Ruby",
150
+ "name": "earl-report",
151
+ "license": "http://unlicense.org"
151
152
  },
152
153
  "testSubjects": [
153
154
  {
154
155
  "@id": "https://rubygems.org/gems/rdf-turtle",
155
156
  "@type": [
156
- "TestSubject",
157
157
  "Software",
158
- "doap:Project"
158
+ "doap:Project",
159
+ "TestSubject"
159
160
  ],
161
+ "homepage": "http://ruby-rdf.github.com/rdf-turtle",
162
+ "doapDesc": "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.",
160
163
  "release": {
161
- "@id": "_:b0",
164
+ "@id": "_:b2",
162
165
  "revision": "unknown"
163
166
  },
164
- "language": "Ruby",
165
- "name": "RDF::Turtle",
166
- "doapDesc": "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite.",
167
- "homepage": "http://ruby-rdf.github.com/rdf-turtle",
168
167
  "developer": [
169
168
  {
170
169
  "@id": "https://greggkellogg.net/foaf#me",
@@ -175,14 +174,11 @@
175
174
  "foaf:homepage": "https://greggkellogg.net/",
176
175
  "foaf:name": "Gregg Kellogg"
177
176
  }
178
- ]
177
+ ],
178
+ "language": "Ruby",
179
+ "name": "RDF::Turtle"
179
180
  }
180
181
  ],
181
- "assertions": [
182
- "/Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl"
183
- ],
184
- "bibRef": "[[TURTLE]]",
185
- "name": "Turtle Test Results",
186
182
  "entries": [
187
183
  {
188
184
  "@id": "http://example/manifest.ttl",
@@ -190,63 +186,67 @@
190
186
  "Report",
191
187
  "mf:Manifest"
192
188
  ],
193
- "rdfs:comment": "Description for Example Test Cases",
194
189
  "title": "Example Test Cases",
190
+ "rdfs:comment": "Description for Example Test Cases",
195
191
  "entries": [
196
192
  {
197
193
  "@id": "http://example/manifest.ttl#testeval00",
198
194
  "@type": [
195
+ "TestCriterion",
199
196
  "http://www.w3.org/ns/rdftest#TestTurtleEval",
200
- "TestCase",
201
- "TestCriterion"
197
+ "TestCase"
202
198
  ],
199
+ "testAction": "http://example/test-00.ttl",
200
+ "title": "subm-test-00",
203
201
  "rdfs:comment": "Blank subject",
204
202
  "testResult": "http://example/test-00.out",
205
- "title": "subm-test-00",
206
- "testAction": "http://example/test-00.ttl",
207
203
  "assertions": [
208
204
  {
209
- "@id": "_:b2",
205
+ "@id": "_:b0",
210
206
  "@type": "Assertion",
211
207
  "test": "http://example/manifest.ttl#testeval00",
208
+ "mode": "earl:automatic",
209
+ "assertedBy": "https://greggkellogg.net/foaf#me",
210
+ "subject": "https://rubygems.org/gems/rdf-turtle",
212
211
  "result": {
213
- "@id": "_:b3",
212
+ "@id": "_:b1",
214
213
  "@type": "TestResult",
215
214
  "outcome": "earl:passed"
216
- },
217
- "mode": "earl:automatic",
218
- "subject": "https://rubygems.org/gems/rdf-turtle",
219
- "assertedBy": "https://greggkellogg.net/foaf#me"
215
+ }
220
216
  }
221
217
  ]
222
218
  },
223
219
  {
224
- "@id": "_:b1",
220
+ "@id": "_:b3",
225
221
  "@type": [
222
+ "TestCriterion",
226
223
  "http://www.w3.org/ns/rdftest#TestTurtleEval",
227
- "TestCase",
228
- "TestCriterion"
224
+ "TestCase"
229
225
  ],
226
+ "testAction": "http://example/test-01.ttl",
227
+ "title": "subm-test-01",
230
228
  "rdfs:comment": "@prefix and qnames",
231
229
  "testResult": "http://example/test-01.out",
232
- "title": "subm-test-01",
233
- "testAction": "http://example/test-01.ttl",
234
230
  "assertions": [
235
231
  {
236
- "@id": "_:b4",
232
+ "@id": "_:b5",
237
233
  "@type": "Assertion",
238
- "test": "_:b1",
234
+ "test": "_:b3",
235
+ "subject": "https://rubygems.org/gems/rdf-turtle",
239
236
  "result": {
240
- "@id": "_:b5",
237
+ "@id": "_:b4",
241
238
  "@type": "TestResult",
242
239
  "outcome": "earl:untested"
243
240
  },
244
- "subject": "https://rubygems.org/gems/rdf-turtle",
245
241
  "assertedBy": null
246
242
  }
247
243
  ]
248
244
  }
249
245
  ]
250
246
  }
247
+ ],
248
+ "name": "Turtle Test Results",
249
+ "assertions": [
250
+ "/Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl"
251
251
  ]
252
252
  }
@@ -8,25 +8,25 @@
8
8
  @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9
9
 
10
10
  <> a earl:Software, doap:Project ;
11
+ dc:bibliographicCitation "[[TURTLE]]" ;
11
12
  earl:generatedBy <https://rubygems.org/gems/earl-report> ;
12
13
  earl:testSubjects <https://rubygems.org/gems/rdf-turtle> ;
13
- mf:report </Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl> ;
14
- dc:bibliographicCitation "[[TURTLE]]" ;
14
+ mf:entries (<http://example/manifest.ttl>) ;
15
15
  doap:name "Turtle Test Results" ;
16
- mf:entries (<http://example/manifest.ttl>) .
16
+ mf:report </Users/gregg/Projects/earl-report/spec/test-files/report-complete.ttl> .
17
17
 
18
18
  # Manifests
19
19
  <http://example/manifest.ttl> a earl:Report, mf:Manifest ;
20
- rdfs:comment "Description for Example Test Cases" ;
21
20
  mf:name "Example Test Cases" ;
21
+ rdfs:comment "Description for Example Test Cases" ;
22
22
  mf:entries (<http://example/manifest.ttl#testeval00>
23
- _:b1) .
23
+ _:b0) .
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, <http://www.w3.org/ns/rdftest#TestTurtleEval>, earl:TestCase ;
26
+ mf:action <http://example/test-00.ttl> ;
27
+ mf:name "subm-test-00" ;
26
28
  rdfs:comment "Blank subject" ;
27
29
  mf:result <http://example/test-00.out> ;
28
- mf:name "subm-test-00" ;
29
- mf:action <http://example/test-00.ttl> ;
30
30
  earl:assertions [
31
31
  a earl:Assertion ;
32
32
  earl:test <http://example/manifest.ttl#testeval00> ;
@@ -38,14 +38,14 @@
38
38
  earl:assertedBy <https://greggkellogg.net/foaf#me> ;
39
39
  ] .
40
40
 
41
- _:b1 a <http://www.w3.org/ns/rdftest#TestTurtleEval>, earl:TestCase, earl:TestCriterion ;
41
+ _:b0 a earl:TestCriterion, <http://www.w3.org/ns/rdftest#TestTurtleEval>, earl:TestCase ;
42
+ mf:action <http://example/test-01.ttl> ;
43
+ mf:name "subm-test-01" ;
42
44
  rdfs:comment "@prefix and qnames" ;
43
45
  mf:result <http://example/test-01.out> ;
44
- mf:name "subm-test-01" ;
45
- mf:action <http://example/test-01.ttl> ;
46
46
  earl:assertions [
47
47
  a earl:Assertion ;
48
- earl:test _:b1 ;
48
+ earl:test _:b0 ;
49
49
  earl:subject <https://rubygems.org/gems/rdf-turtle> ;
50
50
  earl:result [
51
51
  a earl:TestResult ;
@@ -53,13 +53,13 @@ _:b1 a <http://www.w3.org/ns/rdftest#TestTurtleEval>, earl:TestCase, earl:TestCr
53
53
  ] ;
54
54
  ] .
55
55
 
56
- <https://rubygems.org/gems/rdf-turtle> a earl:TestSubject, earl:Software, doap:Project ;
56
+ <https://rubygems.org/gems/rdf-turtle> a earl:Software, doap:Project, earl:TestSubject ;
57
+ doap:homepage <http://ruby-rdf.github.com/rdf-turtle> ;
58
+ doap:description "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite."@en ;
57
59
  doap:release [doap:revision "unknown"] ;
60
+ doap:developer <https://greggkellogg.net/foaf#me> ;
58
61
  doap:programming-language "Ruby" ;
59
- doap:name "RDF::Turtle" ;
60
- doap:description "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite."@en ;
61
- doap:homepage <http://ruby-rdf.github.com/rdf-turtle> ;
62
- doap:developer <https://greggkellogg.net/foaf#me> .
62
+ doap:name "RDF::Turtle" .
63
63
 
64
64
  <https://greggkellogg.net/foaf#me> a foaf:Person, earl:Assertor ;
65
65
  foaf:homepage <https://greggkellogg.net/> ;
@@ -74,10 +74,10 @@ _:b1 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.2>;
77
+ doap:release <https://github.com/gkellogg/earl-report/tree/0.7.0>;
78
78
  doap:developer <https://greggkellogg.net/foaf#me> .
79
79
 
80
- <https://github.com/gkellogg/earl-report/tree/0.6.2> a doap:Version;
81
- doap:name "earl-report-0.6.2";
82
- doap:created "2021-03-25"^^xsd:date;
83
- doap:revision "0.6.2" .
80
+ <https://github.com/gkellogg/earl-report/tree/0.7.0> a doap:Version;
81
+ doap:name "earl-report-0.7.0";
82
+ doap:created "2021-12-18"^^xsd:date;
83
+ doap:revision "0.7.0" .
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earl-report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
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-25 00:00:00.000000000 Z
11
+ date: 2021-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdf-ordered-repo
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'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rdf-turtle
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -115,19 +129,19 @@ dependencies:
115
129
  - !ruby/object:Gem::Version
116
130
  version: '2.3'
117
131
  - !ruby/object:Gem::Dependency
118
- name: nokogumbo
132
+ name: nokogiri
119
133
  requirement: !ruby/object:Gem::Requirement
120
134
  requirements:
121
135
  - - "~>"
122
136
  - !ruby/object:Gem::Version
123
- version: '2.0'
137
+ version: '1.12'
124
138
  type: :development
125
139
  prerelease: false
126
140
  version_requirements: !ruby/object:Gem::Requirement
127
141
  requirements:
128
142
  - - "~>"
129
143
  - !ruby/object:Gem::Version
130
- version: '2.0'
144
+ version: '1.12'
131
145
  - !ruby/object:Gem::Dependency
132
146
  name: rdf-rdfa
133
147
  requirement: !ruby/object:Gem::Requirement
@@ -258,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
272
  - !ruby/object:Gem::Version
259
273
  version: '0'
260
274
  requirements: []
261
- rubygems_version: 3.2.3
275
+ rubygems_version: 3.2.22
262
276
  signing_key:
263
277
  specification_version: 4
264
278
  summary: Earl Report summary generator