qa_server 1.2.3 → 2.0.0

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile +0 -1
  4. data/app/models/qa_server/term_scenario.rb +2 -2
  5. data/app/services/qa_server/authority_lister_service.rb +1 -1
  6. data/app/validators/qa_server/scenario_validator.rb +2 -2
  7. data/app/validators/qa_server/search_scenario_validator.rb +2 -1
  8. data/lib/generators/qa_server/install_generator.rb +0 -1
  9. data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_ld4l_cache.json +45 -5
  10. data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_direct.json +2 -1
  11. data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_ld4l_cache.json +5 -4
  12. data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_direct.json +5 -4
  13. data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_ld4l_cache.json +92 -18
  14. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_aat_ld4l_cache.json +3 -2
  15. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json +3 -2
  16. data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_ulan_ld4l_cache.json +5 -4
  17. data/lib/generators/qa_server/templates/config/authorities/linked_data/loc_direct.json +2 -1
  18. data/lib/generators/qa_server/templates/config/authorities/linked_data/locdemographics_ld4l_cache.json +3 -2
  19. data/lib/generators/qa_server/templates/config/authorities/linked_data/locgenres_ld4l_cache.json +71 -13
  20. data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_ld4l_cache.json +82 -9
  21. data/lib/generators/qa_server/templates/config/authorities/linked_data/locperformance_ld4l_cache.json +3 -2
  22. data/lib/generators/qa_server/templates/config/authorities/linked_data/locsubjects_ld4l_cache.json +5 -4
  23. data/lib/generators/qa_server/templates/config/authorities/linked_data/mesh_ld4l_cache.json +3 -2
  24. data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_direct.json +2 -1
  25. data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_ld4l_cache.json +45 -4
  26. data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_direct.json +4 -3
  27. data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json +5 -4
  28. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_ld4l_cache_validation.yml +1 -0
  29. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_aat_ld4l_cache_validation.yml +21 -16
  30. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locdemographics_ld4l_cache_validation.yml +1 -3
  31. data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_ld4l_cache_validation.yml +1 -1
  32. data/lib/qa_server/version.rb +1 -1
  33. data/qa_server.gemspec +1 -1
  34. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05b44dd3c5b4d4c1b3ce5a9aac038c605fe524f6
4
- data.tar.gz: 9fda6a2e74ae503e463d85b476baa21635dabc73
3
+ metadata.gz: 16d805b54abfdf23122f3f564967473920b93caf
4
+ data.tar.gz: 70248d9ad4aa039e217ee4dc6bb67c10b96040a6
5
5
  SHA512:
6
- metadata.gz: 8c63e6ad90b632068058ba64abf9ae4ff948262da2c4d265a4b7481d9839588df60200f883cd857e83bdfa902127b8e54e68b375aa7ce9f99923a06165e5efba
7
- data.tar.gz: 43ead08a6ecea547c2942834a1cef98ca1f58342f18c91fa97909977b4bc1f1b758989f2dfc1204ce9b18b719ddf52bcffc356b7b319881e22eb1eaf0ddbbfca
6
+ metadata.gz: 845b37d66fba196044159b9482819475e527288c1a8aaed5ad30e5cb358900b2c47f3895f429eec0e778d1282c5f0cf77d315689e9cae43e0165ce4ea8f3bbfb
7
+ data.tar.gz: 3ae847b1b79d4751c514699fb1d70f01ccefdc5102396d6696d3fc29cf31db0635480e08c1798c7894f6bdc2263aac5778fc0caec68dfc6fd25ecbf9421b9edb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 2.0.0 (2019-03-12)
2
+
3
+ * update code to work with qa 4.0.0
4
+ * update configs to QA_CONFIG_VERSION 2.0
5
+
1
6
  ### 1.2.3 (2019-03-07)
2
7
 
3
8
  * change css class for failing tests to allow pingdom to check for the css class and notify sysop
data/Gemfile CHANGED
@@ -6,7 +6,6 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
6
6
  # Bundler will treat runtime dependencies like base dependencies, and
7
7
  # development dependencies will be added by default to the :development group.
8
8
  gemspec
9
- # gem 'qa', github: 'samvera/questioning_authority', branch: 'min_context'
10
9
 
11
10
  # Declare any dependencies that are still in development here instead of in
12
11
  # your gemspec. These might include edge Rails or gems from your path or
@@ -23,7 +23,7 @@ module QaServer
23
23
  # Generate an example URL that can be called in a browser or through curl
24
24
  # @return [String] the example URL
25
25
  def url
26
- authority.auth_config.term.term_id_expects_uri? ? fetch_url : show_url
26
+ authority.term_id_expects_uri? ? fetch_url : show_url
27
27
  end
28
28
 
29
29
  private
@@ -56,7 +56,7 @@ module QaServer
56
56
  end
57
57
 
58
58
  def encode?
59
- authority.auth_config.term.term_id_expects_uri?
59
+ authority.term_id_expects_uri?
60
60
  end
61
61
 
62
62
  def uri_encode(uri)
@@ -5,7 +5,7 @@ module QaServer
5
5
  # Return a list of supported authorities
6
6
  # @return [Array<String>] list of authorities
7
7
  def self.authorities_list
8
- Qa::Authorities::LinkedData::AuthorityService.authority_names
8
+ Qa::LinkedData::AuthorityService.authority_names
9
9
  end
10
10
 
11
11
  # Fill in status_log with data about each scenario for an authority
@@ -65,10 +65,10 @@ module QaServer
65
65
  actual_size = results.to_s.length
66
66
  status = actual_size > min_expected_size ? PASS : UNKNOWN
67
67
  errmsg = status == PASS ? '' : "#{scenario_type_name.capitalize} scenario unknown status; cause: Results actual size (#{actual_size} < expected size (#{min_expected_size})"
68
- log(status: status, errmsg: errmsg, normalization_run_time: (dt_end - dt_start)) # TODO: need to get run times from results
68
+ log(status: status, error_message: errmsg, normalization_run_time: (dt_end - dt_start)) # TODO: need to get run times from results
69
69
  rescue Exception => e
