Interface SolidDataDriverOptions<T>

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

Deserialize the RDF thing to instance

Type declaration

    • (obj): T
    • Parameters

      • 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;
        }>

      Returns T

destination?: IDataDestination
engine?: ActorInitQueryBase<IQueryContextCommon>

Comunica query engine

explain?: QueryExplainMode
extensionFunctionCreator?: ((functionNamedNode) => ((args) => Promise<Term>))

Type declaration

    • (functionNamedNode): ((args) => Promise<Term>)
    • Parameters

      • functionNamedNode: NamedNode<string>

      Returns ((args) => Promise<Term>)

        • (args): Promise<Term>
        • Parameters

          • args: Term[]

          Returns Promise<Term>

extensionFunctions?: Record<string, ((args) => Promise<Term>)>

Type declaration

    • (args): Promise<Term>
    • Parameters

      • args: Term[]

      Returns Promise<Term>

fetch?: {
    (input, init?): Promise<Response>;
    (input, init?): Promise<Response>;
}

Type declaration

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

      • input: URL | RequestInfo
      • Optional init: RequestInit

      Returns Promise<Response>

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

      • input: string | URL | Request
      • Optional init: 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
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, baseURI?) => 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

Type declaration

    • (obj, baseURI?): Readonly<{
          predicates: Readonly<Record<string, Readonly<Partial<{
              blankNodes: readonly ((...) | (...))[];
              langStrings: Readonly<Record<(...), (...)>>;
              literals: Readonly<Record<(...), (...)>>;
              namedNodes: readonly string[];
          }>>>>;
          type: "Subject";
          url: string;
      }>[]
    • Parameters

      • obj: T
      • Optional baseURI: `http://${string}` | `https://${string}`

      Returns Readonly<{
          predicates: Readonly<Record<string, Readonly<Partial<{
              blankNodes: readonly ((...) | (...))[];
              langStrings: Readonly<Record<(...), (...)>>;
              literals: Readonly<Record<(...), (...)>>;
              namedNodes: readonly string[];
          }>>>>;
          type: "Subject";
          url: string;
      }>[]

source?: IDataSource
sources: [IDataSource, ...IDataSource[]]

An array of data sources the query engine must use.

uid?: string
uriPrefix?: string

URI prefix

Default

/openhps