SlideShare a Scribd company logo
JSON-LD
• 講古(語義網與他愉快的夥伴們)	

• 介紹 JSON-LD
⼤大綱
先來講古
神說:要有網路
於是有了網際網路
然後⼤大家把

⼀一堆資料丟上網路
太多了看不完 (O_O)/
如果能讓電腦代看

那就 PERFECT 惹
所以我們有了搜尋引擎
可是電腦其實

看不懂⽂文件
如果資料能讓電腦看得懂

那就 PERFECT 惹
語義網
如果資料能讓電腦看得懂

那就 PERFECT 惹
很重要所以說兩次
所以造出了	

RDF / MICROFORMAT / OG
這是 Facebook 的 open graph
這是 microformat(hCard)
這是 RDF
• 定義字彙	

• ⽤用定義好的字彙表達「東⻄西」	

• 讓電腦能「看懂這東⻄西是什麼」
然後我們把這些東⻄西連起來
超連結是這樣⽤用的
LINKED-DATA
JSON-LD
⽤用 JSON 表達 LINKED DATA
所以叫作 JSON-LD,沒創意...
這是 JSON-LD
詞彙定義

這東⻄西是個 person
這個 person的 ID
他⽼老婆的 ID
字彙也可以 INLINE 定義
定義了三個 term:

name, image, homepage
TERM => 某個 IRI 的簡寫
就可以少打幾個字這樣
IRI => 可以有中⽂文的 URI
先當成這樣,我也不太確定...
也可以不定義 term

直接寫完整 IRI
也可以直接引⼊入整組vocabulary
⼀一樣的 vocabulary 定義
別⼈人定義好的字彙
• http://schema.org	

• http://json-ld.org	

• http://xmlns.com
書同⽂文,⼤大家才看的懂
現實⽣生活範例
https://developers.google.com/gmail/actions/getting-started

More Related Content

Similar to JSON-lD

给学习J2 Ee的朋友一些值得研究的开源项目
给学习J2 Ee的朋友一些值得研究的开源项目给学习J2 Ee的朋友一些值得研究的开源项目
给学习J2 Ee的朋友一些值得研究的开源项目yiditushe
 
Metadata and Interoperability
Metadata and InteroperabilityMetadata and Interoperability
Metadata and Interoperability
Zhang Ren
 
semantic web and integration of library recources
semantic web and integration of library recourcessemantic web and integration of library recources
semantic web and integration of library recources
chocolatehuanghai
 
理解和利用关联数据 --图情档博(LAM)作为关联数据的提供者和消费者
理解和利用关联数据 --图情档博(LAM)作为关联数据的提供者和消费者理解和利用关联数据 --图情档博(LAM)作为关联数据的提供者和消费者
理解和利用关联数据 --图情档博(LAM)作为关联数据的提供者和消费者
AIMS (Agricultural Information Management Standards)
 
42qu thrift1
42qu thrift142qu thrift1
42qu thrift1
Zoom Quiet
 
Dci vs aggregate_dddtw_2021-0.3-16-9
Dci vs aggregate_dddtw_2021-0.3-16-9Dci vs aggregate_dddtw_2021-0.3-16-9
Dci vs aggregate_dddtw_2021-0.3-16-9
teddysoft
 

Similar to JSON-lD (6)

给学习J2 Ee的朋友一些值得研究的开源项目
给学习J2 Ee的朋友一些值得研究的开源项目给学习J2 Ee的朋友一些值得研究的开源项目
给学习J2 Ee的朋友一些值得研究的开源项目
 
Metadata and Interoperability
Metadata and InteroperabilityMetadata and Interoperability
Metadata and Interoperability
 
semantic web and integration of library recources
semantic web and integration of library recourcessemantic web and integration of library recources
semantic web and integration of library recources
 
理解和利用关联数据 --图情档博(LAM)作为关联数据的提供者和消费者
理解和利用关联数据 --图情档博(LAM)作为关联数据的提供者和消费者理解和利用关联数据 --图情档博(LAM)作为关联数据的提供者和消费者
理解和利用关联数据 --图情档博(LAM)作为关联数据的提供者和消费者
 
42qu thrift1
42qu thrift142qu thrift1
42qu thrift1
 
Dci vs aggregate_dddtw_2021-0.3-16-9
Dci vs aggregate_dddtw_2021-0.3-16-9Dci vs aggregate_dddtw_2021-0.3-16-9
Dci vs aggregate_dddtw_2021-0.3-16-9
 

JSON-lD