Schema.org用于标记学位课程或教育课程

时间:2017-12-11 02:05:32

标签: schema.org

我试图代表学生可以注册的教育课程列表。每个课程都包含一系列课程,并有自己的URL和列出所有单个课程的页面。

我计划使用Course规范来标记每首曲目的课程列表,但我无法理解代表节目列表的最佳方式。

它们应该列为Product,还是应该重用Course规范,即使它代表一组课程?关于哪个选项可能提供更好的搜索引擎可见性的任何意见?

1 个答案:

答案 0 :(得分:0)

尝试以下内容。

您可以将课程及其说明添加到ListItem / Service。

然后可以使用CourseInstance标记这些课程。

以下内容可以作为@graph实施,但更容易维护,改进和重复使用作为链接项目。

<script type="application/ld+json" id="14310000001001">
{
    "@context": "http://schema.org/",
    "@type": "Service",
    "@id": "14310000001001",
    "name": "xxx engineering education",
    "description": "Teaching the content of xxx Engineering",
    "logo": {
        "@type": "ImageObject",
        "@id": "12170302151001"
    },
    "releaseDate": "",
    "category": {
        "@type": "Thing",
        "@id": "https://www.wikidata.org/wiki/xxx"
    },
    "provider": {
        "@type": "Person",
        "@id": "16020000001001"
    },
    "offers": {
        "@type": "Offer",
        "@id": "14180000001001"
    },
    "hasOfferCatalog": {
        "@type": "OfferCatalog",
        "@id": "1414020000xxxx"
    },
    "audience": {
        "@type": "Audience",
        "@id": "http://www.bls.gov/soc/22032500001567"
    }
}
</script>

<script type="application/ld+json" id="14180000001001">
{
    "@context": "http://schema.org/",
    "@type": "Offer",
    "@id": "14180000001001",
    "itemOffered": {
        "@type": "Service",
        "@id": "14310000001001"
    },
    "priceSpecification": {
        "@type": "PriceSpecification",
        "price": "0",
        "minPrice": "0",
        "maxPrice": "0",
        "priceCurrency": "USD"
    },
    "offeredBy": {
        "@type": "Person",
        "@id": "17000000001009"
    }
}
</script>

<script type="application/ld+json" id="1414020000xxxx">
{
    "@context": "http://schema.org/",
    "@type": "OfferCatalog",
    "@id": "1414020000xxxx",
    "name": "Education Service Catalog",
    "description": "",
    "itemListOrder": "http://schema.org/ItemListOrderAscending",
    "numberOfItems": "3",
    "itemListElement": [{
        "@type": "ListItem",
        "position": "1",
        "item": {
            "@type": "Service",
            "@id": "14310000001001"
        }
    },
    {
        "@type": "ListItem",
        "position": "2",
        "item": {
            "@type": "Service",
            "@id": "14310000001002"
        }
    },
    {
        "@type": "ListItem",
        "position": "3",
        "item": {
            "@type": "Service",
            "@id": "14310000001003"
        }
    }]
}
</script>

<script type="application/ld+json" id="Qxxxxxxx">
{
    "@context": "http://schema.org/",
    "@type": "Thing",
    "@id": "https://www.wikidata.org/wiki/xxx",
    "name": "xxx engineering",
    "description": "",
    "url": "https://en.wikipedia.org/wiki/xxx",
    "sameAs": "http://dbpedia.org/page/xxx"
}
</script>