Skip to content
Snippets Groups Projects
dataformat_standard.json 1.96 KiB
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Example Data Format",
  "description": "This schema defines the format for the example data used in our physics experiment.",
  "type": "object",
  "properties": {
    "experiment_id": {
      "type": "string",
      "description": "Unique identifier for the experiment.",
      "examples": ["EXP12345"]
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the data was collected.",
      "examples": ["2024-08-19T14:31:00Z"]
    },
    "sensor_data": {
      "type": "array",
      "description": "Array of sensor readings collected during the experiment.",
      "items": {
        "type": "object",
        "properties": {
          "sensor_id": {
            "type": "string",
            "description": "Unique identifier for the sensor.",
            "examples": ["SENSOR001"]
          },
          "value": {
            "type": "number",
            "description": "The reading value from the sensor.",
            "examples": [23.5]
          },
          "unit": {
            "type": "string",
            "description": "The unit of the sensor reading.",
            "enum": ["Celsius", "Kelvin", "Fahrenheit"],
            "examples": ["Celsius"]
          }
        },
        "required": ["sensor_id", "value", "unit"]
      }
    },
    "metadata": {
      "type": "object",
      "description": "Additional metadata about the experiment.",
      "properties": {
        "location": {
          "type": "string",
          "description": "Location where the experiment was conducted.",
          "examples": ["Lab A"]
        },
        "operator": {
          "type": "string",
          "description": "Name or ID of the person who conducted the experiment.",
          "examples": ["John Doe"]
        }
      },
      "required": ["location"]
    }
  },
  "required": ["experiment_id", "timestamp", "sensor_data"],
  "additionalProperties": false
}