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 215
    • Issues 215
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • 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
  • nomad-labnomad-lab
  • nomad-FAIRnomad-FAIR
  • Issues
  • #924
Closed
Open
Issue created Jun 23, 2022 by Andrea Albino@aalbinoDeveloper

Linking to schemas in different yaml files

When I drop the following three files, I get the error:

Unhandled Rejection (TypeError): Cannot read properties of undefined (reading '../upload/raw/chemical_schema.archive.yaml')

I both upload the files and their content below:

CHEMICAL.archive.yaml

chemical_schema.archive.yaml

movpe_app-def_data.archive.yaml

definitions:
  name: 'Electronic Lab Notebook schema fot MOVPE-STO'
  sections:  # Schemas consist of section definitions
    MovpeSto_schema:  # This is the name of the first section
      # Inheriting it from EntryData, makes this section a possible
      # EntryArchive.data sub-section
      base_section: nomad.datamodel.data.EntryData
      sub_sections:
        precursor_sample:
          section:
            quantities:
              chemicals:
                type: ../upload/raw/chemical_schema.archive.yaml#definitions/section_definitions/0
                shape: ['*']
                m_annotations:
                  eln:
                    component: ReferenceEditQuantity
data:  
  m_def: MovpeSto_schema 
  precursor_sample:
    chemicals:
      - "../upload/raw/CHEMICAL.archive.yaml#data"
definitions:
  name: 'Chem'
  sections:  # Schemas consist of section definitions
    Chemical:
      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
data:
  m_def: ../upload/raw/chemical_schema.archive.yaml#/definitions/section_definitions/0
  chemical_name: Cu2Se
Edited Jun 23, 2022 by Andrea Albino
Assignee
Assign to
Time tracking