diff --git a/config/authorities/linked_data/getty_direct.json b/config/authorities/linked_data/getty_direct.json index 5635839..972d0ad 100644 --- a/config/authorities/linked_data/getty_direct.json +++ b/config/authorities/linked_data/getty_direct.json @@ -1,7 +1,7 @@ { "QA_CONFIG_VERSION": "2.2", "prefixes": { - "getty": "http://vocab.getty.edu/ontology#" + "gvp": "http://vocab.getty.edu/ontology#" }, "term": { "url": { @@ -48,7 +48,7 @@ "url": { "@context": "http://www.w3.org/ns/hydra/context.jsonld", "@type": "IriTemplate", - "template": "https://vocab.getty.edu/sparql.rdf?query=CONSTRUCT+%7B%3Fs+dc%3Aidentifier+%3Fid%3B+skos%3AprefLabel+%3FprefLabel.%7D%0AWHERE+%7B%3Fs+a+skos%3AConcept%3B+luc%3Aterm+%22{query}%22%3B+skos%3AinScheme+{subauth}%3A%3B+skos%3AprefLabel+%3FprefLabel.%0A++%3Fs+dc%3Aidentifier+%3Fid.%0A++BIND%28REPLACE%28%22{query}%22%2C+%22%5B%2C*%28%29%5D%22%2C+%22%22%2C+%22i%22%29+AS+%3Fstripped_query%29.%0A++BIND%28REPLACE%28%3Fstripped_query%2C+%22%5C%5Cs*%28%5C%5CS%2B%29%5C%5Cs*%22%2C+%22%28%3F%3D.*%241%29%22%29+AS+%3Ffilter_query%29.%0A++FILTER+regex%28str%28%3FprefLabel%29%2C+%3Ffilter_query%2C+%22i%22%29.%0A%7D+ORDER+BY+asc%28lcase%28str%28%3FprefLabel%29%29%29&_implicit=false&implicit=true&_equivalent=false&_form=%2Fsparql", + "template": "https://vocab.getty.edu/sparql.rdf?query=CONSTRUCT+%7B%3Fs+dc%3Aidentifier+%3Fid%3B+skos%3AprefLabel+%3FprefLabel%3B+gvp%3AparentString+%3Fparent.%7D%0AWHERE+%7B%3Fs+a+skos%3AConcept%3B+luc%3Aterm+%22{query}%22%3B+skos%3AinScheme+{subauth}%3A%3B+skos%3AprefLabel+%3FprefLabel%3B+dc%3Aidentifier+%3Fid.%0A++OPTIONAL+%7B%3Fs+gvp%3AparentString+%3Fparent%7D%0A++BIND%28REPLACE%28%22{query}%22%2C+%22%5B%2C*%28%29%5D%22%2C+%22%22%2C+%22i%22%29+AS+%3Fstripped_query%29.%0A++BIND%28REPLACE%28%3Fstripped_query%2C+%22%5C%5Cs*%28%5C%5CS%2B%29%5C%5Cs*%22%2C+%22%28%3F%3D.*%241%29%22%29+AS+%3Ffilter_query%29.%0A++FILTER+regex%28str%28%3FprefLabel%29%2C+%3Ffilter_query%2C+%22i%22%29.%0A%7D+ORDER+BY+asc%28lcase%28str%28%3FprefLabel%29%29%29&_implicit=false&implicit=true&_equivalent=false&_form=%2Fsparql", "variableRepresentation": "BasicRepresentation", "mapping": [ { @@ -71,13 +71,22 @@ "subauth": "subauth" }, "results": { - "id_ldpath": "dc:identifier :: xsd:string", - "label_ldpath": "skos:prefLabel :: xsd:string" + "id_ldpath": "dc:identifier :: xsd:string", + "label_ldpath": "skos:prefLabel :: xsd:string" }, "subauthorities": { "aat": "aat", "tgn": "tgn", "ulan": "ulan" + }, + "context": { + "properties": [ + { + "property_label_i18n": "qa.linked_data.authority.getty_direct.parent_body", + "property_label_default": "Parent Body", + "ldpath": "gvp:parentString :: xsd:string" + } + ] } } } diff --git a/config/authorities/linked_data/scenarios/getty_direct_validation.yml b/config/authorities/linked_data/scenarios/getty_direct_validation.yml index cd139e0..f77dcbf 100644 --- a/config/authorities/linked_data/scenarios/getty_direct_validation.yml +++ b/config/authorities/linked_data/scenarios/getty_direct_validation.yml @@ -29,6 +29,7 @@ search: - query: transporting subauth: aat + result_size: 1 - query: domestic subauth: aat @@ -335,7 +336,7 @@ term: identifier: "300265730" subauth: aat - - identifier: 7017750" + identifier: "7017750" subauth: tgn - identifier: "500020427" diff --git a/config/locales/qa_server.en.yml b/config/locales/qa_server.en.yml index 8836b7d..68494da 100644 --- a/config/locales/qa_server.en.yml +++ b/config/locales/qa_server.en.yml @@ -7,3 +7,8 @@ en: copyright_html: "Copyright © 2018-2022 Cornell Licensed under the Apache License, Version 2.0" service_html: A service of Cornell University Library and
School of Library and Information Science, University of Iowa. attribution_html: This service is supported by work on Linked Data for Libraries - Labs and
Linked Data for Production funded by Andrew W. Mellon Foundation,
and by work on Questioning Authority in Samvera, an open source community. + qa: + linked_data: + authority: + getty_direct: + parent_body: Parent Body