For specifying multiple top-level items, you have three options:
Array
<script type="application/ld+json">
[
{
"@context": "http://schema.org",
"@type": "Organization"
},
{
"@context": "http://schema.org",
"@type": "BreadcrumbList"
}
]
</script>
Drawback: You have to repeat the @context
for each item.
@graph
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@graph":
[
{
"@type": "Organization"
},
{
"@type": "BreadcrumbList"
}
]
}
</script>
Multiple script
elements
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization"
}
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList"
}
</script>
Drawback: You have to repeat the script
element and the @context
for each item.
But it’s typically preferable to provide only one top-level item, and nest the additional items under suitable properties. This is not possible in all cases, though.
In your case it seems to be possible by adding a WebPage
item, assuming it’s the organization’s page and this page has this breadcrumb list:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"provider":
{
"@type": "Organization"
},
"breadcrumb":
{
"@type": "BreadcrumbList"
}
}
</script>
(You can achieve the same without nesting: give each item a URI with @id
, and then reference these URIs as property values.)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…