|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Registry data is now also available in a GitHub Repository |
| 4 | +description: Find the registry data via git in our new public repository |
| 5 | +categories: updates |
| 6 | +--- |
| 7 | + |
| 8 | +# Registry data on GitHub |
| 9 | + |
| 10 | +In an effort to provide an additional backup and a versioned version our registry data, we have set up a self updating GitHub repository which checks, downloads, and versions itself based on our live resolver dataset endpoint. |
| 11 | + |
| 12 | +The repository can be found at <https://github.com/identifiers-org/registry-data>. |
| 13 | + |
| 14 | +### Data files |
| 15 | +All the data is available in the [registry-data](https://github.com/identifiers-org/registry-data/tree/0397a5cfccf98019103da625d171caf9d02faf8e/registry-data/) folder. |
| 16 | +They are stored in the same JSON schema available at our live endpoint. |
| 17 | +The file [full.js](https://github.com/identifiers-org/registry-data/tree/0397a5cfccf98019103da625d171caf9d02faf8e//registry-data/full.json) contains the full dump of the registry. |
| 18 | +The dump is also available split by namespace under the [registry-data/namespaces](https://github.com/identifiers-org/registry-data/tree/0397a5cfccf98019103da625d171caf9d02faf8e/registry-data/namespaces/) folder. |
| 19 | + |
| 20 | +### Versioning |
| 21 | +The current version of the repository is found at the file called [VERSION](https://github.com/identifiers-org/registry-data/tree/0397a5cfccf98019103da625d171caf9d02faf8e//VERSION) at the root of the repository. |
| 22 | +The commit history can be used to check recent changes to the identifiers.org registry. |
| 23 | + |
| 24 | +#### Checking history via Github.com UI |
| 25 | + |
| 26 | +Recent changes to the dataset can be seen in the [commit history of full.json](https://github.com/identifiers-org/registry-data/commits/0397a5cfccf98019103da625d171caf9d02faf8e/registry-data/full.json). |
| 27 | +You will have to click on individual commits to see its changes. |
| 28 | + |
| 29 | +Alternatively, recent changes to an individual namespace can be seen in the commit history of the specific namespace file, for example, [the commit history for 3dmet can be found here](https://github.com/identifiers-org/registry-data/commits/0397a5cfccf98019103da625d171caf9d02faf8e/registry-data/namespaces/3dmet.json). |
| 30 | +Again, You will have to click on individual commits to see its changes. |
| 31 | + |
| 32 | +#### Checking history via git command line |
| 33 | + |
| 34 | +After cloning the repository and opening a terminal there, you can list recent changes to the dataset using the following command: |
| 35 | +```shell |
| 36 | +git log --patch -10 registry-data/ |
| 37 | +``` |
| 38 | + |
| 39 | +The similar command below can be used to see changes on a specific namespace file: |
| 40 | +```shell |
| 41 | +git log --patch -10 registry-data/namespaces/3dmet.json |
| 42 | +``` |
0 commit comments