Samsara · JSON-LD Context

Samsara Context

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

44 Classes 4 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
geo: https://www.w3.org/2003/01/geo/wgs84_pos#
samsara: https://www.samsara.com/api/vocabulary#
xsd: http://www.w3.org/2001/XMLSchema#

Classes

Vehicle Driver Route Address Tag SafetyEvent Asset Webhook id name description vin make model year licensePlate staticAssignedDriver eldSettings eldExempt phone username licenseNumber licenseState timezone driverActivationStatus currentVehicle hosRulesets formattedAddress geofence eventType speedMilesPerHour severity coachingState time stops scheduledArrivalTime scheduledDepartureTime externalIds tags notes createdAtTime updatedAtTime endCursor hasNextPage

Properties

Property Type Container
odometerMeters integer
engineHours decimal
latitude decimal
longitude decimal

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "geo": "https://www.w3.org/2003/01/geo/wgs84_pos#",
    "samsara": "https://www.samsara.com/api/vocabulary#",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Vehicle": "schema:Vehicle",
    "Driver": "schema:Person",
    "Route": "schema:TripPlan",
    "Address": "schema:Place",
    "Tag": "schema:DefinedTerm",
    "SafetyEvent": "schema:Event",
    "Asset": "schema:Product",
    "Webhook": "schema:Action",

    "id": "@id",
    "name": "schema:name",
    "description": "schema:description",

    "vin": "schema:vehicleIdentificationNumber",
    "make": "schema:brand",
    "model": "schema:model",
    "year": "schema:vehicleModelDate",
    "licensePlate": "schema:vehiclePlate",
    "odometerMeters": {
      "@id": "samsara:odometerMeters",
      "@type": "xsd:integer"
    },
    "engineHours": {
      "@id": "samsara:engineHours",
      "@type": "xsd:decimal"
    },
    "staticAssignedDriver": "schema:driver",
    "eldSettings": "samsara:eldSettings",
    "eldExempt": "samsara:eldExempt",

    "phone": "schema:telephone",
    "username": "schema:identifier",
    "licenseNumber": "schema:licenseNumber",
    "licenseState": "schema:addressRegion",
    "timezone": "schema:timezone",
    "driverActivationStatus": "schema:status",
    "currentVehicle": "schema:vehicle",
    "hosRulesets": "samsara:hosRulesets",

    "latitude": {
      "@id": "geo:lat",
      "@type": "xsd:decimal"
    },
    "longitude": {
      "@id": "geo:long",
      "@type": "xsd:decimal"
    },
    "formattedAddress": "schema:address",
    "geofence": "samsara:geofence",

    "eventType": "samsara:eventType",
    "speedMilesPerHour": "samsara:speedMilesPerHour",
    "severity": "samsara:severity",
    "coachingState": "samsara:coachingState",
    "time": "schema:startTime",

    "stops": "schema:itemListElement",
    "scheduledArrivalTime": "schema:arrivalTime",
    "scheduledDepartureTime": "schema:departureTime",

    "externalIds": "samsara:externalIds",
    "tags": "schema:subjectOf",
    "notes": "schema:description",

    "createdAtTime": "schema:dateCreated",
    "updatedAtTime": "schema:dateModified",

    "endCursor": "samsara:endCursor",
    "hasNextPage": "samsara:hasNextPage"
  }
}