Skip to content

What to do when there is a : in a local name #24

Description

@ChristineHaugen-aut

A colon in a local name is not allowed in xml. I encountered a turtle file with this issue, and the resulting CIMXML file is invalid when conversion is attempted. It cannot then be read by many xml parsers. With CIMXML this is a problem only for predicates, as subjects are uuid and objects are rendered differently.

Solving it is not straightforward. It is possible to get the serializer to automatically replace the colon with a different character. But that will change the element, and could make it incompatible downstream.

For now, I have implemented a check for predicates. If one or more predicates have invalid colons an error is logged, but the file is still written.

I leave this open for future discussions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions