{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/metrics/MetricReport.schema.json",
  "title": "MetricReport",
  "description": "A bundle of MetricObservation records with publisher metadata. Maps to an SDMX Dataset and to qb:DataSet on RDF emission.\n",
  "type": "object",
  "properties": {
    "publisher": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Agent.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The agent that publishes or maintains the instrument, software agent, or scoring rule. Typically an Organization (for example, the Washington Group on Disability Statistics, UNICEF, the SMART initiative, the openIMIS Initiative, or a national statistics office), but may be a named Person for standards methodologies and individual research publications. A SoftwareAgent is not expected to appear here: the publisher of a SoftwareAgent record is the Person or Organization that publishes the software, not another piece of software. The type system admits SoftwareAgent via the Agent supertype, but that case is excluded by convention."
    },
    "published_at": {
      "type": "string",
      "format": "date-time",
      "description": "The datetime at which this MetricReport was published."
    },
    "reference_date": {
      "type": "string",
      "format": "date",
      "description": "The reference date for the values reported in this bundle. May differ from published_at when reports are issued retrospectively."
    },
    "methodology_uri": {
      "type": "string",
      "format": "uri",
      "description": "URI of the methodology document, code book, or technical note that describes how the values in this report were produced."
    },
    "license": {
      "type": "string",
      "description": "The license under which this MetricReport is released (for example, CC-BY-4.0, CC0-1.0)."
    },
    "contact_uri": {
      "type": "string",
      "format": "uri",
      "description": "URI of the contact point for questions about this MetricReport (a mailto URI, a person page, or an agency contact page)."
    },
    "observations": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/metrics/MetricObservation.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "The MetricObservation records bundled in this report."
      }
    },
    "dsd_uri": {
      "type": "string",
      "format": "uri",
      "description": "The URN of the SDMX Data Structure Definition this report claims conformance to. Composes as urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=<Agency>:<ID>(<Version>)."
    }
  }
}
