Skip to main content

Module schema

Module schema 

Source

Structs§

JsonLdHeader
Represents the JSON-LD document header, containing context, id, and type definitions. This structure is used as the envelope for JSON-LD documents and nodes.
SimpleContext
Defines the structure of an inline JSON-LD @context object, supporting:
TermDetail
Provides a full mapping for a term in a JSON-LD context, supporting advanced features such as: type coercion, container types, nested context definition, language, protection, prefixing, reverse properties, and data nesting.

Enums§

JsonLdContext
Describes how a JSON-LD @context may be represented: as a remote IRI, an inline object, or a list of multiple contexts.
OneOrMany
Utility type that accepts either a single element or a list, used for keywords like @container which can take a string or array of strings in JSON-LD.
TermDef
Represents a context term mapping:
TypeOrVec
Represents the possible values for the @type field in JSON-LD nodes. Accepts a single type string or an array of type strings.