Skip to content

IRI invalid when filename has spaces #93

Description

@lauramble

When trying to retrieve a file on the EBRAINS KG with fairgraph, I noticed that the openminds File instance did not have an IRI property, even though the instance on the KG did. Upon further investigation, it turns out that the problem comes from the filename, which contains spaces, so the openMINDS Python module raises an Invalid IRI error.

I used the actual IRI of the file I was trying to access in a minimal example to demonstrate the issue:

from openminds import IRI
IRI(value="https://data-proxy.ebrains.eu/api/v1/buckets/p63ea6-hbp-d000017_PatchClamp-GranuleCells_pub/GrC_Subject28_240216/240216-B_0001 EPSP.abf")

Spaces should probably be avoided in IRIs, but if they are there, could they be converted into '%20' when validating the IRI? Would that work?

Metadata

Metadata

Assignees

Labels

for discussionFurther discussion of this issue is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions