-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update authorities to the latest 2.1 versions
- Loading branch information
Showing
77 changed files
with
7,539 additions
and
192 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
qa_agrovoc/2.1/config/authorities/linked_data/agrovoc_direct.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"QA_CONFIG_VERSION": "2.1", | ||
"prefixes": { | ||
}, | ||
"term": { | ||
"url": { | ||
"@context": "http://www.w3.org/ns/hydra/context.jsonld", | ||
"@type": "IriTemplate", | ||
"template": "http://agrovoc.uniroma2.it/agrovoc/rest/v1/data/?uri={term_uri}", | ||
"variableRepresentation": "BasicRepresentation", | ||
"mapping": [ | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "term_uri", | ||
"property": "hydra:freetextQuery", | ||
"required": true, | ||
"encode": true | ||
} | ||
] | ||
}, | ||
"qa_replacement_patterns": { | ||
"term_id": "term_uri" | ||
}, | ||
"term_id": "URI", | ||
"language": ["en"], | ||
"results": { | ||
"label_ldpath": "skos:prefLabel", | ||
"altlabel_ldpath": "skos:altLabel", | ||
"broader_ldpath": "skos:broader", | ||
"narrower_ldpath": "skos:narrower", | ||
"sameas_ldpath": "skos:exactMatch" | ||
} | ||
}, | ||
"search": { | ||
"url": { | ||
"@context": "http://www.w3.org/ns/hydra/context.jsonld", | ||
"@type": "IriTemplate", | ||
"template": "http://agrovoc.uniroma2.it/agrovoc/rest/v1/search/?query=*{query}*&{?lang}&maxhits={maxRecords}", | ||
"variableRepresentation": "BasicRepresentation", | ||
"mapping": [ | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "query", | ||
"property": "hydra:freetextQuery", | ||
"required": true, | ||
"encode": true | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "lang", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "en" | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "maxRecords", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "20" | ||
} | ||
] | ||
}, | ||
"qa_replacement_patterns": { | ||
"query": "query" | ||
}, | ||
"results": { | ||
"label_ldpath": "skos:prefLabel", | ||
"sort_ldpath": "skos:prefLabel" | ||
} | ||
} | ||
} |
122 changes: 122 additions & 0 deletions
122
qa_agrovoc/2.1/config/authorities/linked_data/agrovoc_ld4l_cache.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"QA_CONFIG_VERSION": "2.1", | ||
"prefixes": { | ||
"vivo": "http://vivoweb.org/ontology/core#" | ||
}, | ||
"term": { | ||
"url": { | ||
"@context": "http://www.w3.org/ns/hydra/context.jsonld", | ||
"@type": "IriTemplate", | ||
"template": "http://services.ld4l.org/ld4l_services/agrovoc_lookup.jsp?uri={term_uri}", | ||
"variableRepresentation": "BasicRepresentation", | ||
"mapping": [ | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "term_uri", | ||
"property": "hydra:freetextQuery", | ||
"required": true, | ||
"encode": true | ||
} | ||
] | ||
}, | ||
"qa_replacement_patterns": { | ||
"term_id": "term_uri" | ||
}, | ||
"term_id": "URI", | ||
"results": { | ||
"label_ldpath": "skos:prefLabel ::xsd:string", | ||
"altlabel_ldpath": "skos:altLabel ::xsd:string", | ||
"broader_ldpath": "skos:broader ::xsd:anyURI", | ||
"narrower_ldpath": "skos:narrower ::xsd:anyURI", | ||
"sameas_ldpath": "skos:exactMatch ::xsd:anyURI" | ||
} | ||
}, | ||
"search": { | ||
"url": { | ||
"@context": "http://www.w3.org/ns/hydra/context.jsonld", | ||
"@type": "IriTemplate", | ||
"template": "http://services.ld4l.org/ld4l_services/agrovoc_batch.jsp?{?query}&{?maxRecords}&{?startRecord}&{?entity}&{?lang}", | ||
"variableRepresentation": "BasicRepresentation", | ||
"mapping": [ | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "query", | ||
"property": "hydra:freetextQuery", | ||
"required": true, | ||
"encode": true | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "entity", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "" | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "maxRecords", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "20" | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "startRecord", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "1" | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "lang", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "en" | ||
} | ||
] | ||
}, | ||
"qa_replacement_patterns": { | ||
"query": "query", | ||
"subauth": "entity" | ||
}, | ||
"results": { | ||
"label_ldpath": "skos:prefLabel ::xsd:string", | ||
"sort_ldpath": "vivo:rank ::xsd:string" | ||
}, | ||
"context": { | ||
"groups": { | ||
"hierarchy": { | ||
"group_label_i18n": "qa.linked_data.authority.agrovoc_ld4l_cache.hierarchy", | ||
"group_label_default": "Hierarchy" | ||
} | ||
}, | ||
"properties": [ | ||
{ | ||
"property_label_i18n": "qa.linked_data.authority.agrovoc_ld4l_cache.authoritative_label", | ||
"property_label_default": "Authoritative Label", | ||
"ldpath": "skos:prefLabel :: xsd:string", | ||
"selectable": true, | ||
"drillable": false | ||
}, | ||
{ | ||
"group_id": "hierarchy", | ||
"property_label_i18n": "qa.linked_data.authority.agrovoc_ld4l_cache.narrower", | ||
"property_label_default": "Narrower", | ||
"ldpath": "skos:narrower :: xsd:string", | ||
"selectable": true, | ||
"drillable": true, | ||
"expansion_label_ldpath": "skos:prefLabel ::xsd:string" | ||
}, | ||
{ | ||
"group_id": "hierarchy", | ||
"property_label_i18n": "qa.linked_data.authority.agrovoc_ld4l_cache.broader", | ||
"property_label_default": "Broader", | ||
"ldpath": "skos:broader :: xsd:string", | ||
"selectable": true, | ||
"drillable": true, | ||
"expansion_label_ldpath": "skos:prefLabel ::xsd:string" | ||
} | ||
] | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
qa_agrovoc/2.1/config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
authority: | ||
service: direct | ||
search: | ||
- | ||
query: milk | ||
term: | ||
- | ||
identifier: "http://aims.fao.org/aos/agrovoc/c_9513" |
10 changes: 10 additions & 0 deletions
10
qa_agrovoc/2.1/config/authorities/linked_data/scenarios/agrovoc_ld4l_cache_validation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
authority: | ||
service: ld4l_cache | ||
context: true | ||
search: | ||
- | ||
query: milk | ||
term: | ||
- | ||
identifier: 'http://aims.fao.org/aos/agrovoc/c_9513' |
40 changes: 40 additions & 0 deletions
40
qa_dbpedia/2.1/config/authorities/linked_data/dbpedia_direct.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"QA_CONFIG_VERSION": "2.1", | ||
"prefixes": { | ||
"dbpedia": "http://dbpedia.org/property/" | ||
}, | ||
"term": { | ||
"url": { | ||
"@context": "http://www.w3.org/ns/hydra/context.jsonld", | ||
"@type": "IriTemplate", | ||
"template": "{term_uri}?locale={lang}", | ||
"variableRepresentation": "BasicRepresentation", | ||
"mapping": [ | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "term_uri", | ||
"property": "hydra:freetextQuery", | ||
"required": true, | ||
"encode": false | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "lang", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "en" | ||
} | ||
] | ||
}, | ||
"qa_replacement_patterns": { | ||
"term_id": "term_uri" | ||
}, | ||
"language": ["en"], | ||
"term_id": "URI", | ||
"results": { | ||
"label_ldpath": "rdfs:label ::xsd:string", | ||
"sameas_ldpath": "owl:sameAs ::xsd:anyURI" | ||
} | ||
}, | ||
"search": {} | ||
} |
96 changes: 96 additions & 0 deletions
96
qa_dbpedia/2.1/config/authorities/linked_data/dbpedia_ld4l_cache.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"QA_CONFIG_VERSION": "2.1", | ||
"prefixes": { | ||
"dbpedia": "http://dbpedia.org/property/", | ||
"vivo": "http://vivoweb.org/ontology/core#" | ||
}, | ||
"term": { | ||
"url": { | ||
"@context": "http://www.w3.org/ns/hydra/context.jsonld", | ||
"@type": "IriTemplate", | ||
"template": "http://services.ld4l.org/ld4l_services/dbpedia_name_lookup.jsp?uri={term_uri}", | ||
"variableRepresentation": "BasicRepresentation", | ||
"mapping": [ | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "term_uri", | ||
"property": "hydra:freetextQuery", | ||
"required": true, | ||
"encode": true | ||
} | ||
] | ||
}, | ||
"qa_replacement_patterns": { | ||
"term_id": "term_uri" | ||
}, | ||
"language": "en", | ||
"term_id": "URI", | ||
"results": { | ||
"label_ldpath": "dbpedia:name ::xsd:string", | ||
"sameas_ldpath": "owl:sameAs ::xsd:anyURI" | ||
} | ||
}, | ||
"search": { | ||
"url": { | ||
"@context": "http://www.w3.org/ns/hydra/context.jsonld", | ||
"@type": "IriTemplate", | ||
"template": "http://services.ld4l.org/ld4l_services/dbpedia_name_batch.jsp?{?entity}&{?query}&{?maxRecords}&{?startRecord}&{?lang}", | ||
"variableRepresentation": "BasicRepresentation", | ||
"mapping": [ | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "query", | ||
"property": "hydra:freetextQuery", | ||
"required": true, | ||
"encode": true | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "entity", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "" | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "maxRecords", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "20" | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "startRecord", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "1" | ||
}, | ||
{ | ||
"@type": "IriTemplateMapping", | ||
"variable": "lang", | ||
"property": "hydra:freetextQuery", | ||
"required": false, | ||
"default": "en" | ||
} | ||
] | ||
}, | ||
"qa_replacement_patterns": { | ||
"query": "query", | ||
"subauth": "entity" | ||
}, | ||
"language": ["en"], | ||
"results": { | ||
"id_ldpath": "dbpedia:id ::xsd:string", | ||
"label_ldpath": "dbpedia:name ::xsd:string", | ||
"sort_ldpath": "vivo:rank ::xsd:string" | ||
}, | ||
"subauthorities": { | ||
"person": "Person", | ||
"organization": "Organization", | ||
"place": "Place", | ||
"intangible": "Intangible", | ||
"geocoordinates": "GeoCoordinates", | ||
"work": "Work" | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
qa_dbpedia/2.1/config/authorities/linked_data/scenarios/dbpedia_direct_validation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
authority: | ||
service: direct | ||
term: | ||
- | ||
identifier: 'http://dbpedia.org/resource/Barack_Obama' |
9 changes: 9 additions & 0 deletions
9
qa_dbpedia/2.1/config/authorities/linked_data/scenarios/dbpedia_ld4l_cache_validation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
authority: | ||
service: ld4l_cache | ||
search: | ||
- | ||
query: 'Barack Obama' | ||
term: | ||
- | ||
identifier: 'http://dbpedia.org/resource/Barack_Obama' |
Oops, something went wrong.