Skip to content
Snippets Groups Projects
Select Git revision
  • b2bf74854ed4e25c4eada3dbe7d4078c71c66f22
  • main default protected
  • dev protected
  • f-linkahead-rename
  • f-real-id
  • f-filesystem-import
  • f-filesystem-link
  • f-filesystem-directory
  • f-filesystem-core
  • f-filesystem-cleanup
  • f-filesystem-main
  • f-name
  • keep_changes
  • f-permission-checks-2
  • f-mysql8-tests
  • f-retrieve-history
  • t-distinct-parents
  • v8.1.0
  • v8.0.0
  • v7.0.2
  • v7.0.1
  • v7.0.0
  • v6.0.1
  • v6.0.0
  • v5.0.0
  • v4.1.0
  • v4.0.0
  • v3.0
  • v2.0.30
29 results

RELEASE_GUIDELINES.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    scifolder_cfood.yml 3.34 KiB
    # This is only a scifolder test cfood with a limited functionality.
    # The full scifolder cfood will be developed here:
    # https://gitlab.indiscale.com/caosdb/src/crawler-cfoods/scifolder-cfood
    
    ---
    metadata:
      crawler-version: 0.9.0
    ---
    Definitions:
      type: Definitions
      #include "description.yml"
    
    Data:  # name of the converter
      type: Directory
      match: (.*)
      subtree:
        DataAnalysis:  # name of the converter
          type: Directory
          match: DataAnalysis
          subtree: &template
            project_dir:  # name of the first subtree element which is a converter
              type: Directory
              match: ((?P<date>[0-9]{4,4})_)?(?P<identifier>.*)
              records:
                Project:  # this is an identifiable in this case
                  parents:
                  - Project  # not needed as the name is equivalent
                  date: $date
                  identifier: ${identifier}
          
              subtree:
                measurement:  # new name for folders on the 3rd level
                  type: Directory
                  match: (?P<date>[0-9]{4,4}-[0-9]{2,2}-[0-9]{2,2})(_(?P<identifier>.*))?
                  records:
                    Measurement:
                      date: $date
                      identifier: $identifier
                      project: $Project
                  subtree:
                    README:
                      type: MarkdownFile  # this is a subclass of converter File
                      # function signature: GeneralStore, StructureElement
                      # preprocessors: custom.caosdb.convert_values
                      match: ^README\.md$
                      # how to make match case insensitive?
                      subtree:
                        description:
                          type: TextElement
                          match_value: (?P<description>.*)
                          match_name: description
                          records:
                            Measurement:
                              description: $description
                        responsible_single:
                            type: TextElement
                            match_name: responsible
                            match_value: &person_regexp ((?P<first_name>.+) )?(?P<last_name>.+)
                            records: &responsible_records
                              Person: 
                                first_name: $first_name
                                last_name: $last_name
                              Measurement:  # this uses the reference to the above defined record
                                responsible: +$Person    # each record also implicitely creates a variable
                                                        # with the same name. The "+" indicates, that
                                                        # this will become a list entry in list property
                                                        # "responsible" belonging to Measurement.
    
                        responsible_list:
                          type: DictListElement