Skip to content

Commit

Permalink
fix: collect IDs from all matches in finder_sparql results
Browse files Browse the repository at this point in the history
Previously, when finder_sparql returned multiple matches, we were only collecting IDs
from the first match (sparql_match[0][2]), potentially losing valid identifiers from
other matches. This caused issues when the same entity had multiple identifiers
spread across different matches.

The fix modifies the id_worker method to collect IDs from all matches returned by
finder_sparql, while maintaining the original metaval assignment logic:
  • Loading branch information
arcangelo7 committed Jan 20, 2025
1 parent 82ce7d3 commit b9950b9
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Release

on:
push:
branches: [master]

jobs:
release:
name: Release
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, 'chore(release)')"
permissions:
contents: write
issues: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Setup Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install dependencies
run: poetry install

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"

- name: Install semantic-release
run: |
npm install -g semantic-release
npm install -g @semantic-release/git
npm install -g @semantic-release/changelog
npm install -g @semantic-release/exec
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release

- name: Build and publish to PyPI
if: success()
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry build
poetry publish
23 changes: 23 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"prepareCmd": "poetry version ${nextRelease.version}",
"publishCmd": "echo 'Version ${nextRelease.version} is ready to be published to PyPI'"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "pyproject.toml"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}

0 comments on commit b9950b9

Please sign in to comment.