-
Notifications
You must be signed in to change notification settings - Fork 925
New LinkRole type to support HTML attributes when data provided in JSON-LD #1045
Copy link
Copy link
Open
Labels
Queued for Editorial WorkEditor needs to turn issues/PRs into final code and release notes.Editor needs to turn issues/PRs into final code and release notes.no-issue-activityDiscuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).schema.org vocabGeneral top level tag for issues on the vocabularyGeneral top level tag for issues on the vocabularytype:cleanup + clarityAddresses wording fixes, ambiguities, confusion, bad examples etcAddresses wording fixes, ambiguities, confusion, bad examples etc
Metadata
Metadata
Assignees
Labels
Queued for Editorial WorkEditor needs to turn issues/PRs into final code and release notes.Editor needs to turn issues/PRs into final code and release notes.no-issue-activityDiscuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).schema.org vocabGeneral top level tag for issues on the vocabularyGeneral top level tag for issues on the vocabularytype:cleanup + clarityAddresses wording fixes, ambiguities, confusion, bad examples etcAddresses wording fixes, ambiguities, confusion, bad examples etc
Type
Fields
Give feedbackNo fields configured for issues without a type.
HTML's has a number of attributes for expressing language and how one URL relates to another. Unfortunately, JSON-LD has no such mechanism, so data in a feed cannot express things like "the endpoint is in Japanese" or "the endpoint is an alternate link".
We have touched on this idea in issue #561. A clearer, more extensible mechanism would be to add LinkRole:
A LinkRole is a Role that represents a Web link e.g. as expressed via the 'url' property. Its linkRelationship property can indicate URL-based and plain textual link types e.g. those in IANA
link registry or others such as 'amphtml'. This structure provides a placeholder where details from HTML's element can be represented outside of HTML, e.g. in JSON-LD feeds.
Itt would have two properties:
inLanguage: The language of the resource. (This property already exists. We would be extending the domain.)
linkRelationship: Indicates the relationship type of a Web link.