⚠️ Важно: данный сайт не имеет отношения к владельцам schema.org, это всего лишь любительский (неофициальный) перевод. Сайт сделан для тех кто плохо воспринимает технический английский. Оригинальную и актуальную информацию на английском языке вы можете найти тут: schema.org/LinkRole.

Микроразметка LinkRole

Узнайте о типе микроразметки LinkRole, представляющем собой веб-ссылку.

LinkRole - Тип Schema.org
Описание: Роль, которая представляет собой Веб-ссылку, например, как выражено через свойство 'url'. Ее свойство linkRelationship может указывать типы ссылок на основе URL и обычного текста, например, те, которые содержатся в реестре ссылок IANA или другие, такие как 'amphtml'. Эта структура предоставляет заполнитель, где детали от элемента ссылки HTML могут быть представлены вне HTML, например, в потоках JSON-LD.
LinkRole - это тип микроразметки Schema.org, представляющий собой веб-ссылку. Он используется для обозначения веб-ссылок, выраженных через свойство 'url'. Свойство linkRelationship может указывать типы ссылок на URL и обычного текста, такие как те, что содержатся в реестре ссылок IANA или другие, например 'amphtml'. Эта структура предоставляет заполнитель, в котором могут быть представлены детали элемента link HTML вне HTML, например, в потоках JSON-LD.
СвойствоОжидаемый типОписание
Properties from LinkRole
inLanguage Language или Text The language of the content or performance or used in an action. Please use one of the language codes from the IETF BCP 47 standard. See also availableLanguage. Supersedes language.
linkRelationship Text Показывает тип связи веб-ссылки.
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 объекта.

Source

https://github.com/schemaorg/schemaorg/issues/1045


Examples

Example 1
Copied
Example notes or example HTML without markup.
A restaurant has links to reserve tables. One caters to Japanese speakers.
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json">
{
 "@context": "https://schema.org/",
 "@type": "Restaurant",
 "potentialAction": {
   "@type": "ReserveAction",
   "target": [
     "http://www.example.com/Reserve",
     {
       "@type": "LinkRole",
       "target": "http://www.example.com/Reserve-JP",
       "inLanguage": "jp",
       "linkRelationship": "alternate"
     }
   ]
 }
}
</script>
Structured representation of the JSON-LD example.
Example 2
Copied
Example notes or example HTML without markup.
An article is available using AMP HTML.
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json">
{
 "@context": "https://schema.org/",
 "@type": "Article",
 "url": "http://www.example.com/article",
 "url": {
     "@type": "LinkRole",
     "url": "http://www.example.com/article-amp",
     "linkRelationship": "amphtml"
   }
}
</script>
Structured representation of the JSON-LD example.

Обсуждение "LinkRole"