SlideShare a Scribd company logo
Introduction to JSON-LD
Bo-Kai Hsu
許許許博博博凱凱凱
January 06, 2016
1 / 29
Introduction to JSON-LD
Outline
1 Why Using JSON-LD
2 How To Deal With Ambiguity
3 How To Deal With Linking
4 What Is JSON-LD
5 Applications of JSON-LD
6 Conclusion
2 / 29
Introduction to JSON-LD
Why Using JSON-LD
Outline
1 Why Using JSON-LD
2 How To Deal With Ambiguity
3 How To Deal With Linking
4 What Is JSON-LD
5 Applications of JSON-LD
6 Conclusion
3 / 29
Introduction to JSON-LD
Why Using JSON-LD
Why Using JSON-LD
What’s the problem with JSON ?
4 / 29
Introduction to JSON-LD
Why Using JSON-LD
Why Using JSON-LD
What’s the problem with JSON ?
1 {
2 " i d " : 3 ,
3 "number" : 4 ,
4 " value " : 5 ,
5 " count " : 6
6 }
What’s the meaning of this JSON ?
4 / 29
Introduction to JSON-LD
Why Using JSON-LD
Why Using JSON-LD
What’s the problem with JSON ?
1 {
2 " i d " : 3 ,
3 "number" : 4 ,
4 " value " : 5 ,
5 " count " : 6
6 }
What’s the meaning of this JSON ?
The first problem is ambiguity of JSON !!
4 / 29
Introduction to JSON-LD
Why Using JSON-LD
Why Using JSON-LD
What’s the meaning of this JSON?
1 {
2 "name" : "Bob" ,
3 "number" : 17 ,
4 " percentage " : 32.3 ,
5 " s t e a l " : 2.2 ,
6 " a s s i s t " 7.5
7 }
5 / 29
Introduction to JSON-LD
Why Using JSON-LD
Why Using JSON-LD
What’s the meaning of this JSON?
1 {
2 "name" : "Bob" ,
3 "number" : 17 ,
4 " percentage " : 32.3 ,
5 " s t e a l " : 2.2 ,
6 " a s s i s t " 7.5
7 }
describing a student named Bob?
5 / 29
Introduction to JSON-LD
Why Using JSON-LD
Why Using JSON-LD
What’s the meaning of this JSON?
1 {
2 "name" : "Bob" ,
3 "number" : 17 ,
4 " percentage " : 32.3 ,
5 " s t e a l " : 2.2 ,
6 " a s s i s t " 7.5
7 }
describing a student named Bob?
describing a basketball player named Bob?
5 / 29
Introduction to JSON-LD
Why Using JSON-LD
Why Using JSON-LD
What’s the meaning of this JSON?
1 {
2 "name" : "Bob" ,
3 "number" : 17 ,
4 " percentage " : 32.3 ,
5 " s t e a l " : 2.2 ,
6 " a s s i s t " 7.5
7 }
describing a student named Bob?
describing a basketball player named Bob?
the same JSON means different?
5 / 29
Introduction to JSON-LD
Why Using JSON-LD
Why Using JSON-LD
different JSON means the same?
1 {
2 " p l a y e r " : "Bob" ,
3 " Id " : 17 ,
4 " shooting " : 32.3 ,
5 "ST" : 2.2 ,
6 "AST" : 7.5
7 }
describing a basketball player named Bob?
6 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Outline
1 Why Using JSON-LD
2 How To Deal With Ambiguity
3 How To Deal With Linking
4 What Is JSON-LD
5 Applications of JSON-LD
6 Conclusion
7 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Specific
specifying the clear definition by an URI
http://schema.org provides shared common vocabulary
1 {
2 " http :// schema . org /name" : "Bob" ,
3 " http :// example . com/ JerseyNumber " : 17 ,
4 " http :// example . com/ FieldGoalPercentage " : 32.3
5 }
8 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Specific
specifying the clear definition by an URI
http://schema.org provides shared common vocabulary
1 {
2 " http :// schema . org /name" : "Bob" ,
3 " http :// example . com/ JerseyNumber " : 17 ,
4 " http :// example . com/ FieldGoalPercentage " : 32.3
5 }
specific but too complicated ?
8 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Concise
concise but ambiguous ?
1 {
2 " p l a y e r " : "Bob" ,
3 " Id " : 17 ,
4 " shooting " : 32.3 ,
5 "ST" : 2.2 ,
6 "AST" : 7.5
7 }
9 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Specific And Concise
With "@context", being specific and concise!!
1 {
2 " @context " : " b a s k e t b a l l " ,
3 " p l a y e r " : "Bob" ,
4 " Id " : 17 ,
5 " shooting " : 32.3 ,
6 "ST" : 2.2 ,
7 "AST" : 7.5
8 }
10 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Specific And Concise
With "@context", being concise and specific !!
1 {
2 " @context " : {
3 "name" : " http :// schema . org /name" ,
4 "number" : " http :// example . com/ JerseyNumber " ,
5 "FGP" : " http :// example . com/ FieldGoalPercentage "
6 } ,
7 "name" : "Bob" ,
8 "number" : 17 ,
9 "FGP" : 32.3
10 }
JSON-LD uses "@context" to define document context
11 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Context
"@context" defines
1 What do properties exactly means?
2 What type is the value?
What type is "02.15"?
1 Date (February 15) ?
2 Time (a quarter past two) ?
3 Decimal (2.15) ?
4 Percentage (2.15%)?
12 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Specific And Concise
define type
1 {
2 " @context " : { . . . } ,
3 "name" : "Bob" ,
4 "number" : {
5 " @value " : "17" ,
6 "@type" : " http ://www. w3 . org /2001/XMLSchema#
i n t e g e r "
7 }
8 "FGP" : {
9 " @value " : " 32.3 " ,
10 "@type" : " http ://www. w3 . org /2001/XMLSchema#
decimal "
11 }
12 }
13 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Specific And Concise
define type in "@context"
1 {
2 " @context " : {
3 "name" : " http :// schema . org /name" ,
4 "number" : {
5 "@id" : " http :// example . com/ JerseyNumber " ,
6 "@type" : " http ://www . . . / XMLSchema#i n t e g e r "
7 }
8 "FGP" : {
9 "@id" : " http :// example . com/ FieldGoalPe . . . " ,
10 "@type" : " http ://www . . . / XMLSchema#decimal "
11 }
12 } ,
13 "name" : "Bob" ,
14 "number" : "17" ,
15 "FGP" : " 32.3 "
16 }
14 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Specific And Concise
context separation
1 {
2 " @context " : " http :// json −l d . org / c o n t e x t s / b a s k e t b a l l .
j s o n l d " ,
3 "name" : "Bob" ,
4 "number" : "17" ,
5 "FGP" : " 32.3 "
6 }
HTTP Link Header
JSON-LD is as simple as JSON and compatible with ordinary JSON
document
15 / 29
Introduction to JSON-LD
How To Deal With Ambiguity
Be Specific And Concise
which Bob is ?
1 {
2 " @context " : " http :// json −l d . . . / b a s k e t b a l l . j s o n l d " ,
3 "@id" : " http :// example . com/ b a s k e t b a l l / p l a y e r s /bob" ,
4 "@type" : " http :// schema . org / Person " ,
5 "name" : "Bob" ,
6 "number" : "17" ,
7 "FGP" : " 32.3 "
8 }
JSON-LD gives your data an identifier
16 / 29
Introduction to JSON-LD
How To Deal With Linking
Outline
1 Why Using JSON-LD
2 How To Deal With Ambiguity
3 How To Deal With Linking
4 What Is JSON-LD
5 Applications of JSON-LD
6 Conclusion
17 / 29
Introduction to JSON-LD
How To Deal With Linking
Why Using JSON-LD
The second problem is how to link JSON !!
18 / 29
Introduction to JSON-LD
How To Deal With Linking
Why Using JSON-LD
The second problem is how to link JSON !!
1 {
2 "name" : " A l i c e " ,
3 "number" : "27" ,
4 "FGP" : " 50.3 "
5 }
1 {
2 "name" : "Bob" ,
3 "number" : "17" ,
4 "FGP" : " 32.3 " ,
5 " help " : [ " A l i c e " , . . . ]
6 }
which Alice is ?
JSON has no built-in support for hyperlink
18 / 29
Introduction to JSON-LD
How To Deal With Linking
Linking By Identifier
JSON-LD gives your data an identifier, which is convenient for linking
1 {
2 " @context " : " http :// json −l d . . . / b a s k e t b a l l . j s o n l d " ,
3 "@id" : " http :// example . com/ b a s k e t b a l l / p l a y e r s / a l i c e " ,
4 "name" : " A l i c e " ,
5 }
1 {
2 " @context " : " http :// json −l d . . . / b a s k e t b a l l . j s o n l d " ,
3 "@id" : " http :// example . com/ b a s k e t b a l l / p l a y e r s /bob" ,
4 "name" : "Bob" ,
5 " help " : [ {
6 "@id" : " http :// example . com/ b a s k e t b a l l / p l a y e r s /
a l i c e "
7 } , . . .
8 ]
9 }
19 / 29
Introduction to JSON-LD
How To Deal With Linking
Linking By Identifier
JSON-LD serializes a labeled directed graph
JSON-LD can describe almost everything
without ambiguity, JSON-LD is a machine-readable data
20 / 29
Introduction to JSON-LD
What Is JSON-LD
Outline
1 Why Using JSON-LD
2 How To Deal With Ambiguity
3 How To Deal With Linking
4 What Is JSON-LD
5 Applications of JSON-LD
6 Conclusion
21 / 29
Introduction to JSON-LD
What Is JSON-LD
JSON for Linking Data
JSON
a kind of simple properties value pairs data format used in transmitting
data between websites
22 / 29
Introduction to JSON-LD
What Is JSON-LD
JSON for Linking Data
JSON
a kind of simple properties value pairs data format used in transmitting
data between websites
Linking Data
a way to create network of sdandard-based machine-readable data acrose
websites
22 / 29
Introduction to JSON-LD
What Is JSON-LD
JSON for Linking Data
JSON
a kind of simple properties value pairs data format used in transmitting
data between websites
Linking Data
a way to create network of sdandard-based machine-readable data acrose
websites
JSON-LD
a lightweight syntax to serialize Linking Data based on JSON
JSON-LD 1.0 specification http://www.w3.org/TR/json-ld/
22 / 29
Introduction to JSON-LD
Applications of JSON-LD
Outline
1 Why Using JSON-LD
2 How To Deal With Ambiguity
3 How To Deal With Linking
4 What Is JSON-LD
5 Applications of JSON-LD
6 Conclusion
23 / 29
Introduction to JSON-LD
Applications of JSON-LD
Search Engine Optimization
embedding JSON-LD in HTML document
1 <s c r i p t type=" a p p l i c a t i o n / l d+js o n ">
2 {
3 " @context " : " http :// schema . org " ,
4 "@type" : " Person " ,
5 "name" : "Bo−Kai" ,
6 "age" : "25"
7 }
8 </s c r i p t >
making search engine know the meaning of data
24 / 29
Introduction to JSON-LD
Applications of JSON-LD
Gmail
tagging action information in Gmail
1 <s c r i p t type=" a p p l i c a t i o n / l d+js o n ">
2 {
3 " @context " : " http :// schema . org " ,
4 "@type" : " RestaurantReserveAction " ,
5 " l o c a t i o n " : " Taipei " ,
6 " p a r t i c i p a n t s " : [ {"@id" : " http : / / . . . " } , . . . ]
7 }
8 </s c r i p t >
making active service possible
25 / 29
Introduction to JSON-LD
Applications of JSON-LD
API Documentation
describing API document in JSON-LD
1 {
2 " @context " : " http ://www. w3 . org / ns / hydra / core#" ,
3 "@type" : " ApiDocumentation " ,
4 " supportedClass " : [ . . . ] ,
5 " statusCode " : [ . . . ]
6 }
making API document browsable
26 / 29
Introduction to JSON-LD
Conclusion
Outline
1 Why Using JSON-LD
2 How To Deal With Ambiguity
3 How To Deal With Linking
4 What Is JSON-LD
5 Applications of JSON-LD
6 Conclusion
27 / 29
Introduction to JSON-LD
Conclusion
JSON-LD
1 make data readable for machine without ambiguity
2 make data link together
3 be applied in SEO, Gmail, and API documentation
28 / 29
Introduction to JSON-LD
Conclusion
Questions
Refrerence
1 http://json-ld.org/
2 http://www.programmableweb.com/news/
how-to-build-hypermedia-apis-json-ld-and-hydra/analysis/
2015/07/30
3 https://www.youtube.com/watch?v=fJCtaNRxg9M
4 http://www.seoskeptic.com/what-is-json-ld/
5 https://developers.google.com/schemas/gmail/actions
6 http://www.w3.org/TR/json-ld/
7 https://www.youtube.com/watch?v=4x_xzT5eF5Q
8 https://www.youtube.com/watch?v=vioCbTo3C-4
9 https://www.youtube.com/watch?v=OGg8A2zfWKg&index=6&list=
PLjaODRwyGTalY6VkIsKyuPx-CsZV2c9Xv
29 / 29
Introduction to JSON-LD

