Микроразметка Role
Микроразметка Role представляет дополнительную информацию о отношениях или свойствах.
Role - Тип Schema.org
Описание: Представляет дополнительную информацию о связи или свойстве. Например Роль может использоваться для указания, что роль 'участник' связывающая некоторую спортивную команду с игроком произошла в определенный период времени. Или что 'актерская' роль лица в фильме была для определенного персонажа. Такие свойства могут быть присоединены к сущности Роль, которая затем связывается с основными сущностями с использованием обычных свойств, например 'участник' или 'актер'.
См. также статью в блоге.
См. также статью в блоге.
Микроразметка Role используется для передачи дополнительной информации о связи или свойстве. Например, Роль может использоваться для указания, что роль 'участник' связывающая некоторую спортивную команду с игроком произошла в определенный период времени. Или что 'актерская' роль лица в фильме была для определенного персонажа. Такие свойства могут быть присоединены к сущности Роль, которая затем связывается с основными сущностями с помощью обычных свойств, например 'участник' или 'актер'.
Свойство | Ожидаемый тип | Описание |
---|---|---|
Properties from Role | ||
endDate |
Date или DateTime | The end date and time of the item (in ISO 8601 date format). |
roleName |
Text или URL | Роль, исполняемая или занимаемая человеком или организацией. Например, команда создателей комикса может выполнять роли, названные 'инкер', 'рисовальщик' и 'леттерер'; или спортсмен в спортивной команде может играть на позиции с именем 'Квотербек'. Supersedes namedPosition. |
startDate |
Date или DateTime | The start date and time of the item (in ISO 8601 date format). |
Properties from Thing | ||
additionalType |
Text или URL | An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org style guide. |
alternateName |
Text | Псевдоним для элемента. |
description |
Text или TextObject | Описание элемента. |
disambiguatingDescription |
Text | Подсвойство описания. Краткое описание элемента, используемое для различения от других, схожих элементов. Для того чтобы описание было полезным для разрешения неоднозначности, может потребоваться информация из других свойств (в частности, name). |
identifier |
PropertyValue или Text или URL | The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details. |
image |
ImageObject или URL | An image of the item. This can be a URL or a fully described ImageObject. |
mainEntityOfPage |
CreativeWork или URL | Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details. Обратное свойство: mainEntity |
name |
Text | Название элемента. |
potentialAction |
Action | Указывает на потенциальное действие, описывающее идеализированное действие, в котором этот объект мог бы выполнять роль 'объекта'. |
sameAs |
URL | URL страницы для ссылки, однозначно указывающей на идентичность объекта. Например, URL страницы объекта на Википедии, записи в Wikidata или официального веб-сайта. |
subjectOf |
CreativeWork или Event | Свойство Schema.org - subjectOf: A CreativeWork or Event about this Thing. Обратное свойство: about |
url |
URL | URL объекта. |
More specific Types
Examples
Example 1
Copied
Example notes or example HTML without markup.
A basic Role example in JSON that shows how to qualify the 'member' property by adding an intermediate Role entity.
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/Organization"> <span itemprop="name">Cryptography Users</span> <div itemprop="member" itemscope itemtype="https://schema.org/OrganizationRole"> <div itemprop="member" itemscope itemtype="https://schema.org/Person"> <span itemprop="name">Alice</span> </div> <span itemprop="startDate">1977</span> </div> </div>
Example encoded as RDFa embedded in HTML.
<div vocab="https://schema.org/" typeof="Organization"> <span property="name">Cryptography Users</span> <div property="member" typeof="OrganizationRole"> <div property="member" typeof="Person"> <span property="name">Alice</span> </div> <span property="startDate">1977</span> </div> </div>
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Organization", "name": "Cryptography Users", "member": { "@type": "OrganizationRole", "member": { "@type": "Person", "name": "Alice" }, "startDate": "1977" } } </script>
Structured representation of the JSON-LD example.
Example 2
Copied
Example notes or example HTML without markup.
A JSON example of an OrganizationRole being used to qualify the 'alumniOf' property (which is inverseOf 'alumni'). Note that we use startDate to indicate when the alumniOf situation began, which was the date of leaving the organization.
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/Person"> <span itemprop="name">Delia Derbyshire</span> <link itemprop="sameAs" href="http://en.wikipedia.org/wiki/Delia_Derbyshire"> <div itemprop="alumniOf" itemscope itemtype="https://schema.org/OrganizationRole"> <div itemprop="alumniOf" itemscope itemtype="https://schema.org/CollegeOrUniversity"> <span itemprop="name">University of Cambridge</span> <link itemprop="sameAs" href="http://en.wikipedia.org/wiki/University_of_Cambridge"> </div> <span itemprop="startDate">1959</span> </div> </div>
Example encoded as RDFa embedded in HTML.
<div vocab="https://schema.org/" typeof="Person"> <span property="name">Delia Derbyshire</span> <link property="sameAs" href="http://en.wikipedia.org/wiki/Delia_Derbyshire"> <div property="alumniOf" typeof="OrganizationRole"> <div property="alumniOf" typeof="CollegeOrUniversity"> <span property="name">University of Cambridge</span> <link property="sameAs" href="http://en.wikipedia.org/wiki/University_of_Cambridge"> </div> <span property="startDate">1959</span> </div> </div>
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Person", "name": "Delia Derbyshire", "sameAs": "http://en.wikipedia.org/wiki/Delia_Derbyshire", "alumniOf": { "@type": "OrganizationRole", "alumniOf": { "@type": "CollegeOrUniversity", "name": "University of Cambridge", "sameAs": "http://en.wikipedia.org/wiki/University_of_Cambridge" }, "startDate": "1959" } } </script>
Structured representation of the JSON-LD example.
Example 3
Copied
Example notes or example HTML without markup.
A JSON example of a PerformanceRole, in which the Role represents the acting contribution made by Bill Murray in the film Ghostbusters. The Role entity allows us to additional information, such as the character's name that he played in the film.
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/Movie"> <span itemprop="name">Ghostbusters</span> <link itemprop="sameAs" href="http://en.wikipedia.org/wiki/Ghostbusters"/> <div itemprop="actor" itemscope itemtype="https://schema.org/PerformanceRole"> <div itemprop="actor" itemscope itemtype="https://schema.org/Person"> <span itemprop="name">Bill Murray</span> </div> <span itemprop="characterName">Dr. Peter Venkman</span> </div> </div>
Example encoded as RDFa embedded in HTML.
<div vocab="https://schema.org/" typeof="Movie"> <span property="name">Ghostbusters</span> <link property="sameAs" href="http://en.wikipedia.org/wiki/Ghostbusters"/> <div property="actor" typeof="PerformanceRole"> <div property="actor" typeof="Person"> <span property="name">Bill Murray</span> </div> <span property="characterName">Dr. Peter Venkman</span> </div> </div>
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Movie", "name": "Ghostbusters", "sameAs": "http://en.wikipedia.org/wiki/Ghostbusters", "actor": { "@type": "PerformanceRole", "actor": { "@type": "Person", "name": "Bill Murray" }, "characterName": "Dr. Peter Venkman" } } </script>
Structured representation of the JSON-LD example.
Example 4
Copied
Example notes or example HTML without markup.
A JSON example of an OrganizationRole, showing information about a 'member' of a 'SportsTeam', including time qualfiers (when he began and ended that role).
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/SportsTeam"> <span itemprop="name">San Francisco 49ers</span> <div itemprop="member" itemscope itemtype="https://schema.org/OrganizationRole"> <div itemprop="member" itemscope itemtype="https://schema.org/Person"> <span itemprop="name">Joe Montana</span> </div> <span itemprop="startDate">1979</span> <span itemprop="endDate">1992</span> <span itemprop="roleName">Quarterback</span> </div> </div>
Example encoded as RDFa embedded in HTML.
<div vocab="https://schema.org/" typeof="SportsTeam"> <span property="name">San Francisco 49ers</span> <div property="member" typeof="OrganizationRole"> <div property="member" typeof="https://schema.org/Person"> <span property="name">Joe Montana</span> </div> <span property="startDate">1979</span> <span property="endDate">1992</span> <span property="roleName">Quarterback</span> </div> </div>
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "SportsTeam", "name": "San Francisco 49ers", "member": { "@type": "OrganizationRole", "member": { "@type": "Person", "name": "Joe Montana" }, "startDate": "1979", "endDate": "1992", "roleName": "Quarterback" } } </script>
Structured representation of the JSON-LD example.
Example 5
Copied
Example notes or example HTML without markup.
See JSON example.
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "Person", "name": "Albert Einstein", "hasOccupation": [ { "@type": "Role", "hasOccupation": { "@type": "Occupation", "name": "Patent examiner", "occupationalCategory": "23-2099.00" }, "startDate": "1901", "endDate": "1906" }, { "@type": "Occupation", "name": "Professor of Physics", "educationRequirements": "PhD in Physics" } ] } </script>
Structured representation of the JSON-LD example.