From a0acd416514ebe67f8bc4c47dae6150c05e8734e Mon Sep 17 00:00:00 2001 From: Bob Coret Date: Sun, 29 Oct 2023 13:39:32 +0100 Subject: [PATCH] feat: Improve GTM scope note (#1148) --- .../queries/search/goudatijdmachine-straten.rq | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 a49640873..87f06773c 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 @@ -20,18 +20,26 @@ CONSTRUCT { FILTER (STRSTARTS(STR(?uri), "https://n2t.net/ark:/60537/")) - ?uri sdo:identifier ?identifier ; - sdo:name ?prefLabel ; + ?uri sdo:name ?prefLabel ; luc:score ?score . - BIND ( CONCAT( IF ( EXISTS { ?entity omeka:item_set }, "Verdwenen straat", "Straat" )," in Gouda") AS ?scopeNote ) + OPTIONAL { + ?uri gtm:genoemdNaar ?genoemdNaar . + } + + BIND ( + CONCAT( + IF ( EXISTS { ?entity omeka:item_set }, "Verdwenen straat", "Straat" ), + IF ( BOUND(?genoemdNaar), CONCAT(" in Gouda, genoemd naar ", ?genoemdNaar )," in Gouda" ) + ) + AS ?scopeNote ) OPTIONAL { ?uri sdo:alternateName ?altLabel . } OPTIONAL { ?uri hg:absorbedBy|hg:absorbed ?related_uri . ?related_uri a gtm:Straat ; - sdo:name ?related_prefLabel . + sdo:name ?related_prefLabel . FILTER (STRSTARTS(STR(?related_uri), "https://n2t.net/ark:/60537/") && ?uri != ?related_uri ) } } ORDER BY DESC(?score) LIMIT 100 \ No newline at end of file