forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
place.schema.json
87 lines (87 loc) · 3.44 KB
/
place.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/context/place",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Place",
"type": "object",
"meta:extensible": true,
"description": "A place in the real world with a physical location.",
"definitions": {
"physicallocation": {
"properties": {
"@id": {
"title": "Place ID",
"type": "string",
"format": "uri",
"description": "The unique identifier of the place."
},
"schema:description": {
"title": "Description",
"type": "string",
"description": "The description of the physical location."
},
"xdm:address": {
"title": "Address",
"$ref": "https://ns.adobe.com/xdm/common/address",
"description": "The physical address of the location."
},
"schema:telephone": {
"title": "Phone Number",
"type": "string",
"description": "The phone number."
},
"schema:branchCode": {
"title": "Location Code",
"type": "string",
"description":
"A short textual code (also called \"store code\") that uniquely identifies a place of business. The code is typically assigned by the parent Organization and used in structured URLs.\n\nFor example, in the URL `http://www.starbucks.co.uk/store-locator/etc/detail/3047` the code \"3047\" is a `branchCode` for a particular branch."
},
"xdm:shape": {
"title": "Geo Shape",
"$ref": "http://schema.org/GeoShape",
"description": "The geographic shape of the physical location."
},
"xdm:pointOfInterest": {
"title": "Point of Interest",
"$ref": "http://schema.org/GeoCoordinates",
"description":
"The coordinates of the point of interest for this location."
},
"xdm:containedInPlace": {
"title": "Contained by Location",
"type": "string",
"format": "uri",
"description":
"XDM URI of another `Place` that this place is contained in.\n\nThis property is based on `schema:containedInPlace`, but is using URI references instead of embedding the containing place."
},
"xdm:containsPlaces": {
"title": "Contains Locations",
"type": "array",
"items": {
"type": "string",
"format": "uri",
"description":
"The XDM URI of another `Place` that this place contains."
},
"description":
"An array of XDM URIs of other `Place` instances that this place is containing.\n\nThis property is based on `schema:containsPlace`, but is using URI references instead of embedding the containing place. In addition, it is an array, allowing one place to include multiple other places."
}
},
"required": ["@id"]
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/physicallocation"
}
],
"meta:status": "experimental"
}