npm.io
5.4.0 • Published 3d ago

@comunica/actor-dereference-file

Licence
MIT
Version
5.4.0
Deps
3
Size
21 kB
Vulns
0
Weekly
0
Stars
601

Comunica File Dereference Actor

npm version

A comunica File Dereference Actor.

An Dereference actor that resolves an URL to a local file (optionally starting with file://).

This actor refuses to dereference files if the @comunica/bus-dereference:blockFileAccess context entry is enabled. This is for example set for SERVICE targets, so that queries from untrusted parties can not read arbitrary local files.

Click here if you just want to query with Comunica.

Install

$ yarn add @comunica/actor-dereference-file

Configure

After installing, this package can be added to your engine's configuration as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-dereference-file/^5.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:dereference/actors#file",
      "@type": "ActorRdfDereferenceFile"
    }
  ]
}

Keywords