SlideShare a Scribd company logo
Social Web: Where are the Semantics?
ESWC 2014
Miriam Fernández, Victor Rodríguez,
Andrés García-Silva, Oscar Corcho
Ontology Engineering Group, UPM, Spain
Knowledge Media Institute, The Open University
1.- Obtain a FB account
• If you don’t have already one ;)
ESWC 2014 Social Web: Where are the Semantics? 2
2.- Register as developer
• https://developers.facebook.com/
ESWC 2014 Social Web: Where are the Semantics? 3
3.- Create a new App
ESWC 2014 Social Web: Where are the Semantics? 4
4.- Obtain your App ID and App Secret!
ESWC 2014 Social Web: Where are the Semantics? 5
5.- Play a bit with the graph
ESWC 2014 Social Web: Where are the Semantics? 6
Now lets try to create our own APP
https://gist.github.com/miriamfs/b78a8b26ea0f2895788f
ESWC 2014 Social Web: Where are the Semantics? 7
To set up your project…you need three files
• FacebookDataCollector.java contains the code that you need to
download data from Facebook open groups or Facebook pages
• pom.xml contains the dependencies. If you prefer not to use a
maven project, just go to http://restfb.com/#download and
download the corresponding library [or ask for the usb]
• fbCollector.properties. This is the properties file that you need to
set up. You need to add:
– appId and appSecret. This are your facebook app's credentials.
– FbGroups and FbPages are the ids of groups and pages for which you want
to download information. If you have more than one group or one page,
please provide them separated by ",”
– maxPosts = maximum number of [initial] posts that you want to download for
each group/page. Note that for each initial posts all of its corresponding
comments will also be included in the download
ESWC 2014 Social Web: Where are the Semantics? 8
And you get three files ;)
• This program provides as output 3 files:
– posts.csv -> contains all the posts and comments that have been
downloaded including their text, time, user who generate them and
group or page from where they come from.
– replies.csv -> contains the reply change, i.e., information of which
posts have been generated as comments to other posts
– groups.csv -> contains information about the groups from which
information have been downloaded
ESWC 2014 Social Web: Where are the Semantics? 9
And if you don’t fancy to play with the code…
• Just execute it! 
– java –jar fb_data_collector.jar ./fbCollector.properties
– And get the data!
ESWC 2014 Social Web: Where are the Semantics? 10

More Related Content

DOCX
App proposal nathan towel
PPTX
Curiosity Bits Python Tutorial: Mining Facebook Fan Page - getting posts and ...
PPTX
Patrick armstrong athens
PPTX
Rozalia alik task2 math3 (new)
PPTX
Python Tutorial-Mining imgur images
PPTX
SocInfo2014 CityLabs Workshop
PDF
ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...
PDF
Tutorial: Social Semantics
App proposal nathan towel
Curiosity Bits Python Tutorial: Mining Facebook Fan Page - getting posts and ...
Patrick armstrong athens
Rozalia alik task2 math3 (new)
Python Tutorial-Mining imgur images
SocInfo2014 CityLabs Workshop
ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...
Tutorial: Social Semantics

Similar to ESWC 2014 Tutorial Handson 1: Collect Data from Facebook (20)

PDF
ESWC 2014 Tutorial part 1
PDF
ESWC 2014 Tutorial part 2
PDF
ESWC 2014 Tutorial Part 4
PDF
Lecture 3: Vocabularies & Data Formats on the Social Web (2014)
PDF
Lecture 2: Interactions, Frameworks, Privacy & Security on the Social Web (2014)
PPT
Semantic Web 2.0
PPT
Social Web for VU Dagje Studeren
PDF
ESWC 2014 Tutorial part 3
PDF
Semantic web approach towards interoperability and privacy issues in social n...
PPTX
What is the Semantic Web
PPTX
Interlinking semantics, web2.0, and the real-world
PDF
Lecture2: What People Do on the Social Web (VU Amsterdam Social Web Course)
PDF
SEMANTIC WEB APPROACH TOWARDS INTEROPERABILITY AND PRIVACY ISSUES IN SOCIAL N...
PPTX
The Social Semantic Web
PDF
SEMANTIC WEB APPROACH TOWARDS INTEROPERABILITY AND PRIVACY ISSUES IN SOCIAL N...
PPTX
Social Networks and the Semantic Web: a retrospective of the past 10 years
PPTX
Semantic Web in the Fog of Browsers
PPT
Semantic Web: Explanation
PPT
The semantic web
PDF
Lecture3: What is the DATA on the Social Web (VU Amsterdam Social Web Course)
ESWC 2014 Tutorial part 1
ESWC 2014 Tutorial part 2
ESWC 2014 Tutorial Part 4
Lecture 3: Vocabularies & Data Formats on the Social Web (2014)
Lecture 2: Interactions, Frameworks, Privacy & Security on the Social Web (2014)
Semantic Web 2.0
Social Web for VU Dagje Studeren
ESWC 2014 Tutorial part 3
Semantic web approach towards interoperability and privacy issues in social n...
What is the Semantic Web
Interlinking semantics, web2.0, and the real-world
Lecture2: What People Do on the Social Web (VU Amsterdam Social Web Course)
SEMANTIC WEB APPROACH TOWARDS INTEROPERABILITY AND PRIVACY ISSUES IN SOCIAL N...
The Social Semantic Web
SEMANTIC WEB APPROACH TOWARDS INTEROPERABILITY AND PRIVACY ISSUES IN SOCIAL N...
Social Networks and the Semantic Web: a retrospective of the past 10 years
Semantic Web in the Fog of Browsers
Semantic Web: Explanation
The semantic web
Lecture3: What is the DATA on the Social Web (VU Amsterdam Social Web Course)
Ad

