{
	"id": "AggregateRating.json",
	"title": "Aggregate Rating",
	"description": "The average rating based on multiple ratings or reviews.",
	"media": {"type": "application/json;profile=http://schema.org/AggregateRating"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}, {"$ref": "Rating.json"}],
	"type": "object",
	"properties": {
		"itemReviewed": {"$ref": "Thing.json#/definitions/possibleRef"},
		"ratingCount": {"$ref": "#/definitions/ratingCount"},
		"reviewCount": {"$ref": "#/definitions/reviewCount"}
	},
	"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": "{+$}"
					}]
				}
			]
		},
		"ratingCount": {
			"title": "Rating Count",
			"description": "The count of total number of ratings.",
			"type": "integer"
		},
		"reviewCount": {
			"title": "Review Count",
			"description": "The count of total number of reviews.",
			"type": "integer"
		}
	}
}