Skip to content

#4121 - Annotations are missing when exporting in NIF#6005

Merged
reckart merged 1 commit into
release/40.xfrom
bugfix/4121-Annotations-are-missing-when-exporting-in-NIF
May 5, 2026
Merged

#4121 - Annotations are missing when exporting in NIF#6005
reckart merged 1 commit into
release/40.xfrom
bugfix/4121-Annotations-are-missing-when-exporting-in-NIF

Conversation

@reckart
Copy link
Copy Markdown
Member

@reckart reckart commented May 5, 2026

What's in the PR

  • Add NIF default IRI prefix support for non-IRI named entity values
  • NifWriter: new PARAM_DEFAULT_CLASS_IRI / PARAM_DEFAULT_IDENTIFIER_IRI; non-IRI value/identifier values are URL-encoded and prefixed instead of being silently dropped
  • NifReader: symmetric PARAM_STRIP_CLASS_IRI / PARAM_STRIP_IDENTIFIER_IRI to round-trip cleanly back to plain tagset values
  • Introduce NifFormatProperties / NifFormatPropertiesImpl (format.nif.* configuration properties) defaulting all four prefixes to "urn:inception:" for out-of-the-box behavior
  • Wire properties through NifFormatSupport and auto-configuration
  • Add NifReaderWriterTest covering: legacy skip when no prefix set, prefix minting, IRI passthrough, reader strip, non-matching strip, and full round-trip of plain tag values

How to test manually

  • See issue description

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

@reckart reckart added this to the 40.4 milestone May 5, 2026
@reckart reckart self-assigned this May 5, 2026
@reckart reckart added the 🐛 Bug Something isn't working label May 5, 2026
@reckart reckart added this to Kanban May 5, 2026
@github-project-automation github-project-automation Bot moved this to 🔖 To do in Kanban May 5, 2026
- Add NIF default IRI prefix support for non-IRI named entity values
- NifWriter: new PARAM_DEFAULT_CLASS_IRI / PARAM_DEFAULT_IDENTIFIER_IRI; non-IRI value/identifier values are URL-encoded and prefixed instead of being silently dropped
- NifReader: symmetric PARAM_STRIP_CLASS_IRI / PARAM_STRIP_IDENTIFIER_IRI to round-trip cleanly back to plain tagset values
- Introduce NifFormatProperties / NifFormatPropertiesImpl (format.nif.* configuration properties) defaulting all four prefixes to "urn:inception:" for out-of-the-box behavior
- Wire properties through NifFormatSupport and auto-configuration
- Add NifReaderWriterTest covering: legacy skip when no prefix set, prefix minting, IRI passthrough, reader strip, non-matching strip, and full round-trip of plain tag values
- Updated documentation
@reckart reckart force-pushed the bugfix/4121-Annotations-are-missing-when-exporting-in-NIF branch from 7ee0038 to 0511660 Compare May 5, 2026 09:53
@reckart reckart merged commit d254fc1 into release/40.x May 5, 2026
4 checks passed
@reckart reckart deleted the bugfix/4121-Annotations-are-missing-when-exporting-in-NIF branch May 5, 2026 10:46
@github-project-automation github-project-automation Bot moved this from 🔖 To do to 🍹 Done in Kanban May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 Bug Something isn't working

Projects

Status: 🍹 Done

Development

Successfully merging this pull request may close these issues.

1 participant