Skip to content
Snippets Groups Projects
base_catalogue_metadata.yaml 1.71 KiB
Newer Older
Anjali Aggarwal's avatar
Anjali Aggarwal committed
---
# DESY Public Dataset Metadata definition © 2024 by Deutsches
# Elektronen-Synchrotron DESY is licensed under CC BY 4.0
id: https://public-data.desy.de/metadata/common
name: test
prefixes:
  linkml: https://w3id.org/linkml/
  schema: http://schema.org/
imports: [linkml:types, base_types, base_sample]
default_range: string
classes:
Anjali Aggarwal's avatar
Anjali Aggarwal committed
  ScientificMetadataCommons:
    abstract: true
    description: The common part to scientific metadata of all datasets at DESY FS
    attributes:
      revision:
        description: e.g. version of the schema used
      Sample:
        # should be overwritten by specific sample type
        range: Sample_commons
      UserMetaData:
        range: object
        description: Block of metadata that is fully under user control. No standardization enforced here!
Anjali Aggarwal's avatar
Anjali Aggarwal committed
  PetraScientificMetadata:
    is_a: ScientificMetadataCommons
    description: Adds PETRA specific metadata fields
    attributes:
      source:
        range: Source
Anjali Aggarwal's avatar
Anjali Aggarwal committed
  FlashScientificMetadata:
    is_a: ScientificMetadataCommons
    description: Adds FLASH specific metadata fields
  Source:
    description: X-ray Source properties
    attributes:
        # for the time being scicat does not support ranges in how about having either _min,_max OR just steady engery?
      photon_energy_min:
        range: EnergyMeasurement
        required: false
      photon_energy_max:
        range: EnergyMeasurement
        required: false
      photon_energy:
        range: EnergyMeasurement
        required: false
        # todo: find out how to specify that either min, max or photon_energy are required...
      machine_current:
        range: CurrentMeasurement
      machine_info:
        range: string
        description: Bunch mode etc.