70
70
  dt_end = Time.now.utc
71
- log(status: FAIL, errmsg: "Exception executing #{scenario_type_name} scenario; cause: #{e.message}", request_run_time: (dt_end - dt_start))
71
+ log(status: FAIL, error_message: "Exception executing #{scenario_type_name} scenario; cause: #{e.message}", request_run_time: (dt_end - dt_start))
72
72
  end
73
73
 
74
74
  def authority
@@ -22,9 +22,10 @@ module QaServer
22
22
  # Run the connection test and log results
23
23
  def run_connection_scenario
24
24
  test_connection(min_expected_size: scenario.min_result_size, scenario_type_name: 'search') do
25
+ replacements = scenario.replacements.dup
25
26
  authority.search(scenario.query,
26
27
  subauth: scenario.subauthority_name,
27
- replacements: scenario.replacements)
28
+ replacements: replacements)
28
29
  end
29
30
  end
30
31
 
@@ -22,7 +22,6 @@ module QaServer
22
22
 
23
23
  def add_to_gemfile
24
24
  say_status('info', ' -- adding qa_server required gems', :blue)
25
- gem 'qa', github: 'samvera/questioning_authority', tag: '496aaa34c4aba6d97d11737b229ea66ea4c64639'
26
25
  gem 'linkeddata'
27
26
 
28
27
  Bundler.with_clean_env do
