作者ihl313 (土城余文乐)
看板Web_Design
标题[问题]有关JSON-LD
时间Tue Mar 1 17:14:28 2016
跪求各位大大:
下面一段程式码,是包覆在JSON-LD里,做结构化
<script type="application/ld+json">
{
"@context": "
http://schema.org",
"@type":"Person",
"name": "Keven Love",
"url": "
http://builtvisible.com",
"image":"
http://builtvisible.com/images/manu.png"
}
</script>
我想问的是 一个"@context"
可以有很多"@type"吗?
例如 : 我现在定义一个
"@type" : "Person" ,再多定义一个 "@type" : "Event"
我的想法是.....
如果两个不一样的 attribute 在 schema.org 里面所要求的属性因该都不一样!
是不是就只能放一个"@type"?
拜托各位大大解惑了!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.63.49.133
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Web_Design/M.1456823673.A.B7C.html
1F:→ yyc1217: 又是人 又是活动? 03/01 18:07
2F:推 Peruheru: 因该 03/02 08:11
3F:→ ihl313: 人跟活动只是举例啦!只是想知道 可以同时存在两个@type吗? 03/03 13:46