Skip to content

RDFa parser #29

@sebastienhenau

Description

@sebastienhenau

Issue refers to issue #25

Formats

This validator uses a library called RDF-Ext which contains different parsers and serializers. For the validator this library is used to parse RDF:XML, JSON-LD and Turtle and then serialize it to Turtle so it can be read by the validation library, because this library online reads Turtle.

ParseRdfa

In the RDF-Ext library, there is a function called parseRdfa which can be used to parse the RDFa. After testing this the parser returns different errors that are located in the library RDF-Ext. Because of this there is no possibility to parse RDFa, using this library.

The issue

The issue is that the user selects a format and when this is RDFa, the user can then parse his RDFa and it gets serialized to Turtle so it can be validated. The user can manually insert the RDFa format, he can select it and upload it or he can do this by inserting the URI. The user can also, instead of selecting a format when inserting a URI, select Automatic which will detect what content-Type the file is and then based on this select it parser so it can be serialised.

All these features are already in the script.js file and work for the formats RDF:XML, JSON-LD and Turtle. The only thing that I can think of that has to be done to make the RDFa parsing work is to maybe use and implement a different library which parses the RDFa and serializes it or can be serialized by the library RDF-Ext. Then this result can be send as an argument to the validation library which will validate the data serialized to Turtle.

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