2. Content
● Part I
○ Open data
○ The CitySDK project
○ Try the CitySDK API
● Part 2
○ Social media API’s
○ Using the Twitter API
3. Open data
What 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.
4. Current issues of open data
● Different locations and different formats
● No data format standards (across countries)
5. 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)
6. 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
9. 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
10. 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
11. Dynamic data
● Collaboration with Van
Gogh museum
○ Measuring queue
length
○ Interesting info for
Van Gogh
○ Better services for
tourists
17. The CitySDK API
● Tourism:
○ API: citysdk.dmci.hva.nl/CitySDK/resources
○ Documentation: http://citysdk.ist.utl.pt/
● Mobility
○ dev.citysdk.waag.org
18. Applications
Applications 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/
19. 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
21. 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.
23. The Twitter API
● What did we do?
○ Collect tweets with geolocation in Amsterdam
● Visualize the data in different ways
24. Using the Twitter API
● Streaming API
● REST API
● Firehose
● Authentication
● Documentation: dev.twitter.com
25. 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-quicktutorial-processing-twitter (or google: processing twitter)
● Retrieve current trending topics (in The Netherlands)
● Retrieve tweets(no retweets) from the past week in
Amsterdam