{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://data.publicinformation.ie/schemas/datacatalogue-gov-ie-links.schema.json",
  "title": "datacatalogue.gov.ie Link",
  "description": "A link from an Irish public body to its organisation page on datacatalogue.gov.ie, the Data Sharing and Governance Act data catalogue",
  "type": "object",
  "properties": {
    "@id": {"type": "string", "format": "uri", "description": "Persistent URI for this datacatalogue.gov.ie link record"},
    "@type": {"type": "string", "const": "dcl:DataCatalogueLink"},
    "@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)"},
    "datacatalogue_slug": {"type": "string", "description": "CKAN's own URL slug for the organisation on datacatalogue.gov.ie"},
    "datacatalogue_name": {"type": "string", "description": "The organisation's display name on datacatalogue.gov.ie"},
    "datacatalogue_url": {"type": "string", "format": "uri", "description": "Link to the organisation's page on datacatalogue.gov.ie"},
    "datacatalogue_package_count": {"type": "integer", "minimum": 0, "description": "Number of datasets the organisation has published on datacatalogue.gov.ie, as of the pipeline run that produced this record; present only where the source provides it"},
    "datacatalogue_description": {"type": "string", "description": "The organisation's self-description on datacatalogue.gov.ie; present only where the source provides it"}
  },
  "required": ["@id", "@type", "public_body", "datacatalogue_slug", "datacatalogue_url"]
}
