Advertisement
dpalmisano

composizione-commissione

Dec 10th, 2012
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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/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/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement