{
  "profile": "data-package",
  "name": "civilization-watch",
  "title": "Civilization Watch — published scores",
  "homepage": "https://www.civilization-watch.com/data",
  "resources": [
    {
      "name": "battery-scores",
      "path": "battery-scores.csv",
      "encoding": "utf-8",
      "licenses": [
        {
          "name": "CC BY-SA 4.0",
          "path": "https://creativecommons.org/licenses/by-sa/4.0/",
          "title": "CC BY-SA 4.0"
        }
      ],
      "format": "csv",
      "mediatype": "text/csv",
      "dialect": {
        "delimiter": ",",
        "lineTerminator": "\r\n",
        "header": true
      },
      "schema": {
        "fields": [
          {
            "name": "batteryId",
            "type": "string"
          },
          {
            "name": "scoreDate",
            "type": "date"
          },
          {
            "name": "score",
            "type": "number"
          },
          {
            "name": "coverage",
            "type": "number"
          },
          {
            "name": "degraded",
            "type": "boolean"
          },
          {
            "name": "computedAt",
            "type": "datetime"
          },
          {
            "name": "methodologyVersion",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "indicator-scores",
      "path": "indicator-scores.csv",
      "encoding": "utf-8",
      "description": "Mixed licensing: the normalized scores are CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/); the rawValue column reproduces the upstream source's own published figure and keeps that source's licence, named per indicator in indicators.csv (sourceLicense).",
      "format": "csv",
      "mediatype": "text/csv",
      "dialect": {
        "delimiter": ",",
        "lineTerminator": "\r\n",
        "header": true
      },
      "schema": {
        "fields": [
          {
            "name": "indicatorId",
            "type": "string"
          },
          {
            "name": "scoreDate",
            "type": "date"
          },
          {
            "name": "periodDate",
            "type": "date"
          },
          {
            "name": "value",
            "type": "number"
          },
          {
            "name": "rawValue",
            "type": "number",
            "description": "Source data, not ours to license: see sourceLicense in indicators.csv."
          },
          {
            "name": "revision",
            "type": "integer"
          },
          {
            "name": "isStale",
            "type": "boolean"
          },
          {
            "name": "stalenessDays",
            "type": "integer"
          },
          {
            "name": "computedAt",
            "type": "datetime"
          },
          {
            "name": "methodologyVersion",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "batteries",
      "path": "batteries.csv",
      "encoding": "utf-8",
      "licenses": [
        {
          "name": "CC BY-SA 4.0",
          "path": "https://creativecommons.org/licenses/by-sa/4.0/",
          "title": "CC BY-SA 4.0"
        }
      ],
      "format": "csv",
      "mediatype": "text/csv",
      "dialect": {
        "delimiter": ",",
        "lineTerminator": "\r\n",
        "header": true
      },
      "schema": {
        "fields": [
          {
            "name": "methodologyVersion",
            "type": "string"
          },
          {
            "name": "batteryId",
            "type": "string"
          },
          {
            "name": "label",
            "type": "string"
          },
          {
            "name": "method",
            "type": "string"
          },
          {
            "name": "degradedRule",
            "type": "string"
          },
          {
            "name": "description",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "indicators",
      "path": "indicators.csv",
      "encoding": "utf-8",
      "licenses": [
        {
          "name": "CC BY-SA 4.0",
          "path": "https://creativecommons.org/licenses/by-sa/4.0/",
          "title": "CC BY-SA 4.0"
        }
      ],
      "format": "csv",
      "mediatype": "text/csv",
      "dialect": {
        "delimiter": ",",
        "lineTerminator": "\r\n",
        "header": true
      },
      "schema": {
        "fields": [
          {
            "name": "methodologyVersion",
            "type": "string"
          },
          {
            "name": "indicatorId",
            "type": "string"
          },
          {
            "name": "label",
            "type": "string"
          },
          {
            "name": "unit",
            "type": "string"
          },
          {
            "name": "batteryId",
            "type": "string"
          },
          {
            "name": "batteryLabel",
            "type": "string"
          },
          {
            "name": "weight",
            "type": "number"
          },
          {
            "name": "direction",
            "type": "string"
          },
          {
            "name": "cadence",
            "type": "string"
          },
          {
            "name": "maxStalenessDays",
            "type": "integer"
          },
          {
            "name": "normalizationMethod",
            "type": "string"
          },
          {
            "name": "normalizationMin",
            "type": "number"
          },
          {
            "name": "normalizationMax",
            "type": "number"
          },
          {
            "name": "normalizationIdealLow",
            "type": "number"
          },
          {
            "name": "normalizationIdealHigh",
            "type": "number"
          },
          {
            "name": "normalizationScale",
            "type": "number"
          },
          {
            "name": "plausibleMin",
            "type": "number"
          },
          {
            "name": "plausibleMax",
            "type": "number"
          },
          {
            "name": "sourceId",
            "type": "string"
          },
          {
            "name": "sourceName",
            "type": "string"
          },
          {
            "name": "sourceLicense",
            "type": "string"
          }
        ]
      }
    },
    {
      "name": "civilization-watch",
      "path": "civilization-watch.json",
      "encoding": "utf-8",
      "description": "Mixed licensing: the normalized scores are CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/); the rawValue field of each data.indicatorScores entry reproduces the upstream source's own published figure and keeps that source's licence, named per indicator in data.indicators (sourceLicense).",
      "format": "json",
      "mediatype": "application/json"
    }
  ]
}
