SlideShare una empresa de Scribd logo
1 de 7
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
We have already learned what SIOC is
ESWC 2014 Social Web: Where are the Semantics? 2
But just to have it a bit more clear….
• Open it with your favourite ontology editor 
ESWC 2014 Social Web: Where are the Semantics? 3
Lets try to model some Twitter data with SIOC
• Lets remind which sort of data Twitter give us…
– Information about the post
– Information about the user
ESWC 2014 Social Web: Where are the Semantics? 4
Lets try to model some Twitter data with SIOC
• Lets remind which sort of data Twitter give us…
– Entities, including hashtags, user mentions and urls
ESWC 2014 Social Web: Where are the Semantics? 5
Hands on: Using SIOC to model Twitter Data
ESWC 2014 Social Web: Where are the Semantics? 6
sioc:reply_of/
sioc:has_reply
sioct:
Microblog
Post
Tweet
URL
sioc:content
Tweet
Text
dcterms:created
Tweet
creation
time
sioc:has_container/
sioc:container_of
sioct:
Microblog
sioc:has_creator/
sioc:creator_of
sioc:UserAccount sioc:name
Screen
name
sioc:has_space/
sioc:space_of
sioc:Site
Twitter
homepage
sioc:topic
sioct:Tag
sioc:name
Extracted
hashtag
sioc:links_to
Extracted
link
sioc:mentions
sioc:follows
sioc:subscriber_of/
sioc:has_subscriber,
sioc:isPartOf/
sioc:hasPart
sioc:has_owner/
sioc:owner_of
geo:long
Tweet
Longt.
geo:lat
Tweet
Lat.
gn:Feature
sioc:about
...
geo:Point
geo:location
dcterms:created
Account
creation
time
sioc:note
Account
description
sioc:avatar
Avatar URL
User
Twitter
homepage
User
ID
dcterms:title
User
name
sioc:forwarded_by
sioc:Container
Twitter
list ID
sioc:addressed_to
• How to model re-
tweets?
• How to
distinguish
replies from
retweets?
Try the code!
• https://gist.github.com/miriamfs/e1738c7e17ce4a479dbe
This Gists contains three main files:
– SIOCTWitterParser.java: contains the code that you need to parse
Twitter data and transform it into SIOC format
– pom.xml: contains the dependencies. If you prefer not to use a maven
project, just go to jena and JSON-Liband download the corresponding
libraries
– siocTwitterParser.properties: this is the properties file that you need to
set up, including
• siocOntologyFolder. This is the local folder in your computer where you
store the SIOC ontology
• jsonInputFile. This is an example of a Twitter JSON file. Note that you
can can directly connect, download Twitter data and transform it! :)
• rdfOutputFile. This is the output file containing SIOC transformed Twitter
data
ESWC 2014 Social Web: Where are the Semantics? 7

Más contenido relacionado

Más de Miriam Fernandez

ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...
ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...
ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...
Miriam Fernandez
 
Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...
Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...
Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...
Miriam Fernandez
 

Más de Miriam Fernandez (15)

Introduction to Mining Social Media Data
Introduction to Mining Social Media DataIntroduction to Mining Social Media Data
Introduction to Mining Social Media Data
 
Online Misinformation: Challenges and Future Directions
Online Misinformation: Challenges and Future DirectionsOnline Misinformation: Challenges and Future Directions
Online Misinformation: Challenges and Future Directions
 
Slides 28-feb-2018-v2.pptx
Slides 28-feb-2018-v2.pptxSlides 28-feb-2018-v2.pptx
Slides 28-feb-2018-v2.pptx
 
Artificial Intelligence for Policing
Artificial Intelligence for PolicingArtificial Intelligence for Policing
Artificial Intelligence for Policing
 
OUSocial OUSocMed conference
OUSocial OUSocMed conference OUSocial OUSocMed conference
OUSocial OUSocMed conference
 
SocInfo2014 CityLabs Workshop
SocInfo2014 CityLabs WorkshopSocInfo2014 CityLabs Workshop
SocInfo2014 CityLabs Workshop
 
ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...
ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...
ECSM2014: Using Social Media To Inform Policy Making: To whom are we listenin...
 
