Skip to content

Encoding information missing on OWL #11

@matthiaskoenig

Description

@matthiaskoenig

The XML header of the OWL file should be

<?xml version="1.0" encoding="UTF-8"?>

instead of

<?xml version="1.0">

This allows more robust parsing, e.g., via the pronto library

/home/mkoenig/git/pymetadata/src/pymetadata/resources/ontologies/sbo.owl.gz
/home/mkoenig/git/pymetadata/src/pymetadata/ontologies/ontology.py:196: UnicodeWarning: unsound encoding, assuming utf-8 (75% confidence)
  self.__class__._ontology = pronto.Ontology(ontology_file.filename)
``

Metadata

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