Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDFa parser #29

Open
sebastienhenau opened this issue Jul 28, 2015 · 0 comments
Open

RDFa parser #29

sebastienhenau opened this issue Jul 28, 2015 · 0 comments

Comments

@sebastienhenau
Copy link
Contributor

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.

@sebastienhenau sebastienhenau changed the title RDFa parser RDFa parser (No valid issue) Jul 28, 2015
@sebastienhenau sebastienhenau changed the title RDFa parser (No valid issue) RDFa parser see issue #25 Jul 28, 2015
@pietercolpaert pietercolpaert changed the title RDFa parser see issue #25 RDFa parser Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant