Skip to content

Replace Activity Streams vocabulary terms with dcterms and LWS equivalents - #219

Merged
acoburn merged 6 commits into
mainfrom
vocab-term-clarification
Aug 21, 2026
Merged

acoburn merged 6 commits into
mainfrom
vocab-term-clarification

Conversation

@acoburn

@acoburn acoburn commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

Resolves #204

Container properties currently use terms from the Activity Streams 2.0 vocabulary, which is arguably a poor fit. This changes three terms to use either DC Terms (dct:format, dct:modified) or, in the case of totalItems, an LWS-defined term. Please note, the LWS vocabulary already defines lws:items, so defining lws:totalItems would make sense.

  • mediaType (as:mediaType) -> format (dct:format)
  • modified (as:updated) -> modified (dct:modified)
  • totalItems (as:totalItems) -> totalItems (lws:totalItems)

From the perspective of the JSON-LD container representation, the modified (previously mapped to as:updated) and totalItems properties appear unchanged, since only the mapping changed. The mediaType property is changed to format, which involves some changes to the protocol text and examples.

Please note: in the vocabulary.yml file, there are two references to the DC Terms namespace: dct and dcterms. This is intentional as it is necessary for the yml2vocab tool to resolve the short name values as URIs in properties such as leftOperand.

The as namespace is still present, since we continue to use Activity Stream terms with the notification feature.


Preview | Diff

…lents

- as:mediaType -> dc:format
- as:updated -> dc:modified
- as:totalItems -> lws:totalItems
Comment thread lws10-core/Operations/metadata.md Resolved
@acoburn

acoburn commented Aug 21, 2026

Copy link
Copy Markdown
Member Author

This was discussed in the 2026-08-17 WG Meeting with a resolution to merge this PR

@acoburn
acoburn merged commit 602ca19 into main Aug 21, 2026
1 check passed
@acoburn
acoburn deleted the vocab-term-clarification branch August 21, 2026 15:15
ebremer added a commit to halcyon-project/Halcyon that referenced this pull request Sep 22, 2026
The container and storage-description terms moved in w3c/lws-protocol#219 and
the storage description became a controlled identifier document in #183. Both
are observable on the wire, so a client written against the current drafts could
not read what this module emitted.

Representation terms (#219). A data resource's media type is `format`
(`dcterms:format`), not `mediaType` (`as:mediaType`); `modified` is
`dcterms:modified`, not `as:updated`; `totalItems` is `lws:totalItems`, not
`as:totalItems`. These IRIs go into a resource's own named graph, so they are
visible through the store-wide SPARQL endpoint as well as in JSON: the new
vocab/Terms collects them, ResourceRegistry writes them, and it reads the old
spellings too, clearing both on every write — a resource converts the first time
it is touched and no store needs a migration pass. The in-tree clients (the
Storage UI, the MCP browse and discovery tools) read `format` with a `mediaType`
fallback, since they may be pointed at a server that has not caught up.

Storage description (#183, #234). It is now a CID document: `@context` is
[cid/v1, lws/v1], `id` is the canonical storage URI (which per CID-1.0 is this
document's own URL, so the self-referential StorageDescription service entry is
gone), and a StorageRoot service is REQUIRED and listed first. It is served as
`application/lws+cid` — from the storage URI, where lws10-core requires it, as
well as from the reserved .description path, with Accept deciding between the
description and the root container listing. PatchSupport is keyed by `format`,
and the content negotiation this storage actually performs is advertised.

Discovery link. `rel="…lws#storage"`, whose target is the canonical storage URI,
on every GET/HEAD and on the 401 challenge, replacing `lws#storageDescription`
(no longer a vocabulary term). It is server-managed in the linkset too.

Type Search (#179). QUERY is the only way to run a search; the GET and POST
forms are gone, and `Allow` on the endpoint is "OPTIONS, QUERY". A page link now
carries the filter sealed alongside the cursor, because dereferencing a page is
still a GET and the service keeps no per-search state — the sealing moved to
search/Tokens, which Cursor now shares.

Webhook keyid. lws10-notifications-webhook requires it to be a URL with a
fragment, so a receiver can strip the fragment, dereference the storage and find
the verification method. It was a bare thumbprint; it is now
`{storage}#{thumbprint}`, matching the id published in the description.

323 tests (was 293): the storage description, container representations,
linkset ownership, media-type negotiation and the filter grammar are pinned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vocab terms for media type

4 participants