Skip to content

hoijui/BundleBuilder

Repository files navigation

IoPA OKH-LOSH Bundle-Builder

GitHub license REUSE status

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.

Usage

There are three options for a valid input, and two for a valid output

1. local manifest file

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/

2. URL to manifest file

python3 man2bndl.py \
    https://gitlab.opensourceecology.de/verein/projekte/losh-rdf/-/raw/main/RDF/wikifactory.com/@rwbowman/openflexure-microscope/project.ttl \
    bundle/

3. Project web hosting URL

python3 man2bndl.py https://wikifactory.com/@rwbowman/openflexure-microscope \
    bundle/

ZIP instead of directory output

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

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published