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
serviceEndpointof the firstserviceentry whose@typeislws:OpenIdProvider(or the fully-expanded IRI). Mirrors the shape ofextract_oidc_issuer; returnsOk(None)when absent. - extract_
oidc_ issuer - Follow-your-nose discovery โ extract
solid:oidcIssuerfrom a WebID HTML document. ReturnsOk(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:oidcIssuerand, when present, an LWS 1.0serviceentry typedlws:OpenIdProvider. - validate_
webid_ html - Validate that a byte slice is a well-formed WebID profile.