More Related Content

Similar to Introduction to Json ld

Json
JsonJson
Json
soumya
 
MongoDB
MongoDBMongoDB
MongoDB
techwhizbang
 
MongoDB Europe 2016 - Graph Operations with MongoDB
MongoDB Europe 2016 - Graph Operations with MongoDBMongoDB Europe 2016 - Graph Operations with MongoDB
MongoDB Europe 2016 - Graph Operations with MongoDB
MongoDB
 
Graph Analysis over JSON, Larus
Graph Analysis over JSON, LarusGraph Analysis over JSON, Larus
Graph Analysis over JSON, Larus
Neo4j
 
Power JSON with PostgreSQL
Power JSON with PostgreSQLPower JSON with PostgreSQL
Power JSON with PostgreSQL
EDB
 
Mongodb
MongodbMongodb
Mongodb
kalai s
 
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
FIWARE
 
Streams of information - Chicago crystal language monthly meetup
Streams of information - Chicago crystal language monthly meetupStreams of information - Chicago crystal language monthly meetup
Streams of information - Chicago crystal language monthly meetup
Brian Cardiff
 
Screaming fast json parsing on Android
Screaming fast json parsing on AndroidScreaming fast json parsing on Android
Screaming fast json parsing on Android
Karthik Ramgopal
 
