import { setGlobalOptions } from "https://deno.land/x/ldkit/mod.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 sourceslanguage
- a preferred language for literalstake
- 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.