qa_server 7.4.0 → 7.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop_fixme.yml +7 -0
  3. data/.travis.yml +4 -5
  4. data/CHANGELOG.md +45 -0
  5. data/Rakefile +1 -1
  6. data/app/assets/stylesheets/qa_server/_check-status.scss +36 -0
  7. data/app/cache_processors/qa_server/cache_expiry_service.rb +8 -8
  8. data/app/cache_processors/qa_server/job_id_cache.rb +4 -4
  9. data/app/cache_processors/qa_server/performance_cache.rb +34 -34
  10. data/app/cache_processors/qa_server/performance_day_graph_cache.rb +7 -7
  11. data/app/cache_processors/qa_server/performance_month_graph_cache.rb +7 -7
  12. data/app/cache_processors/qa_server/performance_year_graph_cache.rb +7 -7
  13. data/app/cache_processors/qa_server/scenario_history_cache.rb +7 -7
  14. data/app/cache_processors/qa_server/scenario_history_graph_cache.rb +7 -7
  15. data/app/cache_processors/qa_server/scenario_run_cache.rb +7 -7
  16. data/app/cache_processors/qa_server/scenario_run_failures_cache.rb +7 -7
  17. data/app/cache_processors/qa_server/scenario_run_summary_cache.rb +7 -7
  18. data/app/controllers/concerns/qa_server/authority_validation_behavior.rb +49 -44
  19. data/app/controllers/qa_server/check_status_controller.rb +92 -22
  20. data/app/controllers/qa_server/fetch_controller.rb +36 -36
  21. data/app/controllers/qa_server/monitor_status_controller.rb +106 -84
  22. data/app/jobs/qa_server/history_graph_job.rb +10 -10
  23. data/app/jobs/qa_server/monitor_tests_job.rb +17 -17
  24. data/app/jobs/qa_server/performance_day_graph_job.rb +21 -21
  25. data/app/jobs/qa_server/performance_month_graph_job.rb +21 -21
  26. data/app/jobs/qa_server/performance_per_byte_job.rb +56 -56
  27. data/app/jobs/qa_server/performance_year_graph_job.rb +21 -21
  28. data/app/loggers/qa_server/scenario_logger.rb +74 -4
  29. data/app/models/qa_server/authority_scenario.rb +4 -4
  30. data/app/models/qa_server/authority_status.rb +2 -2
  31. data/app/models/qa_server/authority_status_failure.rb +1 -1
  32. data/app/models/qa_server/performance_history.rb +2 -2
  33. data/app/models/qa_server/scenario_run_history.rb +63 -54
  34. data/app/models/qa_server/scenario_run_registry.rb +2 -2
  35. data/app/models/qa_server/scenarios.rb +26 -26
  36. data/app/models/qa_server/search_scenario.rb +24 -13
  37. data/app/models/qa_server/term_scenario.rb +29 -29
  38. data/app/prepends/prepended_linked_data/find_term.rb +40 -40
  39. data/app/prepends/prepended_linked_data/search_query.rb +36 -36
  40. data/app/prepends/prepended_rdf/rdf_graph.rb +7 -7
  41. data/app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb +32 -32
  42. data/app/presenters/concerns/qa_server/monitor_status/performance_graph_behavior.rb +64 -64
  43. data/app/presenters/qa_server/check_status_presenter.rb +63 -7
  44. data/app/presenters/qa_server/monitor_status/current_status_presenter.rb +9 -8
  45. data/app/presenters/qa_server/monitor_status/history_presenter.rb +55 -4
  46. data/app/services/concerns/qa_server/gruff_graph.rb +16 -16
  47. data/app/services/qa_server/authority_loader_service.rb +14 -14
  48. data/app/services/qa_server/authority_validator_service.rb +1 -0
  49. data/app/services/qa_server/database_migrator.rb +14 -14
  50. data/app/services/qa_server/history_graphing_service.rb +30 -30
  51. data/app/services/qa_server/performance_calculator_service.rb +80 -80
  52. data/app/services/qa_server/performance_datatable_service.rb +35 -35
  53. data/app/services/qa_server/performance_graph_data_service.rb +27 -27
  54. data/app/services/qa_server/performance_graphing_service.rb +55 -55
  55. data/app/services/qa_server/performance_per_byte_calculator_service.rb +38 -38
  56. data/app/services/qa_server/performance_per_byte_data_service.rb +7 -7
  57. data/app/services/qa_server/scenarios_loader_service.rb +1 -1
  58. data/app/services/qa_server/time_period_service.rb +21 -21
  59. data/app/validators/qa_server/scenario_validator.rb +99 -87
  60. data/app/validators/qa_server/search_scenario_validator.rb +67 -61
  61. data/app/validators/qa_server/term_scenario_validator.rb +20 -15
  62. data/app/views/qa_server/check_status/index.html.erb +120 -24
  63. data/app/views/qa_server/monitor_status/_test_summary.html.erb +1 -1
  64. data/config/i18n-tasks.yml +133 -0
  65. data/config/locales/qa_server.en.yml +21 -5
  66. data/lib/generators/qa_server/assets_generator.rb +4 -4
  67. data/lib/generators/qa_server/templates/config/authorities/linked_data/cerl_ld4l_cache.json +2 -2
  68. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_aat_ld4l_cache.json +62 -1
  69. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json +45 -11
  70. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_ulan_ld4l_cache.json +104 -8
  71. data/lib/generators/qa_server/templates/config/authorities/linked_data/isni_ld4l_cache.json +90 -0
  72. data/lib/generators/qa_server/templates/config/authorities/linked_data/ligatus_ld4l_cache.json +133 -0
  73. data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_rwo2_ld4l_cache.json +248 -0
  74. data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_rwo3_ld4l_cache.json +248 -0
  75. data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_rwo_ld4l_cache.json +4 -4
  76. data/lib/generators/qa_server/templates/config/authorities/linked_data/locvocabs_ld4l_cache.json +117 -0
  77. data/lib/generators/qa_server/templates/config/authorities/linked_data/mesh_nlm_ld4l_cache.json +135 -3
  78. data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_direct.json +5 -0
  79. data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json +2 -4
  80. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml +31 -0
  81. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_ld4l_cache_validation.yml +31 -0
  82. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/cerl_ld4l_cache_validation.yml +24 -12
  83. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_ld4l_cache_validation.yml +33 -0
  84. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_direct_validation.yml +35 -0
  85. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_ld4l_cache_validation.yml +55 -5
  86. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_aat_ld4l_cache_validation.yml +253 -0
  87. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_tgn_ld4l_cache_validation.yml +31 -1
  88. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_ulan_ld4l_cache_validation.yml +38 -1
  89. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/isni_ld4l_cache_validation.yml +10 -0
  90. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/ligatus_ld4l_cache_validation.yml +36 -0
  91. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locdemographics_ld4l_cache_validation.yml +69 -44
  92. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locgenres_ld4l_cache_validation.yml +22 -0
  93. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_ld4l_cache_validation.yml +65 -0
  94. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_rwo2_ld4l_cache_validation.yml +78 -0
  95. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_rwo3_ld4l_cache_validation.yml +73 -0
  96. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_rwo_ld4l_cache_validation.yml +71 -3
  97. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locperformance_ld4l_cache_validation.yml +6 -0
  98. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locsubjects_ld4l_cache_validation.yml +30 -0
  99. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locvocabs_ld4l_cache_validation.yml +430 -0
  100. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/mesh_nlm_ld4l_cache_validation.yml +54 -1
  101. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_ld4l_cache_validation.yml +37 -0
  102. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclc_fast_validation.yml +71 -5
  103. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_direct_validation.yml +73 -2
  104. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_ld4l_cache_validation.yml +73 -0
  105. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/rda_registry_ld4l_cache_validation.yml +307 -0
  106. data/lib/qa_server/configuration.rb +28 -24
  107. data/lib/qa_server/version.rb +1 -1
  108. data/qa_server.gemspec +6 -5
  109. data/spec/feature/accuracy_spec.rb +32 -0
  110. data/spec/i18n_spec.rb +35 -0
  111. data/spec/presenters/qa_server/monitor_status/history_presenter_spec.rb +81 -0
  112. data/spec/spec_helper.rb +4 -0
  113. metadata +65 -17
