Skip to content

Commit

Permalink
feat: Improve GTM scope note (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
coret authored Oct 29, 2023
1 parent 193c63f commit a0acd41
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://n2t.net/ark:/60537/bd75pg> }, "Verdwenen straat", "Straat" )," in Gouda") AS ?scopeNote )
OPTIONAL {
?uri gtm:genoemdNaar ?genoemdNaar .
}

BIND (
CONCAT(
IF ( EXISTS { ?entity omeka:item_set <https://n2t.net/ark:/60537/bd75pg> }, "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

0 comments on commit a0acd41

Please sign in to comment.