Interface SolidDataDriverOptions<T>

interface SolidDataDriverOptions<T> {
    baseIRI?: string;
    baseUri?: `http://${string}` | `https://${string}`;
    datetime?: Date;
    deserialize?: ((obj: Readonly<{
        predicates: Readonly<Record<string, Readonly<Partial<{
            blankNodes: readonly (`_:${(...)}` | (Readonly<Record<string, Readonly<Partial<{ literals: Readonly<Record<string, readonly string[]>>; langStrings: Readonly<Record<string, readonly string[]>>; namedNodes: readonly string[]; blankNodes: readonly (`_:${string}` | Readonly<...>)[]; }>>>>))[];
            langStrings: Readonly<Record<string, readonly (...)[]>>;
            literals: Readonly<Record<string, readonly (...)[]>>;
            namedNodes: readonly string[];
        }>>>>;
        type: "Subject";
        url: string;
    }>) => T);
    destination?: IDataDestination;
    engine?: ActorInitQueryBase;
    explain?: QueryExplainMode;
    extensionFunctionCreator?: ((functionNamedNode: NamedNode<string>) => ((args: Term[]) => Promise<Term>));
    extensionFunctions?: Record<string, ((args: Term[]) => Promise<Term>)>;
    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    };
    functionArgumentsCache?: FunctionArgumentsCache;
    httpAuth?: `${string}:${string}`;
    httpBodyTimeout?: boolean;
    httpIncludeCredentials?: boolean;
    httpProxyHandler?: IProxyHandler;
    httpRetryCount?: number;
    httpRetryDelay?: number;
    httpRetryOnServerError?: boolean;
    httpTimeout?: number;
    initialBindings?: Bindings;
    keepChangelog?: boolean;
    lenient?: boolean;
    log?: Logger;
    queryFormat?: QueryFormat;
    queryTimestamp?: Date;
    readOnly?: boolean;
    recoverBrokenLinks?: boolean;
    serialize?: ((obj: T, baseURI?: `http://${string}` | `https://${string}`) => Readonly<{
        predicates: Readonly<Record<string, Readonly<Partial<{
            blankNodes: readonly ((...) | (...))[];
            langStrings: Readonly<Record<(...), (...)>>;
            literals: Readonly<Record<(...), (...)>>;
            namedNodes: readonly string[];
        }>>>>;
        type: "Subject";
        url: string;
    }>[]);
    sources: [QuerySourceUnidentified, ...QuerySourceUnidentified[]];
    uid?: string;
    uriPrefix?: string;
}

Type Parameters

  • T

Hierarchy

  • SPARQLDriverOptions
    • SolidDataDriverOptions

Properties

baseIRI?: string

The baseIRI for parsing the query.

baseUri?: `http://${string}` | `https://${string}`
datetime?: Date
deserialize?: ((obj: Readonly<{
    predicates: Readonly<Record<string, Readonly<Partial<{
        blankNodes: readonly (`_:${(...)}` | (Readonly<Record<string, Readonly<Partial<{ literals: Readonly<Record<string, readonly string[]>>; langStrings: Readonly<Record<string, readonly string[]>>; namedNodes: readonly string[]; blankNodes: readonly (`_:${string}` | Readonly<...>)[]; }>>>>))[];
        langStrings: Readonly<Record<string, readonly (...)[]>>;
        literals: Readonly<Record<string, readonly (...)[]>>;
        namedNodes: readonly string[];
    }>>>>;
    type: "Subject";
    url: string;
}>) => T)

Deserialize the RDF thing to instance

destination?: IDataDestination
engine?: ActorInitQueryBase

Comunica query engine

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

Type declaration

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

      • input: URL | RequestInfo
      • Optionalinit: RequestInit

      Returns Promise<Response>

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

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

      Returns Promise<Response>

functionArgumentsCache?: FunctionArgumentsCache
httpAuth?: `${string}:${string}`
httpBodyTimeout?: boolean
httpIncludeCredentials?: boolean
httpProxyHandler?: IProxyHandler
httpRetryCount?: number
httpRetryDelay?: number
httpRetryOnServerError?: boolean
httpTimeout?: number
initialBindings?: Bindings
keepChangelog?: boolean

Keep a changelog of objects returned by the data service

lenient?: boolean
log?: Logger
queryFormat?: QueryFormat

The format in which the query string is defined. Defaults to { language: 'sparql', version: '1.1' }

queryTimestamp?: Date

The date that should be used by SPARQL operations such as NOW().

readOnly?: boolean
recoverBrokenLinks?: boolean
serialize?: ((obj: T, baseURI?: `http://${string}` | `https://${string}`) => Readonly<{
    predicates: Readonly<Record<string, Readonly<Partial<{
        blankNodes: readonly ((...) | (...))[];
        langStrings: Readonly<Record<(...), (...)>>;
        literals: Readonly<Record<(...), (...)>>;
        namedNodes: readonly string[];
    }>>>>;
    type: "Subject";
    url: string;
}>[])

Serialize the object to an RDF thing

sources: [QuerySourceUnidentified, ...QuerySourceUnidentified[]]

An array of data sources the query engine must use.

uid?: string
uriPrefix?: string

URI prefix

/openhps