Skip to content
Snippets Groups Projects
common_scientific_metadata.yaml 1.65 KiB
Newer Older
# 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
prefixes:
  linkml: https://w3id.org/linkml/
  schema: http://schema.org/
  UO: http://purl.obolibrary.org/obo/UO_
  qudt: http://qudt.org/schema/qudt/
  unit: http://qudt.org/vocab/unit/
  OM: http://www.ontology-of-units-of-measure.org/resource/om-2/
  nerc: http://vocab.nerc.ac.uk/collection/P06/current/
imports:
  - linkml:types
  - base_typedefinitions
  - sample

default_range: string


classes:

  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.
        

  ScientificMetadataCommons:
    abstract: true
   # mixin: true
    description: "The common part to scientific metadata of all datasets. Data cannot be validated directly against this class, only some derivative."
    attributes:
      revision:
        description: e.g. version of the schema used
      Sample:
        #should be overwritten by specific sample type
        range: Sample_commons