Skip to content

Instantly share code, notes, and snippets.

@gpirrotta
Last active November 13, 2019 20:53
Show Gist options
  • Save gpirrotta/d7075b96e697211a36bfdb80000df79d to your computer and use it in GitHub Desktop.
Save gpirrotta/d7075b96e697211a36bfdb80000df79d to your computer and use it in GitHub Desktop.
PREFIX bio-ext: <http://dati.cdec.it/lod/bio-ext/>
PREFIX shoah: <http://dati.cdec.it/lod/shoah/>
SELECT DISTINCT ?country count(?country) as ?count
FROM <http://dati.cdec.it/lod/shoah/>
WHERE {
?IRI a foaf:Person;
bio-ext:birthPlace ?birth.
?birth foaf:country ?country.
FILTER(?country != 'Italia').
}
GROUP BY ?country
ORDER BY DESC(?count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment