Skip to content

HAL or JSON-LD ? #2

@MarcBruyland

Description

@MarcBruyland

A remark came from one of the participants of the ICEG training on 2022-06-13:

"GCloudBE defines a JSON structuring format based on HAL, whereas you seem to be using JSON-LD as a base for your standar.
How do you see these standards;does JSON-LD supersede GCloud, should we do both, or does it depend on context (and when should we be using which)?"

Reaction:

The REST styleguide mentions:
The use of Web Linking and Hypertext Application Language (HAL) is not recommended.

Note that the REST styleguide is not focusing on semantic interoperability, contrary to the ICEG data standards which are focusing on semantics.
You will not find anything on JSON-LD (which is recommended in the ICEG training) in the REST styleguide.
The reason why this phrase is put in the REST styleguide is that HAL was considered to be too complex.
Under the representatives of the G-Cloud work groups nobody heard of a recommendation to use HAL (if you have more info, pls let us know).

What you can find in the REST styleguide regarding the usage of hyperlinks:
https://www.belgif.be/specification/rest/api-guide/#pagination
https://www.belgif.be/specification/rest/api-guide/#hypermedia-controls

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions