Skip to content

Latest commit

 

History

History
99 lines (61 loc) · 3.35 KB

File metadata and controls

99 lines (61 loc) · 3.35 KB
title API
parent FAQs
layout default
nav_order 2

FAQs: API

There is a problem on the OpenAPI specifications

Where are the JSON-LD standard @id and @type ?

  • local_identifier and entity_type are alias is defined in context

https://w3id.org/skg-if/context/skg-if.json

 "local_identifier": "@id",

 "entity_type": {
      "@id": "@type",
      "@type": "@vocab"
    },

Must I embed Agent (person) entities in the products/{local_identifier} operation OpenAPI response ?

Multiple outputs are actually possible and compatible with JSON-LD (embed, link an id)

The SKG-IF OpenAPI provides one JSON format representation with embedded entities. This allows, with a single call, to retrieve for example : a product along with its authors and its journal (Venue), like we have in standard JSON APIs ( crossref, openalex, openaire, datacite etc…). This is only a choice for “convenient” usage of the API. We suggest you use this output However, you can also just use an id and not an embedded the entity.

How identifier schemes (ROR, DOI, ORCID …) are defined ?

How can I include a specific product sub type ?

Example is :

{
   "type": {
   "class": "http://purl.org/spar/fabio/Preprint",
   "labels": {
           "en": "preprint"
   },
   "defined_in": "http://purl.org/spar/fabio”
}

How can I integrate an agent entity with the API

  • The agent entity is present in the /products operations in the field contributions.by
  • The agent can also be implemented with organisations/ and persons/ operations.
  • There is no agents/ operation

My system does not have permanent local_identifiers for organisations and persons. What can I do ?

Should I implement all search filters ?

  • No implement only the filters you can.

  • Each filter implementation is optional. If the operation does not implement one of the requested filters it must return an HTTP 422 response. see “Get list of products” operation documentation.

Is content-negotiation supported by SKG-IF ?

What is the naming convention for search filters ?

  • attribute filters : data model fields structure separated with dot.
  • convenient filters : "cf." prefix.

How can I validate that my local server implementation is compliant with the SKG-IF OpenAPI ?

How to extend the API for a model extension ?