Skip to content

Handle non-openMINDS types in space_info() instead of raising - #119

Merged
apdavison merged 4 commits into
HumanBrainProject:masterfrom
apdavison:issue113
Aug 22, 2026
Merged

Handle non-openMINDS types in space_info() instead of raising#119
apdavison merged 4 commits into
HumanBrainProject:masterfrom
apdavison:issue113

Conversation

@apdavison

Copy link
Copy Markdown
Member

Fixes #113.

A KG space can contain types that have no fairgraph class — the KG's own internal types, such as https://core.kg.ebrains.eu/doi/AdditionalDoiInformation. space_info() raised ValueError for those, so a single unrecognised type made the whole space listing fail.

Unrecognised types are now returned keyed by their type IRI rather than by a class. The ignore_errors argument and the hard-coded ignore list it guarded are both gone. clean_space() and move_all_to_space() cope with the string-keyed entries, operating on the raw type IRI rather than skipping them.

Regression tests added in test/test_client.py; they need a KG connection and skip without one.

@apdavison apdavison added this to the 0.15 milestone Aug 22, 2026
@apdavison apdavison added the bug Something isn't working label Aug 22, 2026
@apdavison
apdavison merged commit 992e5b4 into HumanBrainProject:master Aug 22, 2026
7 checks passed
@apdavison
apdavison deleted the issue113 branch August 22, 2026 21:47
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

None yet

Development

Successfully merging this pull request may close these issues.

client.space_info() raises errors because of unknown types from the kg

1 participant