{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "WAIENC entry",
 "version": "2.1",
 "type": "object",
 "required": [
  "id",
  "type",
  "subtype",
  "title_ar",
  "title_en",
  "summary",
  "bab",
  "status",
  "translation",
  "volatility",
  "created",
  "updated",
  "last_verified",
  "ai_assisted",
  "sources"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "المعرّف الثابت"
  },
  "type": {
   "enum": [
    "concept",
    "technology",
    "dataset",
    "organization",
    "person",
    "law",
    "work",
    "incident",
    "jurisdiction",
    "comparison"
   ]
  },
  "subtype": {
   "type": "string",
   "description": "النوع الفرعي"
  },
  "title_ar": {
   "type": "string",
   "description": "الاسم العربي المعتمد"
  },
  "title_en": {
   "type": "string",
   "description": "الاسم الإنجليزي"
  },
  "aliases": {
   "type": "array"
  },
  "old_names": {
   "type": "array"
  },
  "search_aliases": {
   "type": "array"
  },
  "native_name": {
   "type": "string",
   "description": "الاسم بلغته الأصلية"
  },
  "transliteration": {
   "type": "string",
   "description": "نقل الاسم بالحروف اللاتينية"
  },
  "summary": {
   "type": "string",
   "description": "ملخص"
  },
  "bab": {
   "type": "array",
   "description": "رموز الفروع، والأول هو الموطن"
  },
  "status": {
   "enum": [
    "draft",
    "published",
    "needs_update",
    "withdrawn",
    "stub"
   ]
  },
  "translation": {
   "enum": [
    "none",
    "machine",
    "reviewed"
   ]
  },
  "volatility": {
   "enum": [
    "stable",
    "changing",
    "fast"
   ]
  },
  "created": {
   "type": "string",
   "description": "تاريخ"
  },
  "updated": {
   "type": "string",
   "description": "تاريخ"
  },
  "update_kind": {
   "enum": [
    "content",
    "verification",
    "correction",
    "structure"
   ]
  },
  "last_verified": {
   "type": "string",
   "description": "تاريخ"
  },
  "ai_assisted": {
   "type": "boolean"
  },
  "disputed": {
   "type": "boolean"
  },
  "dispute_note": {
   "type": "string",
   "description": "سبب الخلاف"
  },
  "countries": {
   "type": "array"
  },
  "regions": {
   "type": "array",
   "items": {
    "enum": [
     "EU",
     "GCC",
     "ARAB",
     "ASEAN",
     "AU",
     "G7"
    ]
   }
  },
  "sectors": {
   "type": "array",
   "items": {
    "enum": [
     "general",
     "health",
     "finance",
     "education",
     "government",
     "security",
     "media",
     "justice",
     "employment",
     "transport",
     "energy",
     "science",
     "culture"
    ]
   }
  },
  "risk": {
   "enum": [
    "unacceptable",
    "high",
    "limited",
    "minimal"
   ]
  },
  "openness": {
   "enum": [
    "open_source",
    "open_weights",
    "api",
    "research",
    "closed"
   ]
  },
  "openness_source": {
   "type": "integer"
  },
  "license": {
   "type": "string",
   "description": "الترخيص"
  },
  "family": {
   "type": "string",
   "description": "عائلة النموذج"
  },
  "version": {
   "type": "string",
   "description": "الإصدار"
  },
  "governing_language": {
   "type": "string",
   "description": "اللغة المعتمدة للنص الرسمي"
  },
  "dates": {
   "type": "object",
   "properties": {
    "adopted": {
     "type": "string",
     "description": "تاريخ"
    },
    "published": {
     "type": "string",
     "description": "تاريخ"
    },
    "in_force": {
     "type": "string",
     "description": "تاريخ"
    },
    "applies_from": {
     "type": "string",
     "description": "تاريخ"
    },
    "repealed": {
     "type": "string",
     "description": "تاريخ"
    }
   }
  },
  "definition": {
   "type": "object",
   "properties": {
    "text": {
     "type": "string",
     "description": "نص التعريف"
    },
    "source": {
     "type": "integer"
    }
   }
  },
  "scope_note": {
   "type": "string",
   "description": "ما يشمله المفهوم وما لا يشمله"
  },
  "facts": {
   "type": "array"
  },
  "external_ids": {
   "type": "object"
  },
  "relations": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "type": {
      "enum": [
       "developed_by",
       "released_by",
       "owned_by",
       "part_of",
       "based_on",
       "trained_on",
       "supersedes",
       "regulated_by",
       "involves",
       "authored_by",
       "located_in",
       "related_to",
       "broader",
       "evaluated_on",
       "derived_from",
       "deployed_by",
       "funded_by",
       "under_framework"
      ]
     },
     "target": {
      "type": "string",
      "description": "معرّف"
     },
     "label": {
      "type": "string",
      "description": "اسم"
     },
     "since": {
      "type": "string",
      "description": "تاريخ"
     },
     "until": {
      "type": "string",
      "description": "تاريخ"
     },
     "status": {
      "enum": [
       "confirmed",
       "candidate",
       "disputed"
      ]
     },
     "binding": {
      "enum": [
       "mandatory",
       "voluntary"
      ]
     },
     "source": {
      "type": "integer"
     },
     "note": {
      "type": "string",
      "description": "سبب العلاقة"
     }
    }
   }
  },
  "events": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "description": "تاريخ"
     },
     "title": {
      "type": "string",
      "description": "العنوان"
     },
     "source": {
      "type": "integer"
     },
     "precision": {
      "enum": [
       "day",
       "month",
       "year",
       "approx"
      ]
     },
     "category": {
      "enum": [
       "release",
       "regulation",
       "incident",
       "corporate",
       "research",
       "indicator",
       "legal",
       "other"
      ]
     },
     "status": {
      "enum": [
       "confirmed",
       "alleged",
       "planned",
       "cancelled"
      ]
     }
    }
   }
  },
  "claims": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "text": {
      "type": "string",
      "description": "النص"
     },
     "by": {
      "type": "string",
      "description": "القائل"
     },
     "sources": {
      "type": "array"
     },
     "against": {
      "type": "array"
     },
     "status": {
      "enum": [
       "supported",
       "disputed",
       "unsupported",
       "withdrawn"
      ]
     },
     "checked": {
      "type": "string",
      "description": "تاريخ"
     },
     "note": {
      "type": "string",
      "description": "ملاحظة"
     }
    }
   }
  },
  "sources": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "n",
     "title",
     "url",
     "accessed",
     "level"
    ],
    "properties": {
     "n": {
      "type": "integer"
     },
     "title": {
      "type": "string",
      "description": "العنوان"
     },
     "url": {
      "type": "string",
      "description": "الرابط"
     },
     "archive": {
      "type": "string",
      "description": "رابط النسخة المؤرشفة"
     },
     "publisher": {
      "type": "string",
      "description": "الناشر"
     },
     "date": {
      "type": "string",
      "description": "تاريخ النشر"
     },
     "accessed": {
      "type": "string",
      "description": "تاريخ الاطلاع"
     },
     "level": {
      "enum": [
       1,
       2,
       3,
       4
      ]
     }
    }
   }
  }
 }
}