@@ -17,7 +17,7 @@
17
17
  <td class="status-neutral"><%= @presenter.tests_count %></td>
18
18
  </tr>
19
19
  </table>
20
- <p class="status-update-dtstamp"><%= t('qa_server.monitor_status.summary.last_updated', date: @presenter.last_updated) %></p>
20
+ <p class="status-update-dtstamp"><%= @presenter.last_updated %></p>
21
21
 
22
22
  <% if @presenter.failures?%>
23
23
  <div id="failures" class="status-section">
@@ -0,0 +1,133 @@
1
+ # i18n-tasks finds and manages missing and unused translations: https://github.com/glebm/i18n-tasks
2
+
3
+ # The "main" locale.
4
+ base_locale: en
5
+ ## All available locales are inferred from the data by default. Alternatively, specify them explicitly:
6
+ # locales: [es, fr]
7
+ ## Reporting locale, default: en. Available: en, ru.
8
+ # internal_locale: en
9
+
10
+ # Read and write translations.
11
+ data:
12
+ ## Translations are read from the file system. Supported format: YAML, JSON.
13
+ ## Provide a custom adapter:
14
+ # adapter: I18n::Tasks::Data::FileSystem
15
+
16
+ # Locale files or `File.find` patterns where translations are read from:
17
+ read:
18
+ ## Default:
19
+ # - config/locales/%{locale}.yml
20
+ ## More files:
21
+ - config/locales/**/*.%{locale}.yml
22
+
23
+ # Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
24
+ # `i18n-tasks normalize -p` will force move the keys according to these rules
25
+ write:
26
+ ## For example, write devise and simple form keys to their respective files:
27
+ # - ['{devise, simple_form}.*', 'config/locales/\1.%{locale}.yml']
28
+ ## Catch-all default:
29
+ # - config/locales/%{locale}.yml
30
+
31
+ # External locale data (e.g. gems).
32
+ # This data is not considered unused and is never written to.
33
+ external:
34
+ ## Example (replace %#= with %=):
35
+ # - "<%#= %x[bundle show vagrant].chomp %>/templates/locales/%{locale}.yml"
36
+
37
+ ## Specify the router (see Readme for details). Valid values: conservative_router, pattern_router, or a custom class.
38
+ # router: conservative_router
39
+
40
+ yaml:
41
+ write:
42
+ # do not wrap lines at 80 characters
43
+ line_width: -1
44
+
45
+ ## Pretty-print JSON:
46
+ # json:
47
+ # write:
48
+ # indent: ' '
49
+ # space: ' '
50
+ # object_nl: "\n"
51
+ # array_nl: "\n"
52
+
53
+ # Find translate calls
54
+ search:
55
+ ## Paths or `File.find` patterns to search in:
56
+ # paths:
57
+ # - app/
58
+
59
+ ## Root directories for relative keys resolution.
60
+ # relative_roots:
61
+ # - app/controllers
62
+ # - app/helpers
63
+ # - app/mailers
64
+ # - app/presenters
65
+ # - app/views
66
+
67
+ ## Files or `File.fnmatch` patterns to exclude from search. Some files are always excluded regardless of this setting:
68
+ ## %w(*.jpg *.png *.gif *.svg *.ico *.eot *.otf *.ttf *.woff *.woff2 *.pdf *.css *.sass *.scss *.less *.yml *.json)
69
+ exclude:
70
+ - app/assets/images
71
+ - app/assets/fonts
72
+ - app/assets/videos
73
+
74
+ ## Alternatively, the only files or `File.fnmatch patterns` to search in `paths`:
75
+ ## If specified, this settings takes priority over `exclude`, but `exclude` still applies.
76
+ # only: ["*.rb", "*.html.slim"]
77
+
78
+ ## If `strict` is `false`, guess usages such as t("categories.#{category}.title"). The default is `true`.
79
+ # strict: true
80
+
81
+ ## Multiple scanners can be used. Their results are merged.
82
+ ## The options specified above are passed down to each scanner. Per-scanner options can be specified as well.
83
+ ## See this example of a custom scanner: https://github.com/glebm/i18n-tasks/wiki/A-custom-scanner-example
84
+
85
+ ## Translation Services
86
+ # translation:
87
+ # # Google Translate
88
+ # # Get an API key and set billing info at https://code.google.com/apis/console to use Google Translate
89
+ # google_translate_api_key: "AbC-dEf5"
90
+ # # DeepL Pro Translate
91
+ # # Get an API key and subscription at https://www.deepl.com/pro to use DeepL Pro
92
+ # deepl_api_key: "48E92789-57A3-466A-9959-1A1A1A1A1A1A"
93
+
94
+ ## Do not consider these keys missing:
95
+ # ignore_missing:
96
+ # - 'errors.messages.{accepted,blank,invalid,too_short,too_long}'
97
+ # - '{devise,simple_form}.*'
98
+
99
+ ## Consider these keys used:
100
+ # ignore_unused:
101
+ # - 'activerecord.attributes.*'
102
+ # - '{devise,kaminari,will_paginate}.*'
103
+ # - 'simple_form.{yes,no}'
104
+ # - 'simple_form.{placeholders,hints,labels}.*'
105
+ # - 'simple_form.{error_notification,required}.:'
106
+
107
+ ## Exclude these keys from the `i18n-tasks eq-base' report:
108
+ # ignore_eq_base:
109
+ # all:
110
+ # - common.ok
111
+ # fr,es:
112
+ # - common.brand
113
+
114
+ ## Exclude these keys from the `i18n-tasks check-consistent-interpolations` report:
115
+ # ignore_inconsistent_interpolations:
116
+ # - 'activerecord.attributes.*'
117
+
118
+ ## Ignore these keys completely:
119
+ # ignore:
120
+ # - kaminari.*
121
+
122
+ ## Sometimes, it isn't possible for i18n-tasks to match the key correctly,
123
+ ## e.g. in case of a relative key defined in a helper method.
124
+ ## In these cases you can use the built-in PatternMapper to map patterns to keys, e.g.:
125
+ #
126
+ # <%# I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
127
+ # only: %w(*.html.haml *.html.slim),
128
+ # patterns: [['= title\b', '.page_title']] %>
129
+ #
130
+ # The PatternMapper can also match key literals via a special %{key} interpolation, e.g.:
131
+ #
132
+ # <%# I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
133
+ # patterns: [['\bSpree\.t[( ]\s*%{key}', 'spree.%{key}']] %>
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  en:
3
3
  qa_server:
