Skip to content

MOD API should also retrieve scheme registries (aka terminology collections) #94

Description

@nichtich

Add getRegistries to mod-api-provider.js to retrieve "terminology collections" (aka JSKOS Scheme Registries). Use data from endpoint https://terminology.services.base4nfdi.de/api-gateway/ for testing. Extend documentation. Two modes of operation:

Temporary workaround for the second may be getting all collections and filtering in the client (slow).

The returned data is not strictly defined, as requested here but a custom format to be mapped to JSKOS Scheme Registries. Expected output:

{
  "type": ["http://www.w3.org/ns/dcat#Catalog"],
  "types": [ { "uri": "http://www.w3.org/2004/02/skos/core#ConceptScheme" } ],
  "prefLabel": { "en": "...label..." },
  "scopeNote": { "en": [ "...description..." ] },
  "schemes": [ 
    { "uri": "...", "prefLabel": { "und": "...label..." } },
    ... 
  ],
  "creator": [ { "uri": "..." } ],
  "contributor": [ { "uri": "..." }, ... ]
}

Notes:

  • creator and collaborators in current data cannot be mapped yet, because they are not URIs. Give a warning instead.
  • Filter out terminologies with uri not being a valid URI and emit a warning

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions