SPARQL support for Barnard59 Linked Data pipelines
npm install barnard59-sparqlSPARQL support for Barnard59 Linked Data pipelines.
This package exports operations to run SPARQL queries on endpoints that support the SPARQL Protocol.
Runs a construct or describe query and parses the response into RDF/JS Quad stream.
- endpoint: URL of the SPARQL endpoint as a string.
- query: The SPARQL construct or describe query as a string.
- user: User for basic authentication.
- password: Password for basic authentication.
- operation: The HTTP operation to use ('get' | 'postUrlencoded' | 'postDirect').
Runs a select query and returns each row of the results as single chunk object.
The chunk object contains key-value pairs for each variable of the select query.
- endpoint: URL of the SPARQL endpoint as a string.
- query: The SPARQL select query as a string.
- user: User for basic authentication.
- password: Password for basic authentication.
- operation: The HTTP operation to use ('get' | 'postUrlencoded' | 'postDirect').