More from Miriam Fernandez (15)

PDF
Biases in Social Media Research (NoBias EU project)
PPTX
Research seminar Queen Mary University of London (CogSci)
PDF
Vision track october_2020_fernandez_v5
PDF
On the Application of Social Data Science to Address Societal Challenges
PPTX
Online radicalisation: work, challenges and future directions
PDF
Mining Social Media Data For Policing
PDF
Introduction to Mining Social Media Data
PDF
Online Misinformation: Challenges and Future Directions
PDF
Slides 28-feb-2018-v2.pptx
PDF
Artificial Intelligence for Policing
PPTX
OUSocial OUSocMed conference
PDF
On the use of social media for evidence-based policing
PDF
Wm unit1.6-slides-semantic web-final
PDF
CAEPIA 2011
PPT
Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...
Biases in Social Media Research (NoBias EU project)
Research seminar Queen Mary University of London (CogSci)
Vision track october_2020_fernandez_v5
On the Application of Social Data Science to Address Societal Challenges
Online radicalisation: work, challenges and future directions
Mining Social Media Data For Policing
Introduction to Mining Social Media Data
Online Misinformation: Challenges and Future Directions
Slides 28-feb-2018-v2.pptx
Artificial Intelligence for Policing
OUSocial OUSocMed conference
On the use of social media for evidence-based policing
Wm unit1.6-slides-semantic web-final
CAEPIA 2011
Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...
Ad

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
cuic standard and advanced reporting.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
KodekX | Application Modernization Development
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
MYSQL Presentation for SQL database connectivity
Programs and apps: productivity, graphics, security and other tools
cuic standard and advanced reporting.pdf
MIND Revenue Release Quarter 2 2025 Press Release
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Network Security Unit 5.pdf for BCA BBA.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Chapter 3 Spatial Domain Image Processing.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Empathic Computing: Creating Shared Understanding
“AI and Expert System Decision Support & Business Intelligence Systems”
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KodekX | Application Modernization Development
Diabetes mellitus diagnosis method based random forest with bat algorithm
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
The AUB Centre for AI in Media Proposal.docx
MYSQL Presentation for SQL database connectivity

ESWC 2014 Tutorial Handson 1: Collect Data from Facebook

  • 1. Social Web: Where are the Semantics? ESWC 2014 Miriam Fernández, Victor Rodríguez, Andrés García-Silva, Oscar Corcho Ontology Engineering Group, UPM, Spain Knowledge Media Institute, The Open University
  • 2. 1.- Obtain a FB account • If you don’t have already one ;) ESWC 2014 Social Web: Where are the Semantics? 2
  • 3. 2.- Register as developer • https://developers.facebook.com/ ESWC 2014 Social Web: Where are the Semantics? 3
  • 4. 3.- Create a new App ESWC 2014 Social Web: Where are the Semantics? 4
  • 5. 4.- Obtain your App ID and App Secret! ESWC 2014 Social Web: Where are the Semantics? 5
  • 6. 5.- Play a bit with the graph ESWC 2014 Social Web: Where are the Semantics? 6
  • 7. Now lets try to create our own APP https://gist.github.com/miriamfs/b78a8b26ea0f2895788f ESWC 2014 Social Web: Where are the Semantics? 7
  • 8. To set up your project…you need three files • FacebookDataCollector.java contains the code that you need to download data from Facebook open groups or Facebook pages • pom.xml contains the dependencies. If you prefer not to use a maven project, just go to http://restfb.com/#download and download the corresponding library [or ask for the usb] • fbCollector.properties. This is the properties file that you need to set up. You need to add: – appId and appSecret. This are your facebook app's credentials. – FbGroups and FbPages are the ids of groups and pages for which you want to download information. If you have more than one group or one page, please provide them separated by ",” – maxPosts = maximum number of [initial] posts that you want to download for each group/page. Note that for each initial posts all of its corresponding comments will also be included in the download ESWC 2014 Social Web: Where are the Semantics? 8
  • 9. And you get three files ;) • This program provides as output 3 files: – posts.csv -> contains all the posts and comments that have been downloaded including their text, time, user who generate them and group or page from where they come from. – replies.csv -> contains the reply change, i.e., information of which posts have been generated as comments to other posts – groups.csv -> contains information about the groups from which information have been downloaded ESWC 2014 Social Web: Where are the Semantics? 9
  • 10. And if you don’t fancy to play with the code… • Just execute it!  – java –jar fb_data_collector.jar ./fbCollector.properties – And get the data! ESWC 2014 Social Web: Where are the Semantics? 10