Back to Basics Webinar 3: Schema Design Thinking in Documents
 Back to Basics Webinar 3: Schema Design Thinking in Documents Back to Basics Webinar 3: Schema Design Thinking in Documents
Back to Basics Webinar 3: Schema Design Thinking in Documents
MongoDB
 
JSON and The Argonauts
JSON and The ArgonautsJSON and The Argonauts
JSON and The Argonauts
Mark Smalley
 
JSON Support in Java EE 8
JSON Support in Java EE 8JSON Support in Java EE 8
JSON Support in Java EE 8
Dmitry Kornilov
 
Back to Basics Webinar 3 - Thinking in Documents
Back to Basics Webinar 3 - Thinking in DocumentsBack to Basics Webinar 3 - Thinking in Documents
Back to Basics Webinar 3 - Thinking in Documents
Joe Drumgoole
 
LF_APIStrat17_Embracing JSON Schema
LF_APIStrat17_Embracing JSON SchemaLF_APIStrat17_Embracing JSON Schema
LF_APIStrat17_Embracing JSON Schema
LF_APIStrat
 
Creating Web APIs with JSON-LD and RDF
Creating Web APIs with JSON-LD and RDFCreating Web APIs with JSON-LD and RDF
Creating Web APIs with JSON-LD and RDF
donaldlsmithjr
 
