{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://data.publicinformation.ie/schemas/data-gov-ie-links.schema.json",
  "title": "data.gov.ie Link",
  "description": "A link from an Irish public body to its organisation page on data.gov.ie, Ireland's open data portal",
  "type": "object",
  "properties": {
    "@id": {"type": "string", "format": "uri", "description": "Persistent URI for this data.gov.ie link record"},
    "@type": {"type": "string", "const": "dgi:DataGovIeLink"},
    "@context": {"type": "object"},
    "public_body": {"type": "string", "format": "uri", "description": "URI of the public body this link belongs to (the same @id published in the public-bodies dataset)"},
    "datagovie_slug": {"type": "string", "description": "CKAN's own URL slug for the organisation on data.gov.ie"},
    "datagovie_url": {"type": "string", "format": "uri", "description": "Link to the organisation's page on data.gov.ie"},
    "datagovie_package_count": {"type": "integer", "minimum": 0, "description": "Number of datasets the organisation has published on data.gov.ie, as of the pipeline run that produced this record"}
  },
  "required": ["@id", "@type", "public_body", "datagovie_slug", "datagovie_url", "datagovie_package_count"]
}
