Skip to content
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

Multi graph import doesn't always work #8

Open
PulsarFox opened this issue Apr 26, 2019 · 0 comments
Open

Multi graph import doesn't always work #8

PulsarFox opened this issue Apr 26, 2019 · 0 comments

Comments

@PulsarFox
Copy link

PulsarFox commented Apr 26, 2019

I'm using rdf-store-sparql, which communicates with a remote Jena triple store

When adding new quads to a dataset from two different graph, only the graph of the very first quad is impacted by the import request.

let quads =[];
quads.push(rdf.quad(subject, predicate, object, graph1));
quads.push(rdf.quad(subject, predicate, object, graph2));

let dataset = rdf.dataset(quads);
//Or even dataset.addAll(quads)

let stream = store.import(dataset.toStream());
rdf.waitFor(stream).then(() => { //doing something })

This lines of codes only adds quads on the first graph and not on the second.
The number of quads doesn't matter, I could have one quad going on the first graph and 20 going on the second, it will only add one quad to the store.

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

No branches or pull requests

1 participant