CLI tool that takes an OKH-LOSH RDF manifest as input, and generates a bundle from it. A Bundle is either a folder on the FS or a zip file, each respectively containing the manifest file and all the files linked to by it.
There are three options for a valid input, and two for a valid output
wget https://gitlab.opensourceecology.de/verein/projekte/losh-rdf/-/raw/main/RDF/wikifactory.com/@rwbowman/openflexure-microscope/project.ttl
python3 man2bndl.py project.ttl bundle/
python3 man2bndl.py \
https://gitlab.opensourceecology.de/verein/projekte/losh-rdf/-/raw/main/RDF/wikifactory.com/@rwbowman/openflexure-microscope/project.ttl \
bundle/
python3 man2bndl.py https://wikifactory.com/@rwbowman/openflexure-microscope \
bundle/
Though, the output can not only be a folder like in the above examples,
but also a ZIP file;
the .zip
suffix is required in this case:
python3 man2bndl.py project.ttl bundle.zip