4
+ application_name: "Replace with your application's name"
5
+ application_version: "Replace with your application's version"
6
+ footer:
7
+ attribution_html: This service is supported by work on <a href="http://ld4l.org" class="navbar-link" target="_blank">Linked Data for Libraries - Labs</a> and <br> <a href="https://wiki.duraspace.org/x/9xgRBg" class="navbar-link" target="_blank">Linked Data for Production</a> funded by <a href="https://mellon.org/" class="navbar-link" target="_blank">Andrew W. Mellon Foundation</a>, <br>and by work on Questioning Authority in <a href="http://samvera.org" class="navbar-link" target="_blank">Samvera</a>, an open source community.
8
+ copyright_html: <strong>Copyright &copy; 2018-2020 Your Institution</strong> Licensed under the Apache License, Version 2.0
9
+ service_html: A service of <a href="http://your.institution.website/" class="navbar-link" target="_blank">Your Institution Name</a>.
4
10
  menu:
5
11
  home: Home
6
12
  usage: Usage
@@ -22,16 +28,21 @@ en:
22
28
  show_all: ALL Authorities (SLOW)
23
29
  connections: Check Connection Status only
24
30
  accuracy: Check Accuracy only
31
+ comparison: Compare Accuracy
25
32
  all_checks: Run all checks
