[问题]有关JSON-LD

楼主: ihl313 (土城余文乐)   2016-03-01 17:14:28
跪求各位大大:
下面一段程式码,是包覆在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"?
拜托各位大大解惑了!
作者: yyc1217 (somo)   2016-03-01 18:07:00
又是人 又是活动?
作者: Peruheru (还在想)   2016-03-02 08:11:00
因该
楼主: ihl313 (土城余文乐)   2016-03-03 13:46:00
人跟活动只是举例啦!只是想知道 可以同时存在两个@type吗?

Links booklink

Contact Us: admin [ a t ] ucptt.com