A plugin for exporting RDF from OMERO
- OMERO 5.6.0 or newer
- Python 3.10, 3.11, or 3.12 (only versions with
zeroc-icebinary wheels are supported; newer versions will be added when wheels are available)
This section assumes that an OMERO.py is already installed.
Install the command-line tool using pip:
$ pip install -U omero-rdf
Using uv (recommended):
Fork/clone the repository (e.g.
gh repo fork https://github.com/German-BioImaging/omero-rdf).Create a virtualenv and activate it:
uv venv .venv source .venv/bin/activate
(or prefix commands with
uv runinstead of activating).Install in editable mode with test dependencies (pulls the correct platform-specific
zeroc-icewheel):uv pip install -e ".[tests,dev]"
Run the test suite:
pytest
Lint and format:
ruff check ruff format --check ruff format
To run pre-commit hooks:
uv tool install pre-commit pre-commit run --all-files
Assuming you have the uv environment active (source .venv/bin/activate), use the public IDR server to confirm the CLI works (public/public credentials):
Log in once to create a session:
omero login -s idr.openmicroscopy.org -u public -w public
Export RDF for a project on IDR (2902) and inspect the first triples:
omero rdf -F=turtle Project:2902 -S=flat | head -n 10
This repository uses versioneer to manage version numbers. A tag prefixed with v will be detected by the library and used as the current version at runtime.
Remember to git push all commits and tags.
Funded by the Delta Tissue Program of Wellcome Leap.
This project, similar to many Open Microscopy Environment (OME) projects, is licensed under the terms of the GNU General Public License (GPL) v2 or later.
2022-2024, German BioImaging