Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Error(s) parsing RDF/XML Collection #5

Open
jimsmart opened this issue Nov 29, 2016 · 3 comments
Open

Error(s) parsing RDF/XML Collection #5

jimsmart opened this issue Nov 29, 2016 · 3 comments
Assignees

Comments

@jimsmart
Copy link

Attempting to parse a Collection in an RDF/XML document causes error:
[TypeError: this.store.collection is not a function]

I've tracked this down to line 135 of index.js

I think the change is from:
this.node = this.store.collection()
To:
this.node = this.store.collection

But then when I attempt to parse the file I get a different error:
[TypeError: Cannot read property 'toString' of undefined]

Environment details:
Library version: rdf-parser-rdfxml@0.3.1
Node version: 4.4.7

Get the file to reproduce the problem:
curl http://spinrdf.org/spl --output spinspl.rdf

@kareniel
Copy link

kareniel commented Jan 8, 2017

I'm getting this too, while trying to parse http://www.w3.org/TR/skos-reference/skos

@jimsmart
Copy link
Author

jimsmart commented Jan 9, 2017

@kareniel — as a workaround, maybe you can use Turtle?

http://lov.okfn.org/dataset/lov/vocabs/skos
Link is on the right - it says n3, but every one I've looked at has parsed ok as Turtle.

HTH

@ktk
Copy link
Contributor

ktk commented Jan 9, 2017

@bergos could you have a look at this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants