Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/news/chemical-identfiers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Added:**

* Added property `chemicalIdentfiers` to components for inclusion of, i.e., cas, InChi, or InChiKey identifiers.
15 changes: 15 additions & 0 deletions examples/file_schemas/svgdigitizer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,21 @@ system:
unit: volume percent
purity:
grade: analytical grade # qualitative description of the purity commonly used in the community
- name: BMPyr-TFSI
chemicalIdentifiers:
cas: 223437-11-4
inchi: InChI=1S/C9H20N.C2F6NO4S2/c1-3-4-7-10(2)8-5-6-9-10;3-1(4,5)14(10,11)9-15(12,13)2(6,7)8/h3-9H2,1-2H3;/q+1;-1
inchikey: InChIKey=HSLXOARVFIWOQF-UHFFFAOYSA-N
proportion:
unit: volume percent
value: 100
source:
supplier: MERCK/emd
purity:
grade: ultrapure
purity:
refinement: vacuum dried at 120 °C
type: solvent
- name: H2SO4
type: acid
source:
Expand Down
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[project]
[workspace]
channels = ["conda-forge"]
name = "metadata-schema"
platforms = ["linux-64", "osx-64", "win-64"]
Expand Down
25 changes: 25 additions & 0 deletions schemas/general/chemical_identifiers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/echemdb/metadata-schema/main/schemas/general/component.json",
"allOf": [{ "$ref": "#/definitions/ChemicalIdentifiers" }],
"definitions": {
"ChemicalIdentifiers": {
"type": "object",
"additionalProperties": true,
"properties": {
"cas": {
"type": "string",
"description": "The CAS identifier of the chemical."
},
"inchi": {
"type": "string",
"description": "The InChi of the chemical"
},
"inchikey": {
"type": "string",
"description": "The InChiKey of the chemical"
}
}
}
}
}
3 changes: 3 additions & 0 deletions schemas/general/component.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"type": "string",
"description": "A unique identifier."
},
"chemicalIdentifiers": {
"$ref": "../general/chemical_identifiers.json#/definitions/ChemicalIdentifiers"
},
"concentration": {
"$ref": "../general/quantity.json#/definitions/Quantity"
},
Expand Down