college van trends tot innovatie
DESCRIPTION
TRANSCRIPT
Van trends tot innovatieOpen data: CitySDK & API’S - 15-11-2013Wouter Meys & Maarten Groen
Content● Part I
○ Open data○ The CitySDK project○ Try the CitySDK API
● Part 2○ Social media API’s○ Using the Twitter API
Open dataWhat is open data?● A piece of data is open if anyone is free to use, reuse,
and redistribute it — subject only, at most, to the requirement to attribute and/or share-alike.
Current issues of open data● Different locations and different formats
● No data format standards (across countries)
Five stars of Tim Berners-Lee★ make your stuff available on the Web (whatever format) under an open license
★ ★ make it available as structured data (e.g., Excel instead of image scan of a table)
★ ★ ★ use non-proprietary formats (e.g., CSV instead of Excel)
★ ★ ★ ★ use URIs to denote things, so that people can point at your stuff
★ ★ ★ ★ ★ link your data to other data to provide context (semantic web)
Part I: The CitySDK project● Eight European Cities
● Open data platform○ Work packages: Mobility, Tourism, Participation
● Helping cities to open their data
● Giving developers the tools they need
The CitySDK framework (1)
The CitySDK framework (2)
HvA contributions ● Collect data on tourists' movements, activities and/or
experiences
● For organizations in the tourism sector, increase knowledge on their clients
● Enabling smarter information (services) for tourists
Implementation● Replicate the Lissabon head tourism pilot
● Tourism pilot focuses on:○ Points Of Interests (POI)○ Events○ Routes
● Using Open Data○ Arts Holland ○ Hotels: amsterdamopendata.nl○ Restaurants: ATCB
Dynamic data ● Collaboration with Van
Gogh museum○ Measuring queue
length○ Interesting info for
Van Gogh○ Better services for
tourists
Sensor system● Ultrasonic sensor ● Four separate wireless
transmitters ● One base station
Sensor framework
Sensor locations
From test lab to living lab● Four sensor are placed● Problems:
○ Rain○ Range○ Base station location
● Fixes: ○ Improved case○ Better antennas
Application showing data● Show queue
● Go to POI/Events
● Create your own route
The CitySDK API● Tourism:
○ API: citysdk.dmci.hva.nl/CitySDK/resources○ Documentation: http://citysdk.ist.utl.pt/
● Mobility○ dev.citysdk.waag.org
ApplicationsApplications made with CitySDK API● Open Data Globe
○ http://dev.citysdk.waag.org/visualisation/
● Buildings in the Netherlands by year of construction○ http://dev.citysdk.waag.org/buildings/
Try it out● Look at the different datasets
○ http://cms.citysdk.waag.org
http://dev.citysdk.waag.org/● Try to retrieve all restaurants available in the API that
are located in ‘stadsdeel west’ in Amsterdam
● Play around with combination of various datasets
Short Break (15 min)
Part II: Social media API’s● Twitter
○ +: Data is open, geolocation ○ -: Data reliability , sparsity , firehose
● Facebook○ +: Large userbase, Likes, Companies ○ -: Accessibility, query language
● Other: Flickr, FourSquare, Instagram etc. etc.
Combining API’s● Livehoods
○ http://livehoods.org/maps/nyc
● Please Rob Me○ http://pleaserobme.com/why
● Streamwatchr○ http://streamwatchr.com/
The Twitter API● What did we do?
○ Collect tweets with geolocation in Amsterdam
● Visualize the data in different ways
Using the Twitter API● Streaming API● REST API● Firehose
● Authentication● Documentation: dev.twitter.com
Try it out!● Register an application (dev.twitter.com)● Check for library (https://dev.twitter.com/docs/twitter-libraries)
○ Javascript: codebird-js○ Processing: http://blog.blprnt.com/blog/blprnt/updated-quick-
tutorial-processing-twitter (or google: processing twitter)
● Retrieve current trending topics (in The Netherlands)● Retrieve tweets(no retweets) from the past week in
Amsterdam