-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Meems
committed
Feb 7, 2019
1 parent
135388e
commit cb7b383
Showing
5 changed files
with
76 additions
and
7 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 |
---|---|---|
@@ -1,2 +1,66 @@ | ||
Long description | ||
================ | ||
=========================== | ||
The structure of the schema | ||
=========================== | ||
|
||
The goal of this project is to provide a JSON Schema that can be used to share data | ||
between the stakeholders. | ||
|
||
The schema is divided into several parts. First the `Metadata`_ with information about the data that is sent. | ||
Next the `Farmer`_. A `Farmer`_ can have one or more `Farm`_. And a `Farm`_ can have one or more `Plot`_. | ||
|
||
.. todo:: Show image to clarify | ||
|
||
******** | ||
Metadata | ||
******** | ||
The metadata gives the receiver some general information about the data that is being sent. | ||
|
||
globalCoffeeDatasetId | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
Mandatory and makes the dataset unique. | ||
The Id is defined as a `global-unique-id`_. | ||
|
||
.. todo:: Show sample JSON | ||
|
||
schemaVersion | ||
^^^^^^^^^^^^^ | ||
The version number of the schema. When not provided the latest version of the schema will be used to validate the dataset. | ||
An enumeration of possible version numbers is provided in the schema. | ||
|
||
*********** | ||
Definitions | ||
*********** | ||
global-unique-id | ||
^^^^^^^^^^^^^^^^ | ||
This object is used a lot in this schema. It makes a data entity(`Farmer`_, `Farm`_ and `Plot`_) unique by providing 3 items: | ||
|
||
* Organization: The name of the organization. This can be a name or number uniquely identifying the organization that issues this number. For example, 'RAINFOREST-ALLIANCE' when they issued the identifier or 'BURUNDI' when it is a national ID. | ||
* Identifier: The identifier issued by the organization. This can be the Chamber of Commerce number or other number or string known by the organization. | ||
* Timestamp: The timestamp when this identifier was created. | ||
|
||
.. todo:: Show JSON of global-unique-id | ||
|
||
thirdPartyIds | ||
^^^^^^^^^^^^^^^^ | ||
This data entity is a list of `global-unique-id`_. And can be used when the receiving organization is inserting the data into their own system creating a new unique identifier. The original `global-unique-id`_ of this dataset can be saved in this thirdPartyIds entity. Because data can come from or via multiple organizations this list can grow, making the organizations in the chain aware of the identifiers used by others. This will help to identify the data entity and preventing duplicates. | ||
|
||
.. todo:: Show JSON of thirdPartyIds | ||
|
||
****** | ||
Farmer | ||
****** | ||
|
||
**** | ||
Farm | ||
**** | ||
|
||
**** | ||
Plot | ||
**** | ||
|
||
|
||
********** | ||
All todos | ||
********** | ||
|
||
.. todolist:: |
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
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