Skip to content

Instantly share code, notes, and snippets.

@andrewmagill
Created July 25, 2016 22:28
Show Gist options
  • Save andrewmagill/1e5b4623b83a90eab9fc1909b1ccc39a to your computer and use it in GitHub Desktop.
Save andrewmagill/1e5b4623b83a90eab9fc1909b1ccc39a to your computer and use it in GitHub Desktop.

Revisions

  1. Andrew Magill created this gist Jul 25, 2016.
    102 changes: 102 additions & 0 deletions rels.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,102 @@

    Relationships between IDS Objects:

    ----------------------------

    Project to Specimen

    [Contains, <specimen_id>] (alternate option: HasPart)

    Specimen to Project

    [ContainedBy, <project_id>] (alternate option: IsContainedBy, IsPartOf)

    ----------------------------

    Specimen to Process

    [PrecursorTo, <process_id>] (alternate options: IsPrecursorTo, IsSourceOf, HasDerivative)

    Process to Specimen

    [IsDerivedFrom, <specimen_id>]

    ----------------------------

    Process to Process

    [PrecursorTo, <process_id>] (alternate options: IsPrecursorTo, IsSourceOf, HasDerivative)

    Reciprocal

    [IsDerivedFrom, <process_id>]

    ----------------------------

    Process to Data

    [HasInput, <data_id>] (also: HasOutput)

    Data to Process

    [IsInputTo, <process_id>] (also: IsOutputOf)

    ----------------------------

    Dataset to Data

    [Contains, <data_id>] (alternate option: HasPart)

    Data to Dataset

    [ContainedBy, <dataset_id>] (alternate option: IsContainedBy, IsPartOf)

    ----------------------------

    Project to Dataset

    [Contains, <dataset_id>] (alternate option: HasPart)

    Dataset to Project

    [ContainedBy, <project_id>] (alternate option: IsPartOf)

    ----------------------------

    Project to Data

    [Contains, <data_id>] (alternate option: HasPart)

    Data to Project

    [ContainedBy, <project_id>] (alternate option: IsContainedBy, IsPartOf)

    * I'm assuming the data is associated with the project directly, and temporarily (may be later
    associated with a process), and that the data does not specifically describe the project.

    ----------------------------

    Project to Process

    [Contains, <process_id>] (alternate option: HasPart)

    Process to Project

    [ContainedBy, <project_id>] (alternate option: IsContainedBy, IsPartOf)

    * I'm assuming the process will later be associated to a Specimen.

    ----------------------------

    namespace = 'idsvc'

    key = '@idsvc:rel:type' or '@idsvc:rel_type' or '@idsvc:type'?

    example:

    Relationships = [
    {
    '@idsvc:type': 'Contains',
    '@id': '866268035673231846-242ac11f-0001-012'
    }
    ]