26
33
  wait_message: "Please wait while the status is verified. This will be slow if you selected ALL Authorities."
27
34
  connection_checks: Connection Checks
28
35
  accuracy_checks: Accuracy Checks for Search Results
36
+ comparison_checks: Comparison of Accuracy Checks
29
37
  status_table:
38
+ before: Before
39
+ after: After
30
40
  action: Action
31
41
  actual_position: Actual Position
32
42
  authority: Authority
33
43
  errmsg: Errors
34
44
  expected_by_position: Expected by Position
45
+ request_data: Query
35
46
  service: Service
36
47
  status: Status
37
48
  subauthority: Subauthority
@@ -47,7 +58,11 @@ en:
47
58
  wait_message: Fetching term...
48
59
  term_results: Results
49
60
  monitor_status:
50
- title: Monitor Status
61
+ title: Monitor Status
62
+ permission_denied: 'Permission denied. Unable to %{action}.'
63
+ refreshing_tests: Refreshing tests.
64
+ refreshing_history: Refreshing connection history.
65
+ refreshing_performance: Refreshing performance metrics.
51
66
  summary:
52
67
  title: Latest Monitored Status
53
68
  summary_table: Summary
@@ -57,10 +72,10 @@ en:
57
72
  failing_tests: Failing Tests
