SlideShare a Scribd company logo
1 of 16
Download to read offline
Context-aware systems
and Linked Data
Ville Seppänen
ville.t.seppanen@tut.fi
MATHM-57300
Semantic Techniques and Applications
My research area
• The Internet of Things (IoT)
– Everything is connected via RFID+URI
– Scale of 50-100 trillion things
• Main issues are scalability, interoperability,
security
• The data IoT provides can be used to provide
more relevant and automated technology
12.10.2012MATHM-57300 | Ville Seppänen 2
A problem I have had
• Where to get a test data source that has…
– Dynamic, ever-changing data?
– Connections between People, Locations
and Devices?
– Massive amount of real data (instead of
computer-generated or simulated)?
12.10.2012MATHM-57300 | Ville Seppänen 3
Solution: Foursquare!
12.10.2012MATHM-57300 | Ville Seppänen 4
REST-based API outputting
JSON
12.10.2012MATHM-57300 | Ville Seppänen 5
Users
Venues
Venuegroups
Checkins
Tips
Lists
Photos
Events
Example of JSON response
12.10.2012MATHM-57300 | Ville Seppänen 6
Foursquare API and 5-star
Open Data
“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 identify things, so that
people can point at your stuff”
“link your data to other data to provide
context”
12.10.2012MATHM-57300 | Ville Seppänen 7
Foursquare API and 5-star
Open Data
Yes
(not fully open)
“make your stuff available on the Web
(whatever format) under an open license”
Yes
“make it available as structured data (e.g.,
Excel instead of image scan of a table)”
Yes
“use non-proprietary formats
(e.g., CSV instead of Excel)”
“use URIs to identify things, so that
people can point at your stuff”
“link your data to other data to provide
context”
12.10.2012MATHM-57300 | Ville Seppänen 8
Foursquare API and 5-star
Open Data
Yes
(not fully open)
“make your stuff available on the Web
(whatever format) under an open license”
Yes
“make it available as structured data (e.g.,
Excel instead of image scan of a table)”
Yes
“use non-proprietary formats
(e.g., CSV instead of Excel)”
Partially
(IDs for entities)
“use URIs to identify things, so that
people can point at your stuff”
Very little
(links to Facebook)
“link your data to other data to provide
context”
12.10.2012MATHM-57300 | Ville Seppänen 9
Not far from JSON-LD
Foursquare: "venue":{
"id":"4b613a3cf964a5207b0d2ae3",
"name":"Tampere University of Technology", … }
https://api.foursquare.com/v2/venues/4b613a3cf964a5207b0d2ae3
https://foursquare.com/v/tampere-university-of-technology/4b613a3cf964a5207b0d2ae3
JSON-LD: { "@context": "http://json-ld.org/contexts/person.jsonld",
"@id": "http://dbpedia.org/resource/John_Lennon",
"name": "John Lennon", … }
person.jsonld: "@context": {
"Person": "http://xmlns.com/foaf/0.1/Person",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"name": "http://xmlns.com/foaf/0.1/name", … }
12.10.2012MATHM-57300 | Ville Seppänen 10
Let’s write some Python!
“This application uses the foursquare® application programming interface
but is not endorsed or certified by Foursquare Labs, Inc.”
• Fetch description of venue (and cache the response for future usage)
data_blob = urllib2.urlopen('https://api.foursquare.com...').read()
• Make some initial text-level transformations towards JSON-LD
linkified_json = json.loads(load_data_blob(query_type, query_id,
query_aspect).replace('"id"','"@id"'))['response']
• Filter out uninteresting properties
for i in list_of_deletables: del linkified_json['venue'][i]
• Make the rest of JSON-LD enrichment by adding @context entries
# Damn it, ran out of time! Have to make triples manually. :(
• Parse the JSON-LD into a RDFlib Graph
g = Graph().parse(data=json.dumps(linkified_json), format='json-ld')
• Print RDF/XML
print(g.serialize(format=”pretty-xml"))
12.10.2012MATHM-57300 | Ville Seppänen 11
About the assignment
• My SKOS scheme is based loosely on:
– SOUPA: ”Standard ontology for ubiquitous and
pervasive applications”
– CONON: ”The Context Ontology”
• User, Device, Location, Photo, Content,
Service…
• Handmade dataset based on the JSON
response
– Contains TUT venue, its mayor, several photos and
their creators
12.10.2012MATHM-57300 | Ville Seppänen 12
What can we do with it?
• Simple examples:
– List places which have women as the majority of contributors
– Compare photos taken by locals vs. foreigners
– List venues that are shared by active contributors of a venue
• On a more wider scale:
– Analyze the effects of (hosted) events
– Predict customer/visitor flow
– Learn about correlation between places and people
• The ultimate goal:
– More relevant services that accommodate to context
12.10.2012MATHM-57300 | Ville Seppänen 13
Side note: Privacy
• Linking social accounts
together is powerful
– People should be aware of the
”union of social web data”
• We will have more links
between data and more
(detailed) data
• What about Terms of Service
and research usage?
12.10.2012MATHM-57300 | Ville Seppänen 14
References
In order of appearance:
• TUT in Foursquare
• Foursquare API for developers
• JSON Parser Online for visualization
• 5-star Open Data
• JSON-LD
• SOUPA: Chen, Perich, Finin, Joshi. SOUPA: Standard ontology for
ubiquitous and pervasive applications. 2004.
• CONON: Wang, Zhang, Gu, Pung. Ontology based context
modeling and reasoning using OWL. 2004.
12.10.2012MATHM-57300 | Ville Seppänen 15
Thank you!
Questions?
ville.t.seppanen@tut.fi
12.10.2012MATHM-57300 | Ville Seppänen 16

More Related Content

Similar to Context-aware systems and Linked Data

A Framework Concept for Profiling Researchers on Twitter using the Web of Data
A Framework Concept for Profiling Researchers on Twitter using the Web of DataA Framework Concept for Profiling Researchers on Twitter using the Web of Data
A Framework Concept for Profiling Researchers on Twitter using the Web of DataLaurens De Vocht
 
Social Semantic (Sensor) Web
Social Semantic (Sensor) WebSocial Semantic (Sensor) Web
Social Semantic (Sensor) WebDavid Crowley
 
Semantic technologies for the Internet of Things
Semantic technologies for the Internet of Things Semantic technologies for the Internet of Things
Semantic technologies for the Internet of Things PayamBarnaghi
 
Data Science: Harnessing Open Data for High Impact Solutions
Data Science: Harnessing Open Data for High Impact SolutionsData Science: Harnessing Open Data for High Impact Solutions
Data Science: Harnessing Open Data for High Impact SolutionsMohd Izhar Firdaus Ismail
 
FIWARE Training: JSON-LD and NGSI-LD
FIWARE Training: JSON-LD and NGSI-LDFIWARE Training: JSON-LD and NGSI-LD
FIWARE Training: JSON-LD and NGSI-LDFIWARE
 
Semantic Sensor Networks and Linked Stream Data
Semantic Sensor Networks and Linked Stream DataSemantic Sensor Networks and Linked Stream Data
Semantic Sensor Networks and Linked Stream DataOscar Corcho
 
Enabling Smarter Cities through Internet of Things, Web of Data & Citizen Par...
Enabling Smarter Cities through Internet of Things, Web of Data & Citizen Par...Enabling Smarter Cities through Internet of Things, Web of Data & Citizen Par...
Enabling Smarter Cities through Internet of Things, Web of Data & Citizen Par...Diego López-de-Ipiña González-de-Artaza
 
The CSO Open Data Experience
The CSO Open Data ExperienceThe CSO Open Data Experience
The CSO Open Data ExperienceDublinked .
 
MAKING SENSE OF IOT DATA W/ BIG DATA + DATA SCIENCE - CHARLES CAI
MAKING SENSE OF IOT DATA W/ BIG DATA + DATA SCIENCE - CHARLES CAIMAKING SENSE OF IOT DATA W/ BIG DATA + DATA SCIENCE - CHARLES CAI
MAKING SENSE OF IOT DATA W/ BIG DATA + DATA SCIENCE - CHARLES CAIBig Data Week
 
Session 2 - NGSI-LD primer & Smart Data Models | Train the Trainers Program
Session 2 - NGSI-LD primer & Smart Data Models | Train the Trainers ProgramSession 2 - NGSI-LD primer & Smart Data Models | Train the Trainers Program
Session 2 - NGSI-LD primer & Smart Data Models | Train the Trainers ProgramFIWARE
 
SciSoftDays Talk - Howison: Spreading the work in software ecosystems
SciSoftDays Talk - Howison: Spreading the work in software ecosystemsSciSoftDays Talk - Howison: Spreading the work in software ecosystems
SciSoftDays Talk - Howison: Spreading the work in software ecosystemsJames Howison
 
From Data Platforms to Dataspaces: Enabling Data Ecosystems for Intelligent S...
From Data Platforms to Dataspaces: Enabling Data Ecosystems for Intelligent S...From Data Platforms to Dataspaces: Enabling Data Ecosystems for Intelligent S...
From Data Platforms to Dataspaces: Enabling Data Ecosystems for Intelligent S...Edward Curry
 
Smart Data for Behavioural Change: Towards Energy Efficient Buildings
Smart Data for Behavioural Change: Towards Energy Efficient BuildingsSmart Data for Behavioural Change: Towards Energy Efficient Buildings
Smart Data for Behavioural Change: Towards Energy Efficient BuildingsAnna Fensel
 
RDFa From Theory to Practice
RDFa From Theory to PracticeRDFa From Theory to Practice
RDFa From Theory to PracticeAdrian Stevenson
 
Knowledge Graph Introduction
Knowledge Graph IntroductionKnowledge Graph Introduction
Knowledge Graph IntroductionSören Auer
 
Contextual Inference and Characterization Derived from Wireless Network Mining
Contextual Inference and Characterization Derived from Wireless Network MiningContextual Inference and Characterization Derived from Wireless Network Mining
Contextual Inference and Characterization Derived from Wireless Network MiningRute C. Sofia
 
Distributed Trust Architecture: The New Foundation of Everything
Distributed Trust Architecture: The New Foundation of EverythingDistributed Trust Architecture: The New Foundation of Everything
Distributed Trust Architecture: The New Foundation of EverythingLiming Zhu
 
Dataportability & Digital Identity
Dataportability & Digital IdentityDataportability & Digital Identity
Dataportability & Digital IdentityCédric Hüsler
 
JSON-LD and NGSI-LD
JSON-LD and NGSI-LDJSON-LD and NGSI-LD
JSON-LD and NGSI-LDFIWARE
 

Similar to Context-aware systems and Linked Data (20)

A Framework Concept for Profiling Researchers on Twitter using the Web of Data
A Framework Concept for Profiling Researchers on Twitter using the Web of DataA Framework Concept for Profiling Researchers on Twitter using the Web of Data
A Framework Concept for Profiling Researchers on Twitter using the Web of Data
 
Enabling Citizen-empowered Apps over Linked Data
Enabling Citizen-empowered Apps over Linked DataEnabling Citizen-empowered Apps over Linked Data
Enabling Citizen-empowered Apps over Linked Data
 
Social Semantic (Sensor) Web
Social Semantic (Sensor) WebSocial Semantic (Sensor) Web
Social Semantic (Sensor) Web
 
Semantic technologies for the Internet of Things
Semantic technologies for the Internet of Things Semantic technologies for the Internet of Things
Semantic technologies for the Internet of Things
 
Data Science: Harnessing Open Data for High Impact Solutions
Data Science: Harnessing Open Data for High Impact SolutionsData Science: Harnessing Open Data for High Impact Solutions
Data Science: Harnessing Open Data for High Impact Solutions
 
FIWARE Training: JSON-LD and NGSI-LD
FIWARE Training: JSON-LD and NGSI-LDFIWARE Training: JSON-LD and NGSI-LD
FIWARE Training: JSON-LD and NGSI-LD
 
Semantic Sensor Networks and Linked Stream Data
Semantic Sensor Networks and Linked Stream DataSemantic Sensor Networks and Linked Stream Data
Semantic Sensor Networks and Linked Stream Data
 
Enabling Smarter Cities through Internet of Things, Web of Data & Citizen Par...
Enabling Smarter Cities through Internet of Things, Web of Data & Citizen Par...Enabling Smarter Cities through Internet of Things, Web of Data & Citizen Par...
Enabling Smarter Cities through Internet of Things, Web of Data & Citizen Par...
 
The CSO Open Data Experience
The CSO Open Data ExperienceThe CSO Open Data Experience
The CSO Open Data Experience
 
MAKING SENSE OF IOT DATA W/ BIG DATA + DATA SCIENCE - CHARLES CAI
MAKING SENSE OF IOT DATA W/ BIG DATA + DATA SCIENCE - CHARLES CAIMAKING SENSE OF IOT DATA W/ BIG DATA + DATA SCIENCE - CHARLES CAI
MAKING SENSE OF IOT DATA W/ BIG DATA + DATA SCIENCE - CHARLES CAI
 
Session 2 - NGSI-LD primer & Smart Data Models | Train the Trainers Program
Session 2 - NGSI-LD primer & Smart Data Models | Train the Trainers ProgramSession 2 - NGSI-LD primer & Smart Data Models | Train the Trainers Program
Session 2 - NGSI-LD primer & Smart Data Models | Train the Trainers Program
 
SciSoftDays Talk - Howison: Spreading the work in software ecosystems
SciSoftDays Talk - Howison: Spreading the work in software ecosystemsSciSoftDays Talk - Howison: Spreading the work in software ecosystems
SciSoftDays Talk - Howison: Spreading the work in software ecosystems
 
From Data Platforms to Dataspaces: Enabling Data Ecosystems for Intelligent S...
From Data Platforms to Dataspaces: Enabling Data Ecosystems for Intelligent S...From Data Platforms to Dataspaces: Enabling Data Ecosystems for Intelligent S...
From Data Platforms to Dataspaces: Enabling Data Ecosystems for Intelligent S...
 
Smart Data for Behavioural Change: Towards Energy Efficient Buildings
Smart Data for Behavioural Change: Towards Energy Efficient BuildingsSmart Data for Behavioural Change: Towards Energy Efficient Buildings
Smart Data for Behavioural Change: Towards Energy Efficient Buildings
 
RDFa From Theory to Practice
RDFa From Theory to PracticeRDFa From Theory to Practice
RDFa From Theory to Practice
 
Knowledge Graph Introduction
Knowledge Graph IntroductionKnowledge Graph Introduction
Knowledge Graph Introduction
 
Contextual Inference and Characterization Derived from Wireless Network Mining
Contextual Inference and Characterization Derived from Wireless Network MiningContextual Inference and Characterization Derived from Wireless Network Mining
Contextual Inference and Characterization Derived from Wireless Network Mining
 
Distributed Trust Architecture: The New Foundation of Everything
Distributed Trust Architecture: The New Foundation of EverythingDistributed Trust Architecture: The New Foundation of Everything
Distributed Trust Architecture: The New Foundation of Everything
 
Dataportability & Digital Identity
Dataportability & Digital IdentityDataportability & Digital Identity
Dataportability & Digital Identity
 
JSON-LD and NGSI-LD
JSON-LD and NGSI-LDJSON-LD and NGSI-LD
JSON-LD and NGSI-LD
 

More from Ville Seppänen

Journey towards serverless infrastructure
Journey towards serverless infrastructureJourney towards serverless infrastructure
Journey towards serverless infrastructureVille Seppänen
 
Dev ja Ops samalla sohvalla - DevOps ohjelmistoalan trendinä
Dev ja Ops samalla sohvalla - DevOps ohjelmistoalan trendinäDev ja Ops samalla sohvalla - DevOps ohjelmistoalan trendinä
Dev ja Ops samalla sohvalla - DevOps ohjelmistoalan trendinäVille Seppänen
 
Amazon Elastic MapReduce (EMR): Hadoop as a Service
Amazon Elastic MapReduce (EMR): Hadoop as a ServiceAmazon Elastic MapReduce (EMR): Hadoop as a Service
Amazon Elastic MapReduce (EMR): Hadoop as a ServiceVille Seppänen
 
Secure context-awareness in ubiquitous computing
Secure context-awareness in ubiquitous computingSecure context-awareness in ubiquitous computing
Secure context-awareness in ubiquitous computingVille Seppänen
 
Parse: A Mobile Backend as a Service (MBaaS)
Parse: A Mobile Backend as a Service (MBaaS)Parse: A Mobile Backend as a Service (MBaaS)
Parse: A Mobile Backend as a Service (MBaaS)Ville Seppänen
 
Informaation visualisointi: tapahtumaketjujen visualisointi
Informaation visualisointi: tapahtumaketjujen visualisointiInformaation visualisointi: tapahtumaketjujen visualisointi
Informaation visualisointi: tapahtumaketjujen visualisointiVille Seppänen
 

More from Ville Seppänen (6)

Journey towards serverless infrastructure
Journey towards serverless infrastructureJourney towards serverless infrastructure
Journey towards serverless infrastructure
 
Dev ja Ops samalla sohvalla - DevOps ohjelmistoalan trendinä
Dev ja Ops samalla sohvalla - DevOps ohjelmistoalan trendinäDev ja Ops samalla sohvalla - DevOps ohjelmistoalan trendinä
Dev ja Ops samalla sohvalla - DevOps ohjelmistoalan trendinä
 
Amazon Elastic MapReduce (EMR): Hadoop as a Service
Amazon Elastic MapReduce (EMR): Hadoop as a ServiceAmazon Elastic MapReduce (EMR): Hadoop as a Service
Amazon Elastic MapReduce (EMR): Hadoop as a Service
 
Secure context-awareness in ubiquitous computing
Secure context-awareness in ubiquitous computingSecure context-awareness in ubiquitous computing
Secure context-awareness in ubiquitous computing
 
Parse: A Mobile Backend as a Service (MBaaS)
Parse: A Mobile Backend as a Service (MBaaS)Parse: A Mobile Backend as a Service (MBaaS)
Parse: A Mobile Backend as a Service (MBaaS)
 
Informaation visualisointi: tapahtumaketjujen visualisointi
Informaation visualisointi: tapahtumaketjujen visualisointiInformaation visualisointi: tapahtumaketjujen visualisointi
Informaation visualisointi: tapahtumaketjujen visualisointi
 

Recently uploaded

What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 

Recently uploaded (20)

What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
Advantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your BusinessAdvantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your Business
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 

Context-aware systems and Linked Data

  • 1. Context-aware systems and Linked Data Ville Seppänen ville.t.seppanen@tut.fi MATHM-57300 Semantic Techniques and Applications
  • 2. My research area • The Internet of Things (IoT) – Everything is connected via RFID+URI – Scale of 50-100 trillion things • Main issues are scalability, interoperability, security • The data IoT provides can be used to provide more relevant and automated technology 12.10.2012MATHM-57300 | Ville Seppänen 2
  • 3. A problem I have had • Where to get a test data source that has… – Dynamic, ever-changing data? – Connections between People, Locations and Devices? – Massive amount of real data (instead of computer-generated or simulated)? 12.10.2012MATHM-57300 | Ville Seppänen 3
  • 5. REST-based API outputting JSON 12.10.2012MATHM-57300 | Ville Seppänen 5 Users Venues Venuegroups Checkins Tips Lists Photos Events
  • 6. Example of JSON response 12.10.2012MATHM-57300 | Ville Seppänen 6
  • 7. Foursquare API and 5-star Open Data “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 identify things, so that people can point at your stuff” “link your data to other data to provide context” 12.10.2012MATHM-57300 | Ville Seppänen 7
  • 8. Foursquare API and 5-star Open Data Yes (not fully open) “make your stuff available on the Web (whatever format) under an open license” Yes “make it available as structured data (e.g., Excel instead of image scan of a table)” Yes “use non-proprietary formats (e.g., CSV instead of Excel)” “use URIs to identify things, so that people can point at your stuff” “link your data to other data to provide context” 12.10.2012MATHM-57300 | Ville Seppänen 8
  • 9. Foursquare API and 5-star Open Data Yes (not fully open) “make your stuff available on the Web (whatever format) under an open license” Yes “make it available as structured data (e.g., Excel instead of image scan of a table)” Yes “use non-proprietary formats (e.g., CSV instead of Excel)” Partially (IDs for entities) “use URIs to identify things, so that people can point at your stuff” Very little (links to Facebook) “link your data to other data to provide context” 12.10.2012MATHM-57300 | Ville Seppänen 9
  • 10. Not far from JSON-LD Foursquare: "venue":{ "id":"4b613a3cf964a5207b0d2ae3", "name":"Tampere University of Technology", … } https://api.foursquare.com/v2/venues/4b613a3cf964a5207b0d2ae3 https://foursquare.com/v/tampere-university-of-technology/4b613a3cf964a5207b0d2ae3 JSON-LD: { "@context": "http://json-ld.org/contexts/person.jsonld", "@id": "http://dbpedia.org/resource/John_Lennon", "name": "John Lennon", … } person.jsonld: "@context": { "Person": "http://xmlns.com/foaf/0.1/Person", "xsd": "http://www.w3.org/2001/XMLSchema#", "name": "http://xmlns.com/foaf/0.1/name", … } 12.10.2012MATHM-57300 | Ville Seppänen 10
  • 11. Let’s write some Python! “This application uses the foursquare® application programming interface but is not endorsed or certified by Foursquare Labs, Inc.” • Fetch description of venue (and cache the response for future usage) data_blob = urllib2.urlopen('https://api.foursquare.com...').read() • Make some initial text-level transformations towards JSON-LD linkified_json = json.loads(load_data_blob(query_type, query_id, query_aspect).replace('"id"','"@id"'))['response'] • Filter out uninteresting properties for i in list_of_deletables: del linkified_json['venue'][i] • Make the rest of JSON-LD enrichment by adding @context entries # Damn it, ran out of time! Have to make triples manually. :( • Parse the JSON-LD into a RDFlib Graph g = Graph().parse(data=json.dumps(linkified_json), format='json-ld') • Print RDF/XML print(g.serialize(format=”pretty-xml")) 12.10.2012MATHM-57300 | Ville Seppänen 11
  • 12. About the assignment • My SKOS scheme is based loosely on: – SOUPA: ”Standard ontology for ubiquitous and pervasive applications” – CONON: ”The Context Ontology” • User, Device, Location, Photo, Content, Service… • Handmade dataset based on the JSON response – Contains TUT venue, its mayor, several photos and their creators 12.10.2012MATHM-57300 | Ville Seppänen 12
  • 13. What can we do with it? • Simple examples: – List places which have women as the majority of contributors – Compare photos taken by locals vs. foreigners – List venues that are shared by active contributors of a venue • On a more wider scale: – Analyze the effects of (hosted) events – Predict customer/visitor flow – Learn about correlation between places and people • The ultimate goal: – More relevant services that accommodate to context 12.10.2012MATHM-57300 | Ville Seppänen 13
  • 14. Side note: Privacy • Linking social accounts together is powerful – People should be aware of the ”union of social web data” • We will have more links between data and more (detailed) data • What about Terms of Service and research usage? 12.10.2012MATHM-57300 | Ville Seppänen 14
  • 15. References In order of appearance: • TUT in Foursquare • Foursquare API for developers • JSON Parser Online for visualization • 5-star Open Data • JSON-LD • SOUPA: Chen, Perich, Finin, Joshi. SOUPA: Standard ontology for ubiquitous and pervasive applications. 2004. • CONON: Wang, Zhang, Gu, Pung. Ontology based context modeling and reasoning using OWL. 2004. 12.10.2012MATHM-57300 | Ville Seppänen 15