Skip to main content

OARepo rdm records data model

Project description

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

Changes

Version 2.0.0 (released 2020-08-25)

  • Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oarepo_rdm_records-3.0.3.tar.gz (70.5 kB view hashes)

Uploaded Source

Built Distribution

oarepo_rdm_records-3.0.3-py3-none-any.whl (81.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page