microbiomedata / nmdc-schema

National Microbiome Data Collaborative (NMDC) unified data model
https://microbiomedata.github.io/nmdc-schema/
Creative Commons Zero v1.0 Universal
27 stars 8 forks source link

SQLite conversion ERROR:root:UNKNOWN range base: None for gold_sample_identifiers = external identifier #501

Open turbomam opened 1 year ago

turbomam commented 1 year ago
poetry run linkml-sqldb dump \
            --db data_7.db \
            --target-class Database \
            --schema src/schema/nmdc.yaml data_7.json
turbomam commented 1 year ago

As in #500, changing external_database_identifiers's range from external identifier to uriorcurie eliminates this non-terminating "error"

turbomam commented 1 year ago

But the change mentioned above does not solve the terminating errors

turbomam commented 1 year ago

https://microbiomedata.github.io/nmdc-schema/was_informed_by/

src/schema/prov.yaml says

classes:

  Activity:
    description: "a provence-generating activity"
    slots:
      - id
      - name
      - started_at_time
      - ended_at_time
      - was_informed_by
      - was_associated_with
      - used
    mappings:
      - prov:Activity

and

  was_associated_with:
    range: Agent
    mappings:
      - prov:wasAssociatedWith

but src/schema/workflow_execution_activity.yaml says

classes:
  WorkflowExecutionActivity:
    aliases:
      - analysis
    comments:
      - Each instance of this (and all other) activities is  a distinct run with start and stop times, potentially with different inputs and outputs
    is_a: Activity
    in_subset:
      - workflow subset
    description: >-
      Represents an instance of an execution of a particular workflow
    alt_descriptions:
      embl.ena: >-
        An analysis contains secondary analysis results derived from sequence reads (e.g. a genome assembly)
    slots:
      - raw_type
      - execution_resource
      - git_url
      - has_input
      - has_output
      - part_of
      - type # custom slot that specifies object type
    slot_usage:
      was_associated_with:
        required: false
        description: >-
          the agent/entity associated with the generation of the file
        range: WorkflowExecutionActivity
        inlined: false # allow for strings of IDs
turbomam commented 1 year ago