Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback


LDkit - Linked Data query toolkit for TypeScript developers
function setGlobalOptions
import { setGlobalOptions } from "";

Sets global configuration Options for LDkit that will be used by default in all queries, unless overridden in Lens.

LDkit-specific options are:

  • engine - a query engine to use for querying data sources
  • language - a preferred language for literals
  • take - a default number of results to take (limit of SELECT queries)
  • logQuery - a function that will be called for each SPARQL query

Default values for these options are:

const defaultOptions = {
  engine: new QueryEngine(),
  take: 1000,
  logQuery: () => {},

The default configuration uses built-in QueryEngine. Language is not set by default.


options: Options

LDkit options and query engine context