qa_server 1.2.2 → 1.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be294f8cdea38a87643874ca200ca11104e62bc3
4
- data.tar.gz: 5be2726ca23a410eb637113d6847483e88caf8a0
3
+ metadata.gz: 05b44dd3c5b4d4c1b3ce5a9aac038c605fe524f6
4
+ data.tar.gz: 9fda6a2e74ae503e463d85b476baa21635dabc73
5
5
  SHA512:
6
- metadata.gz: 67679608443fbce019879137bb99c90ffcf7f1e5f744fff39bd99e07509eaf5b39ff19d8e72d208030813c746c0174254805e5d19821476f71fc42144dd138ee
7
- data.tar.gz: c40240e5e672ccead9cd281fc9488755ac039771b424abaa6808f10464ebb25321e7666242c3036b5ad5d62aa9334816ef0cc52667b4f8663acd138b40dc2900
6
+ metadata.gz: 8c63e6ad90b632068058ba64abf9ae4ff948262da2c4d265a4b7481d9839588df60200f883cd857e83bdfa902127b8e54e68b375aa7ce9f99923a06165e5efba
7
+ data.tar.gz: 43ead08a6ecea547c2942834a1cef98ca1f58342f18c91fa97909977b4bc1f1b758989f2dfc1204ce9b18b719ddf52bcffc356b7b319881e22eb1eaf0ddbbfca
@@ -14,9 +14,12 @@ Please perform each task listed below. (Email sf433 @ cornell dot edu with quest
14
14
 
15
15
  - [ ] Identify the data source: (Include the Data Source Name and its homepage URL)
16
16
  - [ ] Add a new tab and indexing information for the data source to the following spreadsheet: https://docs.google.com/spreadsheets/d/1rPvEoP9iYNkxJ0eWC8gXe3ci7e6mhW0da59xkGhadi0/edit?usp=sharing.
17
- - [ ] Add a YAML test file to https://github.com/cul-it/qa_server/tree/master/config/authorities/linked_data/scenarios; please provide here a link to the YAML file related to this request.
18
- - See the definition of YAML keys: (link coming soon).
19
- - YAML Example: https://github.com/cul-it/qa_server/blob/master/config/authorities/linked_data/scenarios/locgenres_ld4l_cache_validation.yml
17
+
18
+
19
+
20
+ Next steps:
21
+
22
+ A link to a YAML file will be shared with the requestor via a comment in the issue in order to complete the Accuracy Test portion of Writing Tests for an Authority. Edit directly the YAML file in Github, save. Create a Pull Request to be reviewed. Be sure to including a meaningful commit message (e.g. adding accuracy tests for Authority X).
20
23
 
21
24
 
22
25
  _Please note, all requests for new data sources in QA will be prioritized by the LD4P2 project. Due to time restrictions there is no guarantee that all requests will be added to QA during the lifetime of the LD4P2 grant; regardless of resources it is still useful to know which datasets the community would find useful in such a lookup service._
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 1.2.3 (2019-03-07)
2
+
3
+ * change css class for failing tests to allow pingdom to check for the css class and notify sysop
4
+ * temporarily disable direct access to AGROVOC
5
+ * add vocabs: locperformance_ld4l_cache and locdemographics_ld4l_cache
6
+
1
7
  ### 1.2.2 (2018-11-21)
2
8
 
3
9
  * update data tables to make authority names more prominent
@@ -62,6 +62,7 @@ td.position {
62
62
  background-color: #ffff99;
63
63
  }
64
64
 
65
+ .summary-status-bad,
65
66
  .status-bad {
66
67
  text-align: center;
67
68
  background-color: #ffcccc;
@@ -62,7 +62,7 @@ module QaServer
62
62
 
63
63
  # @return [String] css style class representing whether all tests passed or any failed
64
64
  def failing_tests_style
65
- failures? ? 'status-bad' : 'status-good'
65
+ failures? ? 'summary-status-bad' : 'status-good'
66
66
  end
67
67
 
68
68
  # @return [Array<Hash>] A list of failures data in the latest test run, if any
@@ -0,0 +1,66 @@
1
+ {
2
+ "term": {
3
+ "url": {
4
+ "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
+ "@type": "IriTemplate",
6
+ "template": "http://services.ld4l.org/ld4l_services/loc_demographics_lookup.jsp?uri={?term_uri}",
7
+ "variableRepresentation": "BasicRepresentation",
8
+ "mapping": [
9
+ {
10
+ "@type": "IriTemplateMapping",
11
+ "variable": "term_uri",
12
+ "property": "hydra:freetextQuery",
13
+ "required": true,
14
+ "encode": true
15
+ }
16
+ ]
17
+ },
18
+ "qa_replacement_patterns": {
19
+ "term_id": "term_uri"
20
+ },
21
+ "term_id": "URI",
22
+ "results": {
23
+ "id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
24
+ "label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
25
+ "altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
26
+ "sameas_predicate": "http://www.w3.org/2004/02/skos/core#exactMatch"
27
+ }
28
+ },
29
+ "search": {
30
+ "url": {
31
+ "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
+ "@type": "IriTemplate",
33
+ "template": "http://services.ld4l.org/ld4l_services/loc_demographics_batch.jsp?query={?query}&maxRecords={?maxRecords}&lang={?lang}",
34
+ "variableRepresentation": "BasicRepresentation",
35
+ "mapping": [
36
+ {
37
+ "@type": "IriTemplateMapping",
38
+ "variable": "query",
39
+ "property": "hydra:freetextQuery",
40
+ "required": true
41
+ },
42
+ {
43
+ "@type": "IriTemplateMapping",
44
+ "variable": "maxRecords",
45
+ "property": "hydra:freetextQuery",
46
+ "required": false,
47
+ "default": "20"
48
+ },
49
+ {
50
+ "@type": "IriTemplateMapping",
51
+ "variable": "lang",
52
+ "property": "hydra:freetextQuery",
53
+ "required": false,
54
+ "default": "en"
55
+ }
56
+ ]
57
+ },
58
+ "qa_replacement_patterns": {
59
+ "query": "query"
60
+ },
61
+ "results": {
62
+ "label_predicate": "http://www.loc.gov/mads/rdf/v1#authoritativeLabel",
63
+ "sort_predicate": "http://vivoweb.org/ontology/core#rank"
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "term": {
3
+ "url": {
4
+ "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
+ "@type": "IriTemplate",
6
+ "template": "http://services.ld4l.org/ld4l_services/loc_performance_lookup.jsp?uri={?term_uri}",
7
+ "variableRepresentation": "BasicRepresentation",
8
+ "mapping": [
9
+ {
10
+ "@type": "IriTemplateMapping",
11
+ "variable": "term_uri",
12
+ "property": "hydra:freetextQuery",
13
+ "required": true,
14
+ "encode": true
15
+ }
16
+ ]
17
+ },
18
+ "qa_replacement_patterns": {
19
+ "term_id": "term_uri"
20
+ },
21
+ "term_id": "URI",
22
+ "results": {
23
+ "id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
24
+ "label_predicate": "http://www.loc.gov/mads/rdf/v1#authoritativeLabel",
25
+ "altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
26
+ "sameas_predicate": "http://www.w3.org/2004/02/skos/core#exactMatch"
27
+ }
28
+ },
29
+ "search": {
30
+ "url": {
31
+ "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
+ "@type": "IriTemplate",
33
+ "template": "http://services.ld4l.org/ld4l_services/loc_performance_batch.jsp?query={?query}&maxRecords={?maxRecords}&lang={?lang}",
34
+ "variableRepresentation": "BasicRepresentation",
35
+ "mapping": [
36
+ {
37
+ "@type": "IriTemplateMapping",
38
+ "variable": "query",
39
+ "property": "hydra:freetextQuery",
40
+ "required": true
41
+ },
42
+ {
43
+ "@type": "IriTemplateMapping",
44
+ "variable": "maxRecords",
45
+ "property": "hydra:freetextQuery",
46
+ "required": false,
47
+ "default": "20"
48
+ },
49
+ {
50
+ "@type": "IriTemplateMapping",
51
+ "variable": "lang",
52
+ "property": "hydra:freetextQuery",
53
+ "required": false,
54
+ "default": "en"
55
+ }
56
+ ]
57
+ },
58
+ "qa_replacement_patterns": {
59
+ "query": "query"
60
+ },
61
+ "results": {
62
+ "label_predicate": "http://www.loc.gov/mads/rdf/v1#authoritativeLabel",
63
+ "sort_predicate": "http://vivoweb.org/ontology/core#rank"
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,54 @@
1
+ ---
2
+ authority:
3
+ service: ld4l_cache
4
+ search:
5
+ -
6
+ query: workers
7
+
8
+ -
9
+ query: Biologists
10
+ position: 1
11
+ subject_uri: "http://id.loc.gov/authorities/demographicTerms/dg2015060613"
12
+ replacements:
13
+ maxRecords: '5'
14
+ -
15
+ query: Biologists
16
+ position: 10
17
+ subject_uri: "http://id.loc.gov/authorities/demographicTerms/dg2016060468"
18
+ replacements:
19
+ maxRecords: '20'
20
+ -
21
+ query: Kiwis
22
+ position: 1
23
+ subject_uri: "http://id.loc.gov/authorities/demographicTerms/dg2015060357"
24
+ replacements:
25
+ maxRecords: '5'
26
+ -
27
+ query: New Zealanders
28
+ position: 8
29
+ subject_uri: "http://id.loc.gov/authorities/demographicTerms/dg2016060205"
30
+ replacements:
31
+ maxRecords: '15'
32
+ -
33
+ query: New Zealanders
34
+ position: 8
35
+ subject_uri: "http://id.loc.gov/authorities/demographicTerms/dg2015060330"
36
+ replacements:
37
+ maxRecords: '15'
38
+
39
+ -
40
+ query: African Americans
41
+ position: 5
42
+ subject_uri: "http://id.loc.gov/authorities/demographicTerms/dg2015060859"
43
+ replacements:
44
+ maxRecords: '10'
45
+ -
46
+ query: Micmac
47
+ position: 1
48
+ subject_uri: "http://id.loc.gov/authorities/demographicTerms/dg2016060011"
49
+ replacements:
50
+ maxRecords: '5'
51
+ term:
52
+ -
53
+ identifier: 'http://id.loc.gov/authorities/demographicTerms/dg2015060460'
54
+ ...
@@ -0,0 +1,9 @@
1
+ ---
2
+ authority:
3
+ service: ld4l_cache
4
+ search:
5
+ -
6
+ query: band
7
+ term:
8
+ -
9
+ identifier: 'http://id.loc.gov/authorities/performanceMediums/mp2013015793'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module QaServer
3
- VERSION = '1.2.2'
3
+ VERSION = '1.2.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qa_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - E. Lynette Rayle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-21 00:00:00.000000000 Z
11
+ date: 2019-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -238,7 +238,8 @@ files:
238
238
  - lib/generators/qa_server/install_generator.rb
239
239
  - lib/generators/qa_server/models_generator.rb
240
240
  - lib/generators/qa_server/templates/app/assets/images/qa_server/charts/.keep
241
- - lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_direct.json
241
+ - lib/generators/qa_server/templates/config/authorities/linked_data/DISABLED/agrovoc_direct.json
242
+ - lib/generators/qa_server/templates/config/authorities/linked_data/DISABLED/scenarios/agrovoc_direct_validation.yml
242
243
  - lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_ld4l_cache.json
243
244
  - lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_direct.json
244
245
  - lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_ld4l_cache.json
@@ -248,17 +249,17 @@ files:
248
249
  - lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json
249
250
  - lib/generators/qa_server/templates/config/authorities/linked_data/getty_ulan_ld4l_cache.json
250
251
  - lib/generators/qa_server/templates/config/authorities/linked_data/loc_direct.json
252
+ - lib/generators/qa_server/templates/config/authorities/linked_data/locdemographics_ld4l_cache.json
251
253
  - lib/generators/qa_server/templates/config/authorities/linked_data/locgenres_ld4l_cache.json
252
254
  - lib/generators/qa_server/templates/config/authorities/linked_data/locnames_ld4l_cache.json
255
+ - lib/generators/qa_server/templates/config/authorities/linked_data/locperformance_ld4l_cache.json
253
256
  - lib/generators/qa_server/templates/config/authorities/linked_data/locsubjects_ld4l_cache.json
254
257
  - lib/generators/qa_server/templates/config/authorities/linked_data/mesh_ld4l_cache.json
255
258
  - lib/generators/qa_server/templates/config/authorities/linked_data/nalt_direct.json
256
259
  - lib/generators/qa_server/templates/config/authorities/linked_data/nalt_ld4l_cache.json
257
260
  - lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_direct.json
258
261
  - lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json
259
- - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml
260
262
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_ld4l_cache_validation.yml
261
- - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_validation.yml
262
263
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_direct_validation.yml
263
264
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_ld4l_cache_validation.yml
264
265
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_direct_validation.yml
@@ -268,8 +269,10 @@ files:
268
269
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_ulan_ld4l_cache_validation.yml
269
270
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_direct_validation.yml
270
271
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_validation.yml
272
+ - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locdemographics_ld4l_cache_validation.yml
271
273
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locgenres_ld4l_cache_validation.yml
272
274
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_ld4l_cache_validation.yml
275
+ - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locperformance_ld4l_cache_validation.yml
273
276
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locsubjects_ld4l_cache_validation.yml
274
277
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/mesh_ld4l_cache_validation.yml
275
278
  - lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_direct_validation.yml
@@ -1,9 +0,0 @@
1
- ---
2
- authority:
3
- service: direct
4
- search:
5
- -
6
- query: milk
7
- term:
8
- -
9
- identifier: "c_9513"