Skip to content

Instantly share code, notes, and snippets.

@gpirrotta
Last active November 17, 2019 11:06
Show Gist options
  • Save gpirrotta/dfdae0a223e260a0039d4630a6a489c6 to your computer and use it in GitHub Desktop.
Save gpirrotta/dfdae0a223e260a0039d4630a6a489c6 to your computer and use it in GitHub Desktop.
PREFIX shoah: <http://dati.cdec.it/lod/shoah/>
PREFIX bio-ext: <http://dati.cdec.it/lod/bio-ext/>
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