Cloudbeds · JSON-LD Context

Cloudbeds Context

JSON-LD context defining the semantic vocabulary for Cloudbeds from Cloudbeds.

32 Classes 14 Properties 5 Namespaces
View Context View on GitHub

Namespaces

cb: https://api-evangelist.com/vocab/cloudbeds#
schema: https://schema.org/
gr: http://purl.org/goodrelations/v1#
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/

Classes

Reservation Guest Room RoomType RatePlan Property Payment Webhook id type guestName firstName lastName email phone address city stateOrProvince postalCode country language status source rooms adults children subtotal taxes total balance currency event

Properties

Property Type Container
reservationID string
propertyID string
guestID string
roomID string
roomTypeID string
ratePlanID string
dateOfBirth date
startDate date
endDate date
rate decimal
date date
endpointUrl anyURI
dateCreated dateTime
dateModified dateTime

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "cb": "https://api-evangelist.com/vocab/cloudbeds#",
    "schema": "https://schema.org/",
    "gr": "http://purl.org/goodrelations/v1#",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",

    "Reservation": "schema:LodgingReservation",
    "Guest": "schema:Person",
    "Room": "schema:HotelRoom",
    "RoomType": "schema:Accommodation",
    "RatePlan": "cb:RatePlan",
    "Property": "schema:LodgingBusiness",
    "Payment": "schema:PaymentMethod",
    "Webhook": "cb:Webhook",

    "id": "@id",
    "type": "@type",

    "reservationID": {
      "@id": "schema:reservationId",
      "@type": "xsd:string"
    },
    "propertyID": {
      "@id": "cb:propertyId",
      "@type": "xsd:string"
    },
    "guestID": {
      "@id": "cb:guestId",
      "@type": "xsd:string"
    },
    "roomID": {
      "@id": "cb:roomId",
      "@type": "xsd:string"
    },
    "roomTypeID": {
      "@id": "cb:roomTypeId",
      "@type": "xsd:string"
    },
    "ratePlanID": {
      "@id": "cb:ratePlanId",
      "@type": "xsd:string"
    },

    "guestName": "schema:name",
    "firstName": "schema:givenName",
    "lastName": "schema:familyName",
    "email": "schema:email",
    "phone": "schema:telephone",
    "address": "schema:streetAddress",
    "city": "schema:addressLocality",
    "stateOrProvince": "schema:addressRegion",
    "postalCode": "schema:postalCode",
    "country": "schema:addressCountry",
    "dateOfBirth": {
      "@id": "schema:birthDate",
      "@type": "xsd:date"
    },
    "language": "schema:inLanguage",

    "status": "schema:reservationStatus",
    "source": "cb:source",
    "startDate": {
      "@id": "schema:checkinTime",
      "@type": "xsd:date"
    },
    "endDate": {
      "@id": "schema:checkoutTime",
      "@type": "xsd:date"
    },
    "rooms": "schema:reservedTicket",
    "adults": "cb:adults",
    "children": "cb:children",
    "subtotal": "schema:price",
    "taxes": "cb:taxes",
    "total": "schema:totalPrice",
    "balance": "cb:balance",
    "currency": "schema:priceCurrency",

    "rate": {
      "@id": "gr:hasCurrencyValue",
      "@type": "xsd:decimal"
    },
    "date": {
      "@id": "schema:validFrom",
      "@type": "xsd:date"
    },

    "event": "cb:eventType",
    "endpointUrl": {
      "@id": "schema:url",
      "@type": "xsd:anyURI"
    },

    "dateCreated": {
      "@id": "schema:dateCreated",
      "@type": "xsd:dateTime"
    },
    "dateModified": {
      "@id": "schema:dateModified",
      "@type": "xsd:dateTime"
    }
  }
}