Skip to content

Commit

Permalink
Add getty_direct search context, fix connection scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrlc committed Oct 6, 2023
1 parent 5eb114a commit af57f37
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
17 changes: 13 additions & 4 deletions config/authorities/linked_data/getty_direct.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"QA_CONFIG_VERSION": "2.2",
"prefixes": {
"getty": "http://vocab.getty.edu/ontology#"
"gvp": "http://vocab.getty.edu/ontology#"
},
"term": {
"url": {
Expand Down Expand Up @@ -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": [
{
Expand All @@ -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_string",
"property_label_default": "Parent String",
"ldpath": "gvp:parentString :: xsd:string"
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ search:
-
query: transporting
subauth: aat
result_size: 1
-
query: domestic
subauth: aat
Expand Down Expand Up @@ -335,7 +336,7 @@ term:
identifier: "300265730"
subauth: aat
-
identifier: 7017750"
identifier: "7017750"
subauth: tgn
-
identifier: "500020427"
Expand Down
5 changes: 5 additions & 0 deletions config/locales/qa_server.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ en:
copyright_html: "<strong>Copyright &copy; 2018-2022 Cornell</strong> Licensed under the Apache License, Version 2.0"
service_html: A service of <a href="http://www.library.cornell.edu/" class="navbar-link" target="_blank">Cornell University Library</a> and <br /><a href="https://www.slis.uiowa.edu/" class="navbar-link" target="_blank">School of Library and Information Science, University of Iowa</a>.
attribution_html: This service is supported by work on <a href="http://ld4l.org" class="navbar-link" target="_blank">Linked Data for Libraries - Labs</a> and <br> <a href="https://wiki.duraspace.org/x/9xgRBg" class="navbar-link" target="_blank">Linked Data for Production</a> funded by <a href="https://mellon.org/" class="navbar-link" target="_blank">Andrew W. Mellon Foundation</a>, <br>and by work on Questioning Authority in <a href="http://samvera.org" class="navbar-link" target="_blank">Samvera</a>, an open source community.
qa:
linked_data:
authority:
getty_direct:
parent_string: Parent String

0 comments on commit af57f37

Please sign in to comment.