qa_server 0.1.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +71 -0
  3. data/Gemfile +55 -0
  4. data/Gemfile.lock +411 -0
  5. data/LICENSE +201 -0
  6. data/README.md +187 -0
  7. data/Rakefile +18 -0
  8. data/app/assets/images/qa_server/LD4L-bg.png +0 -0
  9. data/app/assets/images/qa_server/cornell-reduced-white.svg +160 -0
  10. data/app/assets/images/qa_server/iowa-logo.png +0 -0
  11. data/app/assets/images/qa_server/samvera-fall-font1-1000w-light.png +0 -0
  12. data/app/assets/javascripts/qa_server.js +0 -0
  13. data/app/assets/stylesheets/qa_server/_authorities.scss +0 -0
  14. data/app/assets/stylesheets/qa_server/_check-status.scss +72 -0
  15. data/app/assets/stylesheets/qa_server/_footer.scss +20 -0
  16. data/app/assets/stylesheets/qa_server/_header.scss +51 -0
  17. data/app/assets/stylesheets/qa_server/_home-page.scss +15 -0
  18. data/app/assets/stylesheets/qa_server/_monitor-status.scss +13 -0
  19. data/app/assets/stylesheets/qa_server/_qa_server.scss +36 -0
  20. data/app/assets/stylesheets/qa_server/_styles.scss +27 -0
  21. data/app/assets/stylesheets/qa_server/_usage.scss +0 -0
  22. data/app/controllers/qa_server/authority_list_controller.rb +14 -0
  23. data/app/controllers/qa_server/authority_validation_controller.rb +77 -0
  24. data/app/controllers/qa_server/check_status_controller.rb +38 -0
  25. data/app/controllers/qa_server/homepage_controller.rb +8 -0
  26. data/app/controllers/qa_server/monitor_status_controller.rb +79 -0
  27. data/app/controllers/qa_server/usage_controller.rb +8 -0
  28. data/app/loggers/qa_server/scenario_logger.rb +84 -0
  29. data/app/models/qa_server/authority_scenario.rb +35 -0
  30. data/app/models/qa_server/authority_status.rb +18 -0
  31. data/app/models/qa_server/authority_status_failure.rb +7 -0
  32. data/app/models/qa_server/scenarios.rb +71 -0
  33. data/app/models/qa_server/search_scenario.rb +58 -0
  34. data/app/models/qa_server/term_scenario.rb +50 -0
  35. data/app/presenters/qa_server/authority_list_presenter.rb +22 -0
  36. data/app/presenters/qa_server/check_status_presenter.rb +96 -0
  37. data/app/presenters/qa_server/monitor_status_presenter.rb +108 -0
  38. data/app/services/qa_server/authority_lister_service.rb +31 -0
  39. data/app/services/qa_server/authority_loader_service.rb +38 -0
  40. data/app/services/qa_server/authority_validator_service.rb +41 -0
  41. data/app/services/qa_server/database_migrator.rb +70 -0
  42. data/app/services/qa_server/scenarios_loader_service.rb +57 -0
  43. data/app/validators/qa_server/scenario_validator.rb +134 -0
  44. data/app/validators/qa_server/search_scenario_validator.rb +84 -0
  45. data/app/validators/qa_server/term_scenario_validator.rb +42 -0
  46. data/app/views/layouts/qa_server.html.erb +65 -0
  47. data/app/views/qa_server/authority_list/index.html.erb +27 -0
  48. data/app/views/qa_server/check_status/index.html.erb +104 -0
  49. data/app/views/qa_server/homepage/index.html.erb +10 -0
  50. data/app/views/qa_server/monitor_status/index.html.erb +78 -0
  51. data/app/views/qa_server/usage/index.html.erb +106 -0
  52. data/app/views/shared/_footer.html.erb +24 -0
  53. data/config/locales/qa_server.en.yml +68 -0
  54. data/config/routes.rb +12 -0
  55. data/lib/generators/qa_server/assets_generator.rb +35 -0
  56. data/lib/generators/qa_server/config_generator.rb +31 -0
  57. data/lib/generators/qa_server/install_generator.rb +60 -0
  58. data/lib/generators/qa_server/models_generator.rb +18 -0
  59. data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_direct.json +69 -0
  60. data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_ld4l_cache.json +85 -0
  61. data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_direct.json +36 -0
  62. data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_ld4l_cache.json +83 -0
  63. data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_direct.json +68 -0
  64. data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_ld4l_cache.json +102 -0
  65. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_aat_ld4l_cache.json +109 -0
  66. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json +72 -0
  67. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_ulan_ld4l_cache.json +81 -0
  68. data/lib/generators/qa_server/templates/config/authorities/linked_data/loc_direct.json +47 -0
  69. data/lib/generators/qa_server/templates/config/authorities/linked_data/locgenres_ld4l_cache.json +99 -0
  70. data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_ld4l_cache.json +89 -0
  71. data/lib/generators/qa_server/templates/config/authorities/linked_data/locsubjects_ld4l_cache.json +82 -0
  72. data/lib/generators/qa_server/templates/config/authorities/linked_data/mesh_ld4l_cache.json +70 -0
  73. data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_direct.json +32 -0
  74. data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_ld4l_cache.json +84 -0
  75. data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_direct.json +81 -0
  76. data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json +86 -0
  77. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml +9 -0
  78. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_ld4l_cache_validation.yml +9 -0
  79. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_validation.yml +9 -0
  80. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_direct_validation.yml +6 -0
  81. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_ld4l_cache_validation.yml +9 -0
  82. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_direct_validation.yml +9 -0
  83. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_ld4l_cache_validation.yml +41 -0
  84. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_aat_ld4l_cache_validation.yml +115 -0
  85. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_tgn_ld4l_cache_validation.yml +9 -0
  86. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_ulan_ld4l_cache_validation.yml +15 -0
  87. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_direct_validation.yml +25 -0
  88. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_validation.yml +22 -0
  89. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locgenres_ld4l_cache_validation.yml +99 -0
  90. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_ld4l_cache_validation.yml +27 -0
  91. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locsubjects_ld4l_cache_validation.yml +27 -0
  92. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/mesh_ld4l_cache_validation.yml +9 -0
  93. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_direct_validation.yml +6 -0
  94. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_ld4l_cache_validation.yml +9 -0
  95. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclc_fast_validation.yml +58 -0
  96. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_direct_validation.yml +58 -0
  97. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_ld4l_cache_validation.yml +30 -0
  98. data/lib/generators/qa_server/templates/config/locales/qa_server.en.yml +9 -0
  99. data/lib/generators/qa_server/templates/db/migrate/20180313045551_create_cron_authority_status.rb.erb +9 -0
  100. data/lib/generators/qa_server/templates/db/migrate/20180508045549_rename_cron_authority_status_to_authority_status.rb.erb +5 -0
  101. data/lib/generators/qa_server/templates/db/migrate/20180508045551_create_authority_status_failure.rb.erb +15 -0
  102. data/lib/generators/qa_server/templates/qa_server.scss +5 -0
  103. data/lib/qa_server/engine.rb +19 -0
  104. data/lib/qa_server/version.rb +3 -0
  105. data/lib/qa_server.rb +6 -0
  106. data/lib/tasks/install.rake +8 -0
  107. data/lib/tasks/qa_server_tasks.rake +4 -0
  108. data/qa_server.gemspec +39 -0
  109. data/spec/.gitignore +1 -0
  110. data/spec/rails_helper.rb +2 -0
  111. data/spec/spec_helper.rb +283 -0
  112. data/spec/test_app_templates/Gemfile.extra +5 -0
  113. data/spec/test_app_templates/lib/generators/test_app_generator.rb +15 -0
  114. data/tasks/qa_server_dev.rake +16 -0
  115. metadata +275 -0
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2018 Cornell University
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,187 @@
1
+ # QaServer
2
+ This rails engine can be installed into your app to serve as a Questioning Authority (QA) Server for accessing external authorities. It is part of a larger architecture supporting linked data authority access. From this engine, you can send a search query and get back multiple results OR you can fetch a single term. The engine provides UI for monitoring connections to configured authorities and the ability to check the current status of a single authority to determine if it is up and running now.
3
+
4
+ ## Reference
5
+
6
+ * [Architecture for Authority Lookup](https://wiki.duraspace.org/x/84E2BQ) document describes the authority access and normalization layer that provides applications with a consistent output for processing.
7
+ * [Authority aggregation and indexing](https://wiki.duraspace.org/display/ld4lLABS/Authority+aggregation+and+indexing) document describes the technology used for caching authority data.
8
+ * [samvera/questioning_authority](https://github.com/samvera/questioning_authority) (QA) is the gem that provides access to external authorities and normalizes the results. See the [Linked Open Data (LOD) Authorities](https://github.com/samvera/questioning_authority#linked-open-data-lod-authorities) section for details on the primary part of QA that is used by this engine.
9
+ * [LD4P/linked_data_authorities](https://github.com/LD4P/linked_data_authorities) holds predefined Questioning Authority configurations that work with this qa_server engine.
10
+
11
+
12
+ ## Setup
13
+
14
+ ### Compatibility
15
+
16
+ Tested with...
17
+
18
+ * Ruby 2.4.3
19
+ * Rails 5.1.6
20
+
21
+ ### Installation Instructions
22
+
23
+ #### Adding the engine dependency
24
+
25
+ Add this line to your application's Gemfile:
26
+
27
+ ```ruby
28
+ gem 'qa_server'
29
+ ```
30
+
31
+ And then execute:
32
+ ```bash
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+ ```bash
38
+ $ gem install qa_server
39
+ ```
40
+
41
+ #### Install the engine and run migrations
42
+
43
+ ```bash
44
+ $ rails g qa_server:install
45
+ $ rake db:migrate
46
+ ```
47
+
48
+ #### Test the install
49
+
50
+ * Start rails server with `rails s`
51
+ * You should see the Home page. Click the other nav menus to be sure you see content there as well.
52
+ * On Authorities List, click the URL for one of the authorities to confirm you get data.
53
+ * On Check Status, select one authority from the selection list and confirm that tests pass.
54
+ * Clicking on Monitor Status will run all tests, which is very slow. When it completes, it will have confirmed that the database tables are setup correctly. You can expect all tests to pass, although, there is a possibility that one or more authorities are down at the moment you run the tests. If all fail, there may be an installation problem. If only a few fail, it is more likely a problem with the authority.
55
+
56
+ #### Trouble Shooting
57
+
58
+ Common problems:
59
+
60
+ * If complaints about a table not existing, either the migrations were not copied over or have not run.
61
+ * All tests fail could mean that the required gems were not installed. Look for gems `qa` and `linkeddata`.
62
+ * If some tests fail with a comment that the results are not RDF, confirm that gems `qa` and `linkeddata` are installed. Confirm that `qa` gem is using the `min-context` branch.
63
+
64
+ ## Supported Authorities
65
+
66
+ ### Authorities that come with QA
67
+
68
+ There are a few authorities that are part of the QA gem. All directly access the external authority.
69
+
70
+ * direct access to OCLC FAST
71
+ * TEST QUERY: http://localhost:3000/qa/search/linked_data/oclc_fast?q=Cornell&maximumRecords=3
72
+ * TEST FETCH: http://localhost:3000/qa/show/linked_data/oclc_fast/2
73
+ * direct access to AGROVOC
74
+ * TEST QUERY: http://localhost:3000/qa/search/linked_data/agrovoc?q=milk&lang=en&maxRecords=3
75
+ * TEST FETCH: http://localhost:3000/qa/show/linked_data/agrovoc/c_9513
76
+ * direct access to Library of Congress for term fetch only
77
+ * TEST QUERY: _not supported_
78
+ * TEST FETCH: http://localhost:3000/qa/show/linked_data/loc/no2002053226
79
+
80
+ ### Predefined Configurations in LD4P/linked_data_authorities
81
+
82
+ All authorities defined in [LD4P/linked_data_authorities](https://github.com/LD4P/linked_data_authorities) are included in this engine. When you run the install task, they will be copied to `config/authorities/linked_data`. If you do not want to support a particular authority, you can remove it from this directory and the corresponding validation file in the `scenarios` sub-directory.
83
+
84
+ Configurations exist for a number of other common authorities that can be used by your QA Server. When possible, each configuration comes in two varieties...
85
+
86
+ * _AUTHORITY_NAME__direct - configuration can be used as is to access the external authority directly
87
+ * _AUTHORITY_NAME__ld4l_cache - configuration can be used as is to access the authorities through the cache created as part of the Linked Data for Libraries Labs grant and continuing to be expanded under the Linked Data for Production 2 grant.
88
+
89
+ Configurations define how to access an authority and how to decode the ontology predicates to extract and convert the data to normalized data. The predefined configurations live in [qa_server/config/authorities/linked_data](https://github.com/LD4P/qa_server/tree/master/config/authorities/linked_data).
90
+
91
+ ### Write your own configuration
92
+
93
+ #### Authority requirements
94
+
95
+ If you want to access an authority for which there isn't a configuration, you can write your own. There are only two requirements to be able to access an authority.
96
+
97
+ 1. For search access, the authority must have a URL API defined that accepts a string search query.
98
+ 1. For term access, the authority must either support accessing the URI for the term OR provide a URL API which takes an id or URI as a parameter.
99
+ 1. For both search and term, the returned results must be in a linked data format.
100
+
101
+ #### Writing the configuration
102
+
103
+ Instructions for writing your own configuration can be found in the ([QA gem README](https://github.com/samvera/questioning_authority#configuring-a-lod-authority)). You are encouraged to use consistent names for common prameters, including the following...
104
+
105
+ * q - search query value that the user types
106
+ * maxRecords - to identify the max number of records for the authority to return if the authority supports limiting the number of returned records
107
+ * lang - limit string values to the identified language if the authority supports language specific requests
108
+
109
+ ## Using the configuration
110
+
111
+ Add your new configuration to `this_app/config/authorities/linked_data`
112
+
113
+ TEST QUERY: http://localhost:3000/qa/search/linked_data/_AUTHORITY_NAME__direct?q=your_query&maxRecords=3
114
+ TEST FETCH: http://localhost:3000/qa/show/linked_data/_AUTHORITY_NAME__direct/_ID_OR_URI_
115
+
116
+ Substitute the name of the configuration file for _AUTHORITY_NAME__direct in the URL.
117
+ Substitute a valid ID or URI for _ID_OR_URI_ in the URL, as appropriate. NOTE: Some authorities expect an ID and others expect a URI.
118
+
119
+
120
+ ### Expected Results
121
+
122
+ #### Search Query Results
123
+
124
+ This search query... http://localhost:3000/qa/search/linked_data/oclc_fast/personal_name?q=Cornell&maximumRecords=3
125
+
126
+ will return results like...
127
+
128
+ ```
129
+ [{"uri":"http://id.worldcat.org/fast/5140","id":"5140","label":"Cornell, Joseph"},
130
+ {"uri":"http://id.worldcat.org/fast/72456","id":"72456","label":"Cornell, Sarah Maria, 1802-1832"},
131
+ {"uri":"http://id.worldcat.org/fast/409667","id":"409667","label":"Cornell, Ezra, 1807-1874"}]
132
+ ```
133
+
134
+ #### Term Fetch Results
135
+
136
+ This term fetch... http://localhost:3000/qa/show/linked_data/oclc_fast/530369
137
+
138
+ will return results like...
139
+
140
+ ```
141
+ {"uri":"http://id.worldcat.org/fast/530369",
142
+ "id":"530369","label":"Cornell University",
143
+ "altlabel":["Ithaca (N.Y.). Cornell University","Kornelʹskii universitet","Kʻang-nai-erh ta hsüeh"],
144
+ "sameas":["http://id.loc.gov/authorities/names/n79021621","https://viaf.org/viaf/126293486"],
145
+ "predicates":{
146
+ "http://purl.org/dc/terms/identifier":"530369",
147
+ "http://www.w3.org/2004/02/skos/core#inScheme":["http://id.worldcat.org/fast/ontology/1.0/#fast","http://id.worldcat.org/fast/ontology/1.0/#facet-Corporate"],
148
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#type":"http://schema.org/Organization",
149
+ "http://www.w3.org/2004/02/skos/core#prefLabel":"Cornell University",
150
+ "http://schema.org/name":["Cornell University","Ithaca (N.Y.). Cornell University","Kornelʹskii universitet","Kʻang-nai-erh ta hsüeh"],
151
+ "http://www.w3.org/2004/02/skos/core#altLabel":["Ithaca (N.Y.). Cornell University","Kornelʹskii universitet","Kʻang-nai-erh ta hsüeh"],
152
+ "http://schema.org/sameAs":["http://id.loc.gov/authorities/names/n79021621","https://viaf.org/viaf/126293486"]}}
153
+ ```
154
+
155
+ ## Connection and Accuracy Validations
156
+
157
+ Validations come in two flavors...
158
+ * connection validation - PASS if a request gets back a specified minimum size result set from an authority; otherwise, FAIL.
159
+ * accuracy test - PASS if a specific result is returned by a specified position (e.g. uri is in the top 10 results); otherwise, FAIL.
160
+
161
+ The validations can be defined in a file with a matching file name in the [scenarios directory](https://github.com/LD4P/qa_server/tree/master/config/authorities/linked_data/scenarios). For example, direct access to the AgroVoc authority, access is configured in [config/authorities/linked_data/agrovoc_direct.json](https://github.com/LD4P/qa_server/blob/master/config/authorities/linked_data/agrovoc_direct.json) and the validations are defined in [config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml](https://github.com/LD4P/qa_server/blob/master/config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml)
162
+
163
+ The UI for qa_server provides access to running connection validation and accuracy tests in the Check Status navigation menu item.
164
+
165
+ ## Non linked-data authority access
166
+
167
+ QA Server is based on the [Questioning Authority gem](https://github.com/samvera/questioning_authority). As such, it can be used to serve up controlled vocabularies defined in one of three ways.
168
+
169
+ 1. locally defined controlled vocabularies
170
+ 1. specifically supported external authorities (non-linked data)
171
+ 1. configurable access to linked data authorities
172
+
173
+ This document addresses the use of QA Server app for access to linked data authorities. You can reference Questioning Authorities
174
+ [documentation](https://github.com/samvera/questioning_authority/blob/master/README.md) for more information on the other uses.
175
+
176
+
177
+ ## Contributing
178
+
179
+ *Have a suggestion for code improvements or new linked data authorities?* Submit an issue with your request. For new authorities, include links to the authority's linked data API and other access documentation.
180
+
181
+ *Have code improvements you've written or a configuration for a new authority you'd like to submit?* Submit a PR and your changes will be reviewed for possible inclussion. If you want to make a substantial change, you may want to express your ideas in an issue first for discussion.
182
+
183
+
184
+ ## License
185
+ The gem is available as open source under the terms of the [Apache License](https://www.apache.org/licenses/LICENSE-2.0).
186
+
187
+
data/Rakefile ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+
8
+ Bundler::GemHelper.install_tasks
9
+
10
+ # Set up the test application prior to running jasmine tasks.
11
+ task :setup_test_server do
12
+ require 'engine_cart'
13
+ EngineCart.load_application!
14
+ end
15
+
16
+ Dir.glob('tasks/*.rake').each { |r| import r }
17
+
18
+ task default: :ci
@@ -0,0 +1,160 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 1599.7 358.7" style="enable-background:new 0 0 1599.7 358.7;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#FFFFFF;}
7
+ </style>
8
+ <g id="Layer_2_1_">
9
+ </g>
10
+ <g>
11
+ <path class="st0" d="M178.9,0C80.1,0,0,80.2,0,178.9s80.1,179.8,178.9,179.8c98.6,0,178.9-81.2,178.9-179.8
12
+ C357.8,80.1,277.7,0,178.9,0z M178.9,338.4c-88,0-159.4-71.4-159.4-159.4S91,19.6,178.9,19.6S338.2,90.8,338.3,179
13
+ C338.3,267,266.9,338.4,178.9,338.4z"/>
14
+ <path class="st0" d="M70.5,209.1c0,81.2,101.5,125.2,105.5,127.1l2.9,1l3.1-1.9c4.9-1.8,105.5-46.9,105.5-124.1V64.6h-217V209.1z
15
+ M86.1,209.2v-43.9h87.8v11.3c-2.2-0.5-7-1.6-12.4-0.8c-2.9,0-5.9,1-8.8,1c-5,0-8.8,1-12.8,1c-7.8,0-12.6,0-16.6,0h-5.9v98.8h5.9
16
+ c0,0,5.9,0,13.6,0s12.7-1,17.6-1c4.7-1,8.7-1,14.6-1c1,0,1.9,0.9,2.9,1.9c0.4,0.5,1,1.3,1.9,2.1v40.1
17
+ C149.8,306.2,86.1,267.8,86.1,209.2z M173.9,264.5c-1.4-0.4-3.1-0.7-4.8-0.7c-6.8,0-10.7,0-15.4,1c-4.8,0-9.7,1-16.6,1
18
+ c-2,0-5,0-6.9,0v-76.1c3,0,5.9,0,10.8,0c3.7,0,8.7,0,13.6-1c2.9,0,5.9-1,8.8-1c5-1,9.9,0,9.9,0c0.2,0.1,0.4,0.2,0.6,0.3V264.5z
19
+ M185.6,188.2c0.3-0.2,0.8-0.5,1.3-0.5c0,0,5-1,9.9,0c2.9,0,5.9,1,8.8,1c4.8,0,9.7,1,13.6,1c3.9,0,7.9,0,10.8,0v76.1
20
+ c-2,0-4,0-6.9,0c-6.7,0-11.7-1-16.6-1c-5-1-9.9-1-15.8-1c-1.9,0-3.6,0.3-5.1,0.8V188.2z M185.6,188.1v-0.5l0.4,0.1
21
+ C185.8,187.9,185.7,188,185.6,188.1z M185.6,318.7v-40.5c0.8-0.5,1.6-1.1,2.5-1.7c1-1.9,1-1.9,2.9-1.9c5.8,0,9.7,1,14.6,1
22
+ c4.8,0,9.8,1,17.6,1c7.7,0,13.6,0,13.6,0h5.8v-98.8h-5.9c-3.9,0-8.9,0-16.6,0c-4,0-7.9,0-12.8-1c-2.9,0-5.9-1-8.8-1
23
+ c-5.4,0-11,0.7-12.9,0.9v-11.4h88.1v46.8C273.7,267.2,209.1,306.2,185.6,318.7z M273.7,152.5H86.1V80.1h187.6V152.5z"/>
24
+ <path class="st0" d="M112.6,136.8c6.8,4.9,18.6,11.8,18.6,11.8l1.9,1l2.9-1c0.9,0,11.7-6.9,19.5-11.8c5.9-4,8.8-7.9,8.8-12.8
25
+ c0-0.9,0-12.6,0-36.1V83h-61.6v4.9c0,23.3,0,35.1,0,36.1C103.8,128,106.7,132.8,112.6,136.8z M148.7,128.9c-4.8,3-12.6,8-16.6,9.9
26
+ c-4-2.1-10.9-7-15.8-9.9c-3-1.9-4.9-4.9-4.9-5.9c0-1,0-6,0-12.5h42.2c0,7,0,12.4,0,13.5C153.6,126,150.6,127.9,148.7,128.9z
27
+ M111.5,91.8v1h42.1c0,2.9,0,5.9,0,8.9h-42.2C111.4,98.4,111.4,95,111.5,91.8L111.5,91.8z"/>
28
+ <path class="st0" d="M208.2,136.8c6.8,4.9,18.6,11.8,18.6,11.8l1.9,1l2.9-1c0.9,0,11.7-6.9,19.5-11.8c5.9-4,8.8-7.9,8.8-12.8
29
+ c0-0.9,0-12.6,0-36.1V83h-61.6v4.9c0,23.3,0,35.1,0,36.1C199.4,128,202.3,132.8,208.2,136.8z M244.6,128.9c-4.9,3-12.6,8-16.6,9.9
30
+ c-4.1-2.1-10.9-7-15.8-9.9c-3-1.9-4.9-4.9-4.9-5.9c0-0.3,0-0.9,0-1.8l20.5-14.6l21.7,14.1c0,1.7,0,2.9,0,3.3
31
+ C249.5,126,246.5,127.9,244.6,128.9z M207.5,91.8v1h42c0,5.9,0,12.3,0,17.7l-21.7-14.7l-20.5,14.4c0-5.7,0-12.4,0-18.4H207.5z"/>
32
+ <rect x="136.8" y="200.3" class="st0" width="25.4" height="8.8"/>
33
+ <rect x="136.8" y="220.8" class="st0" width="25.4" height="8.8"/>
34
+ <rect x="136.8" y="241.5" class="st0" width="25.4" height="8.8"/>
35
+ <rect x="193.5" y="200.3" class="st0" width="25.4" height="8.8"/>
36
+ <rect x="193.5" y="220.8" class="st0" width="25.4" height="8.8"/>
37
+ <rect x="193.5" y="241.5" class="st0" width="25.4" height="8.8"/>
38
+ <path class="st0" d="M451.4,142.4c3.7-3.7,8.1-6.4,13-8.1c4.9-1.7,10.9-2.6,17.9-2.7c9.4,0,16.6,1.2,21.5,3.6
39
+ c4.9,2.4,7.6,6,8.1,10.9l0.1,8.8h4.7c0.3-5.6,0.8-10.4,1.6-14.7c0.5-2.6,1.4-5.3,2.5-8c-1.2-0.2-4.6-1.1-10.2-2.6
40
+ c-5.5-1.5-10.2-2.5-14.1-3c-3.8-0.5-8-0.8-12.5-0.8c-19.1,0-34.2,5.2-45.2,15.6c-11,10.4-16.6,23.5-16.6,39.3
41
+ c0,6.2,0.8,12,2.5,17.2c1.6,5.2,4,10.1,7.1,14.5s7.2,8.5,12.1,12.1c4.9,3.6,10.7,6.4,17.3,8.3c6.6,1.9,13.7,2.9,21.4,2.9
42
+ c6.5,0,12.6-0.7,18.1-2c5.6-1.3,11.2-3.4,17-6.4l2.9-6.9l-1.3-1.6c-3.9,2.8-7.9,4.8-11.8,6.1c-5.8,1.9-12.1,2.8-18.9,2.8
43
+ c-15.1,0-27.2-4.6-36.4-13.7c-9.2-9.2-13.8-21.2-13.8-36.3c0-8.6,1.3-15.7,3.6-21.4C444.6,150.8,447.6,146.1,451.4,142.4z"/>
44
+ <path class="st0" d="M565,161.7c-11.1,0-20.1,3.5-27.2,10.5c-7.1,7-10.6,16.1-10.6,27.2c0,6.1,1.1,11.9,3.4,17.3
45
+ c1.3,3.1,3.2,6.1,5.7,9c2.5,2.9,5.7,5.4,9.7,7.3c4,1.9,8.9,2.9,14.6,2.9c7.4,0,14.2-1.7,20.3-5.1c6.1-3.4,10.9-8.1,14.3-14.1
46
+ c3.4-6,5.1-12.6,5.1-19.9c0-10.4-3.3-18.8-9.8-25.4C583.9,165,575.4,161.7,565,161.7z M580.1,223.8c-3.9,4.6-8.7,6.8-14.4,6.8
47
+ c-4.5,0-8.7-1.5-12.5-4.4c-3.8-2.9-6.8-7.5-8.8-13.8c-2-6.3-3-12.5-3-18.6c0-9.3,1.9-16.2,5.7-20.6c3.8-4.4,8.7-6.6,14.8-6.6
48
+ c4.3,0,8.3,1.2,11.8,3.5c3.6,2.4,6.5,6.4,8.8,12.1c2.3,5.7,3.5,12.5,3.5,20.4C585.9,212.2,584,219.3,580.1,223.8z"/>
49
+ <path class="st0" d="M648.7,162c-2.1,0-4.1,0.4-6,1.2c-1.9,0.8-3.6,1.8-5.1,3.1c-0.8,0.7-2.2,2.4-4.1,4.9c-1.9,2.5-3.9,5.1-6.2,7.7
50
+ c0-6.3,0.2-11,0.4-14.1c0-0.4,0.1-0.8,0.1-1.2c0-0.5-0.1-0.9-0.3-1.1c-0.2-0.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4.4-3.6-10.1-3.7-17.2h23.9c5.4,0,10.7-0.2,16.1-0.6c2.8-0.2,6-0.6,9.6-1.3
69
+ c0.2-2,0.3-3.7,0.3-5.1c0-5.5-1-10.4-3.1-14.8C805.3,171.4,802,168,797.5,165.4z M796.8,192.1c-2.1,0.2-6.4,0.4-13,0.4
70
+ c-2.8,0-7.9-0.1-15.3-0.4c-3.9-0.1-6.5-0.3-7.9-0.4c0-8.7,1.8-15,5.2-19c3.4-4,7.9-6,13.6-6c5.3,0,9.6,1.8,12.7,5.5
71
+ c3.2,3.7,4.8,9.4,4.8,17.2C796.9,190,796.8,190.9,796.8,192.1z"/>
72
+ <path class="st0" d="M840,228.3c-0.4-0.3-0.7-0.7-0.9-1.2c-0.5-1.1-0.8-2.9-0.9-5.4c0-1-0.2-8-0.4-20.9v-38.6l0.1-11.6
73
+ c0-6.2,0.2-13.8,0.4-22.7l0.1-2.5c0.1-0.6,0.1-1.1,0.1-1.5c0-0.4-0.1-0.7-0.3-0.9c-0.2-0.2-0.5-0.3-0.8-0.3c-0.3,0-0.8,0.1-1.5,0.4
74
+ c-4.4,2.1-12.1,3.8-23.4,5.2v4.4c6.1,0,9.5,0.2,10.3,0.5c0.5,0.2,0.9,0.5,1.2,1c0.3,0.7,0.6,4,0.8,10c0.3,8.8,0.4,17.4,0.4,25.6
75
+ v30.8c-0.3,13.6-0.5,20.7-0.5,21.3c-0.1,2.5-0.4,4.3-1,5.3c-0.3,0.5-0.7,0.9-1.3,1.2c-0.6,0.3-1.4,0.5-2.5,0.6l-7,0.1v4.3
76
+ c7.9-0.4,14.3-0.6,19.2-0.6c5.1,0,11,0.2,17.8,0.6v-4.3c-5.2-0.1-7.9-0.2-8.3-0.2C841,228.9,840.4,228.6,840,228.3z"/>
77
+ <path class="st0" d="M884.3,228.3c-0.4-0.3-0.7-0.7-0.9-1.2c-0.5-1.1-0.8-2.9-0.9-5.4c0-1-0.2-8-0.4-20.9v-38.6l0.1-11.6
78
+ c0-6.2,0.2-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.9-0.2-8.2-0.2c-0.8-0.2-1.5-0.5-1.9-0.8
97
+ c-0.4-0.3-0.7-0.7-0.9-1.2c-0.5-1.1-0.8-3-0.9-5.4c0-1-0.1-8-0.4-20.9v-9c0-5.5,0.7-9.3,2-11.7s3.5-4.3,6.6-6.1
98
+ c3.1-1.8,6.5-2.6,10.2-2.6c4.2,0,7.8,1,10.8,3c3,2,4.9,4.7,5.7,8c0.6,2.4,0.9,7.5,0.9,15.3v12.5c0,3.2-0.3,11-1,23.2
99
+ c6.4-0.3,11.1-0.5,13.8-0.5c3.2,0,7.3,0.2,12.1,0.5v-4.2l-8-0.2C1113.1,229.1,1112.3,228.7,1111.7,228.2z"/>
100
+ <path class="st0" d="M1142.5,145.6c2.3,0,4.2-0.8,5.9-2.5s2.5-3.6,2.5-5.9c0-2.3-0.8-4.3-2.4-6c-1.6-1.6-3.6-2.5-5.9-2.5
101
+ c-2.3,0-4.3,0.8-6,2.5c-1.6,1.6-2.5,3.6-2.5,6c0,2.3,0.8,4.2,2.5,5.9C1138.1,144.8,1140.1,145.6,1142.5,145.6z"/>
102
+ <path class="st0" d="M1151.8,228.5c-0.4-0.3-0.7-0.7-1-1.2c-0.5-1.1-0.8-2.9-0.8-5.4c-0.1-1-0.2-8-0.4-20.9v-13.5
103
+ c0-5.6,0.2-13.7,0.6-24.2l-1.6-1.2c-6.5,3.1-14.6,5.2-24.2,6.2v4.2c5.9,0,9.2,0.2,9.9,0.6c0.8,0.4,1.3,0.9,1.6,1.7
104
+ c0.5,1.4,0.7,5.8,0.7,13.2V201c-0.3,13.6-0.4,20.7-0.4,21.3c-0.1,2.5-0.5,4.3-1,5.3c-0.3,0.5-0.7,0.9-1.3,1.2
105
+ c-0.6,0.3-1.4,0.5-2.4,0.6l-7.1,0.1v4.2c9-0.3,15.5-0.5,19.5-0.5c4.5,0,10.5,0.2,18.1,0.5v-4.2c-5.2-0.1-8-0.2-8.3-0.2
106
+ C1152.8,229.1,1152.2,228.8,1151.8,228.5z"/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1.3c0,0.3,0.1,0.6,0.3,0.7c0.3,0.3,2.4,0.8,6.3,1.6
136
+ c7.1,1.3,12.8,1.9,17,1.9c9.3,0,16.7-2.5,22.2-7.5c5.5-5,8.3-10.8,8.3-17.5c0-3.4-0.7-6.3-2.2-8.7
137
+ C1417.9,199.6,1416,197.8,1413.6,196.7z"/>
138
+ <path class="st0" d="M1447.9,145.6c2.3,0,4.2-0.8,5.9-2.5s2.5-3.6,2.5-5.9c0-2.3-0.8-4.3-2.4-6c-1.6-1.6-3.6-2.5-5.9-2.5
139
+ c-2.3,0-4.3,0.8-6,2.5c-1.6,1.6-2.5,3.6-2.5,6c0,2.3,0.8,4.2,2.5,5.9C1443.5,144.8,1445.5,145.6,1447.9,145.6z"/>
140
+ <path class="st0" d="M1457.2,228.5c-0.4-0.3-0.7-0.7-1-1.2c-0.5-1.1-0.8-2.9-0.8-5.4c0-1-0.2-8-0.4-20.9v-13.5
141
+ c0-5.6,0.2-13.7,0.6-24.2l-1.6-1.2c-6.5,3.1-14.6,5.2-24.2,6.2v4.2c5.9,0,9.2,0.2,9.9,0.6c0.8,0.4,1.3,0.9,1.6,1.7
142
+ c0.5,1.4,0.7,5.8,0.7,13.2V201c-0.3,13.6-0.4,20.7-0.4,21.3c-0.1,2.5-0.5,4.3-1,5.3c-0.3,0.5-0.7,0.9-1.3,1.2
143
+ c-0.6,0.3-1.4,0.5-2.4,0.6l-7.1,0.1v4.2c9-0.3,15.5-0.5,19.5-0.5c4.5,0,10.5,0.2,18.1,0.5v-4.2c-5.2-0.1-8-0.2-8.3-0.2
144
+ C1458.2,229.1,1457.6,228.8,1457.2,228.5z"/>
145
+ <path class="st0" d="M1494.1,174.6c4.7,0,8.3-0.1,10.9-0.1c2.6,0,5.5,0,8.6,0.1l1.6-6.9l-0.5-0.5c-1.3,0.1-3.2,0.2-5.8,0.3
146
+ c-4.7,0.1-7.2,0.1-7.7,0.1c-0.8,0-3.2,0-7.1-0.1c0.6-14,1.2-23.1,1.8-27.2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