58
73
  total_tests: TOTAL Tests
59
74
  last_updated: 'Status last updated %{date} ET'
75
+ no_data: 'No Data Available (Common Cause: first time tests are running)'
60
76
  failures:
61
77
  title: Failures During Latest Status Update
62
78
  status: Status
63
- authority: Authority
64
79
  subauthority: Subauthority
65
80
  service: Service
66
81
  action: Action
@@ -68,7 +83,6 @@ en:
68
83
  errmsg: Errors
69
84
  history:
70
85
  title: Authority Connection History
71
- since: 'Since %{date} ET'
72
86
  range: 'From %{from} to %{to}'
73
87
  authority: Authority
74
88
  days_failing: Days Failing
@@ -89,7 +103,6 @@ en:
89
103
  graph_load_time_ms: Graph Load Time (ms)
90
104
  normalization_time_ms: Normalization Time (ms)
91
105
  retrieve_time_ms: Retrieve Time (ms)
92
- full_request_time_ms: Full Request Time (ms)
93
106
  x_axis_hour: Hour
94
107
  x_axis_day: Day
95
108
  x_axis_month: Month
@@ -97,8 +110,11 @@ en:
97
110
  now: NOW
98
111
  today: TODAY
99
112
  datatable_desc: 'Performance tabulated data'
113
+ datatable_all_desc: 'All Data'
114
+ datatable_day_desc: 'Day'
115
+ datatable_month_desc: 'Month'
116
+ datatable_year_desc: 'Year'
100
117
  datarange: 'From %{from} to %{to}'
101
- authority: Authority
102
118
  average_times: Average (ms)
103
119
  fastest_times: 10th percentile (ms)
104
120
  slowest_times: 90th percentile (ms)
@@ -28,9 +28,9 @@ class QaServer::AssetsGenerator < Rails::Generators::Base
28
28
  end
29
29
  end
30
30
 
31
- private
31
+ private
32
32
 
33
- def qa_server_javascript_installed?
34
- IO.read("app/assets/javascripts/application.js").include?('qa_server')
35
- end
33
+ def qa_server_javascript_installed?
34
+ IO.read("app/assets/javascripts/application.js").include?('qa_server')
35
+ end
36
36
  end
@@ -4,8 +4,8 @@
4
4
  "prefixes": {
5
5
  "rdaGr2": "http://rdvocab.info/ElementsGr2/",
6
6
  "rdaGr3": "http://rdvocab.info/ElementsGr3/",
7
- "ct": "http://www.cerl.org/namespaces/thesaurus",
8
- "rdaRelGr2": "http://metadataregistry.org/uri/schema/RDARelationshipsGR2",
7
+ "ct": "http://www.cerl.org/namespaces/thesaurus/",
8
+ "rdaRelGr2": "http://metadataregistry.org/uri/schema/RDARelationshipsGR2/",
9
9
  "vivo": "http://vivoweb.org/ontology/core#"
10
10
  },
