From 10d5372c32995fcf32c36630adb7943e1b583993 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 24 May 2017 00:34:39 -0400 Subject: [PATCH] More robust Wikidata entity name lookup Check the alternate labels and nicknames as well. Signed-off-by: Dan Scott --- Open-ILS/web/js/ui/default/opac/wikidata_music_card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/opac/wikidata_music_card.js b/Open-ILS/web/js/ui/default/opac/wikidata_music_card.js index 8174871eb3..e7ffa8e5f2 100644 --- a/Open-ILS/web/js/ui/default/opac/wikidata_music_card.js +++ b/Open-ILS/web/js/ui/default/opac/wikidata_music_card.js @@ -48,7 +48,7 @@ function findPerformer(performer, entity_name) { var url = 'https://query.wikidata.org/sparql'; var query = 'SELECT DISTINCT ?item ?itemLabel ?itemDescription ?image ?website ?songKick WHERE {' + - '?item rdfs:label "' + entity_name + '"@en . ' + + '?item rdfs:label|skos:altLabel|wdt:P1449 "' + entity_name + '"@en . ' + '{ ?item wdt:P31 wd:Q215380 . } ' + // band 'UNION ' + '{ ?item wdt:P31 wd:Q5741069 . } ' + // rock band -- 2.43.2