Skip to content

Commit

Permalink
add gks.common
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwagner committed Nov 28, 2023
1 parent a881d8d commit 762ebf7
Show file tree
Hide file tree
Showing 26 changed files with 177 additions and 175 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "submodules/cat-vrs"]
path = submodules/cat-vrs
url = https://github.com/ga4gh/cat-vrs.git
36 changes: 17 additions & 19 deletions schema/annotation-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ type: object
strict: true

imports:
gks.core: core-source.yaml
gks.common: gks.common-source.yaml
vrs: vrs-source.yaml
catvars: catvars-source.yaml

namespaces:
gks.core: core.json#/$defs/
catvars: catvars.json#/$defs/
gks.common: gks.common.json#/$defs/
vrs: vrs.json#/$defs/

$defs:
InformationEntity:
inherits: gks.core:Entity
inherits: gks.common:Entity
description: >-
InformationEntities are abstract (non-physical) entities that are about something (i.e. they carry
information about things in the real world).
Expand All @@ -25,7 +23,7 @@ $defs:
specifiedBy:
oneOf:
- $ref: "#/$defs/Method"
- $refCurie: gks.core:IRI
- $refCurie: gks.common:IRI
description: >-
A :ref:`Method` that describes all or part of the process through which the information was
generated.
Expand All @@ -40,16 +38,16 @@ $defs:
items:
oneOf:
- $ref: "#/$defs/Document"
- $refCurie: gks.core:IRI
- $refCurie: gks.common:IRI
description: A document in which the information content is expressed.
recordMetadata:
$refCurie: gks.core:RecordMetadata
$refCurie: gks.common:RecordMetadata
heritableRequired:
- id
- type
Contribution:
type: object
inherits: gks.core:Entity
inherits: gks.common:Entity
maturity: Alpha
description: >-
The sum of all actions taken by a single agent in contributing to the creation, modification,
Expand All @@ -65,14 +63,14 @@ $defs:
type: string
format: date
activity:
$refCurie: gks.core:Coding
$refCurie: gks.common:Coding
description: >-
SHOULD describe a concept descending from the Contributor Role Ontology.
Agent:
type: object
maturity: Alpha
inherits: gks.core:Entity
inherits: gks.common:Entity
description: >-
An autonomous actor (person, organization, or computational agent) that bears some form
of responsibility for an activity taking place, for the existence of an entity, or for
Expand All @@ -94,7 +92,7 @@ $defs:
Method:
type: object
maturity: Alpha
inherits: gks.core:Entity
inherits: gks.common:Entity
description: >-
A set of instructions that specify how to achieve some objective (e.g. experimental protocols,
curation guidelines, rule sets, etc.)
Expand All @@ -106,18 +104,18 @@ $defs:
description: MUST be "Method".
isReportedIn:
oneOf:
- $refCurie: gks.core:IRI
- $refCurie: gks.common:IRI
- $ref: "#/$defs/Document"
subtype:
$refCurie: gks.core:Coding
$refCurie: gks.common:Coding
description: >-
A more specific type of entity the method represents (e.g. Variant Interpretation Guideline,
Experimental Protocol)
Document:
type: object
maturity: Alpha
inherits: gks.core:MappableEntity
inherits: gks.common:MappableEntity
description: a representation of a physical or digital document
properties:
type:
Expand Down Expand Up @@ -156,15 +154,15 @@ $defs:
default: DataItem
description: Must be "DataItem"
subtype:
$refCurie: gks.core:Coding
$refCurie: gks.common:Coding
description: >-
A specific type of data the DataItem object represents (e.g. a specimen count, a
patient weight, an allele frequency, a p-value, a confidence score)
value:
type: string
unit:
type:
$refCurie: gks.core:Coding
$refCurie: gks.common:Coding
required: [ "value" ]
Statement:
inherits: InformationEntity
Expand All @@ -190,8 +188,8 @@ $defs:
The direction of this Statement with respect to the predicate.
strength:
oneOf:
- $refCurie: gks.core:Coding
- $refCurie: gks.core:IRI
- $refCurie: gks.common:Coding
- $refCurie: gks.common:IRI
description: >-
The overall strength of support for the Statement based on all evidence assessed.
heritableRequired:
Expand Down
28 changes: 14 additions & 14 deletions schema/annotation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"type": "array",
"ordered": true,
"items": {
"$ref": "core.json#/$defs/Extension"
"$ref": "gks.common.json#/$defs/Extension"
}
},
"type": {
Expand All @@ -40,7 +40,7 @@
},
"activity": {
"description": "SHOULD describe a concept descending from the Contributor Role Ontology.",
"$ref": "core.json#/$defs/Coding"
"$ref": "gks.common.json#/$defs/Coding"
}
},
"required": [],
Expand All @@ -67,7 +67,7 @@
"type": "array",
"ordered": true,
"items": {
"$ref": "core.json#/$defs/Extension"
"$ref": "gks.common.json#/$defs/Extension"
}
},
"type": {
Expand Down Expand Up @@ -112,7 +112,7 @@
"type": "array",
"ordered": true,
"items": {
"$ref": "core.json#/$defs/Extension"
"$ref": "gks.common.json#/$defs/Extension"
}
},
"type": {
Expand All @@ -127,13 +127,13 @@
"$ref": "#/$defs/Document"
},
{
"$ref": "core.json#/$defs/IRI"
"$ref": "gks.common.json#/$defs/IRI"
}
]
},
"subtype": {
"description": "A more specific type of entity the method represents (e.g. Variant Interpretation Guideline, Experimental Protocol)",
"$ref": "core.json#/$defs/Coding"
"$ref": "gks.common.json#/$defs/Coding"
}
},
"required": [],
Expand All @@ -160,14 +160,14 @@
"type": "array",
"ordered": true,
"items": {
"$ref": "core.json#/$defs/Extension"
"$ref": "gks.common.json#/$defs/Extension"
}
},
"mappings": {
"type": "array",
"ordered": false,
"items": {
"$ref": "core.json#/$defs/Mapping"
"$ref": "gks.common.json#/$defs/Mapping"
}
},
"type": {
Expand Down Expand Up @@ -220,7 +220,7 @@
"type": "array",
"ordered": true,
"items": {
"$ref": "core.json#/$defs/Extension"
"$ref": "gks.common.json#/$defs/Extension"
}
},
"type": {
Expand All @@ -235,7 +235,7 @@
"$ref": "#/$defs/Method"
},
{
"$ref": "core.json#/$defs/IRI"
"$ref": "gks.common.json#/$defs/IRI"
}
],
"description": "A Method that describes all or part of the process through which the information was generated."
Expand All @@ -256,25 +256,25 @@
"$ref": "#/$defs/Document"
},
{
"$ref": "core.json#/$defs/IRI"
"$ref": "gks.common.json#/$defs/IRI"
}
]
},
"description": "A document in which the information content is expressed."
},
"recordMetadata": {
"$ref": "core.json#/$defs/RecordMetadata"
"$ref": "gks.common.json#/$defs/RecordMetadata"
},
"subtype": {
"description": "A specific type of data the DataItem object represents (e.g. a specimen count, a patient weight, an allele frequency, a p-value, a confidence score)",
"$ref": "core.json#/$defs/Coding"
"$ref": "gks.common.json#/$defs/Coding"
},
"value": {
"type": "string"
},
"unit": {
"type": {
"$ref": "core.json#/$defs/Coding"
"$ref": "gks.common.json#/$defs/Coding"
}
}
},
Expand Down
28 changes: 14 additions & 14 deletions schema/annotation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $defs:
type: array
ordered: true
items:
$ref: core.json#/$defs/Extension
$ref: gks.common.json#/$defs/Extension
type:
type: string
const: Contribution
Expand All @@ -37,7 +37,7 @@ $defs:
activity:
description: SHOULD describe a concept descending from the Contributor Role
Ontology.
$ref: core.json#/$defs/Coding
$ref: gks.common.json#/$defs/Coding
required: []
additionalProperties: false
Agent:
Expand All @@ -63,7 +63,7 @@ $defs:
type: array
ordered: true
items:
$ref: core.json#/$defs/Extension
$ref: gks.common.json#/$defs/Extension
type:
type: string
const: Agent
Expand Down Expand Up @@ -101,7 +101,7 @@ $defs:
type: array
ordered: true
items:
$ref: core.json#/$defs/Extension
$ref: gks.common.json#/$defs/Extension
type:
type: string
const: Method
Expand All @@ -110,11 +110,11 @@ $defs:
isReportedIn:
oneOf:
- $ref: '#/$defs/Document'
- $ref: core.json#/$defs/IRI
- $ref: gks.common.json#/$defs/IRI
subtype:
description: A more specific type of entity the method represents (e.g. Variant
Interpretation Guideline, Experimental Protocol)
$ref: core.json#/$defs/Coding
$ref: gks.common.json#/$defs/Coding
required: []
additionalProperties: false
Document:
Expand All @@ -138,12 +138,12 @@ $defs:
type: array
ordered: true
items:
$ref: core.json#/$defs/Extension
$ref: gks.common.json#/$defs/Extension
mappings:
type: array
ordered: false
items:
$ref: core.json#/$defs/Mapping
$ref: gks.common.json#/$defs/Mapping
type:
type: string
const: Document
Expand Down Expand Up @@ -189,7 +189,7 @@ $defs:
type: array
ordered: true
items:
$ref: core.json#/$defs/Extension
$ref: gks.common.json#/$defs/Extension
type:
type: string
const: DataItem
Expand All @@ -198,7 +198,7 @@ $defs:
specifiedBy:
oneOf:
- $ref: '#/$defs/Method'
- $ref: core.json#/$defs/IRI
- $ref: gks.common.json#/$defs/IRI
description: A Method that describes all or part of the process through which
the information was generated.
contributions:
Expand All @@ -212,20 +212,20 @@ $defs:
items:
oneOf:
- $ref: '#/$defs/Document'
- $ref: core.json#/$defs/IRI
- $ref: gks.common.json#/$defs/IRI
description: A document in which the information content is expressed.
recordMetadata:
$ref: core.json#/$defs/RecordMetadata
$ref: gks.common.json#/$defs/RecordMetadata
subtype:
description: A specific type of data the DataItem object represents (e.g.
a specimen count, a patient weight, an allele frequency, a p-value, a confidence
score)
$ref: core.json#/$defs/Coding
$ref: gks.common.json#/$defs/Coding
value:
type: string
unit:
type:
$ref: core.json#/$defs/Coding
$ref: gks.common.json#/$defs/Coding
required:
- id
- type
Expand Down
1 change: 0 additions & 1 deletion schema/catvars-source.yaml

This file was deleted.

1 change: 0 additions & 1 deletion schema/catvars.json

This file was deleted.

1 change: 1 addition & 0 deletions schema/catvrs-source.yaml
1 change: 1 addition & 0 deletions schema/catvrs.json
1 change: 0 additions & 1 deletion schema/core-source.yaml

This file was deleted.

1 change: 0 additions & 1 deletion schema/core.json

This file was deleted.

4 changes: 2 additions & 2 deletions schema/defs/annotation/Agent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ An autonomous actor (person, organization, or computational agent) that bears so

**Information Model**

Some Agent attributes are inherited from :ref:`gks.core:Entity`.
Some Agent attributes are inherited from :ref:`gks.common:Entity`.

.. list-table::
:class: clean-wrap
Expand All @@ -29,7 +29,7 @@ Some Agent attributes are inherited from :ref:`gks.core:Entity`.
- 0..1
- A free-text description of the entity.
* - extensions
- `Extension <core.json#/$defs/Extension>`_
- `Extension <gks.common.json#/$defs/Extension>`_
- 0..m
-
* - type
Expand Down
Loading

0 comments on commit 762ebf7

Please sign in to comment.