rdfstore-js icon indicating copy to clipboard operation
rdfstore-js copied to clipboard

load quads remotely into multiple named graphs

Open fkleedorfer opened this issue 10 years ago • 1 comments

I'd love the store to be able to load n-quads, TriG or JSON-LD containing a dataset with default graph and named graphs into multiple graphs. Currently, the supported media types are ["text/turtle", "text/n3", "application/ld+json", "application/json"], so the only way to load such a dataset would be JSON-LD. However, the jsonld parser shipped with the store only loads triples (not quads), either into the default graph or into a specified graph.

I think it would be conforming to the spec of SPARQL LOAD (without INTO) to load the data obtained into multiple named graphs, and I'm thinking about adaping the jsonld implementation to do just that (it seems rather straightforward). Is that a viable option or is there anything that speaks against it?

Other options are:

  • adding an existing N-Quads or TriG parser to do the same - any ideas where to find one?
  • fetching the data outside of rdfstore-js, parsing the graphs and adding them one by one as named graphs - any hints as to which library to use for that?

fkleedorfer avatar Sep 17 '14 15:09 fkleedorfer

Yep. I'd love to see this too.

jandrieu avatar Oct 19 '14 07:10 jandrieu