Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


application/rdf-xml parser not found: should fail faster #69

slorber opened this Issue · 5 comments

4 participants


Hello Antonio

This seems kind of normal according to the code:

RDFLoader.RDFLoader = function (params) {
    this.precedences = ["text/turtle", "text/n3", "application/ld+json", "application/json"/*, "application/rdf+xml"*/];
    this.parsers = {"text/turtle":N3Parser.parser, "text/n3":N3Parser.parser, "application/ld+json":JSONLDParser.parser, "application/json":JSONLDParser.parser/*, "application/rdf+xml":RDFXMLParser.parser*/};

But the error is not really explicit.

This is what I've found out trying to use rdfstore in a backbone app:

It seems we got a response with mimeType application/rdf+xml from - will try to parse it as a graph services.js:46
Cannot read property 'async' of undefined rdf_store.js:7200
TypeError: Cannot read property 'async' of undefined
    at RDFLoader.RDFLoader.tryToParse (
    at Store.Store.load (
    at loadGraph (
    at wrappedCallback (
    at wrappedCallback (
    at Scope.$eval (
    at Scope.$digest (
    at Scope.$apply ( 

The parser passed to tryToParse is empty. It should fail fast IMO.

Btw where is the RDF XML parser? the doc seems to indicate rdfstore work with rdf xml, (at least for sparql queries?)
we can even see this code:
store.registerParser("application/rdf+xml", rdXmlParser); but don't really know where to find the rdXmlParser.

Isn't there a way to have a default support for application/rdf+xml?


news about this question ? i have this problem ever that try get a tag at rdf file.


The RDF/XML parser appears to be here. It appears to share a common ancestor with the version from rdflib.js.

It's called from rdf_loader.js, but it's commented out three times in configuration.rb.


See also this open issue at rdflib.js. I have a working version in my fork.



is this issue still open?

I had tried to use the rdf/xml parser of rdfstore-js which depends on rdflib.js, However all the subjects of returned quads are blank node. Has anybody the same problem?

Is this parser ready to be correctly used so far? or just for future?

Best regards,


@kevinprotoss, it appears to not be functional at present. Check out my demo for a really rough proof of concept RDF/XML to JSON-LD conversion. See also my rdflib.js fork for another rough example, this time of just the RDF/XML parser working in Node.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.