Mapping Graph Queries to PostgreSQL
Mapping Graph Queries to PostgreSQLMapping Graph Queries to PostgreSQL
Mapping Graph Queries to PostgreSQL
Gábor Szárnyas
 
EWD 3 Training Course Part 18: Modelling NoSQL Databases using Global Storage
EWD 3 Training Course Part 18: Modelling NoSQL Databases using Global StorageEWD 3 Training Course Part 18: Modelling NoSQL Databases using Global Storage
EWD 3 Training Course Part 18: Modelling NoSQL Databases using Global Storage
Rob Tweed
 
Complex queries in a distributed multi-model database
Complex queries in a distributed multi-model databaseComplex queries in a distributed multi-model database
Complex queries in a distributed multi-model database
Max Neunhöffer
 
Advanced Json
Advanced JsonAdvanced Json
Advanced Json
guestfd7d7c
 
Webinar: Working with Graph Data in MongoDB
Webinar: Working with Graph Data in MongoDBWebinar: Working with Graph Data in MongoDB
Webinar: Working with Graph Data in MongoDB
MongoDB
 

Similar to Introduction to Json ld (20)

Json
JsonJson
Json
 
MongoDB
MongoDBMongoDB
MongoDB
 
MongoDB Europe 2016 - Graph Operations with MongoDB
MongoDB Europe 2016 - Graph Operations with MongoDBMongoDB Europe 2016 - Graph Operations with MongoDB
MongoDB Europe 2016 - Graph Operations with MongoDB
 
