oarepo-rdm-records

OARepo rdm records data model


License
MIT
Install
pip install oarepo-rdm-records==1.0.0

Documentation

OARepo rdm records model

image image image image

Instalation

    pip install oarepo-rdm-records

Usage

The library provides a modified InvenioRDMRecords data model for OARepo resource records.

JSON Schema

Add this package to your dependencies and use it via $ref in json schema as "[server]/dataset-v2.0.0.json#/definitions/DataSet". Elastic Search mapping is handled automatically via Eleastic Search templates.

Usage example

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "allOf": [
    {
      "$ref": "dataset-v2.0.0.json#/definitions/DataSet"
    }
  ]
}
{
  "type": "object",
  "properties": {
    "these": {
        "titles" : {"cs": "neco", "en": "something"}
        }
  }
}

Modified fields of data model

titles
  • fully required oarepo multilingual data type
descriptions
  • fully optional oarepo multilingual data type
subjects
  • subject is required oarepo multilingual data type
locations
  • description is optional oarepo multilingual data type
licenses
  • license is required oarepo multilingual data type