-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#322 Add GeoUnit and OrgUnit Schemas
- Loading branch information
Saurabh Gupta
committed
May 14, 2018
1 parent
1d2f835
commit a1a3d34
Showing
7 changed files
with
117 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"@id": "https://data.adobe.io/geo-san-jose", | ||
"xdm:label": "San Jose", | ||
"xdm:parentGeoUnit": { | ||
"@id": "https://data.adobe.io/geo-sf-bay-area" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 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/common/geounit", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"type": "object", | ||
"meta:extensible": true, | ||
"title": "Geo Unit", | ||
"description": "The geographical unit of a parent geographical unit.", | ||
"definitions": { | ||
"geounit": { | ||
"properties": { | ||
"@id": { | ||
"title": "Identifier", | ||
"type": "string", | ||
"format": "uri", | ||
"description": | ||
"The ID associated with this geographical unit." | ||
}, | ||
"xdm:label": { | ||
"title": "Friendly lable of the geographical unit.", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
"type": "string", | ||
"description": "The user-friendly name for the geographical unit." | ||
}, | ||
"xdm:parentGeoUnit": { | ||
"title": "Parent Geographical Unit.", | ||
"$ref": "https://ns.adobe.com/xdm/common/geounit", | ||
"description": "Parent geographical unit of the current geographical unit in the geographical heirarchy." | ||
} | ||
}, | ||
"required": ["@id"] | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/geounit" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"@id": "https://data.adobe.io/org-apparals-men", | ||
"xdm:label": "Men Apparals", | ||
"xdm:parentOrgUnit": { | ||
"@id": "https://data.adobe.io/org-apparals" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 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/common/orgunit", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"type": "object", | ||
"meta:extensible": true, | ||
"title": "Org Unit", | ||
"description": "The organisation unit of a parent organisation.", | ||
"definitions": { | ||
"orgunit": { | ||
"properties": { | ||
"@id": { | ||
"title": "Identifier", | ||
"type": "string", | ||
"format": "uri", | ||
"description": | ||
"The ID associated with this organisation unit." | ||
}, | ||
"xdm:label": { | ||
"title": "Friendly lable of the organisation unit.", | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"type": "string", | ||
"description": "The user-friendly name for the organisation unit." | ||
}, | ||
"xdm:parentOrgUnit": { | ||
"title": "Parent Organisation.", | ||
"$ref": "https://ns.adobe.com/xdm/common/orgunit", | ||
"description": "The parent organisation unit of the current organisation unit in the org heirarchy." | ||
} | ||
}, | ||
"required": ["@id"] | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/orgunit" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
British spelling of label, please correct.