{"id":21731101,"url":"https://github.com/biopragmatics/semra","last_synced_at":"2025-04-13T00:15:40.346Z","repository":{"id":166460894,"uuid":"626870339","full_name":"biopragmatics/semra","owner":"biopragmatics","description":"🛣️ Semantic Mapping Reasoning Assembler (SeMRA): tooling for semantic mappings","archived":false,"fork":false,"pushed_at":"2025-04-09T22:16:00.000Z","size":2614,"stargazers_count":7,"open_issues_count":9,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-13T00:15:33.489Z","etag":null,"topics":["biopragmatics","mappings","ontology-merging","semantic-mappings"],"latest_commit_sha":null,"homepage":"https://semra.readthedocs.io","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biopragmatics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"cthoyt"}},"created_at":"2023-04-12T10:20:43.000Z","updated_at":"2025-03-21T09:36:46.000Z","dependencies_parsed_at":"2023-06-08T07:45:42.899Z","dependency_job_id":"f92063d9-fb28-4aab-8d35-95f6ab4fd8be","html_url":"https://github.com/biopragmatics/semra","commit_stats":null,"previous_names":["biopragmatics/semra"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biopragmatics%2Fsemra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biopragmatics%2Fsemra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biopragmatics%2Fsemra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biopragmatics%2Fsemra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biopragmatics","download_url":"https://codeload.github.com/biopragmatics/semra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647274,"owners_count":21139086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["biopragmatics","mappings","ontology-merging","semantic-mappings"],"created_at":"2024-11-26T04:19:44.808Z","updated_at":"2025-04-13T00:15:40.332Z","avatar_url":"https://github.com/biopragmatics.png","language":"Jupyter Notebook","funding_links":["https://github.com/sponsors/cthoyt"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/biopragmatics/semra/raw/main/docs/source/logo.png\" height=\"150\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\n  SeMRA\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/biopragmatics/semra/actions/workflows/tests.yml\"\u003e\n        \u003cimg alt=\"Tests\" src=\"https://github.com/biopragmatics/semra/actions/workflows/tests.yml/badge.svg\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/semra\"\u003e\n        \u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/semra\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/semra\"\u003e\n        \u003cimg alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/semra\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/biopragmatics/semra/blob/main/LICENSE\"\u003e\n        \u003cimg alt=\"PyPI - License\" src=\"https://img.shields.io/pypi/l/semra\" /\u003e\u003c/a\u003e\n    \u003ca href='https://semra.readthedocs.io/en/latest/?badge=latest'\u003e\n        \u003cimg src='https://readthedocs.org/projects/semra/badge/?version=latest' alt='Documentation Status' /\u003e\u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/biopragmatics/semra/branch/main\"\u003e\n        \u003cimg src=\"https://codecov.io/gh/biopragmatics/semra/branch/main/graph/badge.svg\" alt=\"Codecov status\" /\u003e\u003c/a\u003e  \n    \u003ca href=\"https://github.com/cthoyt/cookiecutter-python-package\"\u003e\n        \u003cimg alt=\"Cookiecutter template from @cthoyt\" src=\"https://img.shields.io/badge/Cookiecutter-snekpack-blue\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/astral-sh/ruff\"\u003e\n        \u003cimg src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\" alt=\"Ruff\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/biopragmatics/semra/blob/main/.github/CODE_OF_CONDUCT.md\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg\" alt=\"Contributor Covenant\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://zenodo.org/badge/latestdoi/10987909\"\u003e\n        \u003cimg src=\"https://zenodo.org/badge/10987909.svg\" alt=\"DOI\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nSemantic mapping reasoner and assembler\n\nThis software provides:\n\n1. An object model for semantic mappings (based on SSSOM)\n2. Functionality for assembling and reasoning over semantic mappings at scale\n3. A provenance model for automatically generated mappings\n4. A confidence model granular at the curator-level, mapping set-level, and\n   community feedback-level\n\nWe also provide an accompanying raw semantic mapping database on Zenodo at\nhttps://zenodo.org/records/11082039.\n\n## 🚀 Installation\n\nThe most recent release can be installed from\n[PyPI](https://pypi.org/project/semra/) with uv:\n\n```console\n$ uv pip install semra\n```\n\nor with pip:\n\n```console\n$ python3 -m pip install semra\n```\n\nThe most recent code and data can be installed directly from GitHub with uv:\n\n```console\n$ uv pip install git+https://github.com/biopragmatics/semra.git\n```\n\nor with pip:\n\n```console\n$ python3 -m pip install git+https://github.com/biopragmatics/semra.git\n```\n\n## 👐 Contributing\n\nContributions, whether filing an issue, making a pull request, or forking, are\nappreciated. See\n[CONTRIBUTING.md](https://github.com/biopragmatics/semra/blob/master/.github/CONTRIBUTING.md)\nfor more information on getting involved.\n\n## 👋 Attribution\n\n### ⚖️ License\n\nThe code in this package is licensed under the MIT License.\n\n\u003c!--\n### 📖 Citation\n\nCitation goes here!\n--\u003e\n\n\u003c!--\n### 🎁 Support\n\nThis project has been supported by the following organizations (in alphabetical order):\n\n- [Biopragmatics Lab](https://biopragmatics.github.io)\n\n--\u003e\n\n\u003c!--\n### 💰 Funding\n\nThis project has been supported by the following grants:\n\n| Funding Body  | Program                                                      | Grant Number |\n|---------------|--------------------------------------------------------------|--------------|\n| Funder        | [Grant Name (GRANT-ACRONYM)](https://example.com/grant-link) | ABCXYZ       |\n--\u003e\n\n### 🍪 Cookiecutter\n\nThis package was created with\n[@audreyfeldroy](https://github.com/audreyfeldroy)'s\n[cookiecutter](https://github.com/cookiecutter/cookiecutter) package using\n[@cthoyt](https://github.com/cthoyt)'s\n[cookiecutter-snekpack](https://github.com/cthoyt/cookiecutter-snekpack)\ntemplate.\n\n## 🛠️ For Developers\n\n\u003cdetails\u003e\n  \u003csummary\u003eSee developer instructions\u003c/summary\u003e\n\nThe final section of the README is for if you want to get involved by making a\ncode contribution.\n\n### Development Installation\n\nTo install in development mode, use the following:\n\n```console\n$ git clone git+https://github.com/biopragmatics/semra.git\n$ cd semra\n$ uv pip install -e .\n```\n\nAlternatively, install using pip:\n\n```console\n$ python3 -m pip install -e .\n```\n\n### Updating Package Boilerplate\n\nThis project uses `cruft` to keep boilerplate (i.e., configuration, contribution\nguidelines, documentation configuration) up-to-date with the upstream\ncookiecutter package. Install cruft with either `uv tool install cruft` or\n`python3 -m pip install cruft` then run:\n\n```console\n$ cruft update\n```\n\nMore info on Cruft's update command is available\n[here](https://github.com/cruft/cruft?tab=readme-ov-file#updating-a-project).\n\n### 🥼 Testing\n\nAfter cloning the repository and installing `tox` with\n`uv tool install tox --with tox-uv` or `python3 -m pip install tox tox-uv`, the\nunit tests in the `tests/` folder can be run reproducibly with:\n\n```console\n$ tox -e py\n```\n\nAdditionally, these tests are automatically re-run with each commit in a\n[GitHub Action](https://github.com/biopragmatics/semra/actions?query=workflow%3ATests).\n\n### 📖 Building the Documentation\n\nThe documentation can be built locally using the following:\n\n```console\n$ git clone git+https://github.com/biopragmatics/semra.git\n$ cd semra\n$ tox -e docs\n$ open docs/build/html/index.html\n```\n\nThe documentation automatically installs the package as well as the `docs` extra\nspecified in the [`pyproject.toml`](pyproject.toml). `sphinx` plugins like\n`texext` can be added there. Additionally, they need to be added to the\n`extensions` list in [`docs/source/conf.py`](docs/source/conf.py).\n\nThe documentation can be deployed to [ReadTheDocs](https://readthedocs.io) using\n[this guide](https://docs.readthedocs.io/en/stable/intro/import-guide.html). The\n[`.readthedocs.yml`](.readthedocs.yml) YAML file contains all the configuration\nyou'll need. You can also set up continuous integration on GitHub to check not\nonly that Sphinx can build the documentation in an isolated environment (i.e.,\nwith `tox -e docs-test`) but also that\n[ReadTheDocs can build it too](https://docs.readthedocs.io/en/stable/pull-requests.html).\n\n#### Configuring ReadTheDocs\n\n1. Log in to ReadTheDocs with your GitHub account to install the integration at\n   https://readthedocs.org/accounts/login/?next=/dashboard/\n2. Import your project by navigating to https://readthedocs.org/dashboard/import\n   then clicking the plus icon next to your repository\n3. You can rename the repository on the next screen using a more stylized name\n   (i.e., with spaces and capital letters)\n4. Click next, and you're good to go!\n\n### 📦 Making a Release\n\n#### Configuring Zenodo\n\n[Zenodo](https://zenodo.org) is a long-term archival system that assigns a DOI\nto each release of your package.\n\n1. Log in to Zenodo via GitHub with this link:\n   https://zenodo.org/oauth/login/github/?next=%2F. This brings you to a page\n   that lists all of your organizations and asks you to approve installing the\n   Zenodo app on GitHub. Click \"grant\" next to any organizations you want to\n   enable the integration for, then click the big green \"approve\" button. This\n   step only needs to be done once.\n2. Navigate to https://zenodo.org/account/settings/github/, which lists all of\n   your GitHub repositories (both in your username and any organizations you\n   enabled). Click the on/off toggle for any relevant repositories. When you\n   make a new repository, you'll have to come back to this\n\nAfter these steps, you're ready to go! After you make \"release\" on GitHub (steps\nfor this are below), you can navigate to\nhttps://zenodo.org/account/settings/github/repository/biopragmatics/semra to see\nthe DOI for the release and link to the Zenodo record for it.\n\n#### Registering with the Python Package Index (PyPI)\n\nYou only have to do the following steps once.\n\n1. Register for an account on the\n   [Python Package Index (PyPI)](https://pypi.org/account/register)\n2. Navigate to https://pypi.org/manage/account and make sure you have verified\n   your email address. A verification email might not have been sent by default,\n   so you might have to click the \"options\" dropdown next to your address to get\n   to the \"re-send verification email\" button\n3. 2-Factor authentication is required for PyPI since the end of 2023 (see this\n   [blog post from PyPI](https://blog.pypi.org/posts/2023-05-25-securing-pypi-with-2fa/)).\n   This means you have to first issue account recovery codes, then set up\n   2-factor authentication\n4. Issue an API token from https://pypi.org/manage/account/token\n\n#### Configuring your machine's connection to PyPI\n\nYou have to do the following steps once per machine.\n\n```console\n$ uv tool install keyring\n$ keyring set https://upload.pypi.org/legacy/ __token__\n$ keyring set https://test.pypi.org/legacy/ __token__\n```\n\nNote that this deprecates previous workflows using `.pypirc`.\n\n#### Uploading to PyPI\n\nAfter installing the package in development mode and installing `tox` with\n`uv tool install tox --with tox-uv` or `python3 -m pip install tox tox-uv`, run\nthe following from the console:\n\n```console\n$ tox -e finish\n```\n\nThis script does the following:\n\n1. Uses [bump-my-version](https://github.com/callowayproject/bump-my-version) to\n   switch the version number in the `pyproject.toml`, `CITATION.cff`,\n   `src/semra/version.py`, and [`docs/source/conf.py`](docs/source/conf.py) to\n   not have the `-dev` suffix\n2. Packages the code in both a tar archive and a wheel using\n   [`uv build`](https://docs.astral.sh/uv/guides/publish/#building-your-package)\n3. Uploads to PyPI using\n   [`uv publish`](https://docs.astral.sh/uv/guides/publish/#publishing-your-package).\n4. Push to GitHub. You'll need to make a release going with the commit where the\n   version was bumped.\n5. Bump the version to the next patch. If you made big changes and want to bump\n   the version by minor, you can use `tox -e bumpversion -- minor` after.\n\n#### Releasing on GitHub\n\n1. Navigate to https://github.com/biopragmatics/semra/releases/new to draft a\n   new release\n2. Click the \"Choose a Tag\" dropdown and select the tag corresponding to the\n   release you just made\n3. Click the \"Generate Release Notes\" button to get a quick outline of recent\n   changes. Modify the title and description as you see fit\n4. Click the big green \"Publish Release\" button\n\nThis will trigger Zenodo to assign a DOI to your release as well.\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiopragmatics%2Fsemra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiopragmatics%2Fsemra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiopragmatics%2Fsemra/lists"}