We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5343f9b commit cd16448Copy full SHA for cd16448
1 file changed
whelk-core/src/main/groovy/whelk/external/Wikidata.groovy
@@ -282,16 +282,16 @@ class WikidataEntity {
282
283
List<RDFNode> getLcsh() {
284
String queryString = """
285
- SELECT ?fullId {
286
- wd:${shortId} wdtn:${LC_AUTH} ?fullId ;
287
- wdt:${LC_AUTH} ?shortId .
+ SELECT ?id {
+ wd:${shortId} wdt:${LC_AUTH} ?shortId .
+ bind(iri(concat("http://id.loc.gov/authorities/subjects/", ?shortId)) as ?id)
288
FILTER(strstarts(?shortId, "sh"))
289
}
290
"""
291
292
ResultSet rs = QueryRunner.localSelectResult(queryString, graph)
293
294
- return rs.collect { it.get("fullId") }
+ return rs.collect { it.get("id") }
295
296
297
List<RDFNode> getFast() {
0 commit comments