Skip to content

Validation report in .nt format cannot be parsed with RDF libraries #19

@alexisimo

Description

@alexisimo

I've found that the .nt generated cannot be parsed using an external RDF library.
The error I've got when trying to parse it using rdflib is the following:

rdflib.exceptions.ParserError: Invalid line: "flangeLubeRules 
(1.1.1.3.7.20): The parameter was deprecated, and its provision is no 
longer accepted. If you have provided a Full XML dataset, in this 
dataset the XML name for this parameter is CTD_FlangeLubeRules.\"@en .

I solved it from my side by a simple regex substitution:

re.sub(r'\\"', '"', report)

You can find attached the data and shapes used to reproduce the error.
parse_report_bug.zip

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