Translations:Project:SPARQL/examples/77/nl

From Resistance in Belgium
  1. Gefedereerde query om aanvullende informatie van Wikidata op te halen
 SERVICE <https://query.wikidata.org/sparql> {
   
   # Haalt de URL's van externe identificaties op en genereert deze
   OPTIONAL { 
     ?wikidata_ID wdt_wikidata:P2372 ?odisID.  # Haalt de ODIS-ID op
     BIND(URI(CONCAT("https://www.odis.be/lnk/", STR(?odisID))) AS ?odisURL)  # Genereert de ODIS-URL
   }
   OPTIONAL { 
     ?wikidata_ID wdt_wikidata:P6234 ?bioNationaleID.  # Biographie Nationale van België ID
     BIND(URI(CONCAT("https://academieroyale.be/fr/la-biographie-nationale-personnalites-detail/personnalites/", STR(?bioNationaleID), "/Vrai/")) AS ?bioNationaleURL)  # Genereert de Biographie Nationale-URL
   }
   OPTIONAL { 
     ?wikidata_ID wdt_wikidata:P214 ?viafID.  # VIAF-ID
     BIND(URI(CONCAT("https://viaf.org/viaf/", STR(?viafID))) AS ?viafURL)  # Genereert de VIAF-URL
   }
   OPTIONAL { 
     ?wikidata_ID wdt_wikidata:P3430 ?snacID.  # SNAC-ID
     BIND(URI(CONCAT("https://snaccooperative.org/ark:/99166/", STR(?snacID))) AS ?snacURL)  # Genereert de SNAC-URL
   }
   OPTIONAL { 
     ?wikidata_ID wdt_wikidata:P4724 ?maitronID.  # Maitron-ID
     BIND(URI(CONCAT("https://maitron.fr/spip.php?article", STR(?maitronID))) AS ?maitronURL)  # Genereert de Maitron-URL
   }
   OPTIONAL { 
     ?wikidata_ID wdt_wikidata:P1979 ?JusteID.  # Rechtvaardige onder de Naties ID
     BIND(URI(CONCAT("https://collections.yadvashem.org/en/righteous/", STR(?JusteID))) AS ?JusteURL)  # Genereert de Rechtvaardige onder de Naties-URL
   }
   
   # Haalt het Nederlandstalige Wikipedia-artikel op
   OPTIONAL {
     ?article_nl schema:about ?wikidata_ID ;
                 schema:inLanguage "nl" ;
                 schema:isPartOf <https://nl.wikipedia.org/> .  # Nederlandstalig Wikipedia-artikel
   }
   
   # Haalt de archieven op die aan de persoon zijn gekoppeld
   OPTIONAL {
     ?wikidata_ID wdt_wikidata:P485 ?archives.  # Haalt archieven op (P485)
     ?archives rdfs:label ?archivesLabel.  # Haalt archieflabels op
     FILTER(LANG(?archivesLabel) = "nl")  # Filtert op labels in het Nederlands
   }
 }