Skip to main content

Module webid

Module webid 

Source
Expand description

WebID profile document generation and validation.

The embedded JSON-LD data island mirrors JSS src/webid/profile.js::generateProfileJsonLd (commits cccd081 #320, 01e12b0 #299): it carries both the legacy solid:oidcIssuer predicate and the LWS 1.0 Controlled Identifier service array, plus foaf:isPrimaryTopicOf / schema:mainEntityOfPage self-references.

Functionsยง

extract_cid_openid_provider
LWS 1.0 Controlled Identifier discovery โ€” return the serviceEndpoint of the first service entry whose @type is lws:OpenIdProvider (or the fully-expanded IRI). Mirrors the shape of extract_oidc_issuer; returns Ok(None) when absent.
extract_oidc_issuer
Follow-your-nose discovery โ€” extract solid:oidcIssuer from a WebID HTML document. Returns Ok(None) when the profile does not advertise an issuer.
generate_webid_html
Render a WebID profile as an HTML document with embedded JSON-LD.
generate_webid_html_with_issuer
Render a WebID profile with an optional Solid-OIDC issuer advertised via solid:oidcIssuer and, when present, an LWS 1.0 service entry typed lws:OpenIdProvider.
validate_webid_html
Validate that a byte slice is a well-formed WebID profile.