-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error for tags using namespaces declared within same tag #40
Labels
bug
Something isn't working
Comments
I recently fixed a similar problem. Can you check if you're running the latest version of the parser? |
Version 1.3.6. index.js: const fs = require('fs');
const RdfXmlParser = require("rdfxml-streaming-parser").RdfXmlParser;
const myParser = new RdfXmlParser();
fs.createReadStream('myfile.rdf').pipe(myParser).on('data', console.log).on('error', console.error).on('end', () => console.log('All triples were parsed!')); myfile.rdf as in the issue description. package.json:
|
Thanks for checking, that's the latest indeed. |
This may be resolved in release 2.x with our recent migration to a different underlying XML parser. |
Sorry to say it's still an issue! |
Thanks for checking! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The RDF/XML parser emits an error for tags whose namespace is declared within that same tag. For example, endDate in the following snippet uses the namespace that appears inside the endDate tag:
The error message reads as follows:
The W3C RDF/XML validation service is able parse the data and resolves it to this triple:
The text was updated successfully, but these errors were encountered: