Skip to content

Class: Data Source (DataSource)

Query configuration for specifying a source from which data are pulled.

URI: anvil:DataSource

classDiagram class DataSource click DataSource href "../DataSource" Thing <|-- DataSource click Thing href "../Thing" DataSource : external_id DataSource : google_data_project DataSource : id DataSource : parameterized_query DataSource : snapshot_dataset DataSource : snapshot_id DataSource : table

Inheritance

Slots

Name Cardinality and Range Description Inheritance
snapshot_id 0..1
String
The Terra Data Repository Snapshot ID direct
google_data_project 0..1
String
The Google Data Project needed to query this snapshot in BigQuery direct
snapshot_dataset 0..1
String
The Dataset within BigQuery where the table can be queried direct
table 0..1
String
The table in the dataset that contains the row of interest direct
parameterized_query 0..1
String
A parameterized query that contains the primary key fields and can be used to... direct
id 1
String
ID associated with a class Thing
external_id *
Uriorcurie
Other identifiers for this entity, eg, from the submitting study or in system... Thing

Usages

used by used in type used
SourceData data_source range DataSource

Identifier and Mapping Information

Schema Source

  • from schema: https://anvilproject.org/acr-harmonized-data-model

Mappings

Mapping Type Mapped Value
self anvil:DataSource
native anvil:DataSource

LinkML Source

Direct

name: DataSource
description: Query configuration for specifying a source from which data are pulled.
title: Data Source
from_schema: https://anvilproject.org/acr-harmonized-data-model
is_a: Thing
slots:
- snapshot_id
- google_data_project
- snapshot_dataset
- table
- parameterized_query

Induced

name: DataSource
description: Query configuration for specifying a source from which data are pulled.
title: Data Source
from_schema: https://anvilproject.org/acr-harmonized-data-model
is_a: Thing
attributes:
  snapshot_id:
    name: snapshot_id
    description: The Terra Data Repository Snapshot ID.
    title: Snapshot ID
    from_schema: https://anvilproject.org/acr-harmonized-data-model
    rank: 1000
    alias: snapshot_id
    owner: DataSource
    domain_of:
    - DataSource
    range: string
  google_data_project:
    name: google_data_project
    description: The Google Data Project needed to query this snapshot in BigQuery.
    title: Google Data Project
    from_schema: https://anvilproject.org/acr-harmonized-data-model
    rank: 1000
    alias: google_data_project
    owner: DataSource
    domain_of:
    - DataSource
    range: string
  snapshot_dataset:
    name: snapshot_dataset
    description: The Dataset within BigQuery where the table can be queried.
    title: Snapshot Dataset
    from_schema: https://anvilproject.org/acr-harmonized-data-model
    rank: 1000
    alias: snapshot_dataset
    owner: DataSource
    domain_of:
    - DataSource
    range: string
  table:
    name: table
    description: The table in the dataset that contains the row of interest.
    title: Table
    from_schema: https://anvilproject.org/acr-harmonized-data-model
    rank: 1000
    alias: table
    owner: DataSource
    domain_of:
    - DataSource
    range: string
  parameterized_query:
    name: parameterized_query
    description: A parameterized query that contains the primary key fields and can
      be used to select specific rows. This should be formatted according to (https://cloud.google.com/bigquery/docs/parameterized-queries)[BigQuery
      instructions], including using named parameters.
    title: Parameterized Query
    from_schema: https://anvilproject.org/acr-harmonized-data-model
    rank: 1000
    alias: parameterized_query
    owner: DataSource
    domain_of:
    - DataSource
    range: string
  id:
    name: id
    description: ID associated with a class
    title: ID
    from_schema: https://anvilproject.org/acr-harmonized-data-model
    rank: 1000
    identifier: true
    alias: id
    owner: DataSource
    domain_of:
    - Thing
    range: string
    required: true
    multivalued: false
  external_id:
    name: external_id
    description: Other identifiers for this entity, eg, from the submitting study
      or in systems link dbGaP
    title: External Identifiers
    from_schema: https://anvilproject.org/acr-harmonized-data-model
    rank: 1000
    alias: external_id
    owner: DataSource
    domain_of:
    - Thing
    range: uriorcurie
    required: false
    multivalued: true