LDflex / LDflex-Comunica

Comunica query engine support for the LDflex language
MIT License
16 stars 5 forks source link

Implement Local File querying #3

Closed james-martin-jd closed 3 years ago

james-martin-jd commented 5 years ago

When making Solid apps, it would be nice to have a way to read local .ttl files to query for things like i18n, error messages, and project settings. I don't believe that currently local file reading is supporting but this would be an excellent enhancement.

RubenVerborgh commented 5 years ago

The LDflex core library (this repo) has support for this: it mandates no concrete query engine or configuration. So that's good.

LDflex for Solid uses the Comunica engine, which is currently wired up to dereference over HTTP. Comunica itself supports in-memory querying, so we just need to expose that through LDflex-Comunica. I will move this issue over there.

jeswr commented 3 years ago

This functionality is now enabled by using @comunica/actor-init-sparql-file as a custom engine. This feature was added in #37 .