qa_server 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/new_dataset_request.md +7 -6
- data/CHANGELOG.md +14 -0
- data/README.md +10 -5
- data/app/models/qa_server/authority_scenario.rb +5 -0
- data/app/models/qa_server/search_scenario.rb +2 -1
- data/lib/generators/qa_server/install_generator.rb +0 -9
- data/lib/generators/qa_server/templates/config/authorities/linked_data/DISABLED/mesh_bioportal_ld4l_cache.json +84 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/{scenarios/mesh_ld4l_cache_validation.yml → DISABLED/scenarios/mesh_bioportal_ld4l_cache_validation.yml} +0 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/{DISABLED/agrovoc_direct.json → agrovoc_direct.json} +14 -11
- data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_ld4l_cache.json +13 -14
- data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_direct.json +6 -3
- data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_ld4l_cache.json +12 -7
- data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_direct.json +13 -9
- data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_ld4l_cache.json +12 -11
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_aat_ld4l_cache.json +15 -10
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json +27 -13
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_ulan_ld4l_cache.json +15 -10
- data/lib/generators/qa_server/templates/config/authorities/linked_data/loc_direct.json +21 -15
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locdemographics_ld4l_cache.json +13 -8
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locgenres_ld4l_cache.json +14 -14
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_ld4l_cache.json +19 -18
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locperformance_ld4l_cache.json +14 -8
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locsubjects_ld4l_cache.json +14 -8
- data/lib/generators/qa_server/templates/config/authorities/linked_data/{mesh_ld4l_cache.json → mesh_nlm_ld4l_cache.json} +12 -13
- data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_direct.json +8 -6
- data/lib/generators/qa_server/templates/config/authorities/linked_data/nalt_ld4l_cache.json +11 -10
- data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_direct.json +14 -10
- data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json +20 -14
- data/lib/generators/qa_server/templates/config/authorities/linked_data/{DISABLED/scenarios → scenarios}/agrovoc_direct_validation.yml +0 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_ld4l_cache_validation.yml +2 -1
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_ld4l_cache_validation.yml +1 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_tgn_ld4l_cache_validation.yml +1 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locgenres_ld4l_cache_validation.yml +1 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_ld4l_cache_validation.yml +4 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locperformance_ld4l_cache_validation.yml +78 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/mesh_nlm_ld4l_cache_validation.yml +10 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_ld4l_cache_validation.yml +1 -0
- data/lib/qa_server/version.rb +1 -1
- data/qa_server.gemspec +1 -1
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca8062bd52624e0fe1021b65859073d5bb96e5b2
|
4
|
+
data.tar.gz: ec6ab1c6ee67b9afdaf7c8d9838fa0c925af07cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe16865048f7079f8f3019a5dd07e258468f0d861fcd55e21a8b36cac7de60765579f1f573505a850e4f41c2e2bfe0362114e057ab488f004b5f02ea97051242
|
7
|
+
data.tar.gz: d8e2d935c827ea495cb4e2dbee4481035d9254e04e340d5a9937e416f61ae6762441ecb4fc31e1d0b381e518f48e63b1ff51abc50e44a8df6642e41de4bce39e
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
name: 'Request a New Dataset for
|
2
|
+
name: 'Request a New Dataset for Sinopia:'
|
3
3
|
about: This issue template is for LD4P2 requests for a new data source to be added to QA.
|
4
4
|
|
5
5
|
---
|
@@ -8,18 +8,19 @@ _Please only use this issue template for LD4P2 requests for a new data source to
|
|
8
8
|
|
9
9
|
__For LD4P2 partners and cohorts:__
|
10
10
|
|
11
|
-
More information about making a request can be found at https://wiki.duraspace.org/display/LD4P2/Request+a+New+Dataset+For+QA
|
12
11
|
|
13
12
|
Please perform each task listed below. (Email sf433 @ cornell dot edu with questions):
|
14
|
-
|
15
|
-
- [ ] Identify the data source: (Include the Data Source Name
|
16
|
-
- [ ] Add a new tab and indexing information for the data source to the following spreadsheet: https://docs.google.com/spreadsheets/d/1rPvEoP9iYNkxJ0eWC8gXe3ci7e6mhW0da59xkGhadi0/edit?usp=sharing.
|
13
|
+
- [ ] Please consult the LD4P2 QA Authority Support Plan (https://github.com/LD4P/qa_server/wiki/Authority-Lookup-Support-Plan-for-Sinopia) to confirm the dataset isn't already being supported.
|
14
|
+
- [ ] Identify the data source: (Include the Data Source Name, its homepage URL, and any relevant API and/or download information to aid in caching.)
|
15
|
+
- [ ] QA has the ability to provide contextual information about an entity during the look-up experience. In order to do so, decisions need to be made about how to index the RDF descriptions of entities in the dataset. Add a new tab and indexing information for the data source to the following spreadsheet: https://docs.google.com/spreadsheets/d/1rPvEoP9iYNkxJ0eWC8gXe3ci7e6mhW0da59xkGhadi0/edit?usp=sharing. (See the existing LCNAF tab in the spreadsheet as an example)
|
17
16
|
|
18
17
|
|
19
18
|
|
20
19
|
Next steps:
|
21
20
|
|
22
|
-
|
21
|
+
Once the above actions have taken place, a link to a YAML file will be shared with the requestor via a comment in the issue in order to complete Accuracy Test, https://github.com/LD4P/qa_server/wiki/Writing-Tests-for-an-Authority#accuracy-test. Edit directly the YAML file in Github, save. Create a Pull Request to be reviewed. Be sure to including a meaningful commit message (e.g. adding accuracy tests for Authority X).
|
22
|
+
|
23
|
+
Context on Accuracy Tests: In order to make sure the QA search behavior (recall and relevancy) are meeting expectations, QA uses YAML to define test parameters. These parameters include the ability to declare for a particular text string searched, the results should include a particular resource (identified by a URI) and what is the maximum position in the results the resource should be found.)
|
23
24
|
|
24
25
|
|
25
26
|
_Please note, all requests for new data sources in QA will be prioritized by the LD4P2 project. Due to time restrictions there is no guarantee that all requests will be added to QA during the lifetime of the LD4P2 grant; regardless of resources it is still useful to know which datasets the community would find useful in such a lookup service._
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
### 2.1.0 (2019-06-10)
|
2
|
+
|
3
|
+
* remove context from mesh_nlm; add direct match to locnames
|
4
|
+
* fix missing getty ids in linked data auth
|
5
|
+
* update ldpaths for locnames extended context
|
6
|
+
* fix oclcfast linked data config to properly configure passing uri instead of id
|
7
|
+
* update code to work with qa 4.2.0
|
8
|
+
* update configs to QA_CONFIG_VERSION 2.1
|
9
|
+
* allow scenarios to specify whether the authority supports extended context for search
|
10
|
+
* add `encode: true` to search query param for all 2.0 configs
|
11
|
+
* Update locperformance_ld4l_cache_validation.yml
|
12
|
+
* add parentheses to complex ldpath to fix parse error
|
13
|
+
* update instructions to work with latest rails new command
|
14
|
+
|
1
15
|
### 2.0.0 (2019-03-12)
|
2
16
|
|
3
17
|
* update code to work with qa 4.0.0
|
data/README.md
CHANGED
@@ -19,26 +19,32 @@ Tested with...
|
|
19
19
|
* Ruby 2.4.3
|
20
20
|
* Rails 5.1.6
|
21
21
|
|
22
|
-
### Prerequisites
|
22
|
+
### Optional Prerequisites
|
23
23
|
|
24
|
-
|
24
|
+
Only required if you want to generate status charts. Generated charts will be saved in
|
25
|
+
`app/assets/images/qa_server/charts` directory. By default status is displayed in a table.
|
26
|
+
|
27
|
+
1. [ImageMagick](http://www.imagemagick.org/)
|
25
28
|
|
26
29
|
### Installation Instructions
|
27
30
|
|
28
|
-
#### Adding the engine
|
31
|
+
#### Adding the engine dependencies
|
29
32
|
|
30
|
-
Add
|
33
|
+
Add these lines to your application's Gemfile:
|
31
34
|
|
32
35
|
```ruby
|
33
36
|
gem 'qa_server'
|
37
|
+
gem 'qa'
|
34
38
|
```
|
35
39
|
|
36
40
|
And then execute:
|
41
|
+
|
37
42
|
```bash
|
38
43
|
$ bundle
|
39
44
|
```
|
40
45
|
|
41
46
|
Or install it yourself as:
|
47
|
+
|
42
48
|
```bash
|
43
49
|
$ gem install qa_server
|
44
50
|
```
|
@@ -191,4 +197,3 @@ This document addresses the use of QA Server app for access to linked data autho
|
|
191
197
|
## License
|
192
198
|
The gem is available as open source under the terms of the [Apache License](https://www.apache.org/licenses/LICENSE-2.0).
|
193
199
|
|
194
|
-
|
@@ -28,8 +28,13 @@ module QaServer
|
|
28
28
|
@authority = authority
|
29
29
|
@authority_name = authority_name
|
30
30
|
@service = authority_scenario_config['service']
|
31
|
+
@context = authority_scenario_config.fetch('context', false)
|
31
32
|
@subauthority_name = DEFAULT_SUBAUTH
|
32
33
|
@min_result_size = MIN_EXPECTED_SIZE
|
33
34
|
end
|
35
|
+
|
36
|
+
def context?
|
37
|
+
@context
|
38
|
+
end
|
34
39
|
end
|
35
40
|
end
|
@@ -37,8 +37,9 @@ module QaServer
|
|
37
37
|
# @return [String] the example URL
|
38
38
|
def url
|
39
39
|
subauth = "/#{subauthority_name}" if subauthority?
|
40
|
+
context = context? ? '&context=true' : ''
|
40
41
|
prefix = "#{QaServer::Engine.qa_engine_mount}/search/linked_data/#{authority_name.downcase}#{subauth}"
|
41
|
-
"#{prefix}?q=#{query}#{url_replacements}"
|
42
|
+
"#{prefix}?q=#{query}#{url_replacements}#{context}"
|
42
43
|
end
|
43
44
|
|
44
45
|
private
|
@@ -20,15 +20,6 @@ module QaServer
|
|
20
20
|
generate "qa_server:models#{options[:force] ? ' -f' : ''}"
|
21
21
|
end
|
22
22
|
|
23
|
-
def add_to_gemfile
|
24
|
-
say_status('info', ' -- adding qa_server required gems', :blue)
|
25
|
-
gem 'linkeddata'
|
26
|
-
|
27
|
-
Bundler.with_clean_env do
|
28
|
-
run "bundle install"
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
23
|
# The engine routes have to come after the devise routes so that /users/sign_in will work
|
33
24
|
def inject_routes
|
34
25
|
say_status('info', ' -- adding qa_server routes', :blue)
|
@@ -0,0 +1,84 @@
|
|
1
|
+
{
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
|
+
"prefixes": {
|
4
|
+
"biomesh": "http://purl.bioontology.org/ontology/MESH/",
|
5
|
+
"vivo": "http://vivoweb.org/ontology/core#"
|
6
|
+
},
|
7
|
+
"term": {
|
8
|
+
"url": {
|
9
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
10
|
+
"@type": "IriTemplate",
|
11
|
+
"template": "http://services.ld4l.org/ld4l_services/mesh_lookup.jsp?uri={term_uri}",
|
12
|
+
"variableRepresentation": "BasicRepresentation",
|
13
|
+
"mapping": [
|
14
|
+
{
|
15
|
+
"@type": "IriTemplateMapping",
|
16
|
+
"variable": "term_uri",
|
17
|
+
"property": "hydra:freetextQuery",
|
18
|
+
"required": true
|
19
|
+
}
|
20
|
+
]
|
21
|
+
},
|
22
|
+
"qa_replacement_patterns": {
|
23
|
+
"term_id": "term_uri"
|
24
|
+
},
|
25
|
+
"term_id": "URI",
|
26
|
+
"results": {
|
27
|
+
"id_ldpath": "skos:notation",
|
28
|
+
"label_ldpath": "skos:prefLabel",
|
29
|
+
"altlabel_ldpath": "skos:altLabel",
|
30
|
+
"broader_ldpath": "biomesh:mapped_to",
|
31
|
+
"narrower_ldpath": "biomesh:mapped_from"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"search": {
|
35
|
+
"url": {
|
36
|
+
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
37
|
+
"@type": "IriTemplate",
|
38
|
+
"template": "http://services.ld4l.org/ld4l_services/mesh_batch.jsp?{?query}&{?maxRecords}&{?lang}",
|
39
|
+
"variableRepresentation": "BasicRepresentation",
|
40
|
+
"mapping": [
|
41
|
+
{
|
42
|
+
"@type": "IriTemplateMapping",
|
43
|
+
"variable": "query",
|
44
|
+
"property": "hydra:freetextQuery",
|
45
|
+
"required": true,
|
46
|
+
"encode": true
|
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
|
+
},
|
67
|
+
"results": {
|
68
|
+
"id_ldpath": "skos:notation",
|
69
|
+
"label_ldpath": "skos:prefLabel",
|
70
|
+
"sort_ldpath": "vivo:rank"
|
71
|
+
},
|
72
|
+
"context": {
|
73
|
+
"properties": [
|
74
|
+
{
|
75
|
+
"property_label_i18n": "qa.linked_data.authority.mesh_ld4l_cache.definition",
|
76
|
+
"property_label_default": "Definition",
|
77
|
+
"ldpath": "skos:definition :: xsd:string",
|
78
|
+
"selectable": false,
|
79
|
+
"drillable": false
|
80
|
+
}
|
81
|
+
]
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
File without changes
|
@@ -1,9 +1,12 @@
|
|
1
1
|
{
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
|
+
"prefixes": {
|
4
|
+
},
|
2
5
|
"term": {
|
3
6
|
"url": {
|
4
7
|
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
5
8
|
"@type": "IriTemplate",
|
6
|
-
"template": "http://
|
9
|
+
"template": "http://agrovoc.uniroma2.it/agrovoc/rest/v1/data/?uri={term_uri}",
|
7
10
|
"variableRepresentation": "BasicRepresentation",
|
8
11
|
"mapping": [
|
9
12
|
{
|
@@ -21,25 +24,26 @@
|
|
21
24
|
"term_id": "URI",
|
22
25
|
"language": ["en"],
|
23
26
|
"results": {
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
27
|
+
"label_ldpath": "skos:prefLabel",
|
28
|
+
"altlabel_ldpath": "skos:altLabel",
|
29
|
+
"broader_ldpath": "skos:broader",
|
30
|
+
"narrower_ldpath": "skos:narrower",
|
31
|
+
"sameas_ldpath": "skos:exactMatch"
|
29
32
|
}
|
30
33
|
},
|
31
34
|
"search": {
|
32
35
|
"url": {
|
33
36
|
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
34
37
|
"@type": "IriTemplate",
|
35
|
-
"template": "http://
|
38
|
+
"template": "http://agrovoc.uniroma2.it/agrovoc/rest/v1/search/?query=*{query}*&{?lang}&maxhits={maxRecords}",
|
36
39
|
"variableRepresentation": "BasicRepresentation",
|
37
40
|
"mapping": [
|
38
41
|
{
|
39
42
|
"@type": "IriTemplateMapping",
|
40
43
|
"variable": "query",
|
41
44
|
"property": "hydra:freetextQuery",
|
42
|
-
"required": true
|
45
|
+
"required": true,
|
46
|
+
"encode": true
|
43
47
|
},
|
44
48
|
{
|
45
49
|
"@type": "IriTemplateMapping",
|
@@ -61,9 +65,8 @@
|
|
61
65
|
"query": "query"
|
62
66
|
},
|
63
67
|
"results": {
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"sort_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
|
68
|
+
"label_ldpath": "skos:prefLabel",
|
69
|
+
"sort_ldpath": "skos:prefLabel"
|
67
70
|
}
|
68
71
|
}
|
69
72
|
}
|
data/lib/generators/qa_server/templates/config/authorities/linked_data/agrovoc_ld4l_cache.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
|
-
"QA_CONFIG_VERSION": "2.
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
3
|
"prefixes": {
|
4
|
-
"
|
4
|
+
"vivo": "http://vivoweb.org/ontology/core#"
|
5
5
|
},
|
6
6
|
"term": {
|
7
7
|
"url": {
|
@@ -24,11 +24,11 @@
|
|
24
24
|
},
|
25
25
|
"term_id": "URI",
|
26
26
|
"results": {
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
27
|
+
"label_ldpath": "skos:prefLabel ::xsd:string",
|
28
|
+
"altlabel_ldpath": "skos:altLabel ::xsd:string",
|
29
|
+
"broader_ldpath": "skos:broader ::xsd:anyURI",
|
30
|
+
"narrower_ldpath": "skos:narrower ::xsd:anyURI",
|
31
|
+
"sameas_ldpath": "skos:exactMatch ::xsd:anyURI"
|
32
32
|
}
|
33
33
|
},
|
34
34
|
"search": {
|
@@ -42,7 +42,8 @@
|
|
42
42
|
"@type": "IriTemplateMapping",
|
43
43
|
"variable": "query",
|
44
44
|
"property": "hydra:freetextQuery",
|
45
|
-
"required": true
|
45
|
+
"required": true,
|
46
|
+
"encode": true
|
46
47
|
},
|
47
48
|
{
|
48
49
|
"@type": "IriTemplateMapping",
|
@@ -72,8 +73,8 @@
|
|
72
73
|
"subauth": "entity"
|
73
74
|
},
|
74
75
|
"results": {
|
75
|
-
"
|
76
|
-
"
|
76
|
+
"label_ldpath": "skos:prefLabel ::xsd:string",
|
77
|
+
"sort_ldpath": "vivo:rank ::xsd:string"
|
77
78
|
},
|
78
79
|
"context": {
|
79
80
|
"groups": {
|
@@ -97,8 +98,7 @@
|
|
97
98
|
"ldpath": "skos:narrower :: xsd:string",
|
98
99
|
"selectable": true,
|
99
100
|
"drillable": true,
|
100
|
-
"expansion_label_ldpath": "skos:prefLabel ::xsd:string"
|
101
|
-
"expansion_id_ldpath": "loc:lccn ::xsd:string"
|
101
|
+
"expansion_label_ldpath": "skos:prefLabel ::xsd:string"
|
102
102
|
},
|
103
103
|
{
|
104
104
|
"group_id": "hierarchy",
|
@@ -107,8 +107,7 @@
|
|
107
107
|
"ldpath": "skos:broader :: xsd:string",
|
108
108
|
"selectable": true,
|
109
109
|
"drillable": true,
|
110
|
-
"expansion_label_ldpath": "skos:prefLabel ::xsd:string"
|
111
|
-
"expansion_id_ldpath": "loc:lccn ::xsd:string"
|
110
|
+
"expansion_label_ldpath": "skos:prefLabel ::xsd:string"
|
112
111
|
}
|
113
112
|
]
|
114
113
|
},
|
@@ -1,5 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"QA_CONFIG_VERSION": "2.
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
|
+
"prefixes": {
|
4
|
+
"dbpedia": "http://dbpedia.org/property/"
|
5
|
+
},
|
3
6
|
"term": {
|
4
7
|
"url": {
|
5
8
|
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
@@ -29,8 +32,8 @@
|
|
29
32
|
"language": ["en"],
|
30
33
|
"term_id": "URI",
|
31
34
|
"results": {
|
32
|
-
"
|
33
|
-
"
|
35
|
+
"label_ldpath": "rdfs:label ::xsd:string",
|
36
|
+
"sameas_ldpath": "owl:sameAs ::xsd:anyURI"
|
34
37
|
}
|
35
38
|
},
|
36
39
|
"search": {}
|
data/lib/generators/qa_server/templates/config/authorities/linked_data/dbpedia_ld4l_cache.json
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
{
|
2
|
-
"QA_CONFIG_VERSION": "2.
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
|
+
"prefixes": {
|
4
|
+
"dbpedia": "http://dbpedia.org/property/",
|
5
|
+
"vivo": "http://vivoweb.org/ontology/core#"
|
6
|
+
},
|
3
7
|
"term": {
|
4
8
|
"url": {
|
5
9
|
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
@@ -22,8 +26,8 @@
|
|
22
26
|
"language": "en",
|
23
27
|
"term_id": "URI",
|
24
28
|
"results": {
|
25
|
-
"
|
26
|
-
"
|
29
|
+
"label_ldpath": "dbpedia:name ::xsd:string",
|
30
|
+
"sameas_ldpath": "owl:sameAs ::xsd:anyURI"
|
27
31
|
}
|
28
32
|
},
|
29
33
|
"search": {
|
@@ -37,7 +41,8 @@
|
|
37
41
|
"@type": "IriTemplateMapping",
|
38
42
|
"variable": "query",
|
39
43
|
"property": "hydra:freetextQuery",
|
40
|
-
"required": true
|
44
|
+
"required": true,
|
45
|
+
"encode": true
|
41
46
|
},
|
42
47
|
{
|
43
48
|
"@type": "IriTemplateMapping",
|
@@ -68,9 +73,9 @@
|
|
68
73
|
},
|
69
74
|
"language": ["en"],
|
70
75
|
"results": {
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"
|
76
|
+
"id_ldpath": "dbpedia:id ::xsd:string",
|
77
|
+
"label_ldpath": "dbpedia:name ::xsd:string",
|
78
|
+
"sort_ldpath": "vivo:rank ::xsd:string"
|
74
79
|
},
|
75
80
|
"subauthorities": {
|
76
81
|
"person": "Person",
|
@@ -1,5 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"QA_CONFIG_VERSION": "2.
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
|
+
"prefixes": {
|
4
|
+
"geonames": "http://www.geonames.org/ontology#"
|
5
|
+
},
|
3
6
|
"term": {
|
4
7
|
"url": {
|
5
8
|
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
@@ -21,10 +24,10 @@
|
|
21
24
|
},
|
22
25
|
"term_id": "URI",
|
23
26
|
"results": {
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
27
|
+
"label_ldpath": "geonames:name ::xsd:string",
|
28
|
+
"altlabel_ldpath": "geonames:countryCode ::xsd:string",
|
29
|
+
"broader_ldpath": "geonames:parentFeature ::xsd:string",
|
30
|
+
"sameas_ldpath": "rdfs:seeAlso ::xsd:anyURI"
|
28
31
|
}
|
29
32
|
},
|
30
33
|
"search": {
|
@@ -38,7 +41,8 @@
|
|
38
41
|
"@type": "IriTemplateMapping",
|
39
42
|
"variable": "query",
|
40
43
|
"property": "hydra:freetextQuery",
|
41
|
-
"required": true
|
44
|
+
"required": true,
|
45
|
+
"encode": true
|
42
46
|
},
|
43
47
|
{
|
44
48
|
"@type": "IriTemplateMapping",
|
@@ -61,9 +65,9 @@
|
|
61
65
|
},
|
62
66
|
"language": ["en"],
|
63
67
|
"results": {
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
68
|
+
"label_ldpath": "geonames:name ::xsd:string",
|
69
|
+
"altlabel_ldpath": "geonames:countryCode ::xsd:string",
|
70
|
+
"sort_ldpath": "geonames:name ::xsd:string"
|
67
71
|
}
|
68
72
|
}
|
69
73
|
}
|
data/lib/generators/qa_server/templates/config/authorities/linked_data/geonames_ld4l_cache.json
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
{
|
2
|
-
"QA_CONFIG_VERSION": "2.
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
3
|
"prefixes": {
|
4
|
+
"geo": "http://www.w3.org/2003/01/geo/wgs84_pos#",
|
4
5
|
"geonames": "http://www.geonames.org/ontology#",
|
5
|
-
"
|
6
|
+
"vivo": "http://vivoweb.org/ontology/core#"
|
6
7
|
},
|
7
8
|
"term": {
|
8
9
|
"url": {
|
@@ -25,10 +26,10 @@
|
|
25
26
|
},
|
26
27
|
"term_id": "URI",
|
27
28
|
"results": {
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
29
|
+
"label_ldpath": "geonames:name ::xsd:string",
|
30
|
+
"altlabel_ldpath": "geonames:countryCode ::xsd:string",
|
31
|
+
"broader_ldpath": "geonames:parentFeature ::xsd:string",
|
32
|
+
"sameas_ldpath": "rdfs:seeAlso ::xsd:anyURI"
|
32
33
|
}
|
33
34
|
},
|
34
35
|
"search": {
|
@@ -42,7 +43,8 @@
|
|
42
43
|
"@type": "IriTemplateMapping",
|
43
44
|
"variable": "query",
|
44
45
|
"property": "hydra:freetextQuery",
|
45
|
-
"required": true
|
46
|
+
"required": true,
|
47
|
+
"encode": true
|
46
48
|
},
|
47
49
|
{
|
48
50
|
"@type": "IriTemplateMapping",
|
@@ -73,10 +75,9 @@
|
|
73
75
|
},
|
74
76
|
"language": ["en"],
|
75
77
|
"results": {
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"sort_predicate": "http://vivoweb.org/ontology/core#rank"
|
78
|
+
"label_ldpath": "geonames:name ::xsd:string",
|
79
|
+
"altlabel_ldpath": "geonames:countryCode ::xsd:string",
|
80
|
+
"sort_ldpath": "vivo:rank ::xsd:string"
|
80
81
|
},
|
81
82
|
"context": {
|
82
83
|
"properties": [
|
data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_aat_ld4l_cache.json
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"QA_CONFIG_VERSION": "2.
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
|
+
"prefixes": {
|
4
|
+
"vivo": "http://vivoweb.org/ontology/core#"
|
5
|
+
},
|
3
6
|
"term": {
|
4
7
|
"url": {
|
5
8
|
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
@@ -21,11 +24,12 @@
|
|
21
24
|
},
|
22
25
|
"term_id": "URI",
|
23
26
|
"results": {
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
27
|
+
"id_ldpath": "dc:identifier ::xsd:string",
|
28
|
+
"label_ldpath": "skos:prefLabel ::xsd:string",
|
29
|
+
"altlabel_ldpath": "skos:altLabel ::xsd:string",
|
30
|
+
"broader_ldpath": "skos:broader ::xsd:anyURI",
|
31
|
+
"narrower_ldpath": "skos:narrower ::xsd:anyURI",
|
32
|
+
"sameas_ldpath": "skos:exactMatch ::xsd:anyURI"
|
29
33
|
}
|
30
34
|
},
|
31
35
|
"search": {
|
@@ -39,7 +43,8 @@
|
|
39
43
|
"@type": "IriTemplateMapping",
|
40
44
|
"variable": "query",
|
41
45
|
"property": "hydra:freetextQuery",
|
42
|
-
"required": true
|
46
|
+
"required": true,
|
47
|
+
"encode": true
|
43
48
|
},
|
44
49
|
{
|
45
50
|
"@type": "IriTemplateMapping",
|
@@ -69,9 +74,9 @@
|
|
69
74
|
"subauth": "subauth"
|
70
75
|
},
|
71
76
|
"results": {
|
72
|
-
"
|
73
|
-
"
|
74
|
-
"
|
77
|
+
"id_ldpath": "dc:identifier ::xsd:string",
|
78
|
+
"label_ldpath": "skos:prefLabel ::xsd:string",
|
79
|
+
"sort_ldpath": "vivo:rank ::xsd:string"
|
75
80
|
},
|
76
81
|
"subauthorities": {
|
77
82
|
"Activities": "&facet=300264090",
|
data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
{
|
2
|
-
"QA_CONFIG_VERSION": "2.
|
2
|
+
"QA_CONFIG_VERSION": "2.1",
|
3
|
+
"prefixes": {
|
4
|
+
"getty": "http://vocab.getty.edu/ontology#",
|
5
|
+
"vivo": "http://vivoweb.org/ontology/core#"
|
6
|
+
},
|
3
7
|
"term": {
|
4
8
|
"url": {
|
5
9
|
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
|
@@ -21,11 +25,12 @@
|
|
21
25
|
},
|
22
26
|
"term_id": "URI",
|
23
27
|
"results": {
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
28
|
+
"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"
|
29
34
|
}
|
30
35
|
},
|
31
36
|
"search": {
|
@@ -39,7 +44,8 @@
|
|
39
44
|
"@type": "IriTemplateMapping",
|
40
45
|
"variable": "query",
|
41
46
|
"property": "hydra:freetextQuery",
|
42
|
-
"required": true
|
47
|
+
"required": true,
|
48
|
+
"encode": true
|
43
49
|
},
|
44
50
|
{
|
45
51
|
"@type": "IriTemplateMapping",
|
@@ -61,12 +67,20 @@
|
|
61
67
|
"query": "query"
|
62
68
|
},
|
63
69
|
"results": {
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
+
"id_ldpath": "dc:identifier ::xsd:string",
|
71
|
+
"label_ldpath": "skos:prefLabel ::xsd:string",
|
72
|
+
"sort_ldpath": "vivo:rank ::xsd:string"
|
73
|
+
},
|
74
|
+
"context": {
|
75
|
+
"properties": [
|
76
|
+
{
|
77
|
+
"property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.parent_string",
|
78
|
+
"property_label_default": "Parent",
|
79
|
+
"ldpath": "getty:parentString :: xsd:string",
|
80
|
+
"selectable": false,
|
81
|
+
"drillable": false
|
82
|
+
}
|
83
|
+
]
|
70
84
|
}
|
71
85
|
}
|
72
86
|
}
|