The LOSH reporter is couple of files that, given the LOSH OKH RDF data, produce a human-readable report with statistical diagrams about selected aspects of the OSH projects, together with some manually written prose around it.
Technolog wise, it is Jupyter-Lab (ex Jupyter-Notebook) based. It runs as a headless CLI script, though one would usually edit the template in the Jupyter-Lab Web UI.
The LOSH reporter generates its report simultaneously in Markdown, PDF and HTML reports.
- Wikifactory.com
- per API
- OSHWA Certification List
- per API
- Thinigverse.com
- per API (+ workaround due to #xxxx)
- We needed to be very economical with data fields here, since due to API bugs, we can't filter their database – we're checking out every thing on thingiverse and every datafield is a new request. There are 5+ Mio. things on Thingiverse × the number of data fields → you can do the math :)
- GitHub.com
- per global search for manifest files
- Appropedia.org
- per script, exporting manifest files to GitHub.com
- OKHv1
- per script, exporting manifest files to GitHub.com
Note on other platforms:
- Install Jupyter-Lab
- Make shure you have the LOSH RDF DB set-up locally
with Apache Jena and Jena-Fuseki.
You can do that most easily with our RDF-DB tester,
by following the instructions in its README.
When you run its
web-ui
script, Jena Fuseki should be running, and you are ready to go. - Run it, and open the report file:
jupyter-lab report.ipynb
Comment:
- While the report speaks of OSH projects,
the
OKH-LOSH
specification defines OSHmodules
. In data specifications in this repo, we'll use theOKH-LOSH
notion. - If not otherwise noted, numbers refer to modules, ignoring their different versions.
- …hence calculations are (if not otherwise noted) run on the total LOSH data
To test and run the reporter locally you can use a dockerized Apache Jena instance.
Start the Apache Jena database with docker-compose up
within the fuseki
folder.
To start the reporter this environment variables need to be set:
FUSEKI_URL
FUSEKI_DATASET_NAME
An example can be found in .env.example
.
Those values can be used for development.
Run the BASH shell script generate
,
and the generated reports will appear in the output folder.
The LOSH Reporter is licensed under GPL-3.0-or-later, the generated reports are licensed under CC-BY-4.0.
- OKH-LOSH specification: https://github.com/OPEN-NEXT/OKH-LOSH/
- LOSH-Krawler: https://github.com/OPEN-NEXT/LOSH-Krawler/
- the raw data of LOSH (RDF): https://gitlab.opensourceecology.de/verein/projekte/losh-rdf
- Jena-based test implementation: https://github.com/OPEN-NEXT/LOSH-RDF-DB-tester