qa_server 0.1.99
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +71 -0
- data/Gemfile +55 -0
- data/Gemfile.lock +411 -0
- data/LICENSE +201 -0
- data/README.md +187 -0
- data/Rakefile +18 -0
- data/app/assets/images/qa_server/LD4L-bg.png +0 -0
- data/app/assets/images/qa_server/cornell-reduced-white.svg +160 -0
- data/app/assets/images/qa_server/iowa-logo.png +0 -0
- data/app/assets/images/qa_server/samvera-fall-font1-1000w-light.png +0 -0
- data/app/assets/javascripts/qa_server.js +0 -0
- data/app/assets/stylesheets/qa_server/_authorities.scss +0 -0
- data/app/assets/stylesheets/qa_server/_check-status.scss +72 -0
- data/app/assets/stylesheets/qa_server/_footer.scss +20 -0
- data/app/assets/stylesheets/qa_server/_header.scss +51 -0
- data/app/assets/stylesheets/qa_server/_home-page.scss +15 -0
- data/app/assets/stylesheets/qa_server/_monitor-status.scss +13 -0
- data/app/assets/stylesheets/qa_server/_qa_server.scss +36 -0
- data/app/assets/stylesheets/qa_server/_styles.scss +27 -0
- data/app/assets/stylesheets/qa_server/_usage.scss +0 -0
- data/app/controllers/qa_server/authority_list_controller.rb +14 -0
- data/app/controllers/qa_server/authority_validation_controller.rb +77 -0
- data/app/controllers/qa_server/check_status_controller.rb +38 -0
- data/app/controllers/qa_server/homepage_controller.rb +8 -0
- data/app/controllers/qa_server/monitor_status_controller.rb +79 -0
- data/app/controllers/qa_server/usage_controller.rb +8 -0
- data/app/loggers/qa_server/scenario_logger.rb +84 -0
- data/app/models/qa_server/authority_scenario.rb +35 -0
- data/app/models/qa_server/authority_status.rb +18 -0
- data/app/models/qa_server/authority_status_failure.rb +7 -0
- data/app/models/qa_server/scenarios.rb +71 -0
- data/app/models/qa_server/search_scenario.rb +58 -0
- data/app/models/qa_server/term_scenario.rb +50 -0
- data/app/presenters/qa_server/authority_list_presenter.rb +22 -0
- data/app/presenters/qa_server/check_status_presenter.rb +96 -0
- data/app/presenters/qa_server/monitor_status_presenter.rb +108 -0
- data/app/services/qa_server/authority_lister_service.rb +31 -0
- data/app/services/qa_server/authority_loader_service.rb +38 -0
- data/app/services/qa_server/authority_validator_service.rb +41 -0
- data/app/services/qa_server/database_migrator.rb +70 -0
- data/app/services/qa_server/scenarios_loader_service.rb +57 -0
- data/app/validators/qa_server/scenario_validator.rb +134 -0
- data/app/validators/qa_server/search_scenario_validator.rb +84 -0
- data/app/validators/qa_server/term_scenario_validator.rb +42 -0
- data/app/views/layouts/qa_server.html.erb +65 -0
- data/app/views/qa_server/authority_list/index.html.erb +27 -0
- data/app/views/qa_server/check_status/index.html.erb +104 -0
- data/app/views/qa_server/homepage/index.html.erb +10 -0
- data/app/views/qa_server/monitor_status/index.html.erb +78 -0
- data/app/views/qa_server/usage/index.html.erb +106 -0
- data/app/views/shared/_footer.html.erb +24 -0
- data/config/locales/qa_server.en.yml +68 -0
- data/config/routes.rb +12 -0
- data/lib/generators/qa_server/assets_generator.rb +35 -0
- data/lib/generators/qa_server/config_generator.rb +31 -0
- data/lib/generators/qa_server/install_generator.rb +60 -0
- data/lib/generators/qa_server/models_generator.rb +18 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_direct.json +69 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_ld4l_cache.json +85 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_direct.json +36 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_ld4l_cache.json +83 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_direct.json +68 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_ld4l_cache.json +102 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_aat_ld4l_cache.json +109 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json +72 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_ulan_ld4l_cache.json +81 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/loc_direct.json +47 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locgenres_ld4l_cache.json +99 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_ld4l_cache.json +89 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locsubjects_ld4l_cache.json +82 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/mesh_ld4l_cache.json +70 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_direct.json +32 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_ld4l_cache.json +84 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_direct.json +81 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json +86 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_direct_validation.yml +6 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_direct_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_ld4l_cache_validation.yml +41 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_aat_ld4l_cache_validation.yml +115 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_tgn_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_ulan_ld4l_cache_validation.yml +15 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_direct_validation.yml +25 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/loc_validation.yml +22 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locgenres_ld4l_cache_validation.yml +99 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_ld4l_cache_validation.yml +27 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locsubjects_ld4l_cache_validation.yml +27 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/mesh_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_direct_validation.yml +6 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_ld4l_cache_validation.yml +9 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclc_fast_validation.yml +58 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_direct_validation.yml +58 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_ld4l_cache_validation.yml +30 -0
- data/lib/generators/qa_server/templates/config/locales/qa_server.en.yml +9 -0
- data/lib/generators/qa_server/templates/db/migrate/20180313045551_create_cron_authority_status.rb.erb +9 -0
- data/lib/generators/qa_server/templates/db/migrate/20180508045549_rename_cron_authority_status_to_authority_status.rb.erb +5 -0
- data/lib/generators/qa_server/templates/db/migrate/20180508045551_create_authority_status_failure.rb.erb +15 -0
- data/lib/generators/qa_server/templates/qa_server.scss +5 -0
- data/lib/qa_server/engine.rb +19 -0
- data/lib/qa_server/version.rb +3 -0
- data/lib/qa_server.rb +6 -0
- data/lib/tasks/install.rake +8 -0
- data/lib/tasks/qa_server_tasks.rake +4 -0
- data/qa_server.gemspec +39 -0
- data/spec/.gitignore +1 -0
- data/spec/rails_helper.rb +2 -0
- data/spec/spec_helper.rb +283 -0
- data/spec/test_app_templates/Gemfile.extra +5 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +15 -0
- data/tasks/qa_server_dev.rake +16 -0
- metadata +275 -0
data/lib/generators/qa_server/templates/config/authorities/linked_data/locsubjects_ld4l_cache.json
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
{
|
2
|
+
"term": {
|
3
|
+
"url": {
|
4
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
5
|
+
"@type": "IriTemplate",
|
6
|
+
"template": "http://services.ld4l.org/ld4l_services/loc_subject_lookup.jsp?uri={?term_uri}",
|
7
|
+
"variableRepresentation": "BasicRepresentation",
|
8
|
+
"mapping": [
|
9
|
+
{
|
10
|
+
"@type": "IriTemplateMapping",
|
11
|
+
"variable": "term_uri",
|
12
|
+
"property": "hydra:freetextQuery",
|
13
|
+
"required": true,
|
14
|
+
"encode": true
|
15
|
+
}
|
16
|
+
]
|
17
|
+
},
|
18
|
+
"qa_replacement_patterns": {
|
19
|
+
"term_id": "term_uri"
|
20
|
+
},
|
21
|
+
"term_id": "URI",
|
22
|
+
"results": {
|
23
|
+
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
|
24
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
25
|
+
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
|
26
|
+
"sameas_predicate": "http://www.w3.org/2004/02/skos/core#exactMatch"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"search": {
|
30
|
+
"url": {
|
31
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
32
|
+
"@type": "IriTemplate",
|
33
|
+
"template": "http://services.ld4l.org/ld4l_services/loc_subject_batch.jsp?query={?query}&entity={?subauth}&maxRecords={?maxRecords}&lang={?lang}",
|
34
|
+
"variableRepresentation": "BasicRepresentation",
|
35
|
+
"mapping": [
|
36
|
+
{
|
37
|
+
"@type": "IriTemplateMapping",
|
38
|
+
"variable": "query",
|
39
|
+
"property": "hydra:freetextQuery",
|
40
|
+
"required": true
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"@type": "IriTemplateMapping",
|
44
|
+
"variable": "subauth",
|
45
|
+
"property": "hydra:freetextQuery",
|
46
|
+
"required": false,
|
47
|
+
"default": ""
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"@type": "IriTemplateMapping",
|
51
|
+
"variable": "maxRecords",
|
52
|
+
"property": "hydra:freetextQuery",
|
53
|
+
"required": false,
|
54
|
+
"default": "20"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"@type": "IriTemplateMapping",
|
58
|
+
"variable": "lang",
|
59
|
+
"property": "hydra:freetextQuery",
|
60
|
+
"required": false,
|
61
|
+
"default": "en"
|
62
|
+
}
|
63
|
+
]
|
64
|
+
},
|
65
|
+
"qa_replacement_patterns": {
|
66
|
+
"query": "query",
|
67
|
+
"subauth": "subauth"
|
68
|
+
},
|
69
|
+
"results": {
|
70
|
+
"label_predicate": "http://www.loc.gov/mads/rdf/v1#authoritativeLabel",
|
71
|
+
"sort_predicate": "http://vivoweb.org/ontology/core#rank"
|
72
|
+
},
|
73
|
+
"subauthorities": {
|
74
|
+
"person": "Person",
|
75
|
+
"organization": "Organization",
|
76
|
+
"place": "Place",
|
77
|
+
"intangible": "Intangible",
|
78
|
+
"geocoordinates": "GeoCoordinates",
|
79
|
+
"work": "Work"
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
{
|
2
|
+
"term": {
|
3
|
+
"url": {
|
4
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
5
|
+
"@type": "IriTemplate",
|
6
|
+
"template": "http://services.ld4l.org/ld4l_services/mesh_lookup.jsp?uri={?term_uri}",
|
7
|
+
"variableRepresentation": "BasicRepresentation",
|
8
|
+
"mapping": [
|
9
|
+
{
|
10
|
+
"@type": "IriTemplateMapping",
|
11
|
+
"variable": "term_uri",
|
12
|
+
"property": "hydra:freetextQuery",
|
13
|
+
"required": true
|
14
|
+
}
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"qa_replacement_patterns": {
|
18
|
+
"term_id": "term_uri"
|
19
|
+
},
|
20
|
+
"term_id": "ID",
|
21
|
+
"results": {
|
22
|
+
"id_predicate": "http://www.w3.org/2004/02/skos/core#notation",
|
23
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
24
|
+
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
|
25
|
+
"broader_predicate": "http://purl.bioontology.org/ontology/MESH/mapped_to",
|
26
|
+
"narrower_predicate": "http://purl.bioontology.org/ontology/MESH/mapped_from"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"search": {
|
30
|
+
"url": {
|
31
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
32
|
+
"@type": "IriTemplate",
|
33
|
+
"template": "http://services.ld4l.org/ld4l_services/mesh_batch.jsp?query={?query}&maxRecords={?maxRecords}&lang={?lang}",
|
34
|
+
"variableRepresentation": "BasicRepresentation",
|
35
|
+
"mapping": [
|
36
|
+
{
|
37
|
+
"@type": "IriTemplateMapping",
|
38
|
+
"variable": "query",
|
39
|
+
"property": "hydra:freetextQuery",
|
40
|
+
"required": true
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"@type": "IriTemplateMapping",
|
44
|
+
"variable": "maxRecords",
|
45
|
+
"property": "hydra:freetextQuery",
|
46
|
+
"required": false,
|
47
|
+
"default": "20"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"@type": "IriTemplateMapping",
|
51
|
+
"variable": "lang",
|
52
|
+
"property": "hydra:freetextQuery",
|
53
|
+
"required": false,
|
54
|
+
"default": "en"
|
55
|
+
}
|
56
|
+
]
|
57
|
+
},
|
58
|
+
"qa_replacement_patterns": {
|
59
|
+
"query": "query"
|
60
|
+
},
|
61
|
+
"results": {
|
62
|
+
"id_predicate": "http://www.w3.org/2004/02/skos/core#notation",
|
63
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
64
|
+
"sort_predicate": "http://vivoweb.org/ontology/core#rank",
|
65
|
+
"context": {
|
66
|
+
"Definition": "http://www.w3.org/2004/02/skos/core#definition"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"term": {
|
3
|
+
"url": {
|
4
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
5
|
+
"@type": "IriTemplate",
|
6
|
+
"template": "{?term_uri}.rdf",
|
7
|
+
"variableRepresentation": "BasicRepresentation",
|
8
|
+
"mapping": [
|
9
|
+
{
|
10
|
+
"@type": "IriTemplateMapping",
|
11
|
+
"variable": "term_uri",
|
12
|
+
"property": "hydra:freetextQuery",
|
13
|
+
"required": true,
|
14
|
+
"encode": false
|
15
|
+
}
|
16
|
+
]
|
17
|
+
},
|
18
|
+
"qa_replacement_patterns": {
|
19
|
+
"term_id": "term_uri"
|
20
|
+
},
|
21
|
+
"term_id": "URI",
|
22
|
+
"language": ["en"],
|
23
|
+
"results": {
|
24
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
25
|
+
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
|
26
|
+
"broader_predicate": "http://www.w3.org/2004/02/skos/core#broader",
|
27
|
+
"narrower_predicate": "http://www.w3.org/2004/02/skos/core#narrower",
|
28
|
+
"sameas_predicate": "http://www.w3.org/2004/02/skos/core#exactMatch"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"search": {}
|
32
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
{
|
2
|
+
"term": {
|
3
|
+
"url": {
|
4
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
5
|
+
"@type": "IriTemplate",
|
6
|
+
"template": "http://services.ld4l.org/ld4l_services/nalt_lookup.jsp?uri={?term_uri}",
|
7
|
+
"variableRepresentation": "BasicRepresentation",
|
8
|
+
"mapping": [
|
9
|
+
{
|
10
|
+
"@type": "IriTemplateMapping",
|
11
|
+
"variable": "term_uri",
|
12
|
+
"property": "hydra:freetextQuery",
|
13
|
+
"required": true,
|
14
|
+
"encode": true
|
15
|
+
}
|
16
|
+
]
|
17
|
+
},
|
18
|
+
"qa_replacement_patterns": {
|
19
|
+
"term_id": "term_uri"
|
20
|
+
},
|
21
|
+
"term_id": "URI",
|
22
|
+
"results": {
|
23
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
24
|
+
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
|
25
|
+
"broader_predicate": "http://www.w3.org/2004/02/skos/core#broader",
|
26
|
+
"narrower_predicate": "http://www.w3.org/2004/02/skos/core#narrower",
|
27
|
+
"sameas_predicate": "http://www.w3.org/2004/02/skos/core#exactMatch"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"search": {
|
31
|
+
"url": {
|
32
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
33
|
+
"@type": "IriTemplate",
|
34
|
+
"template": "http://services.ld4l.org/ld4l_services/nalt_batch.jsp?query={?query}&maxRecords={?maxRecords}&entity={?subauth}&lang={?lang}",
|
35
|
+
"variableRepresentation": "BasicRepresentation",
|
36
|
+
"mapping": [
|
37
|
+
{
|
38
|
+
"@type": "IriTemplateMapping",
|
39
|
+
"variable": "query",
|
40
|
+
"property": "hydra:freetextQuery",
|
41
|
+
"required": true
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"@type": "IriTemplateMapping",
|
45
|
+
"variable": "subauth",
|
46
|
+
"property": "hydra:freetextQuery",
|
47
|
+
"required": false,
|
48
|
+
"default": ""
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"@type": "IriTemplateMapping",
|
52
|
+
"variable": "maxRecords",
|
53
|
+
"property": "hydra:freetextQuery",
|
54
|
+
"required": false,
|
55
|
+
"default": "20"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"@type": "IriTemplateMapping",
|
59
|
+
"variable": "lang",
|
60
|
+
"property": "hydra:freetextQuery",
|
61
|
+
"required": false,
|
62
|
+
"default": "en"
|
63
|
+
}
|
64
|
+
]
|
65
|
+
},
|
66
|
+
"qa_replacement_patterns": {
|
67
|
+
"query": "query",
|
68
|
+
"subauth": "subauth"
|
69
|
+
},
|
70
|
+
"results": {
|
71
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
72
|
+
"sort_predicate": "http://vivoweb.org/ontology/core#rank"
|
73
|
+
},
|
74
|
+
"subauthorities": {
|
75
|
+
"person": "Person",
|
76
|
+
"organization": "Organization",
|
77
|
+
"place": "Place",
|
78
|
+
"intangible": "Intangible",
|
79
|
+
"geocoordinates": "GeoCoordinates",
|
80
|
+
"work": "Work"
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
@@ -0,0 +1,81 @@
|
|
1
|
+
{
|
2
|
+
"term": {
|
3
|
+
"url": {
|
4
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
5
|
+
"@type": "IriTemplate",
|
6
|
+
"template": "http://id.worldcat.org/fast/{?term_id}",
|
7
|
+
"variableRepresentation": "BasicRepresentation",
|
8
|
+
"mapping": [
|
9
|
+
{
|
10
|
+
"@type": "IriTemplateMapping",
|
11
|
+
"variable": "term_id",
|
12
|
+
"property": "hydra:freetextQuery",
|
13
|
+
"required": true
|
14
|
+
}
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"qa_replacement_patterns": {
|
18
|
+
"term_id": "term_id"
|
19
|
+
},
|
20
|
+
"term_id": "ID",
|
21
|
+
"results": {
|
22
|
+
"id_predicate": "http://purl.org/dc/terms/identifier",
|
23
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
24
|
+
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
|
25
|
+
"sameas_predicate": "http://schema.org/sameAs"
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"search": {
|
29
|
+
"url": {
|
30
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
31
|
+
"@type": "IriTemplate",
|
32
|
+
"template": "http://experimental.worldcat.org/fast/search?query={?subauth}+all+%22{?query}%22&sortKeys=usage&maximumRecords={?maximumRecords}",
|
33
|
+
"variableRepresentation": "BasicRepresentation",
|
34
|
+
"mapping": [
|
35
|
+
{
|
36
|
+
"@type": "IriTemplateMapping",
|
37
|
+
"variable": "query",
|
38
|
+
"property": "hydra:freetextQuery",
|
39
|
+
"required": true
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"@type": "IriTemplateMapping",
|
43
|
+
"variable": "subauth",
|
44
|
+
"property": "hydra:freetextQuery",
|
45
|
+
"required": false,
|
46
|
+
"default": "cql.any"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"@type": "IriTemplateMapping",
|
50
|
+
"variable": "maximumRecords",
|
51
|
+
"property": "hydra:freetextQuery",
|
52
|
+
"required": false,
|
53
|
+
"default": "20"
|
54
|
+
}
|
55
|
+
]
|
56
|
+
},
|
57
|
+
"qa_replacement_patterns": {
|
58
|
+
"query": "query",
|
59
|
+
"subauth": "subauth"
|
60
|
+
},
|
61
|
+
"results": {
|
62
|
+
"id_predicate": "http://purl.org/dc/terms/identifier",
|
63
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
64
|
+
"sort_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
|
65
|
+
},
|
66
|
+
"subauthorities": {
|
67
|
+
"topic": "oclc.topic",
|
68
|
+
"geocoordinates": "oclc.geographic",
|
69
|
+
"geographic": "oclc.geographic",
|
70
|
+
"event_name": "oclc.eventName",
|
71
|
+
"person": "oclc.personalName",
|
72
|
+
"personal_name": "oclc.personalName",
|
73
|
+
"organization": "oclc.corporateName",
|
74
|
+
"corporate_name": "oclc.corporateName",
|
75
|
+
"uniform_title": "oclc.uniformTitle",
|
76
|
+
"period": "oclc.period",
|
77
|
+
"form": "oclc.form",
|
78
|
+
"alt_lc": "oclc.altlc"
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
{
|
2
|
+
"term": {
|
3
|
+
"url": {
|
4
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
5
|
+
"@type": "IriTemplate",
|
6
|
+
"template": "http://services.ld4l.org/ld4l_services/fast_lookup.jsp?uri=http%3A%2F%2Fid%2Eworldcat%2Eorg%2Ffast%2F{?term_id}",
|
7
|
+
"variableRepresentation": "BasicRepresentation",
|
8
|
+
"mapping": [
|
9
|
+
{
|
10
|
+
"@type": "IriTemplateMapping",
|
11
|
+
"variable": "term_id",
|
12
|
+
"property": "hydra:freetextQuery",
|
13
|
+
"required": true
|
14
|
+
}
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"qa_replacement_patterns": {
|
18
|
+
"term_id": "term_id"
|
19
|
+
},
|
20
|
+
"term_id": "ID",
|
21
|
+
"results": {
|
22
|
+
"id_predicate": "http://purl.org/dc/terms/identifier",
|
23
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
24
|
+
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
|
25
|
+
"sameas_predicate": "http://schema.org/sameAs"
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"search": {
|
29
|
+
"url": {
|
30
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
31
|
+
"@type": "IriTemplate",
|
32
|
+
"template": "http://services.ld4l.org/ld4l_services/fast_batch.jsp?query={?query}&entity={?subauth}&maxRecords={?maxRecords}&lang={?lang}",
|
33
|
+
"variableRepresentation": "BasicRepresentation",
|
34
|
+
"mapping": [
|
35
|
+
{
|
36
|
+
"@type": "IriTemplateMapping",
|
37
|
+
"variable": "query",
|
38
|
+
"property": "hydra:freetextQuery",
|
39
|
+
"required": true
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"@type": "IriTemplateMapping",
|
43
|
+
"variable": "subauth",
|
44
|
+
"property": "hydra:freetextQuery",
|
45
|
+
"required": false,
|
46
|
+
"default": ""
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"@type": "IriTemplateMapping",
|
50
|
+
"variable": "maxRecords",
|
51
|
+
"property": "hydra:freetextQuery",
|
52
|
+
"required": false,
|
53
|
+
"default": "20"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"@type": "IriTemplateMapping",
|
57
|
+
"variable": "lang",
|
58
|
+
"property": "hydra:freetextQuery",
|
59
|
+
"required": false,
|
60
|
+
"default": "en"
|
61
|
+
}
|
62
|
+
]
|
63
|
+
},
|
64
|
+
"qa_replacement_patterns": {
|
65
|
+
"query": "query",
|
66
|
+
"subauth": "subauth"
|
67
|
+
},
|
68
|
+
"results": {
|
69
|
+
"id_predicate": "http://purl.org/dc/terms/identifier",
|
70
|
+
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
71
|
+
"sort_predicate": "http://vivoweb.org/ontology/core#rank"
|
72
|
+
},
|
73
|
+
"subauthorities": {
|
74
|
+
"concept": "Concept",
|
75
|
+
"event": "Event",
|
76
|
+
"person": "Person",
|
77
|
+
"personal_name": "Person",
|
78
|
+
"organization": "Organization",
|
79
|
+
"corporate_name": "Organization",
|
80
|
+
"place": "Place",
|
81
|
+
"intangible": "Intangible",
|
82
|
+
"work": "Work",
|
83
|
+
"creative_work": "Work"
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: ld4l_cache
|
4
|
+
search:
|
5
|
+
-
|
6
|
+
query: Ithaca
|
7
|
+
-
|
8
|
+
query: France
|
9
|
+
subauth: area
|
10
|
+
expect: 'http://sws.geonames.org/261707/'
|
11
|
+
postion: 10
|
12
|
+
-
|
13
|
+
query: Ithaca
|
14
|
+
subauth: place
|
15
|
+
-
|
16
|
+
query: Ithaca
|
17
|
+
subauth: area_and_place
|
18
|
+
-
|
19
|
+
query: Cayuga
|
20
|
+
subauth: water
|
21
|
+
-
|
22
|
+
query: Cayuga
|
23
|
+
subauth: park
|
24
|
+
-
|
25
|
+
query: Cayuga
|
26
|
+
subauth: road
|
27
|
+
-
|
28
|
+
query: Cayuga
|
29
|
+
subauth: spot
|
30
|
+
-
|
31
|
+
query: Cayuga
|
32
|
+
subauth: terrain
|
33
|
+
-
|
34
|
+
query: Pacific
|
35
|
+
subauth: undersea
|
36
|
+
-
|
37
|
+
query: Red
|
38
|
+
subauth: vegetation
|
39
|
+
term:
|
40
|
+
-
|
41
|
+
identifier: 'http://sws.geonames.org/261707/'
|
@@ -0,0 +1,115 @@
|
|
1
|
+
---
|
2
|
+
authority:
|
3
|
+
service: ld4l_cache
|
4
|
+
search:
|
5
|
+
-
|
6
|
+
query: amphora
|
7
|
+
-
|
8
|
+
query: events
|
9
|
+
subauth: Activities
|
10
|
+
-
|
11
|
+
query: film
|
12
|
+
subauth: Activities__Disciplines
|
13
|
+
result_size: 100
|
14
|
+
-
|
15
|
+
query: exhibitions
|
16
|
+
subauth: Activities__Events
|
17
|
+
-
|
18
|
+
query: inspection
|
19
|
+
subauth: Activities__Functions
|
20
|
+
result_size: 100
|
21
|
+
-
|
22
|
+
query: public speaking
|
23
|
+
subauth: Activities__Physical_and_Mental
|
24
|
+
result_size: 100
|
25
|
+
-
|
26
|
+
query: transporting
|
27
|
+
subauth: Activities__Processes_and_Techniques
|
28
|
+
-
|
29
|
+
query: domestic
|
30
|
+
subauth: Agents
|
31
|
+
-
|
32
|
+
query: domestic
|
33
|
+
subauth: Agents__Living_Organisms
|
34
|
+
-
|
35
|
+
query: funding agencies
|
36
|
+
subauth: Agents__Organizations
|
37
|
+
result_size: 100
|
38
|
+
-
|
39
|
+
query: domestic
|
40
|
+
subauth: Agents__People
|
41
|
+
-
|
42
|
+
query: social science
|
43
|
+
subauth: Associated_Concepts
|
44
|
+
result_size: 100
|
45
|
+
-
|
46
|
+
query: air quality
|
47
|
+
subauth: Associated_Concepts__Associated_Concepts
|
48
|
+
-
|
49
|
+
query: brand name additives
|
50
|
+
subauth: Brand_Names
|
51
|
+
result_size: 100
|
52
|
+
-
|
53
|
+
query: tyvek
|
54
|
+
subauth: Brand_Names__Brand_Names
|
55
|
+
result_size: 100
|
56
|
+
-
|
57
|
+
query: copper
|
58
|
+
subauth: Materials
|
59
|
+
-
|
60
|
+
query: copper
|
61
|
+
subauth: Materials__Materials
|
62
|
+
-
|
63
|
+
query: built environment
|
64
|
+
subauth: Objects
|
65
|
+
-
|
66
|
+
query: backstops
|
67
|
+
subauth: Objects__Built_Environment
|
68
|
+
result_size: 100
|
69
|
+
-
|
70
|
+
query: reveals
|
71
|
+
subauth: Objects__Components
|
72
|
+
result_size: 100
|
73
|
+
-
|
74
|
+
query: Boston rocker
|
75
|
+
subauth: Objects__Furnishings_and_Equipment
|
76
|
+
result_size: 100
|
77
|
+
-
|
78
|
+
query: natural objects
|
79
|
+
subauth: Objects__Object_Genres
|
80
|
+
result_size: 100
|
81
|
+
-
|
82
|
+
query: libraries
|
83
|
+
subauth: Objects__Object_Groupings and Systems
|
84
|
+
-
|
85
|
+
query: admission ticket
|
86
|
+
subauth: Objects__Visual_and_Verbal_Communication
|
87
|
+
result_size: 100
|
88
|
+
-
|
89
|
+
query: density
|
90
|
+
subauth: Physical_Attributes
|
91
|
+
result_size: 100
|
92
|
+
-
|
93
|
+
query: density
|
94
|
+
subauth: Physical_Attributes__Attributes_and_Properties
|
95
|
+
result_size: 100
|
96
|
+
-
|
97
|
+
query: pearl
|
98
|
+
subauth: Physical_Attributes__Color
|
99
|
+
result_size: 100
|
100
|
+
-
|
101
|
+
query: cracks
|
102
|
+
subauth: Physical_Attributes__Conditions_and_Effects
|
103
|
+
-
|
104
|
+
query: compass roses
|
105
|
+
subauth: Physical_Attributes__Design_Elements
|
106
|
+
result_size: 100
|
107
|
+
-
|
108
|
+
query: Contemporary
|
109
|
+
subauth: Styles_and_Periods
|
110
|
+
-
|
111
|
+
query: Contemporary
|
112
|
+
subauth: Styles_and_Periods__Styles_and_Periods
|
113
|
+
term:
|
114
|
+
-
|
115
|
+
identifier: 'http://vocab.getty.edu/aat/300265730'
|