Interface IQueryContextCommon

Common query context interface

interface IQueryContextCommon {
    datetime?: Date;
    destination?: IDataDestination;
    explain?: QueryExplainMode;
    extensionFunctionCreator?: ((functionNamedNode: NamedNode<string>) => undefined | ((args: Term[]) => Promise<Term>));
    extensionFunctions?: Record<string, ((args: Term[]) => Promise<Term>)>;
    fetch?: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    };
    functionArgumentsCache?: FunctionArgumentsCache;
    httpAuth?: string;
    httpBodyTimeout?: boolean;
    httpIncludeCredentials?: boolean;
    httpProxyHandler?: IProxyHandler;
    httpRetryCount?: number;
    httpRetryDelayFallback?: number;
    httpRetryDelayLimit?: number;
    httpTimeout?: number;
    initialBindings?: Bindings;
    lenient?: boolean;
    log?: Logger;
    readOnly?: boolean;
    recoverBrokenLinks?: boolean;
}

Properties

datetime?: Date
destination?: IDataDestination
extensionFunctionCreator?: ((functionNamedNode: NamedNode<string>) => undefined | ((args: Term[]) => Promise<Term>))
extensionFunctions?: Record<string, ((args: Term[]) => Promise<Term>)>
fetch?: {
    (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
    (input: string | Request | URL, init?: RequestInit): Promise<Response>;
}

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • Optionalinit: RequestInit

      Returns Promise<Response>

    • (input, init?): Promise<Response>
    • Parameters

      • input: string | Request | URL
      • Optionalinit: RequestInit

      Returns Promise<Response>

functionArgumentsCache?: FunctionArgumentsCache
httpAuth?: string
httpBodyTimeout?: boolean
httpIncludeCredentials?: boolean
httpProxyHandler?: IProxyHandler
httpRetryCount?: number
httpRetryDelayFallback?: number
httpRetryDelayLimit?: number
httpTimeout?: number
initialBindings?: Bindings
lenient?: boolean
log?: Logger
readOnly?: boolean
recoverBrokenLinks?: boolean