Repository navigation
Replace Activity Streams vocabulary terms with dcterms and LWS equivalents - #219
Merged
Merged
Conversation
…lents - as:mediaType -> dc:format - as:updated -> dc:modified - as:totalItems -> lws:totalItems
elf-pavlik
approved these changes
Aug 14, 2026
TallTed
reviewed
Aug 17, 2026
Co-authored-by: Ted Thibodeau Jr <[email protected]>
Member
Author
|
This was discussed in the 2026-08-17 WG Meeting with a resolution to merge this PR |
laurensdeb
approved these changes
Aug 21, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 oftotalItems, an LWS-defined term. Please note, the LWS vocabulary already defineslws:items, so defininglws:totalItemswould 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 toas:updated) andtotalItemsproperties appear unchanged, since only the mapping changed. ThemediaTypeproperty is changed toformat, which involves some changes to the protocol text and examples.Please note: in the
vocabulary.ymlfile, there are two references to the DC Terms namespace:dctanddcterms. This is intentional as it is necessary for the yml2vocab tool to resolve the short name values as URIs in properties such asleftOperand.The
asnamespace is still present, since we continue to use Activity Stream terms with the notification feature.Preview | Diff