Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 225
    • Issues 225
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 35
    • Merge requests 35
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

On Monday, 27th March 9 a.m., the user backend of GitLab will get a reconfiguration. A new login to the web interface may be necessary.

  • nomad-labnomad-lab
  • nomad-FAIRnomad-FAIR
  • Issues
  • #986
Closed
Open
Issue created Aug 17, 2022 by Andrea Albino@aalbinoDeveloper

referencing a "definitions" file into another "definitions" file

To complete the cases showed in last comment of #954:

Keep in mind the discussion already made in #924 (closed)

We would like to support this

section: ../upload/raw/Substance.schema.archive.yaml#Substance 

as an alternative to this

section: Substance 

definitions:
  name: 'Electronic Lab Notebook schema fot MOVPE-STO'
  sections:
    Substance:
      base_section: nomad.datamodel.data.EntryData
      quantities:
        comment:
          type: str
          m_annotations:
            eln:
              component: StringEditQuantity
    MovpeSto_schema: 
      base_section: nomad.datamodel.data.EntryData
      m_annotations:
        eln:
          dict()
      sub_sections:
        materials:
          repeats: true
          section:
            m_annotations:
              eln:
                dict()
            sub_sections:
              substrate:
                repeats: true
                section: 
                  base_sections:
                    - nomad.datamodel.data.EntryData
                  m_annotations:
                    eln:
                      dict()
                  sub_sections:
                    composition:
                      repeats: true
                      section: Substance 

It would be nice to inherit from sections defined in separate files:

definitions:
  name: 'Electronic Lab Notebook schema fot MOVPE-STO'
  sections:
    Substance:
      base_section: nomad.datamodel.data.EntryData
      quantities:
        comment:
          type: str
          m_annotations:
            eln:
              component: StringEditQuantity
        chemical_name:
          type: str
          description: The name of the chemical that is typically used in literature
          m_annotations:
            eln:
              component: StringEditQuantity
    MovpeSto_schema: 
      base_section: nomad.datamodel.data.EntryData
      m_annotations:
        eln:
          dict()
      sub_sections:
        materials:
          repeats: true
          section:
            m_annotations:
              eln:
                dict()
            sub_sections:
              substrate:
                repeats: true
                section: 
                  base_sections:
                    - nomad.datamodel.data.EntryData
                  m_annotations:
                    eln:
                      dict()
                  sub_sections:
                    composition:
                      repeats: true
                      section: ../upload/raw/Substance.schema.archive.yaml#Substance 
Edited Aug 17, 2022 by Andrea Albino
Assignee
Assign to
Time tracking