Skip to content

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

These are text fragments that can be substituted into SparQL query files to make parameterized queries.

function queryFileLoader(filePath: string, sparqlQueryReplacements: Array<ISparqlQueryReplacement>): string

A 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 read
  • sparqlQueryReplacements (Array): a list of text fragments to replace as objects Returns
  • string Defined at: line 24
interface ISparqlQueryReplacement

A replacement object that replaces the keyword with a text fragment when loading a SparQL file.

Properties

  • keyword (string)
  • replacement (string) Defined at: line 14
enum RESERVED_KEYWORD_IN_SPARQL_QUERY

These 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