Contents of Object's source
.
new
Source(values: { id?: URL | null; content?: ; contents?: ((string | LanguageString))[]; mediaType?: string | null; },unnamed 1?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },)
Constructs a new instance of Source with the given values.
protected
readonly
_contextLoader: DocumentLoader | undefined
protected
readonly
_documentLoader: DocumentLoader | undefined
readonly
content:
The source content.
readonly
contents: ((string | LanguageString))[]
The source content.
[Symbol.for("Deno.customInspect")](inspect: Deno.inspect,options: Deno.InspectOptions,): string
protected
_getCustomInspectProxy(): Record<string, unknown>
clone(values?: { id?: URL | null; content?: ; contents?: ((string | LanguageString))[]; mediaType?: string | null; },options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },): Source
Clones this instance, optionally updating it with the given values.
protected
isCompactable(): boolean
fromJsonLd(json: unknown,options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },): Promise<Source>
Converts a JSON-LD structure to an object of this type.