BusTrip: микроразметка на сайте schema.su
Изучите микроразметку BusTrip на сайте schema.su.
BusTrip - Тип Schema.org
Описание: Путешествие на коммерческом автобусе
Микроразметка BusTrip используется для описания путешествия на коммерческом автобусе. Этот тип сущности наследуется от Intangible и является подтипом Trip.
Для использования BusTrip указывайте основные свойства, такие как дата отправления, маршрут, длительность и другие детали поездки. При верном применении этой микроразметки поисковые системы могут лучше понимать контекст поездки и отображать соответствующие результаты.
Свойство | Ожидаемый тип | Описание |
---|---|---|
Properties from BusTrip | ||
arrivalBusStop |
BusStation или BusStop | Остановка или станция, откуда прибывает автобус. |
busName |
Text | Название автобуса (например, Bolt Express) |
busNumber |
Text | Уникальный идентификатор для автобуса. |
departureBusStop |
BusStation или BusStop | Стопка или станция, откуда автобус отправляется. |
Properties from Trip | ||
arrivalTime |
DateTime или Time | Ожидаемое время прибытия |
departureTime |
DateTime или Time | Ожидаемое время отправления. |
itinerary |
ItemList или Place | Destination(s) ( Place ) that make up a trip. For a trip where destination order is important use ItemList to specify that order (see examples). |
offers |
Demand или Offer | An offer to provide this itemâfor example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use businessFunction to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a Demand. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. Обратное свойство: itemOffered |
partOfTrip |
Trip | Identifies that this Trip is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip. Обратное свойство: subTrip |
provider |
Organization или Person | Поставщик услуг, оператор услуг или исполнитель; производитель товаров. Другая сторона (продавец) может предлагать эти услуги или товары от имени поставщика. Поставщик также может выступать в роли продавца. Supersedes carrier. |
subTrip |
Trip | Identifies a Trip that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-day trip. Обратное свойство: partOfTrip |
tripOrigin |
Place | Местоположение отправления поездки, перед прибытием на какие-либо пункты назначения. |
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 объекта. |
Examples
Example 1
Copied
Example notes or example HTML without markup.
Original: Bolt NYC #123456 Departing: Port Authority, NYC 2017-01-04T12:30:00-05:00 Arriving: Boston South Station 2017-01-04T17:10:00-05:00 Passenger: John Smith
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BusReservation", "reservationId": "123456", "underName": { "@type": "Person", "name": "John Smith" }, "reservationStatus": "https://schema.org/ReservationConfirmed", "reservationFor": { "@type": "BusTrip", "provider": { "@type": "Organization", "name": "Bolt NYC" }, "departureBusStop": { "@type": "BusStop", "name": "Port Authority, NYC" }, "departureTime": "2017-01-04T12:30:00-05:00", "arrivalBusStop": { "@type": "BusStop", "name": "Boston South Station" }, "arrivalTime": "2017-01-04T17:10:00-05:00" } } </script>
Structured representation of the JSON-LD example.