Smartcar · JSON-LD Context

Smartcar Context

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

13 Classes 11 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
smartcar: https://api-evangelist.github.io/smartcar/vocab#
auto: http://schema.org/auto/

Classes

name description Vehicle make manufacturer model modelDate vin location latitude longitude Connection Permission

Properties

Property Type Container
url reference
vehicleId string
batteryLevel decimal
range schema:QuantitativeValue
isPluggedIn boolean
chargingState string
isLocked boolean
odometer schema:QuantitativeValue
fuelLevel decimal
percentRemaining decimal
distance schema:QuantitativeValue

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "smartcar": "https://api-evangelist.github.io/smartcar/vocab#",
    "auto": "http://schema.org/auto/",

    "name": "schema:name",
    "description": "schema:description",
    "url": {
      "@id": "schema:url",
      "@type": "@id"
    },

    "Vehicle": "schema:Vehicle",
    "vehicleId": {
      "@id": "smartcar:vehicleId",
      "@type": "xsd:string"
    },
    "make": "schema:vehicleIdentificationNumber",
    "manufacturer": "schema:manufacturer",
    "model": "schema:model",
    "modelDate": "schema:modelDate",
    "vin": "schema:vehicleIdentificationNumber",

    "batteryLevel": {
      "@id": "smartcar:batteryLevel",
      "@type": "xsd:decimal"
    },
    "range": {
      "@id": "schema:fuelCapacity",
      "@type": "schema:QuantitativeValue"
    },
    "isPluggedIn": {
      "@id": "smartcar:isPluggedIn",
      "@type": "xsd:boolean"
    },
    "chargingState": {
      "@id": "smartcar:chargingState",
      "@type": "xsd:string"
    },

    "isLocked": {
      "@id": "smartcar:isLocked",
      "@type": "xsd:boolean"
    },
    "location": "schema:GeoCoordinates",
    "latitude": "schema:latitude",
    "longitude": "schema:longitude",

    "odometer": {
      "@id": "smartcar:odometer",
      "@type": "schema:QuantitativeValue"
    },
    "fuelLevel": {
      "@id": "smartcar:fuelLevel",
      "@type": "xsd:decimal"
    },

    "Connection": "schema:EntryPoint",
    "Permission": "schema:DefinedTerm",

    "percentRemaining": {
      "@id": "smartcar:percentRemaining",
      "@type": "xsd:decimal"
    },
    "distance": {
      "@id": "schema:distance",
      "@type": "schema:QuantitativeValue"
    }
  }
}