Skip to content

W3 validator throws error but g.parse() not #1708

@Delilovic

Description

@Delilovic

Hello I have a simple XML file with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<root>
    <child>OKOK</child>
</root>

When checking the content with the w3 Validation Tool https://www.w3.org/RDF/Validator/ I get an error:
Error: Your document does not contain any RDF statement. But when I test it with rdflib, it parses the file without error.

Do you know why rdflib does not throw an error message? And if rdflib is somehow able to recognize that the RDF tags are missing in the file?

Kind Regards

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