-
Notifications
You must be signed in to change notification settings - Fork 14
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
Question: Extracting a DatasetCore<Quad, Quad> from Quadstore #171
Comments
Hello @MMesch, Thank you for your kind words! I am happy to admit I'm not as familiar with the Bridging between the two therefore means getting quads out of Quadstore and into a const { items: quads } = await store.get({});
let dataset = new DatasetCore();
for (quad of quads) {
dataset = dataset.add(quad);
} Or, if we use the const { items: quads } = await store.get({});
const dataset = new Dataset().addAll(quads); (I'm not in a position to test these snippets right now. If you find yourself struggling let me know and I'll have a deeper look.) |
@MMesch feel free to reopen if you need any further help! |
Thanks for your prompt reply. For now it's all good, I managed to solve it along the lines you described! |
Thanks for writing this nice library.
I am quite new to the RDFJS world and trying to use Quadstore for a SHACL validation use case in combination with the rdf-validate-shacl library that expects Quads to be passed as a DatasetCore data type. From the documentation it seems to me Quadstore is not implementing that interface, although most functions seem to be there?
I currently tried something like
This fails, as one would expect, with
Any hints on how to best use these together?
The text was updated successfully, but these errors were encountered: