Options for the lookupObject function.
documentLoader: DocumentLoader
The document loader for loading remote JSON-LD documents.
contextLoader: DocumentLoader
The context loader for loading remote JSON-LD contexts.
crossOrigin: "ignore"
| "throw"
| "trust"
Whether to allow fetching an object with an @id having a different
origin than the object's URL. This is not recommended, as it may
lead to security issues. Only use this option if you know what you
are doing.
How to handle the case when an object's @id has a different origin
than the object's URL:
"ignore"(default): Do not return the object, and log a warning."throw": Throw an error."trust": Bypass the check and return the object anyway. This is not recommended, as it may lead to security issues. Only use this option if you know what you are doing.
The options for making User-Agent header.
If a string is given, it is used as the User-Agent header value.
If an object is given, it is passed to getUserAgent to generate
the User-Agent header value.
tracerProvider: TracerProvider
The OpenTelemetry tracer provider. If omitted, the global tracer provider is used.
signal: AbortSignal
AbortSignal for cancelling the request.