Skip to content

formerType should be @type: @vocab in context document #642

Open
@trwnh

Description

@trwnh
    "formerType": {
      "@id": "as:formerType",
      "@type": "@id"
    },

Problem

"@type": "@id" is base-relative, not vocab-relative; therefore, terms such as the AS2 activity types will not expand. For example, "formerType": "Note" should expand according to the definition of Note, which is https://www.w3.org/ns/activitystreams#Note, but this definition does nothing unless the term formerType is vocab-relative.

Solution

Make formerType vocab-relative by defining it as "@type": "@vocab".

    "formerType": {
      "@id": "as:formerType",
      "@type": "@vocab"
    },

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions