Skip to content

fails to serialize graphs containing some IRIs to xml #2828

Closed
@trapperkeeper

Description

The issue appears to have a problem with IRIs with the format:

scheme://domain/path/id

when the 'id' portion is numerical (or it might just fail if it starts with a number?).

For example, https://endlessforms.info/gdo/0000240

When serializing a graph with IRIs like the above, I get these errors:

ValueError: Can't split 'https://endlessforms.info/gdo/0000240'
ValueError: This graph cannot be serialized to a strict format because there is no valid way to shorten https://endlessforms.info/gdo/0000240

If I change my output format to Turtle, it works. But there are other parts of my pipeline that are expecting xml and I'd rather not be constantly switching between formats.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions