Skip to content

dcterms:isPartOf vocabulary links + mint-publish tag parity (v0.2.1) - #5

Merged
GertjanBisschop merged 1 commit into
eu-parc:mainfrom
knowledgepixels:main
Jun 26, 2026
Merged

GertjanBisschop merged 1 commit into
eu-parc:mainfrom
knowledgepixels:main

Conversation

@tkuhn

@tkuhn tkuhn commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a part_of option that emits a dcterms:isPartOf link from each term to a vocabulary URI in the assertion graph, and closes a tagging parity gap in pubmate-mint-publish.

dcterms:isPartOf (assertion-graph vocabulary membership)

Threaded through the two shared chokepoints so it covers migration and incremental publishing:

  • minting.term_input_from_assertion — defining nanopubs (used by both migrate and mint-publish)
  • migrate._resolve_all — superseding nanopubs

Exposed as --part-of on both pubmate-migrate and pubmate-mint-publish.

mint-publish tag parity

pubmate-mint-publish previously lacked --nanopub-type / --template, so incrementally published terms would be inconsistent with migrated ones. Added both options (same pubinfo tags as the migration path).

Testing

Full suite: 99 passed. New tests:

  • test_minting.py::test_term_input_adds_part_of_link
  • test_migrate.py::test_part_of_link_on_defining_and_superseding
  • test_cli_mint_publish.py::test_mint_publish_adds_part_of_type_and_template

Notes

Based on eu-parc/main (v0.2.0, #4); this PR is the single follow-up commit. Tag v0.2.1 after merge.

🤖 Generated with Claude Code

Add a `part_of` option that links each term to a vocabulary URI via
dcterms:isPartOf in its assertion. Threaded through the shared chokepoints so
it covers both flows: term_input_from_assertion (defining, used by migrate and
mint-publish) and _resolve_all (superseding). Exposed as --part-of on
pubmate-migrate and pubmate-mint-publish.

Also give pubmate-mint-publish the --nanopub-type/--template pubinfo tags it
was missing, so incrementally-published terms match migrated ones.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@GertjanBisschop
GertjanBisschop merged commit 842a51c into eu-parc:main Jun 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants