SHOW:
|
|
- or go back to the newest paste.
1 | PREFIX ocd: <http://dati.camera.it/ocd/> | |
2 | PREFIX osr: <http://dati.senato.it/osr/> | |
3 | PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
4 | ||
5 | SELECT DISTINCT ?sen as ?senatore ?senFn as ?nome ?senLN as ?cognome ?dataInizio ?dataFine ?tipoMandato | |
6 | WHERE | |
7 | { | |
8 | ?mandato a ocd:mandatoSenato . | |
9 | ?sen a osr:Senatore . | |
10 | ?sen foaf:firstName ?senFn . | |
11 | ?sen foaf:lastName ?senLN . | |
12 | ?sen osr:mandato ?mandato . | |
13 | ?mandato osr:tipoMandato ?tipoMandato . | |
14 | ?mandato osr:inizio ?dataInizio . | |
15 | OPTIONAL { ?mandato osr:fine ?dataFine } . | |
16 | FILTER ( (?dataInizio < xsd:dateTime(str("2012-09-24"))) && ((!bound(?dataFine)) || ?dataFine > xsd:dateTime(str("2012-09-24"))) ) . | |
17 | - | FILTER ( (?tipoMandato = "a vita"^^<http://www.w3.org/2001/XMLSchema#string>) || (?tipoMandato = "di diritto e a vita"^^<http://www.w3.org/2001/XMLSchema#string>) ). |
17 | + | FILTER ( (?tipoMandato = "a vita, di nomina del Presidente della Repubblica"^^<http://www.w3.org/2001/XMLSchema#string>) || (?tipoMandato = "di diritto e a vita, Presidente emerito della Repubblica"^^<http://www.w3.org/2001/XMLSchema#string>) ). |
18 | } | |
19 | ORDER BY ?senLN |