Skip to content

Repository files navigation

LocalStore

A RDF/js Store that reads relative turtle files from disk and mutates them via a QueryEngine such as Comunica.

How to use:

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages