ExchangeRateSpecification - Схема.org
ExchangeRateSpecification - структурированное значение, представляющее курс обмена валют.
ExchangeRateSpecification - Тип Schema.org
Описание: Структурированное значение, представляющее курс обмена валют.
Микроразметка ExchangeRateSpecification используется для представления информации о курсе обмена валют между различными валютами. Это позволяет поисковым системам лучше понимать содержание вашего сайта и создавать более информативные результаты для пользователей.
Для использования микроразметки ExchangeRateSpecification, следует указать значение курса обмена, базовую валюту, целевую валюту, а также дату, на которую действует курс. Рекомендуется указывать актуальные данные, чтобы обеспечить точность информации.
Свойство | Ожидаемый тип | Описание |
---|---|---|
Properties from ExchangeRateSpecification | ||
currency |
Text | The currency in which the monetary amount is expressed.Use standard formats: ISO 4217 currency format, e.g. "USD"; Ticker symbol for cryptocurrencies, e.g. "BTC"; well known names for Local Exchange Trading Systems (LETS) and other currency types, e.g. "Ithaca HOUR". |
currentExchangeRate |
UnitPriceSpecification | Текущая цена валюты. |
exchangeRateSpread |
MonetaryAmount или Number | Разница между ценой, по которой брокер или иной посредник покупает и продает иностранную валюту. |
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 объекта. |
Acknowledgements
Financial Industry Business Ontology project
Source
https://github.com/schemaorg/schemaorg/issues/1253
Examples
Example 1
Copied
Example notes or example HTML without markup.
<body> <h1>Middle exchange rates of foreign currencies â table A</h1> <h2>Table No. 047/A/NBP/2016 of 2016-03-0</h2> <div> <table> <tr> <th>Currency</th> <th>Code</th> <th>Mid-rate </th> </tr> <tr> <td>Euro</td> <td>1 EUR</td> <td>4.3215</td> </tr> <tr> <td>Brazilian Real</td> <td>1 BRL</td> <td>1.0490</td> </tr> </table> </div> </body>
Example encoded as Microdata embedded in HTML.
<body itemscope itemtype="https://schema.org/WebPage"> <h1 itemprop="name">Middle exchange rates of foreign currencies â table A</h1> <div itemprop="mainEntity" itemscope itemtype="https://schema.org/ItemList"> <table> <caption itemprop="name">Table No. 047/A/NBP/2016 of 2016-03-09</caption> <tr> <th>Currency</th> <th>Code</th> <th>Mid-rate </th> </tr> <tr itemprop="itemListElement" itemscope itemtype="https://schema.org/ExchangeRateSpecification"> <td itemprop="currency" content="EUR">Euro</td> <td>1 EUR</td> <td itemprop="currentExchangeRate" itemscope itemtype="https://schema.org/UnitPriceSpecification"> <span itemprop="price">4.3215</span> <meta itemprop="priceCurrency" content="PLN"/> </td> </tr> <tr itemprop="itemListElement" itemscope itemtype="https://schema.org/ExchangeRateSpecification"> <td itemprop="currency" content="BRL">Brazilian Real</td> <td>1 BRL</td> <td itemprop="currentExchangeRate" itemscope itemtype="https://schema.org/UnitPriceSpecification"> <span itemprop="price">1.0490</span> <meta itemprop="priceCurrency" content="PLN"/> </td> </tr> </table> </div> </body>
Example encoded as RDFa embedded in HTML.
<body vocab="https://schema.org/" typeof="WebPage"> <h1 property="name">Middle exchange rates of foreign currencies â table A</h1> <div property="mainEntity" typeof="ItemList"> <table> <caption property="name">Table No. 047/A/NBP/2016 of 2016-03-09</caption> <tr> <th>Currency</th> <th>Code</th> <th>Mid-rate </th> </tr> <tr property="itemListElement" typeof="ExchangeRateSpecification"> <td property="currency" content="EUR">Euro</td> <td>1 EUR</td> <td property="currentExchangeRate" typeof="UnitPriceSpecification"> <span property="price">4.3215</span> <meta property="priceCurrency" content="PLN"/> </td> </tr> <tr property="itemListElement" typeof="ExchangeRateSpecification"> <td property="currency" content="BRL">Brazilian Real</td> <td>1 BRL</td> <td property="currentExchangeRate" typeof="UnitPriceSpecification"> <span property="price">1.0490</span> <meta property="priceCurrency" content="PLN"/> </td> </tr> </table> </div> </body>
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "WebPage", "name": "Middle exchange rates of foreign currencies â table A", "mainEntity": { "@type": "ItemList", "name": "Table No. 047/A/NBP/2016 of 2016-03-09", "itemListElement": [ { "@type": "ExchangeRateSpecification", "currency":"EUR", "currentExchangeRate":{ "@type": "UnitPriceSpecification", "price": "4.3215", "priceCurrency": "PLN" } }, { "@type": "ExchangeRateSpecification", "currency":"BRL", "currentExchangeRate":{ "@type": "UnitPriceSpecification", "price": "1.0490", "priceCurrency": "PLN" } } ] } } </script>
Structured representation of the JSON-LD example.