Skip to content

iop-alliance/okh-project-porter

Repository files navigation

OKH Project Porter

OKH Project Porter logo

This is a project that provides tooling that takes an OKH-LD manifest as input, and generates a file bundle from it, which includes a copy of the original manifest file and all of the files that the manifest describes.

There are two version of the tooling: a graphical user interface (GUI) and a command line interface version.

GUI Tool

There is a version of the tool that allows the user to extract a project's file from a manifest using a GUI.

This is available for the following platforms:

The Windows and MacOS version haven't been digitally signed yet so you will need to override the default OS behaviour to allow the files to run.

Command Line Tool

The command line tool can extract the project's files either as a folder on the file system or a zip file, each respectively containing the manifest file and all the files linked to by it.

Usage

Either with a local manifest-file:

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

or with a URL

python3 src/man2bndl.py \
    https://gitlab.opensourceecology.de/verein/projekte/losh-rdf/-/raw/main/RDF/wikifactory.com/@rwbowman/openflexure-microscope/project.ttl \
    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 src/man2bndl.py project.ttl bundle.zip