@@ -1,9 +1,13 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
3
+ "prefixes": {
4
+ "skos": "http://www.w3.org/2004/02/skos/core#"
5
+ },
2
6
  "term": {
3
7
  "url": {
4
8
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
9
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/agrovoc_lookup.jsp?uri={?term_uri}",
10
+ "template": "http://services.ld4l.org/ld4l_services/agrovoc_lookup.jsp?uri={term_uri}",
7
11
  "variableRepresentation": "BasicRepresentation",
8
12
  "mapping": [
9
13
  {
@@ -31,7 +35,7 @@
31
35
  "url": {
32
36
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
33
37
  "@type": "IriTemplate",
34
- "template": "http://services.ld4l.org/ld4l_services/agrovoc_batch.jsp?query={?query}&maxRecords={?maxRecords}&entity={?subauth}&lang={?lang}",
38
+ "template": "http://services.ld4l.org/ld4l_services/agrovoc_batch.jsp?{?query}&{?maxRecords}&{?entity}&{?lang}",
35
39
  "variableRepresentation": "BasicRepresentation",
36
40
  "mapping": [
37
41
  {
@@ -42,7 +46,7 @@
42
46
  },
43
47
  {
44
48
  "@type": "IriTemplateMapping",
45
- "variable": "subauth",
49
+ "variable": "entity",
46
50
  "property": "hydra:freetextQuery",
47
51
  "required": false,
48
52
  "default": ""
@@ -65,13 +69,49 @@
65
69
  },
66
70
  "qa_replacement_patterns": {
67
71
  "query": "query",
68
- "subauth": "subauth"
72
+ "subauth": "entity"
69
73
  },
70
74
  "results": {
71
- "id_predicate": "http://purl.org/dc/terms/identifier",
72
75
  "label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
73
76
  "sort_predicate": "http://vivoweb.org/ontology/core#rank"
74
77
  },
78
+ "context": {
79
+ "groups": {
80
+ "hierarchy": {
81
+ "group_label_i18n": "qa.linked_data.authority.agrovoc_ld4l_cache.hierarchy",
82
+ "group_label_default": "Hierarchy"
83
+ }
84
+ },
85
+ "properties": [
86
+ {
87
+ "property_label_i18n": "qa.linked_data.authority.agrovoc_ld4l_cache.authoritative_label",
88
+ "property_label_default": "Authoritative Label",
89
+ "ldpath": "skos:prefLabel :: xsd:string",
90
+ "selectable": true,
91
+ "drillable": false
92
+ },
93
+ {
94
+ "group_id": "hierarchy",
95
+ "property_label_i18n": "qa.linked_data.authority.agrovoc_ld4l_cache.narrower",
96
+ "property_label_default": "Narrower",
97
+ "ldpath": "skos:narrower :: xsd:string",
98
+ "selectable": true,
99
+ "drillable": true,
100
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
101
+ "expansion_id_ldpath": "loc:lccn ::xsd:string"
102
+ },
103
+ {
104
+ "group_id": "hierarchy",
105
+ "property_label_i18n": "qa.linked_data.authority.agrovoc_ld4l_cache.broader",
106
+ "property_label_default": "Broader",
107
+ "ldpath": "skos:broader :: xsd:string",
108
+ "selectable": true,
109
+ "drillable": true,
110
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
111
+ "expansion_id_ldpath": "loc:lccn ::xsd:string"
112
+ }
113
+ ]
114
+ },
75
115
  "subauthorities": {
76
116
  "person": "Person",
77
117
  "organization": "Organization",
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "{?term_uri}?locale={?lang}",
7
+ "template": "{term_uri}?locale={lang}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/dbpedia_name_lookup.jsp?uri={?term_uri}",
7
+ "template": "http://services.ld4l.org/ld4l_services/dbpedia_name_lookup.jsp?uri={term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -29,7 +30,7 @@
29
30
  "url": {
30
31
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
31
32
  "@type": "IriTemplate",
32
- "template": "http://services.ld4l.org/ld4l_services/dbpedia_name_batch.jsp?entity={?subauth}&query={?query}&maxRecords={?maxRecords}&lang={?lang}",
33
+ "template": "http://services.ld4l.org/ld4l_services/dbpedia_name_batch.jsp?{?entity}&{?query}&{?maxRecords}&{?lang}",
33
34
  "variableRepresentation": "BasicRepresentation",
34
35
  "mapping": [
35
36
  {
@@ -40,7 +41,7 @@
40
41
  },
41
42
  {
42
43
  "@type": "IriTemplateMapping",
43
- "variable": "subauth",
44
+ "variable": "entity",
44
45
  "property": "hydra:freetextQuery",
45
46
  "required": false,
46
47
  "default": ""
@@ -63,7 +64,7 @@
63
64
  },
64
65
  "qa_replacement_patterns": {
65
66
  "query": "query",
66
- "subauth": "subauth"
67
+ "subauth": "entity"
67
68
  },
68
69
  "language": ["en"],
69
70
  "results": {
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "{?term_uri}",
7
+ "template": "{term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -30,7 +31,7 @@
30
31
  "url": {
31
32
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
33
  "@type": "IriTemplate",
33
- "template": "http://api.geonames.org/search?q={?query}&maxRows={?maximumRecords}&username={?username}&type=rdf",
34
+ "template": "http://api.geonames.org/search?q={query}&maxRows={maximumRecords}&{?username}&type=rdf",
34
35
  "variableRepresentation": "BasicRepresentation",
35
36
  "mapping": [
36
37
  {
@@ -43,8 +44,8 @@
43
44
  "@type": "IriTemplateMapping",
44
45
  "variable": "username",
45
46
  "property": "hydra:freetextQuery",
46
- "required": true,
47
- "default": "elrayle"
47
+ "required": false,
48
+ "default": "YOUR_GEONAMES_USERNAME"
48
49
  },
49
50
  {
50
51
  "@type": "IriTemplateMapping",
@@ -1,9 +1,14 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
3
+ "prefixes": {
4
+ "geonames": "http://www.geonames.org/ontology#",
5
+ "geo": "http://www.w3.org/2003/01/geo/wgs84_pos#"
6
+ },
2
7
  "term": {
3
8
  "url": {
4
9
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
10
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/geonames_lookup.jsp?uri={?term_uri}",
11
+ "template": "http://services.ld4l.org/ld4l_services/geonames_lookup.jsp?uri={term_uri}",
7
12
  "variableRepresentation": "BasicRepresentation",
8
13
  "mapping": [
9
14
  {
@@ -30,7 +35,7 @@
30
35
  "url": {
31
36
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
37
  "@type": "IriTemplate",
33
- "template": "http://services.ld4l.org/ld4l_services/geonames_batch.jsp?query={?query}&entity={?subauth}&maxRecords={?maxRecords}&lang={?lang}",
38
+ "template": "http://services.ld4l.org/ld4l_services/geonames_batch.jsp?{?query}&{?entity}&{?maxRecords}&{?lang}",
34
39
  "variableRepresentation": "BasicRepresentation",
35
40
  "mapping": [
36
41
  {
@@ -41,7 +46,7 @@
41
46
  },
42
47
  {
43
48
  "@type": "IriTemplateMapping",
44
- "variable": "subauth",
49
+ "variable": "entity",
45
50
  "property": "hydra:freetextQuery",
46
51
  "required": false,
47
52
  "default": "all"
@@ -64,26 +69,95 @@
64
69
  },
65
70
  "qa_replacement_patterns": {
66
71
  "query": "query",
67
- "subauth": "subauth"
72
+ "subauth": "entity"
68
73
  },
69
74
  "language": ["en"],
70
75
  "results": {
76
+ "id_predicate": ":subject_uri",
71
77
  "label_predicate": "http://www.geonames.org/ontology#name",
72
78
  "altlabel_predicate": "http://www.geonames.org/ontology#countryCode",
73
- "sort_predicate": "http://vivoweb.org/ontology/core#rank",
74
- "context": {
75
- "Parent": "http://www.geonames.org/ontology#parentADM1",
76
- "Parent2": "http://www.geonames.org/ontology#parentADM2",
77
- "Parent Country": "http://www.geonames.org/ontology#parentCountry",
78
- "Children": "http://www.geonames.org/ontology#childrenFeatures",
79
- "Country": "http://www.geonames.org/ontology#countryCode",
80
- "Population": "http://www.geonames.org/ontology#population",
81
- "Latitude": "http://www.w3.org/2003/01/geo/wgs84_pos#lat",
82
- "Longitude": "http://www.w3.org/2003/01/geo/wgs84_pos#long",
83
- "Altitude": "http://www.w3.org/2003/01/geo/wgs84_pos#alt",
84
- "Feature Class": "http://www.geonames.org/ontology#featureClass",
85
- "Feature Code": "http://www.geonames.org/ontology#featureCode"
86
- }
79
+ "sort_predicate": "http://vivoweb.org/ontology/core#rank"
80
+ },
81
+ "context": {
82
+ "properties": [
83
+ {
84
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.parent_adm1_label",
85
+ "property_label_default": "Parent",
86
+ "ldpath": "geonames:parentADM1 :: xsd:string",
87
+ "selectable": false,
88
+ "drillable": false
89
+ },
90
+ {
91
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.parent_adm2_label",
92
+ "property_label_default": "Parent2",
93
+ "ldpath": "geonames:parentADM2 :: xsd:string",
94
+ "selectable": false,
95
+ "drillable": false
96
+ },
97
+ {
98
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.parent_country_label",
99
+ "property_label_default": "Parent Country",
100
+ "ldpath": "geonames:parentCountry :: xsd:string",
101
+ "selectable": false,
102
+ "drillable": false
103
+ },
104
+ {
105
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.children_features_label",
106
+ "property_label_default": "Children",
107
+ "ldpath": "geonames:childrenFeatures :: xsd:string",
108
+ "selectable": false,
109
+ "drillable": false
110
+ },
111
+ {
112
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.country_code_label",
113
+ "property_label_default": "Country",
114
+ "ldpath": "geonames:countryCode :: xsd:string",
115
+ "selectable": false,
116
+ "drillable": false
117
+ },
118
+ {
119
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.population_label",
120
+ "property_label_default": "Population",
121
+ "ldpath": "geonames:population :: xsd:string",
122
+ "selectable": false,
123
+ "drillable": false
124
+ },
125
+ {
126
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.latitude_label",
127
+ "property_label_default": "Latitude",
128
+ "ldpath": "geo:lat :: xsd:string",
129
+ "selectable": false,
130
+ "drillable": false
131
+ },
132
+ {
133
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.longitude_label",
134
+ "property_label_default": "Longitude",
135
+ "ldpath": "geo:long :: xsd:string",
136
+ "selectable": false,
137
+ "drillable": false
138
+ },
139
+ {
140
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.altitude_label",
141
+ "property_label_default": "Altitude",
142
+ "ldpath": "geo:alt :: xsd:string",
143
+ "selectable": false,
144
+ "drillable": false
145
+ },
146
+ {
147
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.feature_class_label",
148
+ "property_label_default": "Feature Class",
149
+ "ldpath": "geonames:featureClass :: xsd:string",
150
+ "selectable": false,
151
+ "drillable": false
152
+ },
153
+ {
154
+ "property_label_i18n": "qa.linked_data.authority.geonames_ld4l_cache.feature_code_label",
155
+ "property_label_default": "Feature Code",
156
+ "ldpath": "geonames:featureCode :: xsd:string",
157
+ "selectable": false,
158
+ "drillable": false
159
+ }
160
+ ]
87
161
  },
88
162
  "subauthorities": {
89
163
  "area": "A",
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/getty_lookup.jsp?uri={?term_uri}",
7
+ "template": "http://services.ld4l.org/ld4l_services/getty_lookup.jsp?uri={term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -31,7 +32,7 @@
31
32
  "url": {
32
33
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
33
34
  "@type": "IriTemplate",
34
- "template": "http://services.ld4l.org/ld4l_services/getty_batch.jsp?query={?query}{?subauth}&entity=Concept&maxRecords={?maxRecords}&lang={?lang}",
35
+ "template": "http://services.ld4l.org/ld4l_services/getty_batch.jsp?{?query}&entity=Concept&{?maxRecords}&{?lang}",
35
36
  "variableRepresentation": "BasicRepresentation",
36
37
  "mapping": [
37
38
  {
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/getty_lookup.jsp?uri={?term_uri}",
7
+ "template": "http://services.ld4l.org/ld4l_services/getty_lookup.jsp?uri={term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -31,7 +32,7 @@
31
32
  "url": {
32
33
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
33
34
  "@type": "IriTemplate",
34
- "template": "http://services.ld4l.org/ld4l_services/getty_batch.jsp?query={?query}&entity=Place&maxRecords={?maxRecords}&lang={?lang}",
35
+ "template": "http://services.ld4l.org/ld4l_services/getty_batch.jsp?{?query}&entity=Place&{?maxRecords}&{?lang}",
35
36
  "variableRepresentation": "BasicRepresentation",
36
37
  "mapping": [
37
38
  {
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/getty_lookup.jsp?uri={?term_uri}",
7
+ "template": "http://services.ld4l.org/ld4l_services/getty_lookup.jsp?uri={term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -31,7 +32,7 @@
31
32
  "url": {
32
33
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
33
34
  "@type": "IriTemplate",
34
- "template": "http://services.ld4l.org/ld4l_services/getty_batch.jsp?query={?query}&entity={?subauth}&maxRecords={?maxRecords}&lang={?lang}",
35
+ "template": "http://services.ld4l.org/ld4l_services/getty_batch.jsp?{?query}&{?entity}&{?maxRecords}&{?lang}",
35
36
  "variableRepresentation": "BasicRepresentation",
36
37
  "mapping": [
37
38
  {
@@ -42,7 +43,7 @@
42
43
  },
43
44
  {
44
45
  "@type": "IriTemplateMapping",
45
- "variable": "subauth",
46
+ "variable": "entity",
46
47
  "property": "hydra:freetextQuery",
47
48
  "required": false,
48
49
  "default": "Person+Organization"
@@ -65,7 +66,7 @@
65
66
  },
66
67
  "qa_replacement_patterns": {
67
68
  "query": "query",
68
- "subauth": "subauth"
69
+ "subauth": "entity"
69
70
  },
70
71
  "results": {
71
72
  "id_predicate": "http://purl.org/dc/terms/identifier",
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://id.loc.gov/authorities/{?subauth}/{?term_id}",
7
+ "template": "http://id.loc.gov/authorities/{subauth}/{term_id}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/loc_demographics_lookup.jsp?uri={?term_uri}",
7
+ "template": "http://services.ld4l.org/ld4l_services/loc_demographics_lookup.jsp?uri={term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -30,7 +31,7 @@
30
31
  "url": {
31
32
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
33
  "@type": "IriTemplate",
33
- "template": "http://services.ld4l.org/ld4l_services/loc_demographics_batch.jsp?query={?query}&maxRecords={?maxRecords}&lang={?lang}",
34
+ "template": "http://services.ld4l.org/ld4l_services/loc_demographics_batch.jsp?{?query}&{?maxRecords}&{?lang}",
34
35
  "variableRepresentation": "BasicRepresentation",
35
36
  "mapping": [
36
37
  {
@@ -1,9 +1,16 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
3
+ "prefixes": {
4
+ "madsrdf": "http://www.loc.gov/mads/rdf/v1#",
5
+ "schema": "http://www.w3.org/2000/01/rdf-schema#",
6
+ "skos": "http://www.w3.org/2004/02/skos/core#",
7
+ "loc": "http://id.loc.gov/vocabulary/identifiers/"
8
+ },
2
9
  "term": {
3
10
  "url": {
4
11
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
12
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/loc_genre_lookup.jsp?uri={?term_uri}",
13
+ "template": "http://services.ld4l.org/ld4l_services/loc_genre_lookup.jsp?uri={term_uri}",
7
14
  "variableRepresentation": "BasicRepresentation",
8
15
  "mapping": [
9
16
  {
@@ -32,7 +39,7 @@
32
39
  "url": {
33
40
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
34
41
  "@type": "IriTemplate",
35
- "template": "http://services.ld4l.org/ld4l_services/loc_genre_batch.jsp?query={?query}&entity={?subauth}&maxRecords={?maxRecords}&lang={?lang}&context={?context}",
42
+ "template": "http://services.ld4l.org/ld4l_services/loc_genre_batch.jsp?{?query}&{?entity}&{?maxRecords}&{?lang}&{?context}",
36
43
  "variableRepresentation": "BasicRepresentation",
37
44
  "mapping": [
38
45
  {
@@ -43,7 +50,7 @@
43
50
  },
44
51
  {
45
52
  "@type": "IriTemplateMapping",
46
- "variable": "subauth",
53
+ "variable": "entity",
47
54
  "property": "hydra:freetextQuery",
48
55
  "required": false,
49
56
  "default": ""
@@ -73,19 +80,70 @@
73
80
  },
74
81
  "qa_replacement_patterns": {
75
82
  "query": "query",
76
- "subauth": "subauth"
83
+ "subauth": "entity"
77
84
  },
78
85
  "results": {
86
+ "id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
79
87
  "label_predicate": "http://www.loc.gov/mads/rdf/v1#authoritativeLabel",
80
- "sort_predicate": "http://vivoweb.org/ontology/core#rank",
81
- "selector_predicate": "http://vivoweb.org/ontology/core#rank",
82
- "context": {
83
- "Alternate Label": "http://www.w3.org/2004/02/skos/core#altLabel",
84
- "Broader": "http://www.w3.org/2004/02/skos/core#broader",
85
- "Narrower": "http://www.w3.org/2004/02/skos/core#narrower",
86
- "Exact Match": "http://www.w3.org/2004/02/skos/core#exactMatch",
87
- "Note": "http://www.w3.org/2004/02/skos/core#note"
88
- }
88
+ "sort_predicate": "http://vivoweb.org/ontology/core#rank"
89
+ },
90
+ "context": {
91
+ "groups": {
92
+ "hierarchy": {
93
+ "group_label_i18n": "qa.linked_data.authority.locgenres_ld4l_cache.hierarchy",
94
+ "group_label_default": "Hierarchy"
95
+ }
96
+ },
97
+ "properties": [
98
+ {
99
+ "property_label_i18n": "qa.linked_data.authority.locgenres_ld4l_cache.authoritative_label",
100
+ "property_label_default": "Authoritative Label",
101
+ "ldpath": "madsrdf:authoritativeLabel :: xsd:string",
102
+ "selectable": true,
103
+ "drillable": false
104
+ },
105
+ {
106
+ "property_label_i18n": "qa.linked_data.authority.locgenres_ld4l_cache.alt_label",
107
+ "property_label_default": "Variant Label",
108
+ "ldpath": "skos:altLabel :: xsd:string",
109
+ "selectable": false,
110
+ "drillable": false
111
+ },
112
+ {
113
+ "group_id": "hierarchy",
114
+ "property_label_i18n": "qa.linked_data.authority.locgenres_ld4l_cache.narrower",
115
+ "property_label_default": "Narrower",
116
+ "ldpath": "skos:narrower :: xsd:string",
117
+ "selectable": true,
118
+ "drillable": true,
119
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
120
+ "expansion_id_ldpath": "loc:lccn ::xsd:string"
121
+ },
122
+ {
123
+ "group_id": "hierarchy",
124
+ "property_label_i18n": "qa.linked_data.authority.locgenres_ld4l_cache.broader",
125
+ "property_label_default": "Broader",
126
+ "ldpath": "skos:broader :: xsd:string",
127
+ "selectable": true,
128
+ "drillable": true,
129
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
130
+ "expansion_id_ldpath": "loc:lccn ::xsd:string"
131
+ },
132
+ {
133
+ "property_label_i18n": "qa.linked_data.authority.locgenres_ld4l_cache.exact_match",
134
+ "property_label_default": "Exact Match",
135
+ "ldpath": "skos:exactMatch :: xsd:string",
136
+ "selectable": false,
137
+ "drillable": false
138
+ },
139
+ {
140
+ "property_label_i18n": "qa.linked_data.authority.locgenres_ld4l_cache.note",
141
+ "property_label_default": "Note",
142
+ "ldpath": "skos:note :: xsd:string",
143
+ "selectable": false,
144
+ "drillable": false
145
+ }
146
+ ]
89
147
  },
90
148
  "subauthorities": {
91
149
  "person": "Person",
@@ -1,9 +1,15 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
3
+ "prefixes": {
4
+ "madsrdf": "http://www.loc.gov/mads/rdf/v1#",
5
+ "schema": "http://www.w3.org/2000/01/rdf-schema#",
6
+ "skos": "http://www.w3.org/2004/02/skos/core#"
7
+ },
2
8
  "term": {
3
9
  "url": {
4
10
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
11
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/loc_name_lookup.jsp?uri={?term_uri}",
12
+ "template": "http://services.ld4l.org/ld4l_services/loc_name_lookup.jsp?uri={term_uri}",
7
13
  "variableRepresentation": "BasicRepresentation",
8
14
  "mapping": [
9
15
  {
@@ -30,7 +36,7 @@
30
36
  "url": {
31
37
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
38
  "@type": "IriTemplate",
33
- "template": "http://services.ld4l.org/ld4l_services/loc_name_batch.jsp?query={?query}&maxRecords={?maxRecords}&entity={?subauth}&lang={?lang}",
39
+ "template": "http://services.ld4l.org/ld4l_services/loc_name_batch.jsp?{?query}&{?maxRecords}&{?entity}&{?lang}",
34
40
  "variableRepresentation": "BasicRepresentation",
35
41
  "mapping": [
36
42
  {
@@ -41,7 +47,7 @@
41
47
  },
42
48
  {
43
49
  "@type": "IriTemplateMapping",
44
- "variable": "subauth",
50
+ "variable": "entity",
45
51
  "property": "hydra:freetextQuery",
46
52
  "required": false,
47
53
  "default": ""
@@ -64,14 +70,82 @@
64
70
  },
65
71
  "qa_replacement_patterns": {
66
72
  "query": "query",
67
- "subauth": "subauth"
73
+ "subauth": "entity"
68
74
  },
69
75
  "results": {
70
- "label_predicate": "http://www.loc.gov/mads/rdf/v1#authoritativeLabel",
71
- "sort_predicate": "http://vivoweb.org/ontology/core#rank",
76
+ "id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
77
+ "label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
78
+ "sort_predicate": "http://vivoweb.org/ontology/core#rank"
79
+ },
72
80
  "context": {
73
- "RWO": "http://www.loc.gov/mads/rdf/v1#identifiesRWO"
74
- }
81
+ "groups": {
82
+ "dates": {
83
+ "group_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.dates",
84
+ "group_label_default": "Dates"
85
+ }
86
+ },
87
+ "properties": [
88
+ {
89
+ "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.authoritative_label",
90
+ "property_label_default": "Authoritative Label",
91
+ "ldpath": "madsrdf:authoritativeLabel :: xsd:string",
92
+ "selectable": true,
93
+ "drillable": false
94
+ },
95
+ {
96
+ "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.variant_label",
97
+ "property_label_default": "Variant Label",
98
+ "ldpath": "madsrdf:hasVariant/madsrdf:variantLabel :: xsd:string",
99
+ "selectable": false,
100
+ "drillable": false
101
+ },
102
+ {
103
+ "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.field_of_activity",
104
+ "property_label_default": "Field of Activity",
105
+ "ldpath": "madsrdf:fieldOfActivity/schema:label | madsrdf:fieldOfActivity/madsrdf:authoritativeLabel :: xsd:string",
106
+ "selectable": false,
107
+ "drillable": false
108
+ },
109
+ {
110
+ "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.occupation",
111
+ "property_label_default": "Occupation",
112
+ "ldpath": "madsrdf:occupation/madsrdf:authoritativeLabel :: xsd:string",
113
+ "selectable": false,
114
+ "drillable": false
115
+ },
116
+ {
117
+ "group_id": "dates",
118
+ "property_label_default": "Birth: ",
119
+ "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.birth_date",
120
+ "ldpath": "madsrdf:identifiesRWO/madsrdf:birthDate/schema:label :: xsd:string",
121
+ "selectable": false,
122
+ "drillable": false
123
+ },
124
+ {
125
+ "group_id": "dates",
126
+ "property_label_default": "Death: ",
127
+ "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.death_date",
128
+ "ldpath": "madsrdf:identifiesRWO/madsrdf:deathDate/schema:label :: xsd:string",
129
+ "selectable": false,
130
+ "drillable": false
131
+ },
132
+ {
133
+ "group_id": "dates",
134
+ "property_label_default": "Start: ",
135
+ "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.activity_state_date",
136
+ "ldpath": "madsrdf:identifiesRWO/madsrdf:activityStartDate/schema:label :: xsd:string",
137
+ "selectable": false,
138
+ "drillable": false
139
+ },
140
+ {
141
+ "group_id": "dates",
142
+ "property_label_default": "End: ",
143
+ "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.activity_end_date",
144
+ "ldpath": "madsrdf:identifiesRWO/madsrdf:activityEndDate/schema:label :: xsd:string",
145
+ "selectable": false,
146
+ "drillable": false
147
+ }
148
+ ]
75
149
  },
76
150
  "subauthorities": {
77
151
  "person": "Person",
@@ -86,4 +160,3 @@
86
160
  }
87
161
  }
88
162
  }
89
-
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/loc_performance_lookup.jsp?uri={?term_uri}",
7
+ "template": "http://services.ld4l.org/ld4l_services/loc_performance_lookup.jsp?uri={term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -30,7 +31,7 @@
30
31
  "url": {
31
32
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
33
  "@type": "IriTemplate",
33
- "template": "http://services.ld4l.org/ld4l_services/loc_performance_batch.jsp?query={?query}&maxRecords={?maxRecords}&lang={?lang}",
34
+ "template": "http://services.ld4l.org/ld4l_services/loc_performance_batch.jsp?{?query}&{?maxRecords}&{?lang}",
34
35
  "variableRepresentation": "BasicRepresentation",
35
36
  "mapping": [
36
37
  {
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/loc_subject_lookup.jsp?uri={?term_uri}",
7
+ "template": "http://services.ld4l.org/ld4l_services/loc_subject_lookup.jsp?uri={term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -30,7 +31,7 @@
30
31
  "url": {
31
32
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
33
  "@type": "IriTemplate",
33
- "template": "http://services.ld4l.org/ld4l_services/loc_subject_batch.jsp?query={?query}&entity={?subauth}&maxRecords={?maxRecords}&lang={?lang}",
34
+ "template": "http://services.ld4l.org/ld4l_services/loc_subject_batch.jsp?{?query}&{?entity}&{?maxRecords}&{?lang}",
34
35
  "variableRepresentation": "BasicRepresentation",
35
36
  "mapping": [
36
37
  {
@@ -41,7 +42,7 @@
41
42
  },
42
43
  {
43
44
  "@type": "IriTemplateMapping",
44
- "variable": "subauth",
45
+ "variable": "entity",
45
46
  "property": "hydra:freetextQuery",
46
47
  "required": false,
47
48
  "default": ""
@@ -64,7 +65,7 @@
64
65
  },
65
66
  "qa_replacement_patterns": {
66
67
  "query": "query",
67
- "subauth": "subauth"
68
+ "subauth": "entity"
68
69
  },
69
70
  "results": {
70
71
  "label_predicate": "http://www.loc.gov/mads/rdf/v1#authoritativeLabel",
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/mesh_lookup.jsp?uri={?term_uri}",
7
+ "template": "http://services.ld4l.org/ld4l_services/mesh_lookup.jsp?uri={term_uri}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -30,7 +31,7 @@
30
31
  "url": {
31
32
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
32
33
  "@type": "IriTemplate",
33
- "template": "http://services.ld4l.org/ld4l_services/mesh_batch.jsp?query={?query}&maxRecords={?maxRecords}&lang={?lang}",
34
+ "template": "http://services.ld4l.org/ld4l_services/mesh_batch.jsp?{?query}&{?maxRecords}&{?lang}",
34
35
  "variableRepresentation": "BasicRepresentation",
35
36
  "mapping": [
36
37
  {
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "{?term_uri}.rdf",
7
+ "template": "{term_uri}.rdf",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -1,9 +1,13 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
3
+ "prefixes": {
4
+ "skos": "http://www.w3.org/2004/02/skos/core#"
5
+ },
2
6
  "term": {
3
7
  "url": {
4
8
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
9
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/nalt_lookup.jsp?uri={?term_uri}",
10
+ "template": "http://services.ld4l.org/ld4l_services/nalt_lookup.jsp?uri={term_uri}",
7
11
  "variableRepresentation": "BasicRepresentation",
8
12
  "mapping": [
9
13
  {
@@ -31,7 +35,7 @@
31
35
  "url": {
32
36
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
33
37
  "@type": "IriTemplate",
34
- "template": "http://services.ld4l.org/ld4l_services/nalt_batch.jsp?query={?query}&maxRecords={?maxRecords}&entity={?subauth}&lang={?lang}",
38
+ "template": "http://services.ld4l.org/ld4l_services/nalt_batch.jsp?{?query}&{?maxRecords}&{?entity}&{?lang}",
35
39
  "variableRepresentation": "BasicRepresentation",
36
40
  "mapping": [
37
41
  {
@@ -42,7 +46,7 @@
42
46
  },
43
47
  {
44
48
  "@type": "IriTemplateMapping",
45
- "variable": "subauth",
49
+ "variable": "entity",
46
50
  "property": "hydra:freetextQuery",
47
51
  "required": false,
48
52
  "default": ""
@@ -65,12 +69,49 @@
65
69
  },
66
70
  "qa_replacement_patterns": {
67
71
  "query": "query",
68
- "subauth": "subauth"
72
+ "subauth": "entity"
69
73
  },
70
74
  "results": {
71
75
  "label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
72
76
  "sort_predicate": "http://vivoweb.org/ontology/core#rank"
73
77
  },
78
+ "context": {
79
+ "groups": {
80
+ "hierarchy": {
81
+ "group_label_i18n": "qa.linked_data.authority.nalt_ld4l_cache.hierarchy",
82
+ "group_label_default": "Hierarchy"
83
+ }
84
+ },
85
+ "properties": [
86
+ {
87
+ "property_label_i18n": "qa.linked_data.authority.nalt_ld4l_cache.authoritative_label",
88
+ "property_label_default": "Authoritative Label",
89
+ "ldpath": "skos:prefLabel :: xsd:string",
90
+ "selectable": true,
91
+ "drillable": false
92
+ },
93
+ {
94
+ "group_id": "hierarchy",
95
+ "property_label_i18n": "qa.linked_data.authority.nalt_ld4l_cache.narrower",
96
+ "property_label_default": "Narrower",
97
+ "ldpath": "skos:narrower :: xsd:string",
98
+ "selectable": true,
99
+ "drillable": true,
100
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
101
+ "expansion_id_ldpath": "loc:lccn ::xsd:string"
102
+ },
103
+ {
104
+ "group_id": "hierarchy",
105
+ "property_label_i18n": "qa.linked_data.authority.nalt_ld4l_cache.broader",
106
+ "property_label_default": "Broader",
107
+ "ldpath": "skos:broader :: xsd:string",
108
+ "selectable": true,
109
+ "drillable": true,
110
+ "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
111
+ "expansion_id_ldpath": "loc:lccn ::xsd:string"
112
+ }
113
+ ]
114
+ },
74
115
  "subauthorities": {
75
116
  "person": "Person",
76
117
  "organization": "Organization",
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://id.worldcat.org/fast/{?term_id}",
7
+ "template": "http://id.worldcat.org/fast/{term_id}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -29,7 +30,7 @@
29
30
  "url": {
30
31
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
31
32
  "@type": "IriTemplate",
32
- "template": "http://experimental.worldcat.org/fast/search?query={?subauth}+all+%22{?query}%22&sortKeys=usage&maximumRecords={?maximumRecords}",
33
+ "template": "http://experimental.worldcat.org/fast/search?query={subauth}+all+%22{query}%22&sortKeys=usage&maximumRecords={maxRecords}",
33
34
  "variableRepresentation": "BasicRepresentation",
34
35
  "mapping": [
35
36
  {
@@ -47,7 +48,7 @@
47
48
  },
48
49
  {
49
50
  "@type": "IriTemplateMapping",
50
- "variable": "maximumRecords",
51
+ "variable": "maxRecords",
51
52
  "property": "hydra:freetextQuery",
52
53
  "required": false,
53
54
  "default": "20"
@@ -1,9 +1,10 @@
1
1
  {
2
+ "QA_CONFIG_VERSION": "2.0",
2
3
  "term": {
3
4
  "url": {
4
5
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
5
6
  "@type": "IriTemplate",
6
- "template": "http://services.ld4l.org/ld4l_services/fast_lookup.jsp?uri=http%3A%2F%2Fid%2Eworldcat%2Eorg%2Ffast%2F{?term_id}",
7
+ "template": "http://services.ld4l.org/ld4l_services/fast_lookup.jsp?uri={term_id}",
7
8
  "variableRepresentation": "BasicRepresentation",
8
9
  "mapping": [
9
10
  {
@@ -29,7 +30,7 @@
29
30
  "url": {
30
31
  "@context": "http://www.w3.org/ns/hydra/context.jsonld",
31
32
  "@type": "IriTemplate",
32
- "template": "http://services.ld4l.org/ld4l_services/fast_batch.jsp?query={?query}&entity={?subauth}&maxRecords={?maxRecords}&lang={?lang}",
33
+ "template": "http://services.ld4l.org/ld4l_services/fast_batch.jsp?{?query}&{?entity}&{?maxRecords}&{?lang}",
33
34
  "variableRepresentation": "BasicRepresentation",
34
35
  "mapping": [
35
36
  {
@@ -40,7 +41,7 @@
40
41
  },
41
42
  {
42
43
  "@type": "IriTemplateMapping",
43
- "variable": "subauth",
44
+ "variable": "entity",
44
45
  "property": "hydra:freetextQuery",
45
46
  "required": false,
46
47
  "default": ""
@@ -63,7 +64,7 @@
63
64
  },
64
65
  "qa_replacement_patterns": {
65
66
  "query": "query",
66
- "subauth": "subauth"
67
+ "subauth": "entity"
67
68
  },
68
69
  "results": {
69
70
  "id_predicate": "http://purl.org/dc/terms/identifier",
@@ -24,6 +24,7 @@ search:
24
24
  -
25
25
  query: Cayuga
26
26
  subauth: road
27
+ result_size: 150
27
28
  -
28
29
  query: Cayuga
29
30
  subauth: spot
@@ -10,18 +10,18 @@ search:
10
10
  -
11
11
  query: film
12
12
  subauth: Activities__Disciplines
13
- result_size: 100
13
+ result_size: 90
14
14
  -
15
15
  query: exhibitions
16
16
  subauth: Activities__Events
17
17
  -
18
18
  query: inspection
19
19
  subauth: Activities__Functions
20
- result_size: 100
20
+ result_size: 75
21
21
  -
22
22
  query: public speaking
23
23
  subauth: Activities__Physical_and_Mental
24
- result_size: 100
24
+ result_size: 80
25
25
  -
26
26
  query: transporting
27
27
  subauth: Activities__Processes_and_Techniques
@@ -34,25 +34,27 @@ search:
34
34
  -
35
35
  query: funding agencies
36
36
  subauth: Agents__Organizations
37
- result_size: 100
37
+ result_size: 80
38
38
  -
39
39
  query: domestic
40
40
  subauth: Agents__People
41
+ result_size: 170
41
42
  -
42
43
  query: social science
43
44
  subauth: Associated_Concepts
44
- result_size: 100
45
+ result_size: 90
45
46
  -
46
47
  query: air quality
47
48
  subauth: Associated_Concepts__Associated_Concepts
49
+ result_size: 160
48
50
  -
49
51
  query: brand name additives
50
52
  subauth: Brand_Names
51
- result_size: 100
53
+ result_size: 80
52
54
  -
53
55
  query: tyvek
54
56
  subauth: Brand_Names__Brand_Names
55
- result_size: 100
57
+ result_size: 70
56
58
  -
57
59
  query: copper
58
60
  subauth: Materials
@@ -65,51 +67,54 @@ search:
65
67
  -
66
68
  query: backstops
67
69
  subauth: Objects__Built_Environment
68
- result_size: 100
70
+ result_size: 70
69
71
  -
70
72
  query: reveals
71
73
  subauth: Objects__Components
72
- result_size: 100
74
+ result_size: 70
73
75
  -
74
76
  query: Boston rocker
75
77
  subauth: Objects__Furnishings_and_Equipment
76
- result_size: 100
78
+ result_size: 80
77
79
  -
78
80
  query: natural objects
79
81
  subauth: Objects__Object_Genres
80
- result_size: 100
82
+ result_size: 80
81
83
  -
82
84
  query: libraries
83
85
  subauth: Objects__Object_Groupings and Systems
86
+ result_size: 180
84
87
  -
85
88
  query: admission ticket
86
89
  subauth: Objects__Visual_and_Verbal_Communication
87
- result_size: 100
90
+ result_size: 80
88
91
  -
89
92
  query: density
90
93
  subauth: Physical_Attributes
91
- result_size: 100
94
+ result_size: 70
92
95
  -
93
96
  query: density
94
97
  subauth: Physical_Attributes__Attributes_and_Properties
95
- result_size: 100
98
+ result_size: 70
96
99
  -
97
100
  query: pearl
98
101
  subauth: Physical_Attributes__Color
99
- result_size: 100
102
+ result_size: 80
100
103
  -
101
104
  query: cracks
102
105
  subauth: Physical_Attributes__Conditions_and_Effects
103
106
  -
104
107
  query: compass roses
105
108
  subauth: Physical_Attributes__Design_Elements
106
- result_size: 100
109
+ result_size: 80
107
110
  -
108
111
  query: Contemporary
109
112
  subauth: Styles_and_Periods
113
+ result_size: 190
110
114
  -
111
115
  query: Contemporary
112
116
  subauth: Styles_and_Periods__Styles_and_Periods
117
+ result_size: 190
113
118
  term:
114
119
  -
115
120
  identifier: 'http://vocab.getty.edu/aat/300265730'
@@ -4,7 +4,6 @@ authority:
4
4
  search:
5
5
  -
6
6
  query: workers
7
-
8
7
  -
9
8
  query: Biologists
10
9
  position: 1
@@ -35,7 +34,6 @@ search:
35
34
  subject_uri: "http://id.loc.gov/authorities/demographicTerms/dg2015060330"
36
35
  replacements:
37
36
  maxRecords: '15'
38
-
39
37
  -
40
38
  query: African Americans
41
39
  position: 5
@@ -51,4 +49,4 @@ search:
51
49
  term:
52
50
  -
53
51
  identifier: 'http://id.loc.gov/authorities/demographicTerms/dg2015060460'
54
- ...
52
+
@@ -27,4 +27,4 @@ search:
27
27
  subauth: work
28
28
  term:
29
29
  -
30
- identifier: '1914919'
30
+ identifier: 'http://id.worldcat.org/fast/1914919'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module QaServer
3
- VERSION = '1.2.3'
3
+ VERSION = '2.0.0'
4
4
  end
data/qa_server.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'rails', '~> 5.0' # Keep in sync with version supported by Hyrax
26
26
 
27
27
  # Required gems for QA and linked data access
28
- spec.add_development_dependency 'qa' # loaded specific branch in Gemfile
28
+ spec.add_development_dependency 'qa', '~> 4.0'
29
29
  spec.add_development_dependency 'linkeddata'
30
30
 
31
31
  # Produces dashboard charts on monitor status page
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.3
4
+ version: 2.0.0
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: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: qa
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '4.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: linkeddata
43
43
  requirement: !ruby/object:Gem::Requirement