Graph Analysis over JSON, Larus
Graph Analysis over JSON, LarusGraph Analysis over JSON, Larus
Graph Analysis over JSON, Larus
 
Power JSON with PostgreSQL
Power JSON with PostgreSQLPower JSON with PostgreSQL
Power JSON with PostgreSQL
 
Mongodb
MongodbMongodb
Mongodb
 
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
 
Streams of information - Chicago crystal language monthly meetup
Streams of information - Chicago crystal language monthly meetupStreams of information - Chicago crystal language monthly meetup
Streams of information - Chicago crystal language monthly meetup
 
Screaming fast json parsing on Android
Screaming fast json parsing on AndroidScreaming fast json parsing on Android
Screaming fast json parsing on Android
 
Back to Basics Webinar 3: Schema Design Thinking in Documents
 Back to Basics Webinar 3: Schema Design Thinking in Documents Back to Basics Webinar 3: Schema Design Thinking in Documents
Back to Basics Webinar 3: Schema Design Thinking in Documents
 
JSON and The Argonauts
JSON and The ArgonautsJSON and The Argonauts
JSON and The Argonauts
 
JSON Support in Java EE 8
JSON Support in Java EE 8JSON Support in Java EE 8
JSON Support in Java EE 8
 
Back to Basics Webinar 3 - Thinking in Documents
Back to Basics Webinar 3 - Thinking in DocumentsBack to Basics Webinar 3 - Thinking in Documents
Back to Basics Webinar 3 - Thinking in Documents
 
LF_APIStrat17_Embracing JSON Schema
LF_APIStrat17_Embracing JSON SchemaLF_APIStrat17_Embracing JSON Schema
LF_APIStrat17_Embracing JSON Schema
 
Creating Web APIs with JSON-LD and RDF
Creating Web APIs with JSON-LD and RDFCreating Web APIs with JSON-LD and RDF
Creating Web APIs with JSON-LD and RDF
 
Mapping Graph Queries to PostgreSQL
Mapping Graph Queries to PostgreSQLMapping Graph Queries to PostgreSQL
Mapping Graph Queries to PostgreSQL
 
EWD 3 Training Course Part 18: Modelling NoSQL Databases using Global Storage
EWD 3 Training Course Part 18: Modelling NoSQL Databases using Global StorageEWD 3 Training Course Part 18: Modelling NoSQL Databases using Global Storage
EWD 3 Training Course Part 18: Modelling NoSQL Databases using Global Storage
 
Complex queries in a distributed multi-model database
Complex queries in a distributed multi-model databaseComplex queries in a distributed multi-model database
Complex queries in a distributed multi-model database
 
Advanced Json
Advanced JsonAdvanced Json
Advanced Json
 
Webinar: Working with Graph Data in MongoDB
Webinar: Working with Graph Data in MongoDBWebinar: Working with Graph Data in MongoDB
Webinar: Working with Graph Data in MongoDB
 

Recently uploaded

Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
apvysm8
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
ihavuls
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Fernanda Palhano
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
SaffaIbrahim1
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
Timothy Spann
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
wyddcwye1
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 

Recently uploaded (20)

Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 

