SlideShare une entreprise Scribd logo
1  sur  77
APIs and the Semantic Web
Publishing information instead of data
About me
• Data Specialist
• API First fanatic
• Co-Founder Apiwise
• Ex-Freshheads
• PostcodeAPI.nu
• Apiranto Docs
About me
“The only bad thing about API is
that it’s the inverse of IPA”
About me
• Brewmaster
• MQTT API driven brewery
“De Brouwtoren”
• Crowdfunding starting
next week (hint!)
0641011744
• Registration number
• Flight number
• Bank account
• Mobile phone number
641.011.744
Remember phone numbers and Excel?
“0641011744”
Now it’s a meaningless string!
Paris + Hilton
Semantics
• Context
• Meaning
• Vocabularies & Ontologies
Vocabularies
• Schema.org
• FOAF (Friend-Of-A-Friend): VCard
• XSD (XML Schema Definition Language)
Linked Data
• Alias The Semantic Web, Web 3.0
• Defines what data means
• Queries across multiple datasets
• Provides links to external resources
Triples
Subject ObjectPredicate
Triples
Dimitri Apiwiseworks at
Triples
Dimitri Endpointattends
Triples
Endpoint Amsterdamheld in
Triples
Amsterdam
The
Netherlands
capital of
Triples
Apiwise Tilburgresides in
Triples
Tilburg
The
Netherlands
located in
Tilburg
The
NetherlandsApiwise
Amsterdam
Endpoint
Dimitri
capitalof
URIs
Subject Predicate Object
dimitrivanhees.com schema.org/worksFor apiwise.nl
dimitrivanhees.com schema.org/attends endpointcon.com
endpointcon.com schema.org/location dbpedia.org/Amsterdam*
apiwise.nl schema.org/foundingLocation dbpedia.org/Tilburg
dbpedia.org/Tilburg dbpedia.org/ontology/country dbpedia.org/Netherlands
dbpedia.org/Amsterdam dbpedia.org/ontology/capital dbpedia.org/Netherlands
*Real DBPedia URL: http://dbpedia.org/resource/Amsterdam
DBPedia.org
• Wikipedia as a Linked Open Dataset
• http://dbpedia.org/resource/Amsterdam
Bank
Account Name CoC Contact Address PC City Balance
54.31.23.650 Apiwise 62956787 D. van Hees Kronenburgersingel 49 6511AL Nijmegen € 100
Cadastre (Land Register)
Number Street Number Postcode Place Value Surface Function
12345 Kronenburgersingel 49 6511AL Nijmegen € 100.000 65m² Living
Chamber of Commerce
Number Official name Type Founded Address
62956787 Apiwise V.O.F. V.O.F. 2015/04/01 Kronenburgersingel 49, 6511AL, Nijmegen
Linking datasets
Bank
Account Name CoC Contact Address PC City Balance
54.31.23.650 Apiwise 62956787 D. van Hees Kronenburgersingel 49 6511AL Nijmegen € 100
Chamber of Commerce
Number Official name Type Founded Address
62956787 Apiwise V.O.F. V.O.F. 2015/04/01 Kronenburgersingel 49, 6511AL, Nijmegen
Linking datasets
Cadastre (Land Register)
Number Street Number Postcode Place Value Surface Function
12345 Kronenburgersingel 49 6511AL Nijmegen € 100.000 65m² Living
Bank
Account CoC Contact Balance
54.31.23.650 62956787 D. van Hees € 100
Chamber of Commerce
Number Official name Type Founded Cadastre
62956787 Apiwise V.O.F. V.O.F. 2015/04/01 12345
Linking datasets
Cadastre (Land Register)
Number Street Number Postcode Place Value Surface Function
12345 Kronenburgersingel 49 6511AL Nijmegen € 100.000 65m² Living
Bank
Contact CoC LinkedIn Facebook
D. van Hees 62956787 dimitrivanhees dvanhees
CoC
Number Cadastre
62956787 12345
20106830 67890
Cadastre
Street Place
Kronenburgersingel Nijmegen
Wilhelminapark Tilburg
Facebook
Residence Places Sports
Nijmegen Tilburg Football
LinkedIn
Company Birthplace School
Apiwise,
Freshheads
Nijmegen Tilburg University
Bank
Contact CoC LinkedIn Facebook
D. van Hees 62956787 dimitrivanhees dvanhees
CoC
Number Cadastre
62956787 12345
20106830 67890
Cadastre
Street Place
Kronenburgersingel Nijmegen
Wilhelminapark Tilburg
Facebook
Residence Places Sports
Nijmegen Tilburg Football
LinkedIn
Company Birthplace School
Apiwise,
Freshheads
Nijmegen Tilburg University
Open Data
Location Province Avg. income Inhabitants
Nijmegen Gelderland € 12.600 168.840
Tilburg Noord-Brabant € 13.900 191.275
Open Data
Location Founded Rector
Tilburg 1927 P. Eijlander
Open Data
Category Type
Ball sport Team
Query for people who:
• Live in a city with more than 170.000
inhabitants
• Like team sports and went to a school that
was founded before 1930
• Are connected to a V.O.F. company from
Gelderland with a negative balance
• Like ball games and own an office larger than
150m² in a place where the average value is
less than € 200.000
“Linked Data makes it possible to get
new insights in data which were
technically impossible in the past. It’s
up to marketing people to come up
with challenging queries.”
“That’s awesome!”
But… I want APIs…
Five stars of Sir 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 (RDF)”
★ ★ ★ ★ ★
“Link your data to other data to
provide context (Linked Data)”
Data landscape
• Data consumers
• Data publishers
• Open Data community
• API community
• Linked Data community
Data consumers
• Provide us the developer-friendliest way to access your
data and we MIGHT use it
Data publishers
• HOW should we publish our data?
• What are the COSTS of doing it that way?
• What are the BENEFITS of doing it that way?
Open Data community
• We don’t care HOW the data is published
• We only care IF the data is open
API community
• Every publisher SHOULD provide RESTful JSON APIs
• Because every consumer KNOWS RESTful JSON APIs
• We DON’T believe in Linked Data
Linked Data community
• Every publisher SHOULD provide five star data
• Every consumer SHOULD learn SPARQL*
• So we DON’T need APIs
*Linked Data query language
SPARQL And RDF Query Language
?S ?O?P
All Endpoint attendees
?S Endpointattends
All events I(’ve) attend(ed)
Dimitri ?Oattends
Basic SPARQL Query
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX type: <http://dbpedia.org/class/yago/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT ?country_name ?population
WHERE {
?country a type:LandlockedCountries ;
rdfs:label ?country_name ;
prop:populationEstimate ?population .
FILTER (?population > 15000000) .
}
WTF is SPARQL?
Benefits
According to EU studies the amount of apps being
developed with Linked Open Government Data is
negligible.
https://joinup.ec.europa.eu/sites/default/files/85/31
/25/Study_on_business_models_for_Linked_Open_
Government_Data_BM4LOGD_v1.00.pdf
Costs
• Knowledge investment (unknown technology)
• Technical investment (hosting infrastructure)
• Time investment (change management)
• Low ROI
“The quality of many datasets is
AT MOST three stars”
Five stars of Sir Tim Berners-Lee
Six stars of Dimitri van Hees
★ ★ ★ ★
“Provide online access via
webservices so developers can
use your stuff the way they are
used to (RESTful JSON API)”
★ ★ ★ ★ ★
“Add context to your API so it can be
linked to other datasets, developers
know what the data means and LD
guys can convert it to triples, store it
in triplestores and use SPARQL if they
want to (JSON-LD)”
★ ★ ★ ★ ★ ★
JSON
JSON-LD
Triples
JSON
{
"id": 43274,
"name": "Dimitri van Hees",
“geslacht": "m",
"birthDate": "1984-03-14",
"birthPlace": "Nijmegen",
"facebookLikes": [
69116329538,
272002449634285,
114690771875816
]
}
JSON-LD Context
"@context“: {
"id": "@id",
"name": "http://xmlns.com/foaf/0.1/name",
“geslacht": "http://xmlns.com/foaf/0.1/gender",
"birthDate": "http://schema.org/birthDate",
"birthPlace": "http://dbpedia.org/ontology/birthPlace",
"facebookLike": "http://xmlns.com/foaf/0.1/interest"
}
JSON-LD Context
"@context": {
"foaf": "http://xmlns.com/foaf/0.1/",
"schema": "http://schema.org/",
"dbo": "http://dbpedia.org/ontology/",
"id": "@id",
"name": "foaf:name",
“geslacht": "foaf:gender",
"birthDate": "schema:birthDate",
"birthPlace": "dbo:birthPlace",
"facebookLikes": "foaf:interest"
}
JSON-LD
{
"id": "http://example.com/customers/43274",
"type": "schema:Person",
"name": "Dimitri van Hees",
“geslacht": "m",
"birthDate": "1984-03-14",
"birthPlace": {
"id": "http://dbpedia.org/resource/Nijmegen", "type": "schema:City"
},
"facebookLikes": [
{ "id": "http://graph.facebook.com/69116329538", "type": "schema:MusicGroup“ },
{ "id": "http://graph.facebook.com/272002449634285", "type": "schema:TVSeries“ },
{ "id": "http://graph.facebook.com/114690771875816", "type": "schema:City“ }
]
}
Mapping through semantic APIs
API
Den Haag
The Hague
‘s-Gravenhage
http://dbpedia.org/resource/The_Hague
JSON-LD
{
"id": "http://example.com/customers/43274",
"type": "schema:Person",
"name": "Dimitri van Hees",
“geslacht": "m",
"birthDate": "1984-03-14",
"birthPlace": {
"id": "http://dbpedia.org/resource/Nijmegen", "type": "schema:City"
},
"facebookLikes": [
{ "id": "http://dbpedia.org/resource/The_Beatles", "type": "schema:MusicGroup“ },
{ "id": "http://dbpedia.org/resource/Monty_Python", "type": "schema:TVSeries“ },
{ "id": "http://dbpedia.org/resource/Nijmegen", "type": "schema:City“ }
]
}
JsonLd2RDF()
And there’s your Linked Data!
Step 1: JSON support
Step 2: JSON-LD support
Step 3: Triples support
Triplestore: Allegrograph
• Database for triples
• Free up to 5.000.000 triples
• SPARQL 1.1 support
• REST API
• Local installation (privacy)
★ ★ ★ ★ ★ ★
One more thing!
It gets even better…
Data Information
Property Value
id AB-01-CD
type ?
brand AUDI
kleur ROOD
A?2JKs=- 1932
application/json
Property Value
id rdw.nl/AB-01-CD
rdf:type schema.org/Car
schema.org/brand dbpedia.org/Audi
schema.org/color dbpedia.org/Red
dbpedia.org/foundingYear 1932
application/ld+json
Structured Data
Gmail
Siri, Cortana, Now
Separation of concerns
• It’s all about conversion
• A website is just another representation of
information
• People WILL skip the restaurant’s website if they’re
hungry and can get food by just yelling HUNGRY at
their mobile phone
• Publish information instead of data!
“The Semantic Web does exist and goes hand
in hand with APIs. Using six stars instead of
five, APIs are part of the deployment scheme
while making live easier for both data
publishers and consumers. Let’s bridge the
gap, bring the best of both worlds, and let’s
change the web together by publishing
information instead of data.”
Thank you!
• Twitter: @dvh
• E-mail: dimitri@apiwise.nl
• LinkedIn: linkedin.com/in/dimitrivanhees
• GitHub: github.com/dvh
• PostcodeAPI: github.com/apiwise/postcodeapi
• Apiranto: github.com/apiwise/apiranto
Thank you!
• Twitter: @dvh
• E-mail: dimitri@apiwise.nl
• LinkedIn: linkedin.com/in/dimitrivanhees
• GitHub: github.com/dvh
• PostcodeAPI: github.com/apiwise/postcodeapi
• Apiranto: github.com/apiwise/apiranto
• Brewery: www.brouwtoren.nlAd

Contenu connexe

Tendances

Semantically Enabled Personal Information Management with Cluug.com
Semantically Enabled Personal Information Management with Cluug.comSemantically Enabled Personal Information Management with Cluug.com
Semantically Enabled Personal Information Management with Cluug.com
Bernhard Schandl
 
Library Mashups & APIs
Library Mashups & APIsLibrary Mashups & APIs
Library Mashups & APIs
librarywebchic
 

Tendances (20)

ISWC 2014 - Dandelion: from raw data to dataGEMs for developers
ISWC 2014 - Dandelion: from raw data to dataGEMs for developersISWC 2014 - Dandelion: from raw data to dataGEMs for developers
ISWC 2014 - Dandelion: from raw data to dataGEMs for developers
 
Intro to Neo4j with Ruby
Intro to Neo4j with RubyIntro to Neo4j with Ruby
Intro to Neo4j with Ruby
 
MuseoTorino, first italian project using a GraphDB, RDFa, Linked Open Data
MuseoTorino, first italian project using a GraphDB, RDFa, Linked Open DataMuseoTorino, first italian project using a GraphDB, RDFa, Linked Open Data
MuseoTorino, first italian project using a GraphDB, RDFa, Linked Open Data
 
Data Curation @ SpazioDati - NEXA Lunch Seminar
Data Curation @ SpazioDati - NEXA Lunch SeminarData Curation @ SpazioDati - NEXA Lunch Seminar
Data Curation @ SpazioDati - NEXA Lunch Seminar
 
Geschäftliches Potential für System-Integratoren und Berater - Graphdatenban...
Geschäftliches Potential für System-Integratoren und Berater -  Graphdatenban...Geschäftliches Potential für System-Integratoren und Berater -  Graphdatenban...
Geschäftliches Potential für System-Integratoren und Berater - Graphdatenban...
 
Intro to Cypher
Intro to CypherIntro to Cypher
Intro to Cypher
 
Building a semantic website
Building a semantic websiteBuilding a semantic website
Building a semantic website
 
RDF Data Quality Assessment - connecting the pieces
RDF Data Quality Assessment - connecting the piecesRDF Data Quality Assessment - connecting the pieces
RDF Data Quality Assessment - connecting the pieces
 
Let your data shine... with OpenRefine
Let your data shine... with OpenRefineLet your data shine... with OpenRefine
Let your data shine... with OpenRefine
 
Follow the stars 25/11/2011
Follow the stars 25/11/2011Follow the stars 25/11/2011
Follow the stars 25/11/2011
 
Semantically Enabled Personal Information Management with Cluug.com
Semantically Enabled Personal Information Management with Cluug.comSemantically Enabled Personal Information Management with Cluug.com
Semantically Enabled Personal Information Management with Cluug.com
 
Text analytics for Google Spreadsheets using Text Mining add-on
Text analytics for Google Spreadsheets using Text Mining add-on Text analytics for Google Spreadsheets using Text Mining add-on
Text analytics for Google Spreadsheets using Text Mining add-on
 
INEGI ESS big data workshop
INEGI ESS big data workshopINEGI ESS big data workshop
INEGI ESS big data workshop
 
Schneller Nutzen mit Neo4j: das Beispiel Panama Papers
Schneller Nutzen mit Neo4j: das Beispiel Panama PapersSchneller Nutzen mit Neo4j: das Beispiel Panama Papers
Schneller Nutzen mit Neo4j: das Beispiel Panama Papers
 
(PROJEKTURA) Big Data Open Data story for TGG
(PROJEKTURA) Big Data Open Data story for TGG(PROJEKTURA) Big Data Open Data story for TGG
(PROJEKTURA) Big Data Open Data story for TGG
 
GraphConnect 2014 SF: From Zero to Graph in 120: Model
GraphConnect 2014 SF: From Zero to Graph in 120: ModelGraphConnect 2014 SF: From Zero to Graph in 120: Model
GraphConnect 2014 SF: From Zero to Graph in 120: Model
 
Linked Open Data at SAAM: Past, Present, and Future
Linked Open Data at SAAM: Past, Present, and FutureLinked Open Data at SAAM: Past, Present, and Future
Linked Open Data at SAAM: Past, Present, and Future
 
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for NonprofitsNTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
NTEN Webinar - Data Cleaning and Visualization Tools for Nonprofits
 
Library Mashups & APIs
Library Mashups & APIsLibrary Mashups & APIs
Library Mashups & APIs
 
S4: The Self-Service Semantic Suite
S4: The Self-Service Semantic SuiteS4: The Self-Service Semantic Suite
S4: The Self-Service Semantic Suite
 

En vedette (6)

RDF: what and why plus a SPARQL tutorial
RDF: what and why plus a SPARQL tutorialRDF: what and why plus a SPARQL tutorial
RDF: what and why plus a SPARQL tutorial
 
Inaugural lecture
Inaugural lectureInaugural lecture
Inaugural lecture
 
Data analytics to support awareness and recommendation
Data analytics to support awareness and recommendationData analytics to support awareness and recommendation
Data analytics to support awareness and recommendation
 
WebTech Tutorial Querying DBPedia
WebTech Tutorial Querying DBPediaWebTech Tutorial Querying DBPedia
WebTech Tutorial Querying DBPedia
 
DBpedia Tutorial - Feb 2015, Dublin
DBpedia Tutorial - Feb 2015, DublinDBpedia Tutorial - Feb 2015, Dublin
DBpedia Tutorial - Feb 2015, Dublin
 
Querying Linked Data with SPARQL
Querying Linked Data with SPARQLQuerying Linked Data with SPARQL
Querying Linked Data with SPARQL
 

Similaire à APIs and the Semantic Web: publishing information instead of data

Linked Data (1st Linked Data Meetup Malmö)
Linked Data (1st Linked Data Meetup Malmö)Linked Data (1st Linked Data Meetup Malmö)
Linked Data (1st Linked Data Meetup Malmö)
Anja Jentzsch
 

Similaire à APIs and the Semantic Web: publishing information instead of data (20)

Weaving a Web of Linked Data - September 26th, 2019
Weaving a Web of Linked Data - September 26th, 2019Weaving a Web of Linked Data - September 26th, 2019
Weaving a Web of Linked Data - September 26th, 2019
 
APIs and Linked Data: A match made in Heaven
APIs and Linked Data: A match made in HeavenAPIs and Linked Data: A match made in Heaven
APIs and Linked Data: A match made in Heaven
 
Linked Open Data
Linked Open DataLinked Open Data
Linked Open Data
 
Thwart Fraud Using Graph-Enhanced Machine Learning and AI
Thwart Fraud Using Graph-Enhanced Machine Learning and AIThwart Fraud Using Graph-Enhanced Machine Learning and AI
Thwart Fraud Using Graph-Enhanced Machine Learning and AI
 
Linked opendata parisemantique.fr - 24062011
Linked opendata   parisemantique.fr - 24062011Linked opendata   parisemantique.fr - 24062011
Linked opendata parisemantique.fr - 24062011
 
Connected data meetup group - introduction & scope
Connected data meetup group - introduction & scopeConnected data meetup group - introduction & scope
Connected data meetup group - introduction & scope
 
#opentourism - Linked Open Data Publishing and Discovery Workshop
#opentourism - Linked Open Data Publishing and Discovery Workshop#opentourism - Linked Open Data Publishing and Discovery Workshop
#opentourism - Linked Open Data Publishing and Discovery Workshop
 
20140521 sem-tech-biz-guest-lecture
20140521 sem-tech-biz-guest-lecture20140521 sem-tech-biz-guest-lecture
20140521 sem-tech-biz-guest-lecture
 
IFLA LIDASIG Open Session 2017: Introduction to Linked Data
IFLA LIDASIG Open Session 2017: Introduction to Linked DataIFLA LIDASIG Open Session 2017: Introduction to Linked Data
IFLA LIDASIG Open Session 2017: Introduction to Linked Data
 
Intro to Neo4j and Graph Databases
Intro to Neo4j and Graph DatabasesIntro to Neo4j and Graph Databases
Intro to Neo4j and Graph Databases
 
What do we want computers to do for us?
What do we want computers to do for us? What do we want computers to do for us?
What do we want computers to do for us?
 
Linked Data (1st Linked Data Meetup Malmö)
Linked Data (1st Linked Data Meetup Malmö)Linked Data (1st Linked Data Meetup Malmö)
Linked Data (1st Linked Data Meetup Malmö)
 
Data Culture Series - Keynote & Panel - Birmingham - 8th April 2015
Data Culture Series  - Keynote & Panel - Birmingham - 8th April 2015Data Culture Series  - Keynote & Panel - Birmingham - 8th April 2015
Data Culture Series - Keynote & Panel - Birmingham - 8th April 2015
 
Making Use of the Linked Open Data Services for OpenAIRE (DI4R 2016 tutorial ...
Making Use of the Linked Open Data Services for OpenAIRE (DI4R 2016 tutorial ...Making Use of the Linked Open Data Services for OpenAIRE (DI4R 2016 tutorial ...
Making Use of the Linked Open Data Services for OpenAIRE (DI4R 2016 tutorial ...
 
The Europeana Strategy and Linked Open Data
The Europeana Strategy and Linked Open DataThe Europeana Strategy and Linked Open Data
The Europeana Strategy and Linked Open Data
 
Methodological Guidelines for Publishing Linked Data
Methodological Guidelines for Publishing Linked DataMethodological Guidelines for Publishing Linked Data
Methodological Guidelines for Publishing Linked Data
 
Working With Facebook, Twitter, et al. - Social Media Camp
Working With Facebook, Twitter, et al. - Social Media CampWorking With Facebook, Twitter, et al. - Social Media Camp
Working With Facebook, Twitter, et al. - Social Media Camp
 
Semantics and Machine Learning
Semantics and Machine LearningSemantics and Machine Learning
Semantics and Machine Learning
 
Ordering the chaos: Creating websites with imperfect data
Ordering the chaos: Creating websites with imperfect dataOrdering the chaos: Creating websites with imperfect data
Ordering the chaos: Creating websites with imperfect data
 
FIWARE Wednesday Webinars - Introduction to NGSI-LD
FIWARE Wednesday Webinars - Introduction to NGSI-LDFIWARE Wednesday Webinars - Introduction to NGSI-LD
FIWARE Wednesday Webinars - Introduction to NGSI-LD
 

Dernier

Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
JoseMangaJr1
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
MarinCaroMartnezBerg
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 

Dernier (20)

Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 

APIs and the Semantic Web: publishing information instead of data

  • 1. APIs and the Semantic Web Publishing information instead of data
  • 2. About me • Data Specialist • API First fanatic • Co-Founder Apiwise • Ex-Freshheads • PostcodeAPI.nu • Apiranto Docs
  • 3. About me “The only bad thing about API is that it’s the inverse of IPA”
  • 4. About me • Brewmaster • MQTT API driven brewery “De Brouwtoren” • Crowdfunding starting next week (hint!)
  • 5. 0641011744 • Registration number • Flight number • Bank account • Mobile phone number
  • 7. “0641011744” Now it’s a meaningless string!
  • 9. Semantics • Context • Meaning • Vocabularies & Ontologies
  • 10. Vocabularies • Schema.org • FOAF (Friend-Of-A-Friend): VCard • XSD (XML Schema Definition Language)
  • 11. Linked Data • Alias The Semantic Web, Web 3.0 • Defines what data means • Queries across multiple datasets • Provides links to external resources
  • 20. URIs Subject Predicate Object dimitrivanhees.com schema.org/worksFor apiwise.nl dimitrivanhees.com schema.org/attends endpointcon.com endpointcon.com schema.org/location dbpedia.org/Amsterdam* apiwise.nl schema.org/foundingLocation dbpedia.org/Tilburg dbpedia.org/Tilburg dbpedia.org/ontology/country dbpedia.org/Netherlands dbpedia.org/Amsterdam dbpedia.org/ontology/capital dbpedia.org/Netherlands *Real DBPedia URL: http://dbpedia.org/resource/Amsterdam
  • 21. DBPedia.org • Wikipedia as a Linked Open Dataset • http://dbpedia.org/resource/Amsterdam
  • 22. Bank Account Name CoC Contact Address PC City Balance 54.31.23.650 Apiwise 62956787 D. van Hees Kronenburgersingel 49 6511AL Nijmegen € 100 Cadastre (Land Register) Number Street Number Postcode Place Value Surface Function 12345 Kronenburgersingel 49 6511AL Nijmegen € 100.000 65m² Living Chamber of Commerce Number Official name Type Founded Address 62956787 Apiwise V.O.F. V.O.F. 2015/04/01 Kronenburgersingel 49, 6511AL, Nijmegen Linking datasets
  • 23. Bank Account Name CoC Contact Address PC City Balance 54.31.23.650 Apiwise 62956787 D. van Hees Kronenburgersingel 49 6511AL Nijmegen € 100 Chamber of Commerce Number Official name Type Founded Address 62956787 Apiwise V.O.F. V.O.F. 2015/04/01 Kronenburgersingel 49, 6511AL, Nijmegen Linking datasets Cadastre (Land Register) Number Street Number Postcode Place Value Surface Function 12345 Kronenburgersingel 49 6511AL Nijmegen € 100.000 65m² Living
  • 24. Bank Account CoC Contact Balance 54.31.23.650 62956787 D. van Hees € 100 Chamber of Commerce Number Official name Type Founded Cadastre 62956787 Apiwise V.O.F. V.O.F. 2015/04/01 12345 Linking datasets Cadastre (Land Register) Number Street Number Postcode Place Value Surface Function 12345 Kronenburgersingel 49 6511AL Nijmegen € 100.000 65m² Living
  • 25. Bank Contact CoC LinkedIn Facebook D. van Hees 62956787 dimitrivanhees dvanhees CoC Number Cadastre 62956787 12345 20106830 67890 Cadastre Street Place Kronenburgersingel Nijmegen Wilhelminapark Tilburg Facebook Residence Places Sports Nijmegen Tilburg Football LinkedIn Company Birthplace School Apiwise, Freshheads Nijmegen Tilburg University
  • 26. Bank Contact CoC LinkedIn Facebook D. van Hees 62956787 dimitrivanhees dvanhees CoC Number Cadastre 62956787 12345 20106830 67890 Cadastre Street Place Kronenburgersingel Nijmegen Wilhelminapark Tilburg Facebook Residence Places Sports Nijmegen Tilburg Football LinkedIn Company Birthplace School Apiwise, Freshheads Nijmegen Tilburg University Open Data Location Province Avg. income Inhabitants Nijmegen Gelderland € 12.600 168.840 Tilburg Noord-Brabant € 13.900 191.275 Open Data Location Founded Rector Tilburg 1927 P. Eijlander Open Data Category Type Ball sport Team
  • 27. Query for people who: • Live in a city with more than 170.000 inhabitants • Like team sports and went to a school that was founded before 1930 • Are connected to a V.O.F. company from Gelderland with a negative balance • Like ball games and own an office larger than 150m² in a place where the average value is less than € 200.000
  • 28. “Linked Data makes it possible to get new insights in data which were technically impossible in the past. It’s up to marketing people to come up with challenging queries.”
  • 30. Five stars of Sir Tim Berners-Lee
  • 31. ★ “Make your stuff available on the Web (whatever format) under an open license”
  • 32. ★ ★ “Make it available as structured data (e.g., Excel instead of image scan of a table)”
  • 33. ★ ★ ★ “Use non-proprietary formats (e.g., CSV instead of Excel)”
  • 34. ★ ★ ★ ★ “Use URIs to denote things, so that people can point at your stuff (RDF)”
  • 35. ★ ★ ★ ★ ★ “Link your data to other data to provide context (Linked Data)”
  • 36. Data landscape • Data consumers • Data publishers • Open Data community • API community • Linked Data community
  • 37. Data consumers • Provide us the developer-friendliest way to access your data and we MIGHT use it
  • 38. Data publishers • HOW should we publish our data? • What are the COSTS of doing it that way? • What are the BENEFITS of doing it that way?
  • 39. Open Data community • We don’t care HOW the data is published • We only care IF the data is open
  • 40. API community • Every publisher SHOULD provide RESTful JSON APIs • Because every consumer KNOWS RESTful JSON APIs • We DON’T believe in Linked Data
  • 41. Linked Data community • Every publisher SHOULD provide five star data • Every consumer SHOULD learn SPARQL* • So we DON’T need APIs *Linked Data query language
  • 42. SPARQL And RDF Query Language ?S ?O?P
  • 43. All Endpoint attendees ?S Endpointattends
  • 44. All events I(’ve) attend(ed) Dimitri ?Oattends
  • 45. Basic SPARQL Query PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX type: <http://dbpedia.org/class/yago/> PREFIX prop: <http://dbpedia.org/property/> SELECT ?country_name ?population WHERE { ?country a type:LandlockedCountries ; rdfs:label ?country_name ; prop:populationEstimate ?population . FILTER (?population > 15000000) . }
  • 47. Benefits According to EU studies the amount of apps being developed with Linked Open Government Data is negligible. https://joinup.ec.europa.eu/sites/default/files/85/31 /25/Study_on_business_models_for_Linked_Open_ Government_Data_BM4LOGD_v1.00.pdf
  • 48. Costs • Knowledge investment (unknown technology) • Technical investment (hosting infrastructure) • Time investment (change management) • Low ROI
  • 49. “The quality of many datasets is AT MOST three stars”
  • 50. Five stars of Sir Tim Berners-Lee
  • 51. Six stars of Dimitri van Hees
  • 52. ★ ★ ★ ★ “Provide online access via webservices so developers can use your stuff the way they are used to (RESTful JSON API)”
  • 53. ★ ★ ★ ★ ★ “Add context to your API so it can be linked to other datasets, developers know what the data means and LD guys can convert it to triples, store it in triplestores and use SPARQL if they want to (JSON-LD)”
  • 54. ★ ★ ★ ★ ★ ★
  • 56. JSON { "id": 43274, "name": "Dimitri van Hees", “geslacht": "m", "birthDate": "1984-03-14", "birthPlace": "Nijmegen", "facebookLikes": [ 69116329538, 272002449634285, 114690771875816 ] }
  • 57. JSON-LD Context "@context“: { "id": "@id", "name": "http://xmlns.com/foaf/0.1/name", “geslacht": "http://xmlns.com/foaf/0.1/gender", "birthDate": "http://schema.org/birthDate", "birthPlace": "http://dbpedia.org/ontology/birthPlace", "facebookLike": "http://xmlns.com/foaf/0.1/interest" }
  • 58. JSON-LD Context "@context": { "foaf": "http://xmlns.com/foaf/0.1/", "schema": "http://schema.org/", "dbo": "http://dbpedia.org/ontology/", "id": "@id", "name": "foaf:name", “geslacht": "foaf:gender", "birthDate": "schema:birthDate", "birthPlace": "dbo:birthPlace", "facebookLikes": "foaf:interest" }
  • 59. JSON-LD { "id": "http://example.com/customers/43274", "type": "schema:Person", "name": "Dimitri van Hees", “geslacht": "m", "birthDate": "1984-03-14", "birthPlace": { "id": "http://dbpedia.org/resource/Nijmegen", "type": "schema:City" }, "facebookLikes": [ { "id": "http://graph.facebook.com/69116329538", "type": "schema:MusicGroup“ }, { "id": "http://graph.facebook.com/272002449634285", "type": "schema:TVSeries“ }, { "id": "http://graph.facebook.com/114690771875816", "type": "schema:City“ } ] }
  • 60. Mapping through semantic APIs API Den Haag The Hague ‘s-Gravenhage http://dbpedia.org/resource/The_Hague
  • 61. JSON-LD { "id": "http://example.com/customers/43274", "type": "schema:Person", "name": "Dimitri van Hees", “geslacht": "m", "birthDate": "1984-03-14", "birthPlace": { "id": "http://dbpedia.org/resource/Nijmegen", "type": "schema:City" }, "facebookLikes": [ { "id": "http://dbpedia.org/resource/The_Beatles", "type": "schema:MusicGroup“ }, { "id": "http://dbpedia.org/resource/Monty_Python", "type": "schema:TVSeries“ }, { "id": "http://dbpedia.org/resource/Nijmegen", "type": "schema:City“ } ] }
  • 63. Step 1: JSON support
  • 64. Step 2: JSON-LD support
  • 65. Step 3: Triples support
  • 66. Triplestore: Allegrograph • Database for triples • Free up to 5.000.000 triples • SPARQL 1.1 support • REST API • Local installation (privacy)
  • 67.
  • 68. ★ ★ ★ ★ ★ ★
  • 69. One more thing! It gets even better…
  • 70. Data Information Property Value id AB-01-CD type ? brand AUDI kleur ROOD A?2JKs=- 1932 application/json Property Value id rdw.nl/AB-01-CD rdf:type schema.org/Car schema.org/brand dbpedia.org/Audi schema.org/color dbpedia.org/Red dbpedia.org/foundingYear 1932 application/ld+json
  • 72. Gmail
  • 74. Separation of concerns • It’s all about conversion • A website is just another representation of information • People WILL skip the restaurant’s website if they’re hungry and can get food by just yelling HUNGRY at their mobile phone • Publish information instead of data!
  • 75. “The Semantic Web does exist and goes hand in hand with APIs. Using six stars instead of five, APIs are part of the deployment scheme while making live easier for both data publishers and consumers. Let’s bridge the gap, bring the best of both worlds, and let’s change the web together by publishing information instead of data.”
  • 76. Thank you! • Twitter: @dvh • E-mail: dimitri@apiwise.nl • LinkedIn: linkedin.com/in/dimitrivanhees • GitHub: github.com/dvh • PostcodeAPI: github.com/apiwise/postcodeapi • Apiranto: github.com/apiwise/apiranto
  • 77. Thank you! • Twitter: @dvh • E-mail: dimitri@apiwise.nl • LinkedIn: linkedin.com/in/dimitrivanhees • GitHub: github.com/dvh • PostcodeAPI: github.com/apiwise/postcodeapi • Apiranto: github.com/apiwise/apiranto • Brewery: www.brouwtoren.nlAd

Notes de l'éditeur

  1. We still need human intelligence to interpret the column header
  2. Your API now supports semantics and publishes information instead of data!