@comunica/actor-init-rdf-dereference-paged
v1.22.3
Published
A Comunica engine for paging through RDF resources
Downloads
89
Readme
Comunica RDF Dereference Paged
An example init actor for Comunica that triggers an RDF Dereference Paged event for the given URL. In practise, this will fetch an HTTP resource, parse its RDF contents, and follow nextPage links.
This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.
Click here if you just want to query with Comunica.
Install
$ yarn add @comunica/actor-init-rdf-dereference-paged
This package exposes the binary comunica-rdf-dereference-paged [url]
.
Usage
The config/config-example.json
contains an example on how to run this actor,
which will trigger on the Runner's 'init' event.
As defined by components/ActorInitRdfDereferencePaged
,
the actor allows optional URL parameters to be changed.
When executed, the actor will take the URL from the first CLI parameter, or take it from the config file if not available, perform the request, and print its response to stdout.
Executing the following:
$ node bin/run.js https://fragments.linkedsoftwaredependencies.org/npm
will print the response.