Replace Activity Streams vocabulary terms with dcterms and LWS equivalents - #219
Open
acoburn wants to merge 2 commits into
Open
Replace Activity Streams vocabulary terms with dcterms and LWS equivalents#219acoburn wants to merge 2 commits into
acoburn wants to merge 2 commits into
Conversation
…lents - as:mediaType -> dc:format - as:updated -> dc:modified - as:totalItems -> lws:totalItems
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