Closed namedgraph closed 1 year ago
I want to read all data into a string, based on this example: https://comunica.dev/docs/query/advanced/result_formats/#querying-in-a-javascript-app
data
const result = await myEngine.query(` SELECT ?s ?p ?o WHERE { ?s ?p <http://dbpedia.org/resource/Belgium>. ?s ?p ?o } LIMIT 100`, { sources: ['http://fragments.dbpedia.org/2015/en'], }); const { data } = await myEngine.resultToString(result, 'application/sparql-results+json'); data.pipe(process.stdout); // Print to standard output
How can I do that in the browser?
Just responded to your question in https://app.element.io/#/room/#comunica_Lobby:gitter.im
I want to read all
data
into a string, based on this example: https://comunica.dev/docs/query/advanced/result_formats/#querying-in-a-javascript-appHow can I do that in the browser?