11
11
  "term": {
@@ -2,6 +2,7 @@
2
2
  "QA_CONFIG_VERSION": "2.2",
3
3
  "service_uri": "http://ld4l.org/ld4l_services/cache",
4
4
  "prefixes": {
5
+ "getty": "http://vocab.getty.edu/ontology#",
5
6
  "vivo": "http://vivoweb.org/ontology/core#"
6
7
  },
7
8
  "term": {
@@ -89,6 +90,67 @@
89
90
  "label_ldpath": "skos:prefLabel ::xsd:string",
90
91
  "sort_ldpath": "vivo:rank ::xsd:string"
91
92
  },
93
+ "context": {
94
+ "groups": {
95
+ "hierarchies": {
96
+ "group_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.hierarchies",
97
+ "group_label_default": "Hierarchies"
98
+ }
99
+ },
100
+ "properties": [
101
+ {
102
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.preferred_label",
103
+ "property_label_default": "Preferred label",
104
+ "ldpath": "skos:prefLabel :: xsd:string",
105
+ "selectable": true,
106
+ "drillable": false
107
+ },
108
+ {
109
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.alt_label",
110
+ "property_label_default": "Alternative Label",
111
+ "ldpath": "skos:altLabel :: xsd:string",
112
+ "selectable": false,
113
+ "drillable": false
114
+ },
115
+ {
116
+ "group_id": "hierarchies",
117
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.broader",
118
+ "property_label_default": "Broader",
119
+ "ldpath": "skos:broader :: xsd:string",
120
+ "selectable": true,
121
+ "drillable": true,
122
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
123
+ "expansion_id_ldpath": "dc:identifier ::xsd:string"
124
+ },
125
+ {
126
+ "group_id": "hierarchies",
127
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.narrower",
128
+ "property_label_default": "Narrower",
129
+ "ldpath": "skos:narrower :: xsd:string",
130
+ "selectable": true,
131
+ "drillable": true,
132
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
133
+ "expansion_id_ldpath": "dc:identifier ::xsd:string"
134
+ },
135
+ {
136
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.scope_note",
137
+ "property_label_default": "Scope note",
138
+ "ldpath": "skos:scopeNote :: xsd:string",
139
+ "selectable": false,
140
+ "drillable": false
141
+ },
142
+ {
143
+ "group_id": "hierarchies",
144
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.hierarchy",
145
+ "property_label_default": "Hierarchy",
146
+ "ldpath": "gvp:broaderPreferredExtended :: xsd:string",
147
+ "selectable": true,
148
+ "drillable": true,
149
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
150
+ "expansion_id_ldpath": "dc:identifier ::xsd:string"
151
+ }
152
+ ]
153
+ },
92
154
  "subauthorities": {
93
155
  "Activities": "&facet=300264090",
94
156
  "Activities__Disciplines": "&facet=300054134",
@@ -123,4 +185,3 @@
123
185
  }
124
186
  }
125
187
  }
126
-
@@ -3,6 +3,7 @@
3
3
  "service_uri": "http://ld4l.org/ld4l_services/cache",
4
4
  "prefixes": {
5
5
  "getty": "http://vocab.getty.edu/ontology#",
6
+ "skosxl": "http://www.w3.org/2008/05/skos-xl#",
6
7
  "vivo": "http://vivoweb.org/ontology/core#"
7
8
  },
8
9
  "term": {
@@ -27,11 +28,9 @@
27
28
  "term_id": "URI",
28
29
  "results": {
29
30
  "id_ldpath": "dc:identifier ::xsd:string",
30
- "label_ldpath": "skos:prefLabel ::xsd:string",
31
- "altlabel_ldpath": "skos:altLabel ::xsd:string",
32
- "broader_ldpath": "skos:broader ::xsd:anyURI",
33
- "narrower_ldpath": "skos:narrower ::xsd:anyURI",
34
- "sameas_ldpath": "skos:exactMatch ::xsd:anyURI"
31
+ "label_ldpath": "^foaf:focus/skosxl:prefLabel/skosxl:literalForm :: xsd:string",
32
+ "altlabel_ldpath": "^foaf:focus/skosxl:altLabel/skosxl:literalForm :: xsd:string",
33
+ "broader_ldpath": "^foaf:focus/getty:broaderPreferred ::xsd:anyURI"
35
34
  }
36
35
  },
37
36
  "search": {
@@ -78,21 +77,56 @@
78
77
  },
79
78
  "total_count_ldpath": "vivo:count",