Introduction to Json ld

  • 1. Introduction to JSON-LD Bo-Kai Hsu 許許許博博博凱凱凱 January 06, 2016 1 / 29 Introduction to JSON-LD
  • 2. Outline 1 Why Using JSON-LD 2 How To Deal With Ambiguity 3 How To Deal With Linking 4 What Is JSON-LD 5 Applications of JSON-LD 6 Conclusion 2 / 29 Introduction to JSON-LD
  • 3. Why Using JSON-LD Outline 1 Why Using JSON-LD 2 How To Deal With Ambiguity 3 How To Deal With Linking 4 What Is JSON-LD 5 Applications of JSON-LD 6 Conclusion 3 / 29 Introduction to JSON-LD
  • 4. Why Using JSON-LD Why Using JSON-LD What’s the problem with JSON ? 4 / 29 Introduction to JSON-LD
  • 5. Why Using JSON-LD Why Using JSON-LD What’s the problem with JSON ? 1 { 2 " i d " : 3 , 3 "number" : 4 , 4 " value " : 5 , 5 " count " : 6 6 } What’s the meaning of this JSON ? 4 / 29 Introduction to JSON-LD
  • 6. Why Using JSON-LD Why Using JSON-LD What’s the problem with JSON ? 1 { 2 " i d " : 3 , 3 "number" : 4 , 4 " value " : 5 , 5 " count " : 6 6 } What’s the meaning of this JSON ? The first problem is ambiguity of JSON !! 4 / 29 Introduction to JSON-LD
  • 7. Why Using JSON-LD Why Using JSON-LD What’s the meaning of this JSON? 1 { 2 "name" : "Bob" , 3 "number" : 17 , 4 " percentage " : 32.3 , 5 " s t e a l " : 2.2 , 6 " a s s i s t " 7.5 7 } 5 / 29 Introduction to JSON-LD
  • 8. Why Using JSON-LD Why Using JSON-LD What’s the meaning of this JSON? 1 { 2 "name" : "Bob" , 3 "number" : 17 , 4 " percentage " : 32.3 , 5 " s t e a l " : 2.2 , 6 " a s s i s t " 7.5 7 } describing a student named Bob? 5 / 29 Introduction to JSON-LD
  • 9. Why Using JSON-LD Why Using JSON-LD What’s the meaning of this JSON? 1 { 2 "name" : "Bob" , 3 "number" : 17 , 4 " percentage " : 32.3 , 5 " s t e a l " : 2.2 , 6 " a s s i s t " 7.5 7 } describing a student named Bob? describing a basketball player named Bob? 5 / 29 Introduction to JSON-LD
  • 10. Why Using JSON-LD Why Using JSON-LD What’s the meaning of this JSON? 1 { 2 "name" : "Bob" , 3 "number" : 17 , 4 " percentage " : 32.3 , 5 " s t e a l " : 2.2 , 6 " a s s i s t " 7.5 7 } describing a student named Bob? describing a basketball player named Bob? the same JSON means different? 5 / 29 Introduction to JSON-LD
  • 11. Why Using JSON-LD Why Using JSON-LD different JSON means the same? 1 { 2 " p l a y e r " : "Bob" , 3 " Id " : 17 , 4 " shooting " : 32.3 , 5 "ST" : 2.2 , 6 "AST" : 7.5 7 } describing a basketball player named Bob? 6 / 29 Introduction to JSON-LD
  • 12. How To Deal With Ambiguity Outline 1 Why Using JSON-LD 2 How To Deal With Ambiguity 3 How To Deal With Linking 4 What Is JSON-LD 5 Applications of JSON-LD 6 Conclusion 7 / 29 Introduction to JSON-LD
  • 13. How To Deal With Ambiguity Be Specific specifying the clear definition by an URI http://schema.org provides shared common vocabulary 1 { 2 " http :// schema . org /name" : "Bob" , 3 " http :// example . com/ JerseyNumber " : 17 , 4 " http :// example . com/ FieldGoalPercentage " : 32.3 5 } 8 / 29 Introduction to JSON-LD
  • 14. How To Deal With Ambiguity Be Specific specifying the clear definition by an URI http://schema.org provides shared common vocabulary 1 { 2 " http :// schema . org /name" : "Bob" , 3 " http :// example . com/ JerseyNumber " : 17 , 4 " http :// example . com/ FieldGoalPercentage " : 32.3 5 } specific but too complicated ? 8 / 29 Introduction to JSON-LD
  • 15. How To Deal With Ambiguity Be Concise concise but ambiguous ? 1 { 2 " p l a y e r " : "Bob" , 3 " Id " : 17 , 4 " shooting " : 32.3 , 5 "ST" : 2.2 , 6 "AST" : 7.5 7 } 9 / 29 Introduction to JSON-LD
  • 16. How To Deal With Ambiguity Be Specific And Concise With "@context", being specific and concise!! 1 { 2 " @context " : " b a s k e t b a l l " , 3 " p l a y e r " : "Bob" , 4 " Id " : 17 , 5 " shooting " : 32.3 , 6 "ST" : 2.2 , 7 "AST" : 7.5 8 } 10 / 29 Introduction to JSON-LD
  • 17. How To Deal With Ambiguity Be Specific And Concise With "@context", being concise and specific !! 1 { 2 " @context " : { 3 "name" : " http :// schema . org /name" , 4 "number" : " http :// example . com/ JerseyNumber " , 5 "FGP" : " http :// example . com/ FieldGoalPercentage " 6 } , 7 "name" : "Bob" , 8 "number" : 17 , 9 "FGP" : 32.3 10 } JSON-LD uses "@context" to define document context 11 / 29 Introduction to JSON-LD
  • 18. How To Deal With Ambiguity Context "@context" defines 1 What do properties exactly means? 2 What type is the value? What type is "02.15"? 1 Date (February 15) ? 2 Time (a quarter past two) ? 3 Decimal (2.15) ? 4 Percentage (2.15%)? 12 / 29 Introduction to JSON-LD
  • 19. How To Deal With Ambiguity Be Specific And Concise define type 1 { 2 " @context " : { . . . } , 3 "name" : "Bob" , 4 "number" : { 5 " @value " : "17" , 6 "@type" : " http ://www. w3 . org /2001/XMLSchema# i n t e g e r " 7 } 8 "FGP" : { 9 " @value " : " 32.3 " , 10 "@type" : " http ://www. w3 . org /2001/XMLSchema# decimal " 11 } 12 } 13 / 29 Introduction to JSON-LD
  • 20. How To Deal With Ambiguity Be Specific And Concise define type in "@context" 1 { 2 " @context " : { 3 "name" : " http :// schema . org /name" , 4 "number" : { 5 "@id" : " http :// example . com/ JerseyNumber " , 6 "@type" : " http ://www . . . / XMLSchema#i n t e g e r " 7 } 8 "FGP" : { 9 "@id" : " http :// example . com/ FieldGoalPe . . . " , 10 "@type" : " http ://www . . . / XMLSchema#decimal " 11 } 12 } , 13 "name" : "Bob" , 14 "number" : "17" , 15 "FGP" : " 32.3 " 16 } 14 / 29 Introduction to JSON-LD
  • 21. How To Deal With Ambiguity Be Specific And Concise context separation 1 { 2 " @context " : " http :// json −l d . org / c o n t e x t s / b a s k e t b a l l . j s o n l d " , 3 "name" : "Bob" , 4 "number" : "17" , 5 "FGP" : " 32.3 " 6 } HTTP Link Header JSON-LD is as simple as JSON and compatible with ordinary JSON document 15 / 29 Introduction to JSON-LD
  • 22. How To Deal With Ambiguity Be Specific And Concise which Bob is ? 1 { 2 " @context " : " http :// json −l d . . . / b a s k e t b a l l . j s o n l d " , 3 "@id" : " http :// example . com/ b a s k e t b a l l / p l a y e r s /bob" , 4 "@type" : " http :// schema . org / Person " , 5 "name" : "Bob" , 6 "number" : "17" , 7 "FGP" : " 32.3 " 8 } JSON-LD gives your data an identifier 16 / 29 Introduction to JSON-LD
  • 23. How To Deal With Linking Outline 1 Why Using JSON-LD 2 How To Deal With Ambiguity 3 How To Deal With Linking 4 What Is JSON-LD 5 Applications of JSON-LD 6 Conclusion 17 / 29 Introduction to JSON-LD
  • 24. How To Deal With Linking Why Using JSON-LD The second problem is how to link JSON !! 18 / 29 Introduction to JSON-LD
  • 25. How To Deal With Linking Why Using JSON-LD The second problem is how to link JSON !! 1 { 2 "name" : " A l i c e " , 3 "number" : "27" , 4 "FGP" : " 50.3 " 5 } 1 { 2 "name" : "Bob" , 3 "number" : "17" , 4 "FGP" : " 32.3 " , 5 " help " : [ " A l i c e " , . . . ] 6 } which Alice is ? JSON has no built-in support for hyperlink 18 / 29 Introduction to JSON-LD
  • 26. How To Deal With Linking Linking By Identifier JSON-LD gives your data an identifier, which is convenient for linking 1 { 2 " @context " : " http :// json −l d . . . / b a s k e t b a l l . j s o n l d " , 3 "@id" : " http :// example . com/ b a s k e t b a l l / p l a y e r s / a l i c e " , 4 "name" : " A l i c e " , 5 } 1 { 2 " @context " : " http :// json −l d . . . / b a s k e t b a l l . j s o n l d " , 3 "@id" : " http :// example . com/ b a s k e t b a l l / p l a y e r s /bob" , 4 "name" : "Bob" , 5 " help " : [ { 6 "@id" : " http :// example . com/ b a s k e t b a l l / p l a y e r s / a l i c e " 7 } , . . . 8 ] 9 } 19 / 29 Introduction to JSON-LD
  • 27. How To Deal With Linking Linking By Identifier JSON-LD serializes a labeled directed graph JSON-LD can describe almost everything without ambiguity, JSON-LD is a machine-readable data 20 / 29 Introduction to JSON-LD
  • 28. What Is JSON-LD Outline 1 Why Using JSON-LD 2 How To Deal With Ambiguity 3 How To Deal With Linking 4 What Is JSON-LD 5 Applications of JSON-LD 6 Conclusion 21 / 29 Introduction to JSON-LD
  • 29. What Is JSON-LD JSON for Linking Data JSON a kind of simple properties value pairs data format used in transmitting data between websites 22 / 29 Introduction to JSON-LD
  • 30. What Is JSON-LD JSON for Linking Data JSON a kind of simple properties value pairs data format used in transmitting data between websites Linking Data a way to create network of sdandard-based machine-readable data acrose websites 22 / 29 Introduction to JSON-LD
  • 31. What Is JSON-LD JSON for Linking Data JSON a kind of simple properties value pairs data format used in transmitting data between websites Linking Data a way to create network of sdandard-based machine-readable data acrose websites JSON-LD a lightweight syntax to serialize Linking Data based on JSON JSON-LD 1.0 specification http://www.w3.org/TR/json-ld/ 22 / 29 Introduction to JSON-LD
  • 32. Applications of JSON-LD Outline 1 Why Using JSON-LD 2 How To Deal With Ambiguity 3 How To Deal With Linking 4 What Is JSON-LD 5 Applications of JSON-LD 6 Conclusion 23 / 29 Introduction to JSON-LD
  • 33. Applications of JSON-LD Search Engine Optimization embedding JSON-LD in HTML document 1 <s c r i p t type=" a p p l i c a t i o n / l d+js o n "> 2 { 3 " @context " : " http :// schema . org " , 4 "@type" : " Person " , 5 "name" : "Bo−Kai" , 6 "age" : "25" 7 } 8 </s c r i p t > making search engine know the meaning of data 24 / 29 Introduction to JSON-LD
  • 34. Applications of JSON-LD Gmail tagging action information in Gmail 1 <s c r i p t type=" a p p l i c a t i o n / l d+js o n "> 2 { 3 " @context " : " http :// schema . org " , 4 "@type" : " RestaurantReserveAction " , 5 " l o c a t i o n " : " Taipei " , 6 " p a r t i c i p a n t s " : [ {"@id" : " http : / / . . . " } , . . . ] 7 } 8 </s c r i p t > making active service possible 25 / 29 Introduction to JSON-LD
  • 35. Applications of JSON-LD API Documentation describing API document in JSON-LD 1 { 2 " @context " : " http ://www. w3 . org / ns / hydra / core#" , 3 "@type" : " ApiDocumentation " , 4 " supportedClass " : [ . . . ] , 5 " statusCode " : [ . . . ] 6 } making API document browsable 26 / 29 Introduction to JSON-LD
  • 36. Conclusion Outline 1 Why Using JSON-LD 2 How To Deal With Ambiguity 3 How To Deal With Linking 4 What Is JSON-LD 5 Applications of JSON-LD 6 Conclusion 27 / 29 Introduction to JSON-LD
  • 37. Conclusion JSON-LD 1 make data readable for machine without ambiguity 2 make data link together 3 be applied in SEO, Gmail, and API documentation 28 / 29 Introduction to JSON-LD
  • 38. Conclusion Questions Refrerence 1 http://json-ld.org/ 2 http://www.programmableweb.com/news/ how-to-build-hypermedia-apis-json-ld-and-hydra/analysis/ 2015/07/30 3 https://www.youtube.com/watch?v=fJCtaNRxg9M 4 http://www.seoskeptic.com/what-is-json-ld/ 5 https://developers.google.com/schemas/gmail/actions 6 http://www.w3.org/TR/json-ld/ 7 https://www.youtube.com/watch?v=4x_xzT5eF5Q 8 https://www.youtube.com/watch?v=vioCbTo3C-4 9 https://www.youtube.com/watch?v=OGg8A2zfWKg&index=6&list= PLjaODRwyGTalY6VkIsKyuPx-CsZV2c9Xv 29 / 29 Introduction to JSON-LD