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 ?commissione ?dizioneCommissione ?senatore ?nome ?cognome ?carica ?inizioAfferenza ?fineAfferenza | |
6 | WHERE | |
7 | { | |
8 | ?commissione osr:titolo ?dizioneCommissione. | |
9 | - | ?afferenza osr:commissione <http://dati.senato.it/commissione/1>. |
9 | + | ?afferenza osr:commissione <http://dati.senato.it/commissione/0-1>. |
10 | ?afferenza a osr:Afferenza. | |
11 | ?afferenza osr:inizio ?inizioAfferenza | |
12 | OPTIONAL { ?afferenza osr:fine ?fineAfferenza } | |
13 | ?afferenza osr:carica ?carica. | |
14 | ?senatore osr:afferisce ?afferenza. | |
15 | ?senatore a osr:Senatore. | |
16 | ?senatore foaf:firstName ?nome. | |
17 | ?senatore foaf:lastName ?cognome. | |
18 | - | FILTER (?commissione = <http://dati.senato.it/commissione/1> ) |
18 | + | FILTER (?commissione = <http://dati.senato.it/commissione/0-1> ) |
19 | FILTER ( (?inizioAfferenza < xsd:dateTime(str("2009-06-01"))) && ((!bound(?fineAfferenza)) || ?fineAfferenza > xsd:dateTime(str("2009-06-01"))) ) . | |
20 | } | |
21 | GROUP BY ?senatore | |
22 | ORDER BY ?cognome ?nome |