80
79
  "results": {
81
- "id_ldpath": "dc:identifier ::xsd:string",
82
- "label_ldpath": "skos:prefLabel ::xsd:string",
80
+ "label_ldpath": "^foaf:focus/skosxl:prefLabel/skosxl:literalForm :: xsd:string",
83
81
  "sort_ldpath": "vivo:rank ::xsd:string"
84
82
  },
85
83
  "context": {
86
84
  "properties": [
87
85
  {
88
- "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.parent_string",
89
- "property_label_default": "Parent",
90
- "ldpath": "getty:parentString :: xsd:string",
86
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.preferred_label",
87
+ "property_label_default": "Preferred label",
88
+ "ldpath": "^foaf:focus/skosxl:prefLabel/skosxl:literalForm :: xsd:string",
89
+ "selectable": true,
90
+ "drillable": false
91
+ },
92
+ {
93
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.variant_label",
94
+ "property_label_default": "Variant Label",
95
+ "ldpath": "^foaf:focus/skosxl:altLabel/skosxl:literalForm :: xsd:string",
96
+ "selectable": false,
97
+ "drillable": false
98
+ },
99
+ {
100
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.parent_body",
101
+ "property_label_default": "Parent body",
102
+ "ldpath": "^foaf:focus/getty:parentString :: xsd:string",
103
+ "selectable": false,
104
+ "drillable": false
105
+ },
106
+ {
107
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.parent_body_abbreviation",
108
+ "property_label_default": "Parent body (abbreviation)",
109
+ "ldpath": "^foaf:focus/getty:parentStringAbbrev :: xsd:string",
91
110
  "selectable": false,
92
111
  "drillable": false
112
+ },
113
+ {
114
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.place_type",
115
+ "property_label_default": "Place type",
116
+ "ldpath": "^foaf:focus/getty:placeTypePreferred :: xsd:string",
117
+ "selectable": false,
118
+ "drillable": false
119
+ },
120
+ {
121
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.broader",
122
+ "property_label_default": "Broader",
123
+ "ldpath": "^foaf:focus/getty:broaderPreferred :: xsd:string",
124
+ "selectable": false,
125
+ "drillable": true,
126
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
127
+ "expansion_id_ldpath": "dc:identifier ::xsd:string"
93
128
  }
94
129
  ]
95
130
  }
96
131
  }
97
132
  }
98
-
@@ -2,6 +2,9 @@
2
2
  "QA_CONFIG_VERSION": "2.2",
3
3
  "service_uri": "http://ld4l.org/ld4l_services/cache",
4
4
  "prefixes": {
5
+ "getty": "http://vocab.getty.edu/ontology#",
6
+ "schema": "https://schema.org/",
7
+ "skosxl": "http://www.w3.org/2008/05/skos-xl#",
5
8
  "vivo": "http://vivoweb.org/ontology/core#"
6
9
  },
7
10
  "term": {
@@ -26,11 +29,9 @@
26
29
  "term_id": "URI",
27
30
  "results": {
28
31
  "id_ldpath": "dc:identifier ::xsd:string",
29
- "label_ldpath": "skos:prefLabel ::xsd:string",
30
- "altlabel_ldpath": "skos:altLabel ::xsd:string",
31
- "broader_ldpath": "skos:broader ::xsd:anyURI",
32
- "narrower_ldpath": "skos:narrower ::xsd:anyURI",
33
- "sameas_ldpath": "skos:exactMatch ::xsd:anyURI"
32
+ "label_ldpath": "^foaf:focus / skosxl:prefLabel / skosxl:literalForm ::xsd:string",
33
+ "altlabel_ldpath": "^foaf:focus/skosxl:altLabel/skosxl:literalForm :: xsd:string",
34
+ "broader_ldpath": "^foaf:focus/getty:broaderPreferred/skosxl:altLabel/skosxl:literalForm ::xsd:anyURI"
34
35
  }
35
36
  },
36
37
  "search": {
@@ -85,14 +86,109 @@
85
86
  },
86
87
  "total_count_ldpath": "vivo:count",
