Свойство schema.org ?
Содержание: Описание, Какие должны быть типы, В каких типах используется, Примеры использования.
Свойство hasCourseInstance
в Schema.org используется для обозначения конкретного предложения курса, которое связано с определённым временем, местом или формой обучения. Это свойство помогает структурировать информацию о курсах и их предложениях, что делает её более понятной для поисковых систем и других приложений.
Основная цель hasCourseInstance
— связать курс с его конкретными предложениями, чтобы пользователи могли легко находить информацию о том, когда и где курс доступен, а также в каком формате он проводится (например, в классе, онлайн или в гибридном формате). Это свойство может использоваться в образовательных ресурсах, на веб-сайтах учебных заведений, в каталогах курсов и других платформах, которые предлагают образовательные услуги.
Использование hasCourseInstance
позволяет создавать более детализированные и точные описания курсов, что в свою очередь улучшает видимость и доступность информации для студентов и других заинтересованных сторон. Это свойство также способствует лучшему пониманию контекста и условий, при которых курс предлагается, что может помочь в принятии решения о его выборе.
Пример заметки или HTML разметки.
<body vocab="https://schema.org/">
<!-- A MOOC / free online course. As a simple one-off course -->
<!-- Based on https://www.coursera.org/course/datascitoolbox -->
<main>
<h1>The Data Scientist's Toolbox</h1>
<h2>About this Course</h2>
<p>In this course you will get an introduction to the main tools and ideas in the
data scientist's toolbox...</p>
<div>
<h2>Session dates</h2>
<span>February 15</span> -
<span>March 21</span>
</div>
</main>
</body>
Пример, закодированный в формате RDFa, встроенный в HTML.
<body vocab="https://schema.org/">
<!-- A MOOC / free online course. As a simple one-off course -->
<!-- Based on https://www.coursera.org/course/datascitoolbox -->
<main typeof="Course">
<h1 property="name">The Data Scientist's Toolbox</h1>
<h2>About this Course</h2>
<p property="description">
In this course you will get an introduction to the main tools and ideas in the
data scientist's toolbox...</p>
<div rel="hasCourseInstance" typeof="CourseInstance">
<meta property="courseMode" content="MOOC" />
<meta property="courseMode" content="online" />
<h2>Session dates</h2>
<span property="startDate" content="2019-02-15">February 15</span> -
<span property="endDate" content="2019-03-21">March 21</span>
</div>
</main>
</body>
Пример, закодированный в формате JSON-LD в теге <script> HTML.
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Course",
"description": "In this course you will get an introduction to the main tools and ideas in the data scientist's toolbox...",
"hasCourseInstance": {
"@type": "CourseInstance",
"courseMode": ["MOOC","online"],
"endDate": "2019-03-21",
"startDate": "2019-02-15"
}
}
</script>
Структурированное представление примера JSON-LD.
Пример заметки или HTML разметки.
<body vocab="https://schema.org/" typeof="Course">
<!-- A college course offered at several locations -->
<!-- based on http://www.fife.ac.uk/student/courses/course/HCACC -->
<h1>Course Details</h1>
<h2>HNC Accounting</h2>
<p>This course is designed for those wishing to take up
a career in Accounting and Financial Administration within a range of
organisations....</p>
<h2>This course is currently offered on the date(s) and venue(s) listed below.</h2>
<table >
<tbody>
<tr >
<th scope="col" >Method of Study</th>
<th scope="col" >Starts</th>
<th scope="col" >Ends</th>
<th scope="col" >Based at</th>
</tr>
<tr>
<td>Full-time</td>
<td>29 Aug 2016</td>
<td>23 Jun 2017</td>
<td>St Brycedale Campus Kirkcaldy</td>
</tr>
<tr>
<td>Full-time</td>
<td>29 Aug 2016</td>
<td>23 Jun 2017</td>
<td>Halbeath Campus Dunfermline</td>
</tr>
<tr>
<td>Evenings only and weekends</td>
<td>31 Aug 2016</td>
<td>21 Jun 2017</td>
<td>St Brycedale Campus Kirkcaldy</td>
</tr>
</tbody>
</table>
</body>
Пример, закодированный в формате RDFa, встроенный в HTML.
<body vocab="https://schema.org/" typeof="Course">
<!-- A college course offered at several locations -->
<!-- based on http://www.fife.ac.uk/student/courses/course/HCACC -->
<h1>Course Details</h1>
<h2 property="name">HNC Accounting</h2>
<p property="description">This course is designed for those wishing to take up
a career in Accounting and Financial Administration within a range of
organisations....</p>
<h2>This course is currently offered on the date(s) and venue(s) listed below.</h2>
<table >
<tbody>
<tr >
<th scope="col" >Method of Study</th>
<th scope="col" >Starts</th>
<th scope="col" >Ends</th>
<th scope="col" >Based at</th>
</tr>
<tr rel="hasCourseInstance" typeof="CourseInstance">
<td property="courseMode">full-time</td>
<td property="startDate" content="2016-08-29" datatype="schema:date">29 Aug 2016</td>
<td property="endDate" content="2017-06-23" datatype="schema:date">23 Jun 2017</td>
<td property="location">St Brycedale Campus Kirkcaldy</td>
</tr>
<tr rel="hasCourseInstance" typeof="CourseInstance">
<td property="courseMode">full-time</td>
<td property="startDate" content="2016-08-29" datatype="schema:date">29 Aug 2016</td>
<td property="endDate" content="2017-06-23" datatype="schema:date">23 Jun 2017</td>
<td property="location">Halbeath Campus Dunfermline</td>
</tr>
<tr rel="hasCourseInstance" typeof="CourseInstance">
<td><meta property="courseMode" content="part-time">
Evenings only and weekends</td>
<td property="startDate" content="2016-08-31" datatype="schema:date">31 Aug 2016</td>
<td property="endDate" content="2017-06-21" datatype="schema:date">21 Jun 2017</td>
<td property="location">St Brycedale Campus Kirkcaldy</td>
</tr>
</tbody>
</table>
</body>
Пример, закодированный в формате JSON-LD в теге <script> HTML.
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@id": "./",
"@type": "Course",
"name": "HNC Accounting",
"description": "This course is designed for those wishing to take up \r\n a career in Accounting and Financial Administration within a range of \r\n organisations....",
"hasCourseInstance": [
{
"@type": "CourseInstance",
"courseMode": "part-time",
"endDate": "2017-06-21",
"location": "St Brycedale Campus Kirkcaldy",
"startDate": "2016-08-31"
},
{
"@type": "CourseInstance",
"courseMode": "full-time",
"endDate": "2017-06-23",
"location": "Halbeath Campus Dunfermline",
"startDate": "2016-08-29"
},
{
"courseMode": "full-time",
"endDate": "2017-06-23",
"location": "St Brycedale Campus Kirkcaldy",
"startDate": "2016-08-29"
}
]
}
</script>
Структурированное представление примера JSON-LD.
Пример заметки или HTML разметки.
<body>
<!--A self-paced distance learning course (no events)-->
<!--Based on http://www.train4publishing.co.uk/courses/distance-learning/basic-proofreading -->
<div>
<h1>Basic Proofreading</h1>
<p>The distance learning training course that takes you
from complete beginner to PQB qualified proofreader in one step.</p>
<div>
Online, cost: £395
</div>
<div>
Posted, cost:£440
</div>
</div>
</body>
Пример, закодированный в формате RDFa, встроенный в HTML.
<body vocab="https://schema.org/">
<!--A self-paced distance learning course (no events)-->
<!--Based on http://www.train4publishing.co.uk/courses/distance-learning/basic-proofreading -->
<div typeof="Course">
<h1 property="name">Basic Proofreading</h1>
<p property="description">The distance learning training course that takes you
from complete beginner to PQB qualified proofreader in one step.</p>
<div rel="hasCourseInstance" typeof="CourseInstance">
<meta property="courseMode" content="distance learning" />
<span property="courseMode">Online</span>,
<div rel="offers" typeof="Offer">
cost:<meta property="priceCurrency" content="GBP" />
£<span property="price">395</span>
</div>
</div>
<div rel="hasCourseInstance" typeof="CourseInstance">
<meta property="courseMode" content="distance learning" />
<span property="courseMode">Posted</span>,
<div rel="offers" typeof="Offer">
cost:<meta property="priceCurrency" content="GBP" />
£<span property="price">440</span>
</div>
</div>
</div>
</body>
Пример, закодированный в формате JSON-LD в теге <script> HTML.
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Course",
"name": "Basic Proofreading",
"description": "The distance learning training course that takes you \r\n from complete beginner to PQB qualified proofreader in one step.",
"hasCourseInstance": [
{
"@type": "CourseInstance",
"courseMode": [
"distance learning",
"Online"
],
"offers": {
"@type": "Offer",
"price": "395",
"priceCurrency": "GBP"
}
},
{
"@type": "CourseInstance",
"courseMode": [
"Posted",
"distance learning"
],
"offers": {
"@type": "Offer",
"price": "440",
"priceCurrency": "GBP"
}
}
]
}
</script>
Структурированное представление примера JSON-LD.