https://github.com/codegouvfr/codegouvfr-consolidate-data-archived
[EN] Consolidate json/svg/xml files used by code.gouv.fr
https://github.com/codegouvfr/codegouvfr-consolidate-data-archived
Last synced: 7 months ago
JSON representation
[EN] Consolidate json/svg/xml files used by code.gouv.fr
- Host: GitHub
- URL: https://github.com/codegouvfr/codegouvfr-consolidate-data-archived
- Owner: codegouvfr
- License: epl-2.0
- Archived: true
- Created: 2024-11-28T15:12:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T15:13:35.000Z (over 1 year ago)
- Last Synced: 2025-05-01T22:36:07.529Z (12 months ago)
- Language: Clojure
- Size: 197 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://code.gouv.fr/documentation/#/publier)
[](https://git.sr.ht/~codegouvfr/codegouvfr-consolidate-data/blob/master/LICENSE)
# Consolidate and generate codegouvfr data
`codegouvfr` stands for [code.gouv.fr](https://code.gouv.fr).
The code in this repository creates `json/svg/xml` files used by the [code.gouv.fr](https://git.sr.ht/~codegouvfr/code.gouv.fr) web application.
# Installation and configuration
1. Install a Java runtime for Java version 8 or 11. You can check the existing version of your java runtime with `java -version`. [OpenJDK](https://openjdk.java.net/install/) 11 can be installed on Debian-compatible GNU/Linux systems with `apt install openjdk-11-jdk`.
2. Install `node.js` and `vl2svg` (`npm install -g vega-lite`).
3. Install Clojure: [follow installation instructions on clojure.org](https://clojure.org/guides/getting_started).
4. Install `rlwrap`. For example on Debian-compatible GNU/Linux systems with `apt install rlwrap`.
5. Clone this repository and enter it: `git clone https://git.sr.ht/~codegouvfr/codegouvfr-consolidate-data ; cd codegouvfr-consolidate-data`
# Generate consolidated files
1. You may use input files. These files are in the data folder of [codegouvfr-fetch-data](https://git.sr.ht/~codegouvfr/codegouvfr-fetch-data). Copy them in the project directory. For example `cp -r ../codegouvfr-fetch-data/* .` If you skip this step, the input files will be fetched from [code.gouv.fr](https://code.gouv.fr).
2. Launch the command `clj -M:run`.
# Get the data
These data are published under the [Open License 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence):
- Organizations: as [csv](https://code.gouv.fr/data/organizations/csv/all.csv) or [json](https://code.gouv.fr/data/organizations/json/all.json)
- Repositories: as [csv](https://code.gouv.fr/data/repositories/csv/all.csv) or [json](https://code.gouv.fr/data/repositories/json/all.json)
- Dependencies: [json](https://code.gouv.fr/data/deps.json)
- SILL: [json](https://code.gouv.fr/data/sill.json)
Data for the [sill.code.gouv.fr](https://sill.code.gouv.fr), exposed on [this page](https://code.gouv.fr/#/sill), come from Wikidata (CC0), Comptoir du libre ([CC0](https://gitlab.adullact.net/Comptoir/Comptoir-srv/-/issues/968)), https://annuaire.cnll.fr and contributors of the SILL ([Open License 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence)).
# [Contributing](CONTRIBUTING.md)
# License
2020-2024 DINUM, Bastien Guerry.
This application is published under the [EPL 2.0
license](https://git.sr.ht/~codegouvfr/codegouvfr-consolidate-data/blob/master/LICENSE).