Class: DownloadService

DownloadService()

Service for downloading data via GetStatementsPayload.

Constructor

new DownloadService()

Author:
  • Mihail Radkov
  • Svilen Velikov
Source:

Methods

download(payload) → {ServiceRequest}

Fetch rdf data from statements endpoint using provided parameters.

The request is configured so that expected response should be a readable stream.

Provided request params will be automatically converted to N-Triples if they are not already encoded as such.

Parameters:
Name Type Description
payload GetStatementsPayload

is an object holding request params

Source:
Returns:

a service request that will resolve to a readable stream to which the client can subscribe and consume the emitted strings depending on the provided response type as soon as they are available.

Type
ServiceRequest

getServiceName()

Source: