shared/helpers/query-sparql
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
shared/helpers/query-sparql
Section titled “shared/helpers/query-sparql”- Package:
@leipzigtreechat/shared - Source file:
packages/shared/src/helpers/query-sparql.ts
Summary
Section titled “Summary”Transforms a stream to a promise
Functions
Section titled “Functions”streamToPromise
Section titled “streamToPromise”function streamToPromise(stream: internal.Readable): Promise<Array<T>>Transforms a stream to a promise
Parameters
stream(internal.Readable): the stream to transform ReturnsPromise<Array<T>>: the result of the stream as a promise Defined at: line 9
selectSparql
Section titled “selectSparql”function selectSparql(endpointUrl: string, query: string): Promise<Array<T>>Queries a sparql endpoint with the given select query
Parameters
endpointUrl(string): the sparql endpoint to queryquery(string): the select query to execute ReturnsPromise<Array<T>>: the result of the query Defined at: line 28
askSparql
Section titled “askSparql”function askSparql(endpointUrl: string, query: string): Promise<boolean>Queries a sparql endpoint with the given ask query
Parameters
endpointUrl(string): the sparql endpoint to queryquery(string): the ask query to execute ReturnsPromise<boolean>: the result of the query Defined at: line 41
updateSparql
Section titled “updateSparql”function updateSparql(endpointUrl: string, query: string): Promise<void>Queries a sparql endpoint with the given update query
Parameters
endpointUrl(string): the sparql endpoint to queryquery(string): the update query to execute ReturnsPromise<void>Defined at: line 52
In shared
Section titled “In shared”shared/constants/qanaryshared/enums/annotationsshared/enums/calculationshared/enums/component-listshared/enums/domainsshared/enums/intentsshared/enums/rasa-response-typesshared/enums/representationshared/helpers/create-annotationshared/helpers/get-question-urishared/helpers/get-questionshared/helpers/message-operationsshared/helpers/query-sparqlshared/helpers/question-uri-queryshared/indexshared/interfaces/annotationsshared/interfaces/qanary-interfaces- [
shared/interfaces/question-sparql-response copy](/source-code/shared/interfaces/question-sparql-response copy) shared/interfaces/question-sparql-responseshared/interfaces/representationshared/maps/annotations