A RDF/js Store that reads relative turtle files from disk and mutates them via a QueryEngine such as Comunica.
import{LocalStore}from'@shapething/localstore'import{QueryEngine}from'@comunica/query-sparql'conststore=newLocalStore({baseUri: newURL('http://example.com/')})constengine=newQueryEngine()awaitengine.queryQuads(`construct { ?s ?p ?o } where { { graph <http://example.com/nested/lorem> { ?s ?p ?o } } union { graph <https://shapething.com/lorem> { ?s ?p ?o } } union { graph <http://example.com/ipsum> { ?s ?p ?o } } }`,{sources: [store]})It is best to execute queries with graphs selected. This gives the best performance.