You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: