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

x/ldkit/library/options.ts>setGlobalOptions

LDkit - Linked Data query toolkit for TypeScript developers
Latest
function setGlobalOptions
import { setGlobalOptions } from "https://deno.land/x/ldkit@2.0.0/library/options.ts";

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.

Parameters

options: Options

LDkit options and query engine context