{
	"id": "BusTrip.json",
	"title": "Bus Trip",
	"description": "A trip on a commercial bus line.",
	"media": {"type": "application/json;profile=http://schema.org/BusTrip"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}, {"$ref": "Trip.json"}],
	"type": "object",
	"properties": {
		"arrivalBusStop": {"$ref": "#/definitions/arrivalBusStop"},
		"busName": {"$ref": "#/definitions/busName"},
		"busNumber": {"$ref": "#/definitions/busNumber"},
		"departureBusStop": {"$ref": "#/definitions/departureBusStop"}
	},
	"definitions": {
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"possibleRef": {
			"oneOf": [
				{"$ref": "#"},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"possibleRefArray": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/possibleRef"}
				},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"arrivalBusStop": {
			"title": "Arrival Bus Stop",
			"description": "The stop or station from which the bus arrives.",
			"anyOf": [{"$ref": "BusStation.json#/definitions/possibleRef"}, {"$ref": "BusStop.json#/definitions/possibleRef"}]
		},
		"busName": {
			"title": "Bus Name",
			"description": "The name of the bus (e.g. Bolt Express).",
			"type": "string"
		},
		"busNumber": {
			"title": "Bus Number",
			"description": "The unique identifier for the bus.",
			"type": "string"
		},
		"departureBusStop": {
			"title": "Departure Bus Stop",
			"description": "The stop or station from which the bus departs.",
			"anyOf": [{"$ref": "BusStation.json#/definitions/possibleRef"}, {"$ref": "BusStop.json#/definitions/possibleRef"}]
		}
	}
}