Skip to content

Commit

Permalink
bump schema version to 0.2.0 and new artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
cpauvert committed Jul 10, 2023
1 parent 5bb4ba6 commit ba17321
Show file tree
Hide file tree
Showing 14 changed files with 600 additions and 50 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [0.2.0] - 2023-07-10

### Changed

- Breaking: Ontology-related slots are constraint by regular expression ([#8](https://github.com/FAIR-MI/miiid-schema/issues/8))

### Added

- Add recommended properties (in increasing constraint order: `sequence_id`, `env_exp`, `participant_outcomes`) ([#12](https://github.com/FAIR-MI/miiid-schema/issues/12))

## [0.1.1] - 2023-07-05

### Added
Expand All @@ -18,6 +28,8 @@
:seedling: Initial release.


[0.2.0]: https://fair-mi.github.io/miiid-schema/releases/tag/v0.2.0

[0.1.1]: https://fair-mi.github.io/miiid-schema/releases/tag/v0.1.1

[0.1.0]: https://fair-mi.github.io/miiid-schema/releases/tag/v0.1.0
Binary file modified project/excel/miiid_schema.xlsx
Binary file not shown.
3 changes: 3 additions & 0 deletions project/graphql/miiid_schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ type IntermicrobialInteraction
description: String
participants: [String]!
taxId: [NCBITaxId]!
sequenceId: [SequenceId]
evidenceType: String!
methodType: [MethodType]
reference: String!
participantOutcomes: [ParticipantOutcome]
}

type IntermicrobialInteractionCollection
Expand Down
39 changes: 38 additions & 1 deletion project/jsonld/miiid_schema.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
{
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2023-06-20T17:04:24",
"generation_date": "2023-07-10T22:44:48",
"source": "miiid_schema.yaml"
},
"@context": {
"EDAM_DATA": {
"@id": "http://edamontology.org/data_",
"@prefix": true
},
"EDAM_TOPIC": {
"@id": "http://edamontology.org/topic_",
"@prefix": true
},
"GENEPIO": {
"@id": "http://purl.obolibrary.org/obo/GENEPIO_",
"@prefix": true
},
"NCIT": {
"@id": "http://purl.obolibrary.org/obo/NCIT_",
"@prefix": true
},
"OBI": {
"@id": "http://purl.obolibrary.org/obo/OBI_",
"@prefix": true
},
"WIKIDATA_PROPERTY": "https://www.wikidata.org/prop/",
"linkml": "https://w3id.org/linkml/",
"miiid": "https://w3id.org/FAIR-MI/miiid/",
"schema": "http://schema.org/",
"skos": "http://www.w3.org/2004/02/skos/core#",
"@vocab": "https://w3id.org/FAIR-MI/miiid/",
"description": {
"@id": "schema:description"
Expand All @@ -17,9 +38,25 @@
"entries": {
"@type": "@id"
},
"method_type": {
"@context": {
"@vocab": "@null",
"text": "skos:notation",
"description": "skos:prefLabel",
"meaning": "@id"
}
},
"name": {
"@id": "schema:name"
},
"participant_outcomes": {
"@context": {
"@vocab": "@null",
"text": "skos:notation",
"description": "skos:prefLabel",
"meaning": "@id"
}
},
"tax_id": {
"@type": "xsd:integer"
},
Expand Down
210 changes: 206 additions & 4 deletions project/jsonld/miiid_schema.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"https://FAIR-MI.github.io/miiid-schema"
],
"id": "https://w3id.org/FAIR-MI/miiid-schema",
"version": "0.2.0",
"imports": [
"linkml:types"
],
Expand All @@ -26,6 +27,26 @@
{
"prefix_prefix": "WIKIDATA_PROPERTY",
"prefix_reference": "https://www.wikidata.org/prop/"
},
{
"prefix_prefix": "EDAM_TOPIC",
"prefix_reference": "http://edamontology.org/topic_"
},
{
"prefix_prefix": "EDAM_DATA",
"prefix_reference": "http://edamontology.org/data_"
},
{
"prefix_prefix": "NCIT",
"prefix_reference": "http://purl.obolibrary.org/obo/NCIT_"
},
{
"prefix_prefix": "OBI",
"prefix_reference": "http://purl.obolibrary.org/obo/OBI_"
},
{
"prefix_prefix": "GENEPIO",
"prefix_reference": "http://purl.obolibrary.org/obo/GENEPIO_"
}
],
"default_prefix": "miiid",
Expand Down Expand Up @@ -54,6 +75,43 @@
"minimum_value": 2,
"@type": "TypeDefinition"
},
{
"name": "SequenceId",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/SequenceId",
"description": "Sequence identifier to a (preferrably INSDC) database",
"examples": [
{
"value": "FJ627005.1",
"@type": "Example"
},
{
"value": "NZ_CP022412.2",
"@type": "Example"
}
],
"from_schema": "https://w3id.org/FAIR-MI/miiid-schema",
"exact_mappings": [
"EDAM_DATA:1063"
],
"base": "str",
"uri": "http://www.w3.org/2001/XMLSchema#string",
"@type": "TypeDefinition"
},
{
"name": "EnvExpId",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/EnvExpId",
"description": "Term from the Environment Ontology following by their machine-actionable identifier.",
"examples": [
{
"value": "leaf [ENVO:0025034]",
"@type": "Example"
}
],
"from_schema": "https://w3id.org/FAIR-MI/miiid-schema",
"base": "str",
"uri": "http://www.w3.org/2001/XMLSchema#string",
"@type": "TypeDefinition"
},
{
"name": "string",
"definition_uri": "https://w3id.org/linkml/String",
Expand Down Expand Up @@ -310,6 +368,90 @@
"@type": "TypeDefinition"
}
],
"enums": [
{
"name": "MethodType",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/MethodType",
"description": "List of methods used to determine interactions",
"from_schema": "https://w3id.org/FAIR-MI/miiid-schema",
"permissible_values": [
{
"text": "simulation",
"description": "Any type of biological computational model experiments",
"meaning": "EDAM_TOPIC:3524",
"examples": [
{
"value": "generalized Lotka-Volterra model"
},
{
"value": "genome-scale metabolic model"
}
]
},
{
"text": "microscopy",
"description": "Any type of imaging-related experiments",
"meaning": "EDAM_TOPIC:3382",
"examples": [
{
"value": "co-localization with fluorescent markers"
},
{
"value": "assisted motility"
}
]
},
{
"text": "cultivation",
"description": "Any laboratory procedure for growing microorganisms",
"meaning": "NCIT:C25300",
"examples": [
{
"value": "continuous co-culture in bioreactor"
},
{
"value": "co-plating on solid media"
}
]
},
{
"text": "sample",
"description": "Any type of experiments based on the analysis of a sample",
"meaning": "OBI:0000659",
"examples": [
{
"value": "co-occurrences drawn from analyses of abundances obtained from in situ or in vivo sampling"
}
]
}
]
},
{
"name": "ParticipantOutcome",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/ParticipantOutcome",
"description": "Outcome indicating how each participant was affected",
"from_schema": "https://w3id.org/FAIR-MI/miiid-schema",
"permissible_values": [
{
"text": "not_affected",
"description": "usually encoded with numerical 0"
},
{
"text": "positively",
"description": "usually encoded with +1"
},
{
"text": "negatively",
"description": "usually encoded with -1"
},
{
"text": "not_applicable",
"description": "The information is inappropriate to report, this can indicate that the standard itself fails to model or represent the information appropriately",
"meaning": "GENEPIO:0001619"
}
]
}
],
"slots": [
{
"name": "id",
Expand Down Expand Up @@ -391,6 +533,21 @@
"required": true,
"@type": "SlotDefinition"
},
{
"name": "sequence_id",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/sequence_id",
"description": "Accession to the matching sequence data (e.g., genome, marker gene sequence).",
"from_schema": "https://w3id.org/FAIR-MI/miiid-schema",
"slot_uri": "https://w3id.org/FAIR-MI/miiid/sequence_id",
"multivalued": true,
"owner": "IntermicrobialInteraction",
"domain_of": [
"IntermicrobialInteraction"
],
"range": "SequenceId",
"recommended": true,
"@type": "SlotDefinition"
},
{
"name": "evidence_type",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/evidence_type",
Expand All @@ -403,6 +560,22 @@
],
"range": "string",
"required": true,
"pattern": "[^\\:\\n\\r]+\\:[^\\:\\n\\r]+",
"@type": "SlotDefinition"
},
{
"name": "method_type",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/method_type",
"description": "One or several of the types of methods used to determine the interaction.",
"from_schema": "https://w3id.org/FAIR-MI/miiid-schema",
"slot_uri": "https://w3id.org/FAIR-MI/miiid/method_type",
"multivalued": true,
"owner": "IntermicrobialInteraction",
"domain_of": [
"IntermicrobialInteraction"
],
"range": "MethodType",
"recommended": true,
"@type": "SlotDefinition"
},
{
Expand All @@ -422,6 +595,32 @@
"required": true,
"@type": "SlotDefinition"
},
{
"name": "env_exp",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/env_exp",
"description": "Biome term (from the Environmental Ontology) used in the experiment. Engineered ecosystems such as bioreactors, agar plates or computational models use N/A.",
"from_schema": "https://w3id.org/FAIR-MI/miiid-schema",
"slot_uri": "https://w3id.org/FAIR-MI/miiid/env_exp",
"range": "EnvExpId",
"recommended": true,
"pattern": "[^\\:\\n\\r]+\\:[^\\:\\n\\r]+",
"@type": "SlotDefinition"
},
{
"name": "participant_outcomes",
"definition_uri": "https://w3id.org/FAIR-MI/miiid/participant_outcomes",
"description": "Outcomes of each of the participants described in the interaction when known.",
"from_schema": "https://w3id.org/FAIR-MI/miiid-schema",
"slot_uri": "https://w3id.org/FAIR-MI/miiid/participant_outcomes",
"multivalued": true,
"owner": "IntermicrobialInteraction",
"domain_of": [
"IntermicrobialInteraction"
],
"range": "ParticipantOutcome",
"recommended": true,
"@type": "SlotDefinition"
},
{
"name": "intermicrobialInteractionCollection__entries",
"description": "An IntermicrobialInteraction object",
Expand Down Expand Up @@ -469,8 +668,11 @@
"description",
"participants",
"tax_id",
"sequence_id",
"evidence_type",
"reference"
"method_type",
"reference",
"participant_outcomes"
],
"slot_usage": {},
"class_uri": "https://w3id.org/FAIR-MI/miiid/IntermicrobialInteraction",
Expand Down Expand Up @@ -502,9 +704,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "miiid_schema.yaml",
"source_file_date": "2023-06-20T16:44:02",
"source_file_size": 2699,
"generation_date": "2023-06-20T17:04:24",
"source_file_date": "2023-07-10T22:43:36",
"source_file_size": 5975,
"generation_date": "2023-07-10T22:44:49",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/miiid_schema.context.jsonld",
Expand Down
Loading

0 comments on commit ba17321

Please sign in to comment.