Skip to content

Commit

Permalink
update authorities to the latest 2.1 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Oct 24, 2019
1 parent fa79194 commit 574b5c2
Show file tree
Hide file tree
Showing 77 changed files with 7,539 additions and 192 deletions.
72 changes: 72 additions & 0 deletions qa_agrovoc/2.1/config/authorities/linked_data/agrovoc_direct.json
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 qa_agrovoc/2.1/config/authorities/linked_data/agrovoc_ld4l_cache.json
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"
}
]
}
}
}
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"
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 qa_dbpedia/2.1/config/authorities/linked_data/dbpedia_direct.json
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": {}
}
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"
}
}
}
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'
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'
Loading

0 comments on commit 574b5c2

Please sign in to comment.