Свойство schema.org ?
Содержание: Описание, Обратное свойство, Какие должны быть типы, В каких типах используется, Какие имеет подсвойства, Благодарности, Примеры использования.
Свойство workExample в Schema.org используется для обозначения конкретного примера или экземпляра творческого произведения. Это может быть полезно для детального описания различных форматов или версий произведения, таких как печатные издания, электронные книги или аудиоверсии.
Основная цель workExample — предоставить дополнительную информацию о том, как данное произведение может быть представлено или существует в разных вариантах. Это помогает пользователям и системам лучше понять, какие именно версии произведения доступны, и как они могут взаимодействовать с ними.
Свойство может использоваться в различных контекстах, например, на веб-сайтах, посвященных книгам, фильмам или другим формам искусства. Оно помогает улучшить семантическую разметку контента, что, в свою очередь, может способствовать лучшему индексированию в поисковых системах и более точному отображению информации пользователям.
Таким образом, workExample служит для уточнения и расширения информации о творческом произведении, делая его более доступным и понятным для аудитории.
Обратное свойство: exampleOfWork
Пример заметки или HTML разметки.
<p>
<em>The Fellowship of the Rings</em> was written by J.R.R Tolkien and
was originally published in the United Kingdom in 1954 by George Allen &
Unwin.
</p>
<p>
The book has been republished many times, including editions by
HarperCollins in 1974 (ISBN: 0007149212) and by Ballantine in 1984
(ISBN: 0345296052).
</p>
<p>
The book has also been adapted for the screen several times. <em>J.R.R.
Tolkien's The Lord of the Rings</em>, an animated version directed by Ralph
Bakshi and released in 1978, covered the events of the novel and parts of
its sequel. The movie <em>The Lord of the Rings: The Fellowship of the
Ring</em>, directed by Peter Jackson and released in 2001, ran 178 minutes
long in its theatrical release.
</p>
Пример, закодированный в формате Microdata, встроенный в HTML.
<p itemscope itemtype="https://schema.org/Book" itemid="http://www.freebase.com/m/0h35m">
<em itemprop="name">The Fellowship of the Rings</em> was written by
<span itemprop="author">J.R.R Tolkien</span> and was originally published
in the <span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<span itemprop="location">United Kingdom</span> by
<span itemprop="name">George Allen & Unwin</span>
</span> in <time itemprop="datePublished">1954</time>.
The book has been republished many times, including editions by
<span itemprop="workExample" itemscope itemtype="https://schema.org/Book">
<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<span itemprop="name">HarperCollins</span>
</span> in <time itemprop="datePublished">1974</time>
(ISBN: <span itemprop="isbn">0007149212</span>)
</span> and by
<span itemprop="workExample" itemscope itemtype="https://schema.org/Book">
<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<span itemprop="name">Ballantine</span>
</span> in <time itemprop="datePublished">1984</time>
(ISBN: <span itemprop="isbn">0345296052</span>).
</span>
</p>
<p>
The book has also been adapted for the screen several times.
<span itemscope itemtype="https://schema.org/Movie">
<link itemprop="exampleOfWork" href="http://www.freebase.com/m/0h35m">
<em itemprop="name">J.R.R. Tolkien's The Lord of the Rings</em>, an
animated version directed by <span itemprop="director">Ralph Bakshi</span>
and released in <time itemprop="datePublished">1978</time>, covered the
events of the novel and parts of its sequel.
</span>
<span itemscope itemtype="https://schema.org/Movie">
<link itemprop="exampleOfWork" href="http://www.freebase.com/m/0h35m">
The movie <em itemprop="name">The Lord of the Rings: The Fellowship of the
Ring</em>, directed by <span itemprop="director">Peter Jackson</span> and
released in <time itemprop="datePublished">2001</time>, ran
<time itemprop="duration" datetime="PT178M">178</time> minutes long in its
theatrical release.
</span>
</p>
Пример, закодированный в формате RDFa, встроенный в HTML.
<div vocab="https://schema.org/">
<p typeof="Book" resource="http://www.freebase.com/m/0h35m">
<em property="name">The Fellowship of the Rings</em> was written by
<span property="author">J.R.R Tolkien</span> and was originally published
in the <span property="publisher" typeof="Organization">
<span property="location">United Kingdom</span> by
<span property="name">George Allen & Unwin</span>
</span> in <time property="datePublished">1954</time>.
The book has been republished many times, including editions by
<span property="workExample" typeof="Book">
<span property="publisher" typeof="Organization">
<span property="name">HarperCollins</span>
</span> in <time property="datePublished">1974</time>
(ISBN: <span property="isbn">0007149212</span>)
</span> and by
<span property="workExample" typeof="Book">
<span property="publisher" typeof="Organization">
<span property="name">Ballantine</span>
</span> in <time property="datePublished">1984</time>
(ISBN: <span property="isbn">0345296052</span>).
</span>
</p>
<p>
The book has also been adapted for the screen several times.
<span typeof="Movie">
<link property="exampleOfWork" href="http://www.freebase.com/m/0h35m">
<em property="name">J.R.R. Tolkien's The Lord of the Rings</em>, an
animated version directed by <span property="director">Ralph Bakshi</span>
and released in <time property="datePublished">1978</time>, covered the
events of the novel and parts of its sequel.
</span>
<span typeof="Movie">
<link property="exampleOfWork" href="http://www.freebase.com/m/0h35m">
The movie <em property="name">The Lord of the Rings: The Fellowship of the
Ring</em>, directed by <span property="director">Peter Jackson</span> and
released in <time property="datePublished">2001</time>, ran
<time property="duration" datetime="PT178M">178</time> minutes long in its
theatrical release.
</span>
</p>
</div>
Пример, закодированный в формате JSON-LD в теге <script> HTML.
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@graph": [
{
"@id": "http://www.freebase.com/m/0h35m",
"@type": "Book",
"author": "J.R.R Tolkien",
"datePublished": "1954",
"name": "The Fellowship of the Ring",
"publisher": {
"@type": "Organization",
"location": "United Kingdom",
"name": "George Allen & Unwin"
},
"workExample": [
{
"@type": "Book",
"datePublished": "1974",
"isbn": "0007149212",
"publisher": {
"@type": "Organization",
"name": "HarperCollins"
}
},
{
"@type": "Book",
"datePublished": "1984",
"isbn": "0345296052",
"publisher": {
"@type": "Organization",
"name": "Ballantine"
}
}
]
},
{
"@type": "Movie",
"datePublished": "2001",
"director": "Peter Jackson",
"duration": "PT178M",
"name": "The Lord of the Rings: The Fellowship of the Ring",
"exampleOfWork": {
"@id": "http://www.freebase.com/m/0h35m"
}
},
{
"@type": "Movie",
"datePublished": "1978",
"director": "Ralph Bakshi",
"name": "J.R.R. Tolkien's The Lord of the Rings",
"exampleOfWork": {
"@id": "http://www.freebase.com/m/0h35m"
}
}
]
}
</script>
Структурированное представление примера JSON-LD.