From 575c9aebe9f821c7fb39263d3dbe340bb78448b8 Mon Sep 17 00:00:00 2001 From: Bob Coret Date: Tue, 17 Sep 2024 13:56:21 +0200 Subject: [PATCH] fix: GTM lookup query (#1425) Fix #1424 Strange that these SPARQL errors weren't noticed by the NoT software. --- .../catalog/queries/lookup/goudatijdmachine-straten.rq | 3 ++- .../catalog/queries/search/goudatijdmachine-straten.rq | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/goudatijdmachine-straten.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/goudatijdmachine-straten.rq index 7adcac0a9..3f78bcbe6 100644 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/goudatijdmachine-straten.rq +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/goudatijdmachine-straten.rq @@ -3,6 +3,7 @@ PREFIX skos: PREFIX gtm: PREFIX hg: PREFIX owl: +PREFIX omeka: CONSTRUCT { ?uri a skos:Concept ; @@ -25,7 +26,7 @@ CONSTRUCT { OPTIONAL { ?uri sdo:alternateName ?altLabel } - BIND ( CONCAT( IF ( EXISTS { ?entity omeka:item_set }, "Verdwenen straat", "Straat" )," in Gouda") AS ?scopeNote ) + BIND ( CONCAT( IF ( EXISTS { ?uri omeka:item_set }, "Verdwenen straat", "Straat" )," in Gouda") AS ?scopeNote ) OPTIONAL { ?uri hg:absorbedBy|hg:absorbed ?related_uri . ?related_uri a gtm:Straat ; diff --git a/packages/network-of-terms-catalog/catalog/queries/search/goudatijdmachine-straten.rq b/packages/network-of-terms-catalog/catalog/queries/search/goudatijdmachine-straten.rq index ad788d24b..59b83286e 100644 --- a/packages/network-of-terms-catalog/catalog/queries/search/goudatijdmachine-straten.rq +++ b/packages/network-of-terms-catalog/catalog/queries/search/goudatijdmachine-straten.rq @@ -7,7 +7,6 @@ PREFIX luc-index: PREFIX omeka: PREFIX owl: PREFIX rdfs: -PREFIX o: CONSTRUCT { ?piduri a skos:Concept ; @@ -36,7 +35,7 @@ CONSTRUCT { BIND ( CONCAT( - IF ( EXISTS { ?entity omeka:item_set }, "Verdwenen straat", "Straat" ), + IF ( EXISTS { ?uri omeka:item_set }, "Verdwenen straat", "Straat" ), IF ( BOUND(?genoemdNaar), CONCAT(" in Gouda, genoemd naar ", ?genoemdNaar )," in Gouda" ) ) AS ?scopeNote ) @@ -52,6 +51,6 @@ CONSTRUCT { OPTIONAL { ?uri rdfs:seeAlso ?exactMatch_uri . - ?exactMatch_uri o:label ?exactMatch_label . + ?exactMatch_uri omeka:label ?exactMatch_label . } } ORDER BY DESC(?score) LIMIT 100