(Work in progress)

Sensor schema
{
  "definitions": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://greatlakestogulf.org/geostreams/sensor.json",
  "type": "object",
  "title": "Sensor Schema",
  "description": "",
  "required": [
    "name",
    "geoType",
    "geometry",
    "properties",
    "parameters"
  ],
  "properties": {
    "name": {
      "$id": "#/properties/name",
      "type": "string",
      "title": "The Name Schema",
      "description": "Name of sensor provided by source. If no name is provided by the source, naming convention applied in parser.",
      "default": "",
      "examples": [
        "03254520"
      ],
      "pattern": "^(.*)$"
    },
    "created": {
      "$id": "#/properties/created",
      "type": "string",
      "title": "The Created Schema",
      "description": "",
      "default": "",
      "examples": [
        "2018-03-23T15:48:32Z"
      ],
      "pattern": "^(.*)$"
    },
    "geoType": {
      "$id": "#/properties/geoType",
      "type": "string",
      "title": "The Geotype Schema",
      "description": "",
      "default": "",
      "examples": [
        "Feature"
      ],
      "pattern": "^(.*)$"
    },
    "geometry": {
      "$id": "#/properties/geometry",
      "type": "object",
      "title": "The Geometry Schema",
      "description": "",
      "required": [
        "type",
        "coordinates"
      ],
      "properties": {
        "type": {
          "$id": "#/properties/geometry/properties/type",
          "type": "string",
          "title": "The Type Schema",
          "description": "",
          "default": "",
          "examples": [
            "Point"
          ],
          "pattern": "^(.*)$"
        },
        "coordinates": {
          "$id": "#/properties/geometry/properties/coordinates",
          "type": "array",
          "title": "The Coordinates Schema",
          "description": "",
          "items": {
            "$id": "#/properties/geometry/properties/coordinates/items",
            "type": "number",
            "title": "The Items Schema",
            "description": "",
            "default": 0.0,
            "examples": [
              -84.44799549,
              38.9203417,
              0
            ]
          }
        }
      }
    },
    "properties": {
      "$id": "#/properties/properties",
      "type": "object",
      "title": "The Properties Schema",
      "description": "",
      "required": [
        "name",
        "huc",
        "region",
        "location",
        "type",
        "online_status"
      ],
      "properties": {
        "name": {
          "$id": "#/properties/properties/properties/name",
          "type": "string",
          "title": "The Name Schema",
          "description": "",
          "default": "",
          "examples": [
            "03254520"
          ],
          "pattern": "^(.*)$"
        },
        "huc": {
          "$id": "#/properties/properties/properties/huc",
          "type": "object",
          "title": "The Huc Schema",
          "description": "Hydrological Unit Code at subbasin level."
        },
        "region": {
          "$id": "#/properties/properties/properties/region",
          "type": "string",
          "title": "The Region Schema",
          "description": "",
          "default": "",
          "examples": [
            "0510"
          ],
          "pattern": "^(.*)$"
        },
        "location": {
          "$id": "#/properties/properties/properties/location",
          "type": "string",
          "title": "The Location Schema",
          "description": "	Description of the location of the sensor provided by source.",
          "default": "",
          "examples": [
            "LICKING RIVER AT HWY 536 NEAR ALEXANDRIA, KY"
          ],
          "pattern": "^(.*)$"
        },
        "type": {
          "$id": "#/properties/properties/properties/type",
          "type": "object",
          "title": "The Type Schema",
          "description": "",
          "required": [
            "title",
            "network",
            "id"
          ],
          "properties": {
            "title": {
              "$id": "#/properties/properties/properties/type/properties/title",
              "type": "string",
              "title": "The Title Schema",
              "description": "",
              "default": "",
              "examples": [
                "United States Geological Survey"
              ],
              "pattern": "^(.*)$"
            },
            "network": {
              "$id": "#/properties/properties/properties/type/properties/network",
              "type": "string",
              "title": "The Network Schema",
              "description": "",
              "default": "",
              "examples": [
                "NWIS"
              ],
              "pattern": "^(.*)$"
            },
            "id": {
              "$id": "#/properties/properties/properties/type/properties/id",
              "type": "string",
              "title": "The Id Schema",
              "description": "",
              "default": "",
              "examples": [
                "usgs"
              ],
              "pattern": "^(.*)$"
            }
          }
        },
        "popupContent": {
          "$id": "#/properties/properties/properties/popupContent",
          "type": "string",
          "title": "The Popupcontent Schema",
          "description": "",
          "default": "",
          "examples": [
            "03254520"
          ],
          "pattern": "^(.*)$"
        },
        "online_status": {
          "$id": "#/properties/properties/properties/online_status",
          "type": "string",
          "title": "The Online_status Schema",
          "description": "Typical available for continuous data.  If the sensor data has been updated within the near past (~5 days), the sensor is designated 'online'.  If there is no recent data, the sensor will be designated 'offline'.  This is viewable in the UI.",
          "default": "",
          "examples": [
            "online"
          ],
          "pattern": "^(.*)$"
        }
      }
    },
    "min_start_time": {
      "$id": "#/properties/min_start_time",
      "type": "string",
      "title": "The Min_start_time Schema",
      "description": "Timestamp of first chronological datapoint.",
      "default": "",
      "examples": [
        "2007-10-01T06:00:00Z"
      ],
      "pattern": "^(.*)$"
    },
    "max_end_time": {
      "$id": "#/properties/max_end_time",
      "type": "string",
      "title": "The Max_end_time Schema",
      "description": "Timestamp of most recent datapoint.",
      "default": "",
      "examples": [
        "2020-01-26T22:30:00Z"
      ],
      "pattern": "^(.*)$"
    },
    "parameters": {
      "$id": "#/properties/parameters",
      "type": "array",
      "title": "The Parameters Schema",
      "description": "List of measurements collected by the sensor.",
      "items": {
        "$id": "#/properties/parameters/items",
        "type": "string",
        "title": "The Items Schema",
        "description": "",
        "default": "",
        "examples": [
          "discharge-ft3s",
          "discharge-ft3s-qc",
          "dissolved-oxygen-mgl",
          "dissolved-oxygen-mgl-qc",
          "nitrate-nitrite-as-n-mgl",
          "nitrate-nitrite-as-n-mgl-qc",
          "pH",
          "pH-qc",
          "specific-conductance-uScm",
          "specific-conductance-uScm-qc",
          "turbidity-fnu",
          "turbidity-fnu-qc",
          "water-temperature-c",
          "water-temperature-c-qc"
        ],
        "pattern": "^(.*)$"
      }
    }
  }
}

  • No labels