barnard59-sparql
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

barnard59-sparql

SPARQL support for Barnard59 Linked Data pipelines. This package exports operations to run SPARQL queries on endpoints that support the SPARQL Protocol.

Operations

construct

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').

select

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').

Readme

Keywords

none

Package Sidebar

Install

npm i barnard59-sparql

Weekly Downloads

3,286

Version

2.3.0

License

MIT

Unpacked Size

17.9 kB

Total Files

17

Last publish

Collaborators

  • zazuko-bot