qanary-component-helpers/query-file-loader
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
qanary-component-helpers/query-file-loader
Section titled “qanary-component-helpers/query-file-loader”- Package:
@leipzigtreechat/qanary-component-helpers - Source file:
packages/qanary-component-helpers/src/query-file-loader.ts
Summary
Section titled “Summary”These are text fragments that can be substituted into SparQL query files to make parameterized queries.
Functions
Section titled “Functions”queryFileLoader
Section titled “queryFileLoader”function queryFileLoader(filePath: string, sparqlQueryReplacements: Array<ISparqlQueryReplacement>): stringA helper function to load SparQL files and replace text fragments if necessary. The return is a transformed text, of the given file.
Parameters
filePath(string): the path of the file to readsparqlQueryReplacements(Array): a list of text fragments to replace as objects Returns stringDefined at: line 24
Interfaces
Section titled “Interfaces”ISparqlQueryReplacement
Section titled “ISparqlQueryReplacement”interface ISparqlQueryReplacementA replacement object that replaces the keyword with a text fragment when loading a SparQL file.
Properties
keyword(string)replacement(string) Defined at: line 14
RESERVED_KEYWORD_IN_SPARQL_QUERY
Section titled “RESERVED_KEYWORD_IN_SPARQL_QUERY”enum RESERVED_KEYWORD_IN_SPARQL_QUERYThese are text fragments that can be substituted into SparQL query files to make parameterized queries.
Properties
YOUR_CURRENT_GRAPH_ID(enum-member)YOUR_ANNOTATION_TYPES(enum-member) Defined at: line 6
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