Viva city open smart city platform
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
489
On Slideshare
454
From Embeds
35
Number of Embeds
1

Actions

Shares
Downloads
1
Comments
0
Likes
2

Embeds 35

http://lanyrd.com 35

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1.  VivaCity  2.0  Open  Data  Smart  City  Pla6orm   Marco  Montanari  
  • 2.     HI,  I’M  MARCO  
  • 3. @ingmmo   marco.montanari@gmail.com     marco.montanari  or  sirmmo  on  facebook,  slideshare,  …                 hDp://ingmmo.com   hDp://www.mmo.it   hDps://github.com/sirmmo       HI,  I’M  MARCO      
  • 4. We  <3  open  data!!!       -­‐  Almost  everyone  
  • 5. Oh  Open  Data  are  so  cool  …   •  Lots  of  data  collecPons  (281*)   •  Lots  of  data  sources   •  Growing  movement  (*)   •  More  and  more  ciPes  and  regions   are  giving  out  datasets   •  Lots  of  geographic  datasets   •  Lots  of  geologic  datasets   •  Lots  of  public  transportaPon   datasets                 *  As  of  today  (20.09.12),  on  census.okfn.org  
  • 6. …  But  There’s  a  catch  
  • 7. …  But  There’s  a  catch   NYC  Parks  (shp)   ORGANIZATI   STATUS   TYPE   GISPROPNUM   OMPPROPID   LOCATION   JURISDICTI   WATERFRONT   MAPPED   SIGNNAME   BOROUGH   Precinct   ACRES   Chicago  Parks  (csv)   PARK  NUMBER   PARK  NAME   STREET  ADDRESS   ZIP   ACRES     WARD   PARK  CLASS   LABEL   WHEELCHAIR   ACCESSIBLE  BALL   FIELDS   ALFRED  CALDWELL   LILY  POND   ARCHERY  RANGE   ARTIFICIAL  TURF   FIELDS   BAND  SHELL   BASEBALL  BATTING   CAGES   BASKETBALL   BACKBOARDS   BASKETBALL  COURTS   BEACH   BOAT  LAUNCH   (MOTORIZED)   BOAT  LAUNCH  (NON-­‐ MOTORIZED)   BOAT  SLIPS   BOCCE  COURT   BOWLING  GREEN   CASTING  AREA   CHESS  PAVILLION   FOOTBALL  SOCCER   COMBO   COMMUNITY  GARDEN   CONSERVATORY   CULTURAL  CENTER   DOG-­‐FRIENDLY   FITNESS  CENTER   FITNESS  COURSES   GALLERY   GARDEN   GOLF  COURSE   GOLF  DRIVING  RANGE   GOLF  PUTTING   GREENS   GYMNASIUM   GYMNASTIC  CENTERS   HANDBALL/ RAQUETBALL  COURT   HANDBALL   HORSESHOE  COURTS   ICE  SKATING   POOL  INDOOR   BASEBALL  JR/ SOFTBALL/T-­‐BALL   MOUNTAIN  BIKE   TRAIL   NATURE   CENTER,POOL   OUTDOOR   PAVILLION   ZOO   PLAYGROUND   PLAYGROUND  PARK   ROWING  CLUB   VOLLEYBALL   SENIOR  CENTER   SHUFFLEBOARD   SKATE  PARK   SLED  HILL   SPORT  ROLLER   COURTS   SPRAY  FEATURE   BASEBALL  SR   TENNIS  COURTS   TRACK   VOLLEYBALL  SAND   WATER  PLAYGROUND   WATER  SLIDE   BOXING  CENTER   WETLAND  AREA   LAGOON   CAROUSEL   CROQUET   GOLF  COURSE   MINIATURE   MODEL  TRAIN   DISPLAY   MODEL  YACHT  BASIN   CRICKET  FIELD   LOCATION     Bologna  Parks  (shp)   COD_UG     NOME    
  • 8. …  But  There’s  a  (bunch  of)    catch(es)   NYC  Parks  (shp)   ORGANIZATI   STATUS   TYPE   GISPROPNUM   OMPPROPID   LOCATION   JURISDICTI   WATERFRONT   MAPPED   SIGNNAME   BOROUGH   Precinct   ACRES     AREAS   Chicago  Parks  (csv)   PARK  NUMBER   PARK  NAME   STREET  ADDRESS   ZIP   ACRES     WARD   PARK  CLASS   LABEL   WHEELCHAIR   ACCESSIBLE  BALL   FIELDS   ALFRED  CALDWELL   LILY  POND   ARCHERY  RANGE   ARTIFICIAL  TURF   FIELDS   BAND  SHELL   BASEBALL  BATTING   CAGES   BASKETBALL   BACKBOARDS   BASKETBALL  COURTS   BEACH   BOAT  LAUNCH   (MOTORIZED)   BOAT  LAUNCH  (NON-­‐ MOTORIZED)   BOAT  SLIPS   BOCCE  COURT   BOWLING  GREEN   CASTING  AREA   CHESS  PAVILLION   FOOTBALL  SOCCER   COMBO   COMMUNITY  GARDEN   CONSERVATORY   CULTURAL  CENTER   DOG-­‐FRIENDLY   FITNESS  CENTER   FITNESS  COURSES   GALLERY   GARDEN   GOLF  COURSE   GOLF  DRIVING  RANGE   GOLF  PUTTING   GREENS   GYMNASIUM   GYMNASTIC  CENTERS   HANDBALL/ RAQUETBALL  COURT   HANDBALL   HORSESHOE  COURTS   ICE  SKATING   POOL  INDOOR   BASEBALL  JR/ SOFTBALL/T-­‐BALL   MOUNTAIN  BIKE   TRAIL   NATURE   CENTER,POOL   OUTDOOR   PAVILLION   ZOO   PLAYGROUND   PLAYGROUND  PARK   ROWING  CLUB   VOLLEYBALL   SENIOR  CENTER   SHUFFLEBOARD   SKATE  PARK   SLED  HILL   SPORT  ROLLER   COURTS   SPRAY  FEATURE   BASEBALL  SR   TENNIS  COURTS   TRACK   VOLLEYBALL  SAND   WATER  PLAYGROUND   WATER  SLIDE   BOXING  CENTER   WETLAND  AREA   LAGOON   CAROUSEL   CROQUET   GOLF  COURSE   MINIATURE   MODEL  TRAIN   DISPLAY   MODEL  YACHT  BASIN   CRICKET  FIELD   LOCATION       POINTS   Bologna  Parks  (shp)   COD_UG     NOME       AREAS  
  • 9. It’s  all  about  semanPcs   •  Adding  semanPcs  to  SHP  (dbf),  CSV   – Easy  but  elaborate   •  Adding  a  normalizaPon  process  to  the  CSV   – Quite  easy  but  quite  elaborate     •  We  could  define  a  meta-­‐semanPc  model…  
  • 10. It’s  all  about  dimensions   Time   •  Date   •  Timestamp   •  Reference  Period   Topic     •  PoliPcs   •  Finance   •  Social  issues   Space   •  Coordinates   •  Areas   •  Regions  and  sub-­‐regions  
  • 11. It’s  all  about  dimensions   Time   •  Date   •  Timestamp   •  Reference  Period   Topic     •  PoliPcs   •  Finance   •  Social  issues   Space   •  Coordinates   •  Areas   •  Regions  and  sub-­‐regions  
  • 12. It’s  all  about  dimensions   Time   •  Date   •  Timestamp   •  Reference  Period   Topic     •  PoliPcs   •  Finance   •  Social  issues   Space   •  Coordinates   •  Areas   •  Regions  and  sub-­‐regions  
  • 13. It’s  all  about  dimensions   Time   •  Date   •  Timestamp   •  Reference  Period   Topic     •  PoliPcs   •  Finance   •  Social  issues   Space   •  Coordinates   •  Areas   •  Regions  and  sub-­‐regions  
  • 14. It’s  all  about  ontologies   •  Lots  of  ontologies  explainig  the  most  various  topics   –  DMTF  è  CIM  ontology  (useless?  Why?)   –  INSPIRE   –  Dublin  Core   –  Foaf   –  …   •  Do  we  need  more?     –  Sure!  But  projects  are  already  ongoing  (and  if  there  is  no  standard,  we  can   always  try  to  become  a  de-­‐facto  standard)  
  • 15. But  in  the  end  it’s  all  about  visualizing  the  data…   •  Who  likes  a  table?  (besides  developers)  
  • 16. …and  puong  it  into  context  (generate  informaPon)…  
  • 17. …and  puong  it  into  context  (generate  informaPon)…  
  • 18. …and  puong  it  into  context  (generate  informaPon)…  
  • 19. …  and  elaborate   •  MDX  queries  and  aggregaPons  based  on  the  various   dimensions  defined  by  the  topic-­‐based  ontologies   •  SPARQL  queries  to  harness  the  graph-­‐structure  of  the  backend   •  SQL  queries  to  enable  access  to  table-­‐like  front-­‐ends   •  WFS  queries  to  enable  access  to  GIS  tools  
  • 20. VivaCity   Park_name   Ball  fields   Borough   City   Geometry   Margherita   3   Murri   Bologna   …   Montagnola   0   Porto   Bologna   …   Borough   Phone   Manager   City   Geometry   Murri   +39051000000   Mario  Rossi   Bologna   …   Porto   +39051000001   Luigi  Neri   Bologna   …  
  • 21. VivaCity   PARK   TREE   SPECIES   SERVICE   PLAY   FIELD   BALL   FIELD   BASKET   FIELD   MGMT   PHONE   NUMBER  
  • 22. VivaCity   Park_name   Ball  fields   Borough   City   Geometry   Margherita   3   Murri   Bologna   …   Montagnola   0   Porto   Bologna   …   Borough   Phone   Manager   City   Geometry   Murri   +39051000000   Mario  Rossi   Bologna   …   Porto   +39051000001   Luigi  Neri   Bologna   …   PARK   TREE   SPECIES   SERVICE   PLAY   FIELD   BALL   FIELD   BASKET   FIELD   MGMT   PHONE   NUMBER  
  • 23.                           The  semanPc  is   given  to  any  meta-­‐ descripPon  of  a   dataset     At  every  change  a   new  semanPc  has   to  be  given                             ETL  is  complex  in   many  forms     Can  be  from  filed   and  APIs     Versioned     VivaCity   Ontology   SemanPcs   Raw  Data   VivaCity  
  • 24. VivaCity   •  Not  just  a  front  end   •  Not  just  an  uniforming  tool   •  A  way  to  understand  and  help  interprePng  the  data  exposed  as   Open  Data   •  A  pla6orm  for  the  city  to  evolve  from  data  producer  to  data   integrator  
  • 25. The  stack   VivaCity  1.0   •  Openlayers  2   –  Geojson  where  possible   •  Django   –  Data  manager   –  Exposed  basic  WFS     •  Postgresql  (PostGIS)   –  Neo4j  was  young  and  needed  more  evoluPon   –  Mongodb  supported  only  points,  had  only   superficial  support  of  queries   –  PostGIS  is  THE  best  for  many  cases   –  Not  for  graphs…     VivaCity  2.0   •  Leaflet  (with  plugins)  [maybe  OL3.js  soon]   –  GeoJSON,  TopoJSON  where  possible   •  Django   –  With  the  role  of  data  manager   –  Exposes  the  “data”  APIs   •  Fyzz  for  sparql  interpretaPon   •  MDXParse  (developed  for  this  project)  for  MDX   interpretaPon   •  SQLParse  for  SQL  interpretaPon   –  Exposes  the  OGC  APIs   –  Celery  to  manage  the  import  of  data   •  Mongodb  +  Neo4j  spaPal   –  Mongo  for  basic  document  queries  and  a  document  centric   approach   –  Neo4j  for  complex  relaPonal  queries  and  a  relaPonship-­‐ centric  approach  
  • 26. It’s  Open  Source   Or  beDer,  it  will  be  soon  (end  november)     Right  now  there  is  version  1.0  on  github  (for  last  year’s  never-­‐ made  FOSS4G12)  -­‐  hDps://github.com/ciPzennerd/VivaCity       IT’S  A  PROTOTYPE!!!      
  • 27. Thanks!   Marco.montanari@gmail.com  ,  @ingmmo,   ingmmo.com,  hDps://github.com/sirmmo,