ESWC 2014 Tutorial Handson 1: Collect Data from Facebook
ESWC 2014 Tutorial Handson 1: Collect Data from FacebookESWC 2014 Tutorial Handson 1: Collect Data from Facebook
ESWC 2014 Tutorial Handson 1: Collect Data from Facebook
 
ESWC 2014 Tutorial Part 4
ESWC 2014 Tutorial Part 4ESWC 2014 Tutorial Part 4
ESWC 2014 Tutorial Part 4
 
ESWC 2014 Tutorial part 3
ESWC 2014 Tutorial part 3ESWC 2014 Tutorial part 3
ESWC 2014 Tutorial part 3
 
ESWC 2014 Tutorial part 2
ESWC 2014 Tutorial part 2ESWC 2014 Tutorial part 2
ESWC 2014 Tutorial part 2
 
ESWC 2014 Tutorial part 1
ESWC 2014 Tutorial part 1ESWC 2014 Tutorial part 1
ESWC 2014 Tutorial part 1
 
Wm unit1.6-slides-semantic web-final
Wm unit1.6-slides-semantic web-finalWm unit1.6-slides-semantic web-final
Wm unit1.6-slides-semantic web-final
 
CAEPIA 2011
CAEPIA 2011CAEPIA 2011
CAEPIA 2011
 
Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...
Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...
Iswc 2011: Linking Data Across Universities: An Integrated Video Lectures Dat...
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

2014 ESWC Tutorial Handson 2: Transforming Twitter Data into SIOC, glimpse

  • 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. We have already learned what SIOC is ESWC 2014 Social Web: Where are the Semantics? 2
  • 3. But just to have it a bit more clear…. • Open it with your favourite ontology editor  ESWC 2014 Social Web: Where are the Semantics? 3
  • 4. Lets try to model some Twitter data with SIOC • Lets remind which sort of data Twitter give us… – Information about the post – Information about the user ESWC 2014 Social Web: Where are the Semantics? 4
  • 5. Lets try to model some Twitter data with SIOC • Lets remind which sort of data Twitter give us… – Entities, including hashtags, user mentions and urls ESWC 2014 Social Web: Where are the Semantics? 5
  • 6. Hands on: Using SIOC to model Twitter Data ESWC 2014 Social Web: Where are the Semantics? 6 sioc:reply_of/ sioc:has_reply sioct: Microblog Post Tweet URL sioc:content Tweet Text dcterms:created Tweet creation time sioc:has_container/ sioc:container_of sioct: Microblog sioc:has_creator/ sioc:creator_of sioc:UserAccount sioc:name Screen name sioc:has_space/ sioc:space_of sioc:Site Twitter homepage sioc:topic sioct:Tag sioc:name Extracted hashtag sioc:links_to Extracted link sioc:mentions sioc:follows sioc:subscriber_of/ sioc:has_subscriber, sioc:isPartOf/ sioc:hasPart sioc:has_owner/ sioc:owner_of geo:long Tweet Longt. geo:lat Tweet Lat. gn:Feature sioc:about ... geo:Point geo:location dcterms:created Account creation time sioc:note Account description sioc:avatar Avatar URL User Twitter homepage User ID dcterms:title User name sioc:forwarded_by sioc:Container Twitter list ID sioc:addressed_to • How to model re- tweets? • How to distinguish replies from retweets?
  • 7. Try the code! • https://gist.github.com/miriamfs/e1738c7e17ce4a479dbe This Gists contains three main files: – SIOCTWitterParser.java: contains the code that you need to parse Twitter data and transform it into SIOC format – pom.xml: contains the dependencies. If you prefer not to use a maven project, just go to jena and JSON-Liband download the corresponding libraries – siocTwitterParser.properties: this is the properties file that you need to set up, including • siocOntologyFolder. This is the local folder in your computer where you store the SIOC ontology • jsonInputFile. This is an example of a Twitter JSON file. Note that you can can directly connect, download Twitter data and transform it! :) • rdfOutputFile. This is the output file containing SIOC transformed Twitter data ESWC 2014 Social Web: Where are the Semantics? 7