87
88
  "results": {
88
- "id_ldpath": "dc:identifier ::xsd:string",
89
- "label_ldpath": "skos:prefLabel ::xsd:string",
89
+ "label_ldpath": "^foaf:focus / skosxl:prefLabel / skosxl:literalForm ::xsd:string",
90
90
  "sort_ldpath": "vivo:rank ::xsd:string"
91
91
  },
92
+ "context": {
93
+ "properties": [
94
+ {
95
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.preferred_label",
96
+ "property_label_default": "Preferred label",
97
+ "ldpath": "^foaf:focus/skosxl:prefLabel/skosxl:literalForm :: xsd:string",
98
+ "selectable": true,
99
+ "drillable": false
100
+ },
101
+ {
102
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.variant_label",
103
+ "property_label_default": "Variant label",
104
+ "ldpath": "^foaf:focus/skosxl:altLabel/skosxl:literalForm :: xsd:string",
105
+ "selectable": false,
106
+ "drillable": false
107
+ },
108
+ {
109
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.description",
110
+ "property_label_default": "Description",
111
+ "ldpath": "getty:biographyPreferred / schema:description :: xsd:string",
112
+ "selectable": false,
113
+ "drillable": false
114
+ },
115
+ {
116
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.start_date",
117
+ "property_label_default": "Start date",
118
+ "ldpath": "getty:biographyPreferred / getty:estStart",
119
+ "selectable": false,
120
+ "drillable": false
121
+ },
122
+ {
123
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.end_date",
124
+ "property_label_default": "End date",
125
+ "ldpath": "getty:biographyPreferred / getty:estEnd",
126
+ "selectable": false,
127
+ "drillable": false
128
+ },
129
+ {
130
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.foundation_location",
131
+ "property_label_default": "Foundation location",
132
+ "ldpath": "getty:biographyPreferred/schema:foundationLocation / ^foaf:focus / getty:parentString :: xsd:string",
133
+ "selectable": false,
134
+ "drillable": false
135
+ },
136
+ {
137
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.nationality",
138
+ "property_label_default": "Nationality",
139
+ "ldpath": "schema:nationality / skosxl:prefLabel / skosxl:literalForm :: xsd:string",
140
+ "selectable": false,
141
+ "drillable": false
142
+ },
143
+ {
144
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.birth_place",
145
+ "property_label_default": "Birth place",
146
+ "ldpath": "getty:biographyPreferred / schema:birthPlace / ^foaf:focus / skosxl:prefLabel / skosxl:literalForm :: xsd:string",
147
+ "selectable": false,
148
+ "drillable": false
149
+ },
150
+ {
151
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.death_place",
152
+ "property_label_default": "Death place",
153
+ "ldpath": "getty:biographyPreferred / schema:deathPlace / ^foaf:focus / skosxl:prefLabel / skosxl:literalForm :: xsd:string",
154
+ "selectable": false,
155
+ "drillable": false
156
+ },
157
+ {
158
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.agent_type",
159
+ "property_label_default": "Agent type",
160
+ "ldpath": "^foaf:focus / getty:agentType / skosxl:altLabel / skosxl:literalForm :: xsd:string",
161
+ "selectable": false,
162
+ "drillable": false
163
+ },
164
+ {
165
+ "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.gender",
166
+ "property_label_default": "Gender",
167
+ "ldpath": "getty:biographyPreferred/schema:gender / skosxl:prefLabel / skosxl:literalForm :: xsd:string",
168
+ "selectable": false,
169
+ "drillable": false
170
+ },
171
+ {
172
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.broader",
173
+ "property_label_default": "Broader",
174
+ "ldpath": "^foaf:focus/getty:broaderPreferred :: xsd:string",
175
+ "selectable": false,
176
+ "drillable": true,
177
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
178
+ "expansion_id_ldpath": "dc:identifier ::xsd:string"
179
+ },
180
+ {
181
+ "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.scope_note",
182
+ "property_label_default": "Scope note",
183
+ "ldpath": "^foaf:focus/skos:scopeNote :: xsd:string",
184
+ "selectable": false,
185
+ "drillable": false
186
+ }
187
+ ]
188
+ },
92
189
  "subauthorities": {
93
190
  "person": "Person",
94
191
  "organization": "Organization"
95
192
  }
96
193
  }
97
194
  }
98
-