Skip to content

Instantly share code, notes, and snippets.

@gpirrotta
Last active November 14, 2019 18:26
Show Gist options
  • Save gpirrotta/69fcf81769088c345ce4fc428ebab11f to your computer and use it in GitHub Desktop.
Save gpirrotta/69fcf81769088c345ce4fc428ebab11f 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 ?birth ?deparDate ?labelCamp ?gender (count(?gender) as ?count)
FROM <http://dati.cdec.it/lod/shoah/>
WHERE
{?convoy a <http://dati.cdec.it/lod/shoah/Convoy>;
rdfs:label ?labelConvoy;
shoah:departureDate ?deparDate;
shoah:toNaziCamp ?naziCamp.
?naziCamp rdfs:label ?labelCamp.
?person shoah:persecution ?pers;
bio-ext:dateOfBirth ?birth.
?pers shoah:convoy ?convoy.
OPTIONAL {?person foaf:gender ?gender.}
FILTER(REGEX(?birth ,'^194','i') ||REGEX(?birth ,'^193','i'))
} ORDER BY ?convoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment