Skip to content

profile: emit LWS-CID-shaped @context and controller (#386 Phase A) #387

Description

@melvincarvalho

First concrete step for #386 (LWS-aligned profile-to-key linking).

Phase A is the smallest possible delta: make new pod profiles structurally LWS-CID conformant, with no keys yet. Keys are added separately via a Phase B standalone app that PATCHes the profile after authentication.

Scope

src/webid/profile.js only. ~15–25 LOC.

# Change
1 @context switches from {} to array form [..., {}] with https://www.w3.org/ns/cid/v1 as the first entry. Existing inline prefix object stays — all current predicates parse identically.
2 Emit "controller": "<webId>" triple — declares self-control per CID v1, even with no keys yet.
3 Add 2 assertions to existing profile-generation tests.

Explicitly out of scope

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions