Микроразметка для Language
Исследуйте языковую микроразметку и тип Language на Schema.su.
Language - Тип Schema.org
❗️ В микроразметке schema.org важен регистр букв, поэтому не перепутайте с language.
Описание: Естественные языки, такие как испанский, тамильский, хинди, английский и т. д. Формальные языковые теги, выраженные в BCP 47, могут использоваться через свойство alternateName. Тип Языка ранее также охватывал программные языки, такие как Scheme и Lisp, которые теперь лучше представлены с использованием ComputerLanguage.
Микроразметка для Языка (Language) стандарта Schema.org предназначена для описания естественных языков, таких как испанский, тамильский, хинди, английский и другие.
Формальные языковые теги могут быть выражены с использованием ссылок кода в стандарте BCP 47 и могут использоваться с помощью свойства alternateName.
Ранее тип Language также включал в себя программные языки, такие как Scheme и Lisp, которые в настоящее время лучше представлены с использованием типа ComputerLanguage.
Свойство | Ожидаемый тип | Описание |
---|---|---|
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 объекта. |
Instances of
Language may appear as a value for the following properties
Свойство | On Types | Описание |
---|---|---|
availableLanguage | ContactPoint или Course или LodgingBusiness или ServiceChannel или TouristAttraction | A language someone may use with or at the item, service or place. Please use one of the language codes from the IETF BCP 47 standard. See also inLanguage. |
inLanguage | BroadcastService или CommunicateAction или CreativeWork или Event или LinkRole или PronounceableText или WriteAction | 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. |
knowsLanguage | Organization или Person | Of a Person, and less typically of an Organization, to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the IETF BCP 47 standard. |
language | CommunicateAction или WriteAction | Подсвойство инструмента. Язык, используемый для данного действия. |
subtitleLanguage | BroadcastEvent или Movie или ScreeningEvent или TVEpisode | Languages in which subtitles/captions are available, in IETF BCP 47 standard format. |
Examples
Example 1
Copied
Example notes or example HTML without markup.
This example shows a JSON-LD description of services that do not necessarily have a direct human-oriented HTML description. It describes a GovernmentService named "Veterans Affairs Emergency Mental Health", its operator, service area and service details, such as its Veterans Crisis Line (including phone contact line hours of operation, language and other details).
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "GovernmentService", "name": "Veterans Affairs Emergency Mental Health", "serviceType": "Psychiatric Emergency Services", "serviceOperator": { "@type": "GovernmentOrganization", "name": "US Department of Veterans Affairs" }, "areaServed": { "@type": "AdministrativeArea", "name": "Massachusetts" }, "audience": { "@type": "Audience", "name": "Veterans" }, "availableChannel": { "@type": "ServiceChannel", "name": "Urgent Care Clinic", "availableLanguage": { "@type": "Language", "name": "Spanish", "alternateName": "es" }, "serviceLocation": { "@type": "Hospital", "name": "VA Boston -- West Roxbury", "address": { "@type": "PostalAddress", "streetAddress": "1400 VFW Parkway", "addressLocality": "West Roxbury", "addressRegion": "MA", "postalCode": "02132" } } } } </script>
Structured representation of the JSON-LD example.
Example 2
Copied
Example notes or example HTML without markup.
This example is in microdata only.
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/Hotel"> <h1><span itemprop="name">ACME Hotel Innsbruck</span></h1> <span itemprop="description">A beautifully located business hotel right in the heart of the alps. Watch the sun rise over the scenic Inn valley while enjoying your morning coffee.</span> We speak: <ul> <li itemprop="availableLanguage" itemscope itemtype="https://schema.org/Language"> <span itemprop="name">English</span> </li> <li itemprop="availableLanguage" itemscope itemtype="https://schema.org/Language"> <span itemprop="name">German</span> </li> </ul> </div>