同一类型的模式只能使用@graph关键字吗?

问题描述 投票:0回答:1

我有一个包含三件事的网页: 1.身体状况 2.医生 3.复习部分 4.三个视频

我想为页面编写一个架构 我已经编写了下面的架构,但将信息留空,因为它是私有的

我使用@graph关键字来组合各种类型的模式 然而,根据用户https://stackoverflow.com/users/271450/jonathan 在评论中,您只能对相同类型的模式使用 @graph 关键字。

这是真的吗? 架构中使用 @graph 关键字是否正确?

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "MedicalCondition",
            "associatedAnatomy": {
                "@type": "",
                "name": ""
            },
            "name": "",
            "signOrSymptom": [
                {
                    "@type": "",
                    "name": ""
                },
                {
                    "@type": "",
                    "name": ""
                },
                {
                    "@type": "",
                    "name": ""
                },
                {
                    "@type": "",
                    "name": ""
                }
            ],
            "possibleTreatment": [
                {
                    "@type": "",
                    "description":"."
                },
                {
                    "@type": "",
                    "description":""
                }
            ],
            "typicalTest": {
                "@type": "",
                "usesDevice": {
                    "@type": "",
                    "name": "",
                    "description": "",
                    "procedure":""
                }
            }
        },
        {
            "@type": "Perosn",
            "name": "",
            "affiliation": "",
            "alumniOf": [
                {
                    "@type": "",
                    "name": ""
                },
                {
                    "@type": "",
                    "name": ""
                },
                {
                    "@type": "",
                    "name": ""
                }
            ],
            "": [
                {
                    "@type": "",
                    "name": ""
                },
                {
                    "@type": "",
                    "name": ""
                },
                {
                    "@type": "",
                    "name": ""
                }
            ],
            "description": ""
        },
        {
            "@type": "Review",
            "author": {
                "@type": "",
                "name": ""
            },
            "reviewBody": "",
            "itemReviewed": {
                "@type": "",
                "name": ""
            },
            "reviewRating": {
                "@type": "",
                "ratingValue":,
                "worstRating": ,
                "bestRating": 
            }
        },
        {
            "@type": "Review",
            "author": {
                "@type": "",
                "name":""
            },
            "reviewBody": "",
            "itemReviewed": {
                "@type": "",
                "name": ""
            },
            "reviewRating": {
                "@type": "",
                "ratingValue": ,
                "worstRating": ,
                "bestRating": 
            }
        },
        {
            "@type": "Review",
            "author": {
                "@type": "",
                "name": ""
            },
            "reviewBody": "",
            "itemReviewed": {
                "@type": "",
                "name": ""
            },
            "reviewRating": {
                "@type": "",
                "ratingValue": ,
                "worstRating": ,
                "bestRating": 
            }
        },
        {
            "@type": "Review",
            "author": {
                "@type": "",
                "name": ""
            },
            "reviewBody": "",
            "itemReviewed": {
                "@type": "",
                "name": ""
            },
            "reviewRating": {
                "@type": "",
                "ratingValue": ,
                "worstRating": ,
                "bestRating": 
            }
        },
        {
            "@type": "Review",
            "author": {
                "@type": "",
                "name": ""
            },
            "reviewBody": "",
            "itemReviewed": {
                "@type": "",
                "name": ""
            },
            "reviewRating": {
                "@type": "",
                "ratingValue": ,
                "worstRating": ,
                "bestRating": 
            }
        },
        {
            "@type": "Review",
            "position": ,
            "name": "",
            "url": "",
            "thumbnailUrl": [
                ""
            ],
            "uploadDate": "",
            "duration": "",
            "contentUrl": "",
            "embedUrl": "",
            "interactionStatistic": {
                "@type": "",
                "interactionType": {
                    "@type": ""
                },
                "userInteractionCount": 
            }
        },
        {
            "@type": "VideoObject",
            "position": 2,
            "name": "",
            "url": "",
            "description": "",
            "thumbnailUrl": [
                ""
            ],
            "uploadDate": "",
            "duration": "",
            "contentUrl": "",
            "embedUrl": "",
            "interactionStatistic": {
                "@type": "",
                "interactionType": {
                    "@type": ""
                },
                "userInteractionCount": 
            }
        },
        {
            "@type": "VideoObject",
            "position": ,
            "name": "",
            "url": "",
            "description": "",
            "thumbnailUrl": [
                ""
            ],
            "uploadDate": "",
            "duration": "",
            "contentUrl": "",
            "embedUrl": "",
            "interactionStatistic": {
                "@type": "InteractionCounter",
                "interactionType": {
                    "@type": ""
                },
                "userInteractionCount": 
            }
        }
    ]
}
</script>

html seo schema.org json-ld
1个回答
0
投票

图表可以包含实体类型的任意组合。将其视为一种将多个实体添加到一个脚本中的方法,而不必将它们相互嵌套。

© www.soinside.com 2019 - 2024. All rights reserved.