{
  "$schema": "https://oo-ld.org/latest/meta/oold-meta-schema.json",
  "$id": "ElectrochemicalCyclingDataset.schema.json",
  "x-oold-uuid": "988eea8b-93bb-59cd-81bc-2da3ddd76bad",
  "x-oold-version": "0.1.0",
  "title": "ElectrochemicalCyclingDataset",
  "x-oold-instance-rdf-type": [
    "ElectrochemicalCyclingDataset"
  ],
  "description": "A battery cycling run. The rows are the data; a distribution is the file the instrument wrote, and it conforms to this schema.",
  "allOf": [
    {
      "$ref": "TabularDataset.schema.json"
    }
  ],
  "examples": [
    {
      "type": [
        "ElectrochemicalCyclingDataset"
      ],
      "title": "Cycling of cell LFP-042",
      "about": "https://example.org/cell/LFP-042",
      "data": [
        {
          "type": [
            "ElectrochemicalCyclingDataRow"
          ],
          "test_time": {
            "type": [
              "TestTime"
            ],
            "value": 3600,
            "unit": "second"
          },
          "voltage": {
            "type": [
              "CellVoltage"
            ],
            "value": 3.65,
            "unit": "volt"
          },
          "current": {
            "type": [
              "CellCurrent"
            ],
            "value": -750,
            "unit": "milli_ampere"
          }
        }
      ]
    }
  ],
  "properties": {
    "type": {
      "default": [
        "ElectrochemicalCyclingDataset"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ElectrochemicalCyclingDataRow"
      }
    }
  },
  "@context": [
    "TabularDataset.schema.json",
    {
      "@version": 1.1,
      "dcat": "http://www.w3.org/ns/dcat#",
      "dcterms": "http://purl.org/dc/terms/",
      "prov": "http://www.w3.org/ns/prov#",
      "csvw": "http://www.w3.org/ns/csvw#",
      "schema": "http://schema.org/",
      "qkind": "http://qudt.org/vocab/quantitykind/",
      "emmo": "https://w3id.org/emmo#",
      "echem": "https://w3id.org/emmo/domain/electrochemistry#",
      "obo": "http://purl.obolibrary.org/obo/",
      "xsd": "http://www.w3.org/2001/XMLSchema#",
      "id": "@id",
      "type": {
        "@id": "@type",
        "@container": "@set"
      },
      "ElectrochemicalCyclingDataRow": "https://w3id.org/oo-ld/schemas/datasets/0.1/ElectrochemicalCyclingDataset.schema.json#/$defs/ElectrochemicalCyclingDataRow",
      "TestTime": "row:TestTime",
      "CellVoltage": "row:CellVoltage",
      "CellCurrent": "row:CellCurrent",
      "test_time": {
        "@id": "row:properties/test_time",
        "@type": "@id",
        "@context": "https://w3id.org/oo-ld/schemas/quantities/0.2/Time.schema.json"
      },
      "voltage": {
        "@id": "row:properties/voltage",
        "@type": "@id",
        "@context": "https://w3id.org/oo-ld/schemas/quantities/0.2/Voltage.schema.json"
      },
      "current": {
        "@id": "row:properties/current",
        "@type": "@id",
        "@context": "https://w3id.org/oo-ld/schemas/quantities/0.2/ElectricCurrent.schema.json"
      },
      "electrochemicalcyclingdataset": {
        "@id": "https://w3id.org/oo-ld/schemas/datasets/0.1/ElectrochemicalCyclingDataset.schema.json#",
        "@prefix": true
      },
      "ElectrochemicalCyclingDataset": "https://w3id.org/oo-ld/schemas/datasets/0.1/ElectrochemicalCyclingDataset.schema.json",
      "row": {
        "@id": "https://w3id.org/oo-ld/schemas/datasets/0.1/ElectrochemicalCyclingDataset.schema.json#/$defs/ElectrochemicalCyclingDataRow/",
        "@prefix": true
      }
    }
  ],
  "x-oold-context": {
    "ElectrochemicalCyclingDataset": {
      "schema:Dataset": {
        "x-oold-sssom": {
          "predicate_id": "skos:broadMatch",
          "mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/schemaorg.sssom.tsv",
          "comment": "a dataset of this kind is one of these, which have no term for the kind"
        }
      },
      "obo:IAO_0000100": {
        "x-oold-sssom": {
          "predicate_id": "skos:broadMatch",
          "mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/pmdco.sssom.tsv",
          "comment": "a dataset of this kind is one of these, which have no term for the kind"
        }
      },
      "emmo:EMMO_194e367c_9783_4bf5_96d0_9ad597d48d9a": {
        "x-oold-sssom": {
          "predicate_id": "skos:broadMatch",
          "mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/emmo.sssom.tsv",
          "object_source_version": "https://w3id.org/emmo/1.0.4",
          "comment": "a dataset of this kind is one of these, which have no term for the kind"
        }
      }
    },
    "TestTime": {
      "echem:electrochemistry_27b3799c_250c_4332_8b71_7992c4a7bb05": {
        "x-oold-sssom": {
          "predicate_id": "skos:exactMatch",
          "mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/emmo.sssom.tsv",
          "object_source": "https://w3id.org/emmo/domain/electrochemistry",
          "object_source_version": "https://w3id.org/emmo/domain/electrochemistry/0.37.2",
          "comment": "TestTime, the time since the test started"
        }
      }
    },
    "CellVoltage": {
      "echem:electrochemistry_4ebe2ef1_eea8_4b10_822d_7a68215bd24d": {
        "x-oold-sssom": {
          "predicate_id": "skos:exactMatch",
          "mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/emmo.sssom.tsv",
          "object_source": "https://w3id.org/emmo/domain/electrochemistry",
          "object_source_version": "https://w3id.org/emmo/domain/electrochemistry/0.37.2",
          "comment": "CellVoltage, the voltage across the cell terminals"
        }
      }
    },
    "CellCurrent": {
      "echem:electrochemistry_637ee9c4_4b3f_4d3a_975b_c0572dfe53ce": {
        "x-oold-sssom": {
          "predicate_id": "skos:exactMatch",
          "mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/emmo.sssom.tsv",
          "object_source": "https://w3id.org/emmo/domain/electrochemistry",
          "object_source_version": "https://w3id.org/emmo/domain/electrochemistry/0.37.2",
          "comment": "CellCurrent, positive on charge and negative on discharge here"
        }
      }
    }
  },
  "$defs": {
    "ElectrochemicalCyclingDataRow": {
      "title": "ElectrochemicalCyclingDataRow",
      "x-oold-instance-rdf-type": [
        "https://w3id.org/oo-ld/schemas/datasets/0.1/ElectrochemicalCyclingDataset.schema.json#/$defs/ElectrochemicalCyclingDataRow"
      ],
      "description": "One row of a battery cycling run: the time since the test started, the cell voltage and the cell current at that moment. The fields are quantities, so a row states its units rather than leaving them to a header.",
      "type": "object",
      "properties": {
        "type": {
          "type": "array",
          "items": {
            "type": "string",
            "const": "ElectrochemicalCyclingDataRow"
          },
          "default": [
            "ElectrochemicalCyclingDataRow"
          ],
          "minItems": 1
        },
        "test_time": {
          "allOf": [
            {
              "$ref": "https://w3id.org/oo-ld/schemas/quantities/0.2/Time.schema.json"
            }
          ],
          "title": "TestTime",
          "properties": {
            "type": {
              "default": [
                "TestTime"
              ]
            }
          }
        },
        "voltage": {
          "allOf": [
            {
              "$ref": "https://w3id.org/oo-ld/schemas/quantities/0.2/Voltage.schema.json"
            }
          ],
          "title": "CellVoltage",
          "properties": {
            "type": {
              "default": [
                "CellVoltage"
              ]
            }
          }
        },
        "current": {
          "allOf": [
            {
              "$ref": "https://w3id.org/oo-ld/schemas/quantities/0.2/ElectricCurrent.schema.json"
            }
          ],
          "title": "CellCurrent",
          "properties": {
            "type": {
              "default": [
                "CellCurrent"
              ]
            }
          }
        }
      },
      "required": [
        "type",
        "test_time",
        "voltage",
        "current"
      ],
      "examples": [
        {
          "type": [
            "ElectrochemicalCyclingDataRow"
          ],
          "test_time": {
            "type": [
              "TestTime"
            ],
            "value": 3600,
            "unit": "second"
          },
          "voltage": {
            "type": [
              "CellVoltage"
            ],
            "value": 3.65,
            "unit": "volt"
          },
          "current": {
            "type": [
              "CellCurrent"
            ],
            "value": -750,
            "unit": "milli_ampere"
          }
        }
      ]
    }
  }
}
