Skip to content

Instantly share code, notes, and snippets.

@gpirrotta
Last active November 12, 2019 18:10
Show Gist options
  • Save gpirrotta/031ad06a8862912034e4f733f38e9137 to your computer and use it in GitHub Desktop.
Save gpirrotta/031ad06a8862912034e4f733f38e9137 to your computer and use it in GitHub Desktop.
PREFIX bio-ext: <http://dati.cdec.it/lod/bio-ext/>
PREFIX bio: <http://purl.org/vocab/bio/0.1/>
PREFIX shoah: <http://dati.cdec.it/lod/shoah/>
SELECT DISTINCT ?labelConvoy ?deparDate ?labelCamp ?gender (count(?gender) as ?count)
FROM <http://dati.cdec.it/lod/shoah/>
WHERE
{?convoy a shoah:Convoy;
rdfs:label ?labelConvoy;
shoah:departureDate ?deparDate;
shoah:toNaziCamp ?naziCamp.
?naziCamp rdfs:label ?labelCamp.
?person shoah:persecution ?pers.
?pers shoah:convoy ?convoy.
OPTIONAL {?person foaf:gender ?gender.}
} ORDER BY ?convoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment