qanary-component-helpers/query-sparql
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
qanary-component-helpers/query-sparql
Section titled “qanary-component-helpers/query-sparql”- Package:
@leipzigtreechat/qanary-component-helpers - Source file:
packages/qanary-component-helpers/src/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 qanary-component-helpers
Section titled “In qanary-component-helpers”qanary-component-helpers/apiqanary-component-helpers/baseqanary-component-helpers/commonqanary-component-helpers/configurationqanary-component-helpers/create-annotationqanary-component-helpers/create-clarification-annotationqanary-component-helpers/generate-clarification-questionqanary-component-helpers/generate-object-retryqanary-component-helpers/get-domain-instancesqanary-component-helpers/get-question-uriqanary-component-helpers/get-questionqanary-component-helpers/indexqanary-component-helpers/interfaces/question-sparql-responseqanary-component-helpers/llm-providerqanary-component-helpers/message-operationsqanary-component-helpers/query-file-loaderqanary-component-helpers/query-sparqlqanary-component-helpers/utils/question-uri-query