Expand description
Linked-Data types.
Re-exports§
pub use json_ld;
Modules§
- compaction
- This library implements the JSON-LD compaction algorithm
for the
json-ld
crate. - context
- Context processing algorithm and related types.
- context_
processing - JSON-LD context processing types and algorithms.
- expanded
- expansion
- This library implements the JSON-LD expansion algorithm
for the
json-ld
crate. - flattened
- flattening
- Flattening algorithm and related types.
- id
- iref
- This crates provides an implementation of Uniform Resource Identifiers (URIs, aka URLs) and Internationalized Resource Identifiers (IRIs) following RFC 3987 and RFC 3986 defined by the Internet Engineering Task Force (IETF) to uniquely identify objects across the web. IRIs are a superclass of URIs accepting international characters defined in the Unicode table.
- loader
- object
- Nodes, lists and values.
- quad
- rdf
- rdf_
types - The Resource Description Framework (RDF) is a very simple graph data model defined by the World Wide Web Consortium (W3C) to represent arbitrary pieces of information, primarily intended for the web. Nodes of the graph are called resources, and resources are connected together using relations, which are resources themselves.
- ser
- This crate implements JSON-LD serialization (from RDF dataset to JSON-LD)
through the
linked_data
crate. The input value can be an RDF dataset, or any type implementinglinked_data::LinkedData
. - syntax
- This library provide functions to parse JSON-LD contexts and print JSON-LD documents.
- utils
- Utility functions.
Structs§
- BBS_
V1_ CONTEXT_ DOCUMENT - BLOCKCHAI
N2021_ V1_ CONTEXT_ DOCUMENT - BlankId
- Blank node identifier.
- Blank
IdBuf - Owned blank node identifier.
- CACAO_
ZCAP_ V1_ CONTEXT_ DOCUMENT - CITIZENSHIP_
V1_ CONTEXT_ DOCUMENT - CREDENTIALS_
EXAMPLES_ V1_ CONTEXT_ DOCUMENT - CREDENTIALS_
EXAMPLES_ V2_ CONTEXT_ DOCUMENT - CREDENTIALS_
V1_ CONTEXT_ DOCUMENT - CREDENTIALS_
V2_ CONTEXT_ DOCUMENT - Chain
Loader ChainLoader
: loads document from the first loader, otherwise falls back to the second one.- Compact
Json Ld - Context
- Processed JSON-LD context.
- Context
Loader - DID_
CONFIGURATION_ V0_ 0_ CONTEXT_ DOCUMENT - DID_
CONFIGURATION_ V1_ CONTEXT_ DOCUMENT - DID_
RESOLUTION_ V1_ CONTEXT_ DOCUMENT - DID_
V1_ CONTEXT_ DOCUMENT - DIF_
ESRS2020_ CONTEXT_ DOCUMENT - Deprecated in favor of W3ID_ESRS2020_V2_CONTEXT_DOCUMENT
- Document
- JSON-LD document in both compact and expanded form.
- EIP712SIG_
V0_ 1_ CONTEXT_ DOCUMENT - EIP712SIG_
V1_ CONTEXT_ DOCUMENT - ESRS2020_
EXTRA_ CONTEXT_ DOCUMENT - Deprecated in favor of W3ID_ESRS2020_V2_CONTEXT_DOCUMENT
- Environment
- Expanded
Document - Result of the document expansion algorithm.
- FsLoader
- File-system loader.
- Indexed
- Indexed objects.
- Invalid
Iri - Invalid
Lang String - Raised when something tried to build a language string without language tag or direction.
- Iri
- Internationalized Resource Identifier (IRI).
- IriBuf
- Owned IRI.
- IriRef
- IRI reference.
- IriRef
Buf - Owned IRI reference.
- JFF_
VC_ EDU_ PLUGFEST_ 2022_ 2_ CONTEXT_ DOCUMENT - JFF_
VC_ EDU_ PLUGFEST_ 2022_ CONTEXT_ DOCUMENT - Json
LdTypes - LDS_
JWS2020_ V1_ CONTEXT_ DOCUMENT - LINKED_
VP_ V1_ CONTEXT_ DOCUMENT - LangStr
- Language string reference.
- Lang
String - Language string.
- Lenient
Lang Tag - Language tag that may not be well-formed.
- Lenient
Lang TagBuf - Owned language tag that may not be well-formed.
- Load
Error - Loading error.
- NoLoader
- Dummy loader.
- Node
- Node object.
- Nodes
- Iterator through indexed nodes.
- ODRL_
CONTEXT_ DOCUMENT - Objects
- Iterator through indexed objects.
- Options
- JSON-LD Processor options.
- PRESENTATION_
SUBMISSION_ V1_ CONTEXT_ DOCUMENT - REVOCATION_
LIST_ 2020_ V1_ CONTEXT_ DOCUMENT - Remote
Document - Remote document.
- SCHEMA_
ORG_ CONTEXT_ DOCUMENT - SECURITY_
V1_ CONTEXT_ DOCUMENT - SECURITY_
V2_ CONTEXT_ DOCUMENT - STATUS_
LIST_ 2021_ V1_ CONTEXT_ DOCUMENT - Static
Loader - TRACEABILITY_
CONTEXT_ DOCUMENT - ToRdf
- Unknown
Context - Error raised when an unknown context is loaded with
StaticLoader
orContextLoader
. - VACCINATION_
V1_ CONTEXT_ DOCUMENT - VDL_
V1_ CONTEXT_ DOCUMENT - W3ID_
DATA_ INTEGRITY_ V1_ CONTEXT_ DOCUMENT - W3ID_
DATA_ INTEGRITY_ V2_ CONTEXT_ DOCUMENT - W3ID_
ED2020_ V1_ CONTEXT_ DOCUMENT - W3ID_
ESRS2020_ V2_ CONTEXT_ DOCUMENT - W3ID_
JWS2020_ V1_ CONTEXT_ DOCUMENT - W3ID_
MULTIKEY_ V1_ CONTEXT_ DOCUMENT - WALLET_
V1_ CONTEXT_ DOCUMENT - With
Context - ZCAP_
V1_ CONTEXT_ DOCUMENT
Enums§
- Compact
Error - Error that can be raised by the
JsonLdProcessor::compact
function. - Container
- Container
Kind - Context
Error - Context
Load Error - Direction
- Internationalized string direction.
- Expand
Error - Error that can be raised by the
JsonLdProcessor::expand
function. - Extract
Context Error - Context extraction error.
- Flatten
Error - Error that can be raised by the
JsonLdProcessor::flatten
function. - From
Context MapError - Error that can be raised by the
ContextLoader::with_context_map_from
constructor function. - Id
- Node identifier.
- Json
LdError - Nullable
- Value that can be null.
- Object
- Object.
- Processing
Mode - Processing mode.
- Profile
- Value for the
profile
parameter defined for theapplication/ld+json
. - Ref
- Id to a reference.
- Remote
Document Reference - Remote document, loaded or not.
- Standard
Profile - Standard
profile
parameter values defined for theapplication/ld+json
. - Term
- Identifier, keyword or
@null
. - ToRdf
Error - Error that can be raised by the
JsonLdProcessor::to_rdf
function. - Type
- Object type.
- ValidId
- RDF node identifier.
- Value
- Value object.
Constants§
- BBS_
V1_ CONTEXT - BLOCKCHAI
N2021_ V1_ CONTEXT - CACAO_
ZCAP_ V1_ CONTEXT - CITIZENSHIP_
V1_ CONTEXT - CREDENTIALS_
EXAMPLES_ V1_ CONTEXT - CREDENTIALS_
EXAMPLES_ V2_ CONTEXT - CREDENTIALS_
V1_ CONTEXT - CREDENTIALS_
V2_ CONTEXT - DID_
CONFIGURATION_ V0_ 0_ CONTEXT - DID_
CONFIGURATION_ V1_ CONTEXT - DID_
RESOLUTION_ V1_ CONTEXT - DID_
V1_ CONTEXT - DID_
V1_ CONTEXT_ NO_ WWW - DIF_
ESRS2020_ CONTEXT - EIP712SIG_
V0_ 1_ CONTEXT - EIP712SIG_
V1_ CONTEXT - ESRS2020_
EXTRA_ CONTEXT Deprecated - JFF_
VC_ EDU_ PLUGFEST_ 2022_ 2_ CONTEXT - JFF_
VC_ EDU_ PLUGFEST_ 2022_ CONTEXT - LDS_
JWS2020_ V1_ CONTEXT - LINKED_
VP_ V1_ CONTEXT - ODRL_
CONTEXT - PRESENTATION_
SUBMISSION_ V1_ CONTEXT - REVOCATION_
LIST_ 2020_ V1_ CONTEXT - SCHEMA_
ORG_ CONTEXT - SECURITY_
V1_ CONTEXT - SECURITY_
V2_ CONTEXT - STATUS_
LIST_ 2021_ V1_ CONTEXT - TRACEABILITY_
CONTEXT - VACCINATION_
V1_ CONTEXT - VDL_
V1_ CONTEXT - W3ID_
DATA_ INTEGRITY_ V1_ CONTEXT - W3ID_
DATA_ INTEGRITY_ V2_ CONTEXT - W3ID_
DID_ V1_ CONTEXT - W3ID_
ED2020_ V1_ CONTEXT - W3ID_
ESRS2020_ V2_ CONTEXT - W3ID_
JWS2020_ V1_ CONTEXT - W3ID_
MULTIKEY_ V1_ CONTEXT - WALLET_
V1_ CONTEXT - ZCAP_
V1_ CONTEXT
Traits§
- Compact
- Compaction function.
- Expand
- Document expansion.
- Expandable
- JSON-LD-Expandable value.
- Extract
Context - Flatten
- Identify
All - Json
LdLoader Provider - Type that provides a JSON-LD document loader.
- Json
LdNode Object - Json
LdObject - Any type representing a JSON-LD object.
- Json
LdProcessor - Application Programming Interface.
- LdQuads
- Loader
- Document loader.
- Print methods.
- Process
- RdfQuads
- Relabel
- TryFrom
Json - Try to convert from a JSON value directly into an expanded JSON-LD document without going through the expansion algorithm.
Functions§
- parse_
ld_ context - Parse a JSON-LD context.
Type Aliases§
- Compact
Result - Result of the
JsonLdProcessor::compact
function. - Compare
Result - Result of the
JsonLdProcessor::compare
function. - Context
Map - Expand
Result - Result returned by the
JsonLdProcessor::expand
function. - Flatten
Result - Result of the
JsonLdProcessor::flatten
function. - Flattened
Document - Result of the document flattening algorithm.
- Indexed
Node - Indexed
Object - Indexed object.
- Into
Document Result - Result returned by the
JsonLdProcessor::into_document
function. - Load
Error Cause - Loading
Result - Remote
Context - Remote
Context Reference - ToRdf
Result - Error that can be raised by the
JsonLdProcessor::to_rdf
function. - Valid
Vocabulary Id - Vocabulary
Id