返回数据规范

JSON Schema

下载文件

完整字段说明:一次查看全部字段含义、类型与示例,也可将此链接提供给 AI。 Markdown

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://isynth.ichemdata.com/schemas/compact-reaction.schema.json",
  "title": "iSynth Reaction Data Specification 1.0",
  "description": "One complete experiment: Reaction.steps are chemical transformations; each Step.stages contains chronological physical stages with their new charges, conditions and duration. Step owns products and workup. JSON and JSONL use this same schema.",
  "x-status": "released",
  "x-version": "1.0",
  "x-target-schema-version": "isynth.reaction/1.0",
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "enum": [
        "isynth.reaction/1.0"
      ],
      "default": "isynth.reaction/1.0",
      "description": "Optional input format identifier; defaults to isynth.reaction/1.0 when omitted."
    },
    "reaction_identifier": {
      "$ref": "#/$defs/NonBlankText",
      "description": "Optional source-reported experiment, compound or table-entry identifier, e.g. 3a, Table 2 Entry 5 or EXP-001. Omit when unreported; a deterministic identifier is generated automatically."
    },
    "provenance": {
      "$ref": "#/$defs/Provenance",
      "description": "Source publication DOI and optional source notes."
    },
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Step"
      },
      "minItems": 1,
      "description": "Synthetic transformations in chronological order, delimited by source evidence rather than inferred mechanisms or intermediate isolability."
    },
    "note": {
      "$ref": "#/$defs/NonBlankText",
      "description": "Experiment-level details not covered by the other fields, such as reasons for deviations from the planned procedure or context for the overall outcome."
    },
    "parameters": {
      "type": "object",
      "description": "Other experiment information as named values, e.g. {\"project_code\":\"CAT-01\"}. Put additional reaction conditions in conditions.parameters."
    }
  },
  "required": [
    "steps"
  ],
  "additionalProperties": false,
  "$defs": {
    "NonBlankText": {
      "type": "string",
      "minLength": 1,
      "pattern": "\\S"
    },
    "QuantityText": {
      "type": "string",
      "minLength": 1,
      "pattern": "\\S",
      "description": "Source-reported quantity or qualitative expression; preserve units, ranges and uncertainty. Spacing around units and comparators is normalized automatically."
    },
    "CasNumber": {
      "type": "string",
      "pattern": "^[1-9]\\d{1,6}-\\d{2}-\\d$",
      "description": "CAS Registry Number validated with its check digit, e.g. 3375-31-3."
    },
    "Measurement": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "yield",
            "conversion",
            "ee",
            "de",
            "er",
            "dr",
            "selectivity",
            "purity",
            "amount",
            "observation"
          ],
          "examples": [
            "ee"
          ],
          "description": "yield: Quantitative yield relative to the reported theoretical basis, e.g. 85 %, <5 % or 80–85 %. Record determination method in method (e.g. isolated, 1H NMR, GC, HPLC) and calculation basis in note. Qualitative findings use observation. conversion: Conversion: fraction of an input reactant consumed, e.g. 90 %; distinct from yield. ee: Enantiomeric excess: difference in composition of an enantiomer pair, e.g. 95 %. Preserve any reported sign; put excess-isomer or sign attribution in note and known comparison terms in basis. de: Diastereoisomer excess: difference in composition of two specified diastereoisomers, e.g. 90 %. Use basis for known comparisons and note for excess-isomer or sign attribution; do not derive it from multicomponent ratios. er: Enantiomeric ratio, e.g. 95:5; basis identifies enantiomers in that order, e.g. R:S. Omit unknown comparisons; do not assume target or major first. dr: Diastereomeric ratio, e.g. 90:10; basis records species or source-defined groups in the reported order, e.g. syn:anti. Do not invent comparison terms. selectivity: Other reported selectivity, e.g. 92 % or 4:1. Record analytical method in method and specify the selected outcome or denominator in note; use basis for ratio terms. Use a dedicated metric such as ee or dr when applicable. purity: Purity, e.g. 98 %. Record analytical method in method and specify mass, mole or chromatographic-area basis in note; do not assume area fraction is mass purity. amount: Measured material or product amount, e.g. 25 mg or 0.2 mmol. Does not introduce a new charge; actual additions use inputs[].amount. basis is normally inapplicable. observation: Qualitative observation of the identified input or product, e.g. trace, not detected or complete consumption. Preserve source wording without converting it to 0 %, 100 % or another number. General mixture colour changes or precipitation belong in Stage.note."
        },
        "value": {
          "$ref": "#/$defs/QuantityText",
          "description": "Reported quantitative value for numeric metrics, e.g. 88 % or 95:5. Qualitative findings such as trace or not detected require type observation and retain source wording; never infer a numeric value."
        },
        "method": {
          "$ref": "#/$defs/NonBlankText",
          "examples": [
            "isolated",
            "1H NMR",
            "GC",
            "chiral HPLC"
          ],
          "description": "Optional analytical or isolation method for this measurement, e.g. isolated, 1H NMR, GC, HPLC, chiral HPLC or LC-MS. Omit when unreported."
        },
        "stage": {
          "type": "integer",
          "minimum": 1,
          "examples": [
            1,
            2
          ],
          "description": "Optional 1-based stage index within the current Step where an input measurement was sampled, e.g. 1 or 2. Omit when the Step has a single stage or when the measurement applies at the end of the Step; not used on product measurements."
        },
        "stereocentres": {
          "type": "string",
          "minLength": 1,
          "pattern": "^(?:[1-9][0-9]*[a-z]?'*[RSrs]|\\([1-9][0-9]*[a-z]?'*[RSrs](?:,[1-9][0-9]*[a-z]?'*[RSrs])+\\))$",
          "description": "Examined R/S source locants and configurations, e.g. (2R,5S), with unique locants in ascending order. Locants are not SMILES atom indices. For E/Z configurations use basis instead. Ordering and uniqueness are checked by the iSynth semantic validator.",
          "examples": [
            "5S",
            "(2R,5S)",
            "(7S,8R,12R)"
          ]
        },
        "basis": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Compared structures, configurations or positions in the reported order, e.g. R:S, syn:anti, E:Z or C3:C2. A paper-local label without its chemical identity is not an interpretable basis. For conversion use the measured substrate SMILES, when reported."
        },
        "note": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Details needed to interpret this measurement that are not covered by the other fields, such as internal standard, sample treatment, replicate or calculation reference."
        }
      },
      "required": [
        "type",
        "value"
      ],
      "additionalProperties": false,
      "dependentSchemas": {
        "stereocentres": {
          "properties": {
            "type": {
              "enum": [
                "ee",
                "er",
                "de",
                "dr"
              ]
            }
          }
        }
      }
    },
    "InputMeasurement": {
      "allOf": [
        {
          "$ref": "#/$defs/Measurement"
        },
        {
          "properties": {
            "type": {
              "not": {
                "const": "yield"
              }
            }
          }
        }
      ]
    },
    "ProductMeasurement": {
      "allOf": [
        {
          "$ref": "#/$defs/Measurement"
        },
        {
          "properties": {
            "type": {
              "not": {
                "const": "conversion"
              }
            },
            "stage": false
          }
        }
      ]
    },
    "Input": {
      "type": "object",
      "properties": {
        "smiles": {
          "$ref": "#/$defs/NonBlankText",
          "description": "SMILES representation of the reported structure, including reported stereochemistry and atom mapping."
        },
        "inchi": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Standard InChI string (starting with InChI=) of the reported structure."
        },
        "cas": {
          "$ref": "#/$defs/CasNumber",
          "description": "Reported CAS Registry Number (validated with check digit), e.g. 3375-31-3."
        },
        "name": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Reported chemical name, formula, abbreviation or solvent mixture label (e.g. THF/H2O (4:1 v/v))."
        },
        "role": {
          "type": "string",
          "enum": [
            "reactant",
            "reagent",
            "ligand",
            "additive",
            "catalyst",
            "solvent"
          ],
          "examples": [
            "reactant"
          ],
          "description": "Optional functional role: reactant (substrate/group donor), reagent (stoichiometric reagent such as base, acid, oxidant or reductant), ligand (coordinating ligand for catalysis), additive, catalyst or solvent. Omit if unknown. An isolated intermediate used as an input is classified by function; mixtures and supplied formulations are described in name, concentration or note, not as roles."
        },
        "amount": {
          "$ref": "#/$defs/QuantityText",
          "description": "Primary source quantity for this actual addition. Prefer the reported molar amount, or volume/mass where appropriate; co-reported quantities for the same charge may be listed in amounts. Put later top-ups in later stages. A reported total for portions within one stage is recorded once."
        },
        "amounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QuantityText"
          },
          "minItems": 1,
          "description": "Optional supplementary co-reported quantities for this same single addition, e.g. [\"157 mg\", \"1.0 equiv\"] when \"1.0 mmol\" is recorded in amount. Never list sequential additions here; split separate reaction periods into stages."
        },
        "concentration": {
          "$ref": "#/$defs/QuantityText",
          "description": "Concentration or supplied formulation of this addition, e.g. 2 M in THF."
        },
        "addition_order": {
          "type": "integer",
          "minimum": 1,
          "description": "Optional source-reported relative addition order within this Stage, numbered from 1. Lower numbers mean earlier addition; equal numbers only mean explicitly simultaneous addition. Omit when unreported; never infer from inputs array position, role or mechanism. Number independently in each stage. This is not a time or duration; retain dropwise, portionwise or repeated-addition details in procedure_sequence.",
          "examples": [
            1,
            2
          ]
        },
        "is_limiting": {
          "type": "boolean",
          "description": "Source-reported limiting status in this stage: true for limiting, false for explicitly non-limiting; otherwise omit. Multiple materials may be limiting. This does not specify the reference for equivalents, catalyst loading or yield; retain reported references in note. Do not infer from units, 1 equiv or the smallest amount."
        },
        "measurements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InputMeasurement"
          },
          "minItems": 1,
          "description": "Measurements of this added material, including substrate conversion and qualitative observations. For sampling at a specific stage in a multi-stage step without adding that material again, retain this original Input and set measurement stage (and optional sampling time in note); do not repeat the input."
        },
        "note": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Details of this input not covered by the other fields, such as pretreatment, activation or the reference used for a reported relative amount."
        },
        "parameters": {
          "type": "object",
          "properties": {
            "supplier_batch": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Supplier batch identifier as reported for an input material."
            }
          },
          "additionalProperties": {
            "not": {
              "type": "null"
            }
          },
          "description": "Other material information as named values, e.g. {\"supplier_batch\":\"LOT-2026-01\",\"grade\":\"anhydrous\"}. Use amount/amounts for added quantities and measurements for defined metrics."
        }
      },
      "required": [],
      "additionalProperties": false,
      "anyOf": [
        {
          "required": [
            "smiles"
          ]
        },
        {
          "required": [
            "inchi"
          ]
        },
        {
          "required": [
            "cas"
          ]
        },
        {
          "required": [
            "name"
          ]
        }
      ],
      "allOf": [
        {
          "if": {
            "required": [
              "is_limiting"
            ]
          },
          "then": {
            "required": [
              "role"
            ],
            "properties": {
              "role": {
                "enum": [
                  "reactant",
                  "reagent"
                ]
              }
            }
          }
        },
        {
          "if": {
            "required": [
              "measurements"
            ],
            "properties": {
              "measurements": {
                "contains": {
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "conversion"
                    }
                  }
                }
              }
            }
          },
          "then": {
            "required": [
              "role"
            ],
            "properties": {
              "role": {
                "const": "reactant"
              }
            }
          }
        }
      ]
    },
    "Product": {
      "type": "object",
      "properties": {
        "smiles": {
          "$ref": "#/$defs/NonBlankText",
          "description": "SMILES representation of the reported structure, including reported stereochemistry and atom mapping."
        },
        "inchi": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Standard InChI string (starting with InChI=) of the reported structure."
        },
        "cas": {
          "$ref": "#/$defs/CasNumber",
          "description": "Reported CAS Registry Number (validated with check digit), e.g. 92-52-4."
        },
        "name": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Reported chemical name, formula or abbreviation."
        },
        "role": {
          "type": "string",
          "enum": [
            "target",
            "byproduct",
            "intermediate"
          ],
          "examples": [
            "target"
          ],
          "description": "target is the final intended product of this experiment, even if it is called an intermediate in a larger synthesis. intermediate is a source-reported in-situ product of a non-final chemical step carried forward without purification. byproduct is a side product. Omit when unclear."
        },
        "measurements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductMeasurement"
          },
          "minItems": 1,
          "description": "Measurements of this step product. Final-step products supply the reported final-product results; earlier-step products remain intermediate results. Preserve calculation basis and steps covered in note; do not calculate an overall yield."
        },
        "note": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Details of this product not covered by the other fields, such as appearance, stability or isolation state."
        },
        "parameters": {
          "type": "object",
          "description": "Other product properties as named values, e.g. {\"melting_point\":\"128 °C\"}. Use measurements for defined metrics such as yield and ee."
        }
      },
      "required": [],
      "additionalProperties": false,
      "anyOf": [
        {
          "required": [
            "smiles"
          ]
        },
        {
          "required": [
            "inchi"
          ]
        },
        {
          "required": [
            "cas"
          ]
        },
        {
          "required": [
            "name"
          ]
        }
      ]
    },
    "Conditions": {
      "type": "object",
      "properties": {
        "temperature": {
          "$ref": "#/$defs/QuantityText",
          "description": "Reported temperature for this stage. Omit if unreported; never inherit from another stage."
        },
        "pressure": {
          "$ref": "#/$defs/QuantityText",
          "description": "Reported pressure for this stage. Omit if unreported; never inherit from another stage."
        },
        "atmosphere": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Reported atmosphere for this stage. Omit if unreported; never inherit from another stage."
        },
        "parameters": {
          "type": "object",
          "minProperties": 1,
          "propertyNames": {
            "$ref": "#/$defs/NonBlankText"
          },
          "properties": {
            "wavelength_center": {
              "$ref": "#/$defs/QuantityText",
              "description": "Reported light-source center wavelength, e.g. 450 nm."
            },
            "light_input_power": {
              "$ref": "#/$defs/QuantityText",
              "description": "Electrical input power of the light source, e.g. 30 W (not optical irradiance)."
            },
            "light_source_type": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Reported light source type or colour, e.g. blue LEDs."
            },
            "current": {
              "$ref": "#/$defs/QuantityText",
              "description": "Electrolysis current applied during this stage, e.g. 10 mA."
            },
            "potential": {
              "$ref": "#/$defs/QuantityText",
              "description": "Reported electrode potential versus a reference electrode, e.g. 1.2 V."
            },
            "cell_voltage": {
              "$ref": "#/$defs/QuantityText",
              "description": "Voltage across the electrochemical cell, e.g. 3 V."
            },
            "electrolysis_mode": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Reported electrochemical control mode, e.g. constant current or constant potential."
            },
            "cell_type": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Reported divided or undivided electrochemical cell configuration."
            },
            "total_charge": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Charge passed with its reported basis, e.g. 2 F/mol or 100 C."
            },
            "anode_material": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Reported anode composition, e.g. graphite."
            },
            "cathode_material": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Reported cathode composition, e.g. platinum."
            },
            "milling_frequency": {
              "$ref": "#/$defs/QuantityText",
              "description": "Oscillation frequency of a mechanochemical milling process, e.g. 30 Hz."
            },
            "milling_medium": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Reported material of the milling balls or beads, e.g. zirconia."
            },
            "milling_ball_diameter": {
              "$ref": "#/$defs/QuantityText",
              "description": "Reported diameter of the milling balls, e.g. 5 mm."
            },
            "conditions_text": {
              "$ref": "#/$defs/NonBlankText",
              "description": "Unresolved mixed condition text retained verbatim when individual charges or condition fields cannot be separated."
            }
          },
          "description": "Additional conditions applicable to this stage, including standard photochemical, electrochemical and mechanochemical parameters as well as custom non-null keys. Omit unreported keys; do not use null.",
          "additionalProperties": {
            "not": {
              "type": "null"
            }
          }
        }
      },
      "required": [],
      "additionalProperties": false,
      "minProperties": 1,
      "description": "Applicable source-supported conditions for this stage. Omission means unreported; stages are independent, with no inheritance or null. Repeat unchanged conditions when they apply to later stages."
    },
    "Step": {
      "type": "object",
      "properties": {
        "stages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Stage"
          },
          "minItems": 1,
          "description": "Operational stages in chronological order, using the minimum intervals needed to preserve reported additions, condition changes and independent reaction periods. Do not split sequential additions alone."
        },
        "products": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Product"
          },
          "minItems": 0,
          "description": "Products or intermediates reported at this step, with their measurements. Record final products in the final step, including for a single-step reaction. Do not invent unreported intermediate products."
        },
        "workup": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Workup associated with this step, such as quenching, extraction, drying or purification. Record final workup in the final step."
        },
        "note": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Context for the complete chemical transformation."
        }
      },
      "required": [
        "stages"
      ],
      "additionalProperties": false,
      "description": "One source-delimited synthetic transformation, including its operational stages, products and workup. An intermediate used in another independent synthetic transformation starts a new Step even without isolation. Mechanistic intermediates, preactivation, routine quenching and condition changes alone do not establish steps. Never infer extra steps without source evidence."
    },
    "Provenance": {
      "type": "object",
      "properties": {
        "doi": {
          "type": "string",
          "pattern": "^(https://doi\\.org/)?10\\.\\d{4,9}/\\S+$",
          "description": "Source paper DOI or https://doi.org/ link. This is the article DOI, not a dataset DOI."
        },
        "note": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S",
          "description": "Source details beyond the DOI, such as the supporting-information section, table entry or laboratory record reference."
        }
      },
      "required": [],
      "additionalProperties": false,
      "minProperties": 1
    },
    "Stage": {
      "type": "object",
      "properties": {
        "inputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Input"
          },
          "minItems": 1,
          "description": "Only materials newly added in this stage. The inputs array has no addition-order semantics; use optional addition_order only for explicit source order. Do not repeat earlier charges; omit inputs when nothing is added. Keep measurements on the corresponding original input and use measurement stage when sampled at a specific stage."
        },
        "conditions": {
          "$ref": "#/$defs/Conditions",
          "description": "Independently report applicable conditions for this stage. Omission means unreported; no inheritance or null."
        },
        "duration": {
          "$ref": "#/$defs/QuantityText",
          "description": "Only the reaction or holding time reported for this stage, never inherited or concatenated. It does not imply that every input reacted for the same time; retain addition timing and duration in procedure_sequence."
        },
        "procedure_sequence": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Chronological additions, stirring and stage transitions, including bath removal, degassing or cannula transfer. End-of-step quench, concentration, extraction and purification belong to Step.workup."
        },
        "note": {
          "$ref": "#/$defs/NonBlankText",
          "description": "Observations in this stage, such as colour change, precipitation, transient species observation or heat evolution."
        }
      },
      "additionalProperties": false,
      "anyOf": [
        {
          "required": [
            "inputs"
          ]
        },
        {
          "required": [
            "conditions"
          ]
        },
        {
          "required": [
            "duration"
          ]
        },
        {
          "required": [
            "procedure_sequence"
          ]
        },
        {
          "required": [
            "note"
          ]
        }
      ],
      "description": "The minimum continuous operational interval within a Step needed to associate additions, conditions and duration. Split when merging would lose explicitly reported condition changes, independent reaction periods or their associated additions. Sequential additions alone do not require a stage; use addition_order and procedure_sequence. A single summary Stage is allowed when only overall information is reported; never invent unreported operations."
    }
  },
  "x-profile": "isynth.reaction/1.0",
  "x-extension-policy": {
    "measurements": "For new input, use the listed measurement types, optional method and stage, and put additional named metrics in parameters on the relevant input or product. type=custom is not part of this input profile; note describes measurement context rather than defining a new metric.",
    "identifiers": "Identify each input or product by smiles, inchi, cas or name. Additional external identifiers may be recorded as named parameters, e.g. registry_id."
  },
  "x-quantity-format": "Write one quantity per field, e.g. 25 °C, 1 mmol, >95 % or 20 – 25 °C. Spacing around units and comparators (such as 88% or 25°C) is normalized automatically. Preserve ranges, uncertainty, qualitative terms and concentration formulations. Never concatenate successive settings or separate sequential additions in one string.",
  "x-representation": "inline",
  "x-converter-version": "1.0"
}