dandi / dandi-archive

DANDI API server and Web app
https://dandiarchive.org
14 stars 10 forks source link

DOI: should be added into metadata record upon Publish #182

Closed yarikoptic closed 3 years ago

yarikoptic commented 3 years ago

just a dedicated issue extract from https://github.com/dandi/dandi-api/pull/175#discussion_r600006179

waxlamp commented 3 years ago

@dchiquito, what's the status of this issue?

dchiquito commented 3 years ago

curl -X GET "https://api.dandiarchive.org/api/dandisets/000029/versions/0.210730.1538/" -H "accept: application/json"

{
  "id": "DANDI:000029/0.210730.1538",
  "doi": "10.48324/dandi.000029/0.210730.1538",
  "url": "https://dandiarchive.org/dandiset/000029/0.210730.1538",
  "name": "Test dataset for development purposes",
  "about": [],
  "access": [
    {
      "status": "dandi:OpenAccess",
      "contactPoint": {
        "schemaKey": "ContactPoint"
      }
    }
  ],
  "license": [
    "spdx:CC-BY-4.0"
  ],
  "version": "0.210730.1538",
  "@context": "https://raw.githubusercontent.com/dandi/schema/master/releases/0.4.4/context.json",
  "citation": "Last, First (2021) Test dataset for development purposes (Version 0.210730.1538) [Data set]. DANDI archive. https://dandiarchive.org/dandiset/000029/0.210730.1538",
  "keywords": [
    "development"
  ],
  "protocol": [],
  "schemaKey": "Dandiset",
  "identifier": "DANDI:000029",
  "repository": "https://dandiarchive.org/",
  "contributor": [
    {
      "name": "Last, First",
      "roleName": [
        "dcite:Author",
        "dcite:ContactPerson"
      ],
      "schemaKey": "Person",
      "identifier": "0000-0003-3456-2493",
      "affiliation": [
        {
          "name": "An Institution",
          "roleName": [],
          "schemaKey": "Affiliation",
          "contactPoint": [],
          "includeInCitation": false
        }
      ],
      "includeInCitation": true
    }
  ],
  "description": "Should be ignored by regular mortals, and not relied upon being static or ever correct.\nДолжно быть введено на Английском, но почему бы нам не проверить всю эту кухню \nΔЙקم๗あ\n",
  "publishedBy": {
    "id": "urn:uuid:6cc410d2-f1a0-45a5-95ca-19c0ed7e12ac",
    "name": "DANDI publish",
    "endDate": "2021-07-30T15:38:57.319324",
    "schemaKey": "PublishActivity",
    "startDate": "2021-07-30T15:38:57.319324",
    "wasAssociatedWith": [
      {
        "id": "urn:uuid:c8b633ff-c3b8-478c-b7eb-858093ccbdbb",
        "name": "DANDI API",
        "version": "0.1.0",
        "schemaKey": "Software",
        "identifier": "RRID:SCR_017571"
      }
    ]
  },
  "studyTarget": [],
  "assetsSummary": {
    "species": [
      {
        "name": "House mouse",
        "schemaKey": "SpeciesType",
        "identifier": "http://purl.obolibrary.org/obo/NCBITaxon_10090"
      },
      {
        "name": "Brown rat",
        "schemaKey": "SpeciesType",
        "identifier": "http://purl.obolibrary.org/obo/NCBITaxon_10116"
      }
    ],
    "approach": [
      {
        "name": "electrophysiological approach",
        "schemaKey": "ApproachType"
      },
      {
        "name": "behavioral approach",
        "schemaKey": "ApproachType"
      }
    ],
    "schemaKey": "AssetsSummary",
    "dataStandard": [
      {
        "name": "Neurodata Without Borders (NWB)",
        "schemaKey": "StandardsType",
        "identifier": "RRID:SCR_015242"
      }
    ],
    "numberOfBytes": 20716130,
    "numberOfFiles": 5,
    "numberOfSubjects": 4,
    "variableMeasured": [
      "BehavioralEvents",
      "ElectrodeGroup",
      "Units"
    ],
    "measurementTechnique": [
      {
        "name": "surgical technique",
        "schemaKey": "MeasurementTechniqueType"
      },
      {
        "name": "behavioral technique",
        "schemaKey": "MeasurementTechniqueType"
      },
      {
        "name": "spike sorting technique",
        "schemaKey": "MeasurementTechniqueType"
      }
    ]
  },
  "datePublished": "2021-07-30T15:38:57.319324",
  "schemaVersion": "0.4.4",
  "ethicsApproval": [],
  "wasGeneratedBy": [],
  "relatedResource": [],
  "manifestLocation": [
    "https://dandiarchive.s3.amazonaws.com/dandisets/000029/0.210730.1538/assets.yaml"
  ]
}

This has been done.