Skip to content

API - content negotiation #6

@rduyme

Description

@rduyme

http content negotiation is a simple way to exchange json-ld info. this ticket is to discuss it for skg-if

see : https://citation.doi.org/docs.html

Image

resource : https://en.wikipedia.org/wiki/Media_type

Initial proposition :

  • content-type : "application/vnd.skgif.ld+json"
  • http content negociation should be implemented on single core skg-if entity pages
  • json-ld content should match "get by id" operations in skg-if OpenAPI. (which clearly defines the json structure of linked entities)
  • the supported SKG-IF version is declared in the JSON-LD output @context ex: https://skg-if.github.io/context/ver/1.0.1/skg-if.json

get by id example

  "@context": [
    "https://w3id.org/skg-if/context/1.0.1/skg-if.json",
  ],
  "local_identifier": "11345813512",
  "entity_type": "product",
  "product_type": "literature",
  "titles": {
    "en": [
      "The FAIR Guiding Principles for scientific data management and stewardship"
    ]
...
// embedded authors.
  "contributions": [
    {
      "contribution": "writing – original draft",
      "role": "author",
      "rank": 1,
      "by": {
       "local_identifier": "otf___1730027051396___person-1",
        "name": "Mark Wilkinson",
        "given_name": "Mark",
        "family_name": "Wilkinson",
...
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions