Skip to content

Hyper-schema: Link subject/anchor #140

Closed
@awwright

Description

@awwright

JSON Schema should be able to define the subject (anchor, or source) of a link relation.


Suppose I define a link right here (HTML):

<link rel="prev" href="139" />

We can express the information links convey in a format called N-Triples (a subset of the more general grammar Turtle). Since links by default have a subject of the current document, it would look like:

<https://github.com/json-schema-org/json-schema-spec/issues/140> iana:prev <https://github.com/json-schema-org/json-schema-spec/issues/139> .

But it might be the case we want to use JSON Schema to let documents make links about other documents to different other documents. A subject that's not <https://github.com/json-schema-org/json-schema-spec/issues/140>

Well in that case we need to allow JSON Schema to define what that "subject"/"source"/"anchor" is.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions