假设我们有一家像阿迪达斯这样的电子商务公司。我们有基本的JSON-LD结构
WebSsite
:
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://adidas.com/us",
"potentialAction": {
"@type": "SearchAction",
"target": "https://adidas.com/us/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
我们有
Organization
:
{
'@context': 'http://schema.org',
'@type': 'Organization',
'name': 'Adidas',
'description': 'Sport Shop',
'email': 'adidas@adidas.us',
'url': 'http://www.adidas.us',
'logo': 'http://www.adidas.us/logo.svg'
}
这个网站也是
Store
:
"@context":"http://schema.org",
"@type":"Store",
"url": 'http://www.adidas.us',
"description": "Adidas Shop !",
"name": "Adidas"
}
我们还有经典的
BreadcrumbList
:
"@context":"http://schema.org",
"@type":"BreadcrumbList",
"itemListElement":
[
{
"@type":"ListItem",
"position":1,
"item":{
"@type":"Thing",
"@id":"https://www.adidas.us",
"name":"Adidas"
}
},
{
"@type":"ListItem",
"position":2,
"item":{
"@type":"Thing",
"@id":"https://www.adidas.us/shoes",
"name":"Adidas shoes"
}
},
{
"@type":"ListItem",
"position":3,
"item":{
"@type":"Thing",
"@id":"https://www.adidas.us/shoes/Featured",
"name":"Adidas featured shoes"
}
}
]
}
这3个json-ld是常见的(当然或多或少有点详细),有时我在网页3中发现
script
包含这些json-ld的元素,有时只有1,有时是2。
我们应该试着把它们套成一个
(如果是,怎么办!?)还是最好分开?