MAI-DATA — Registry v0.10.1 · Data as of 20 October 2026
Using the registry data
The registry is published as JSON files that can be read and checked without this site's code. This page describes the files and their identifiers, where each statement comes from, what null and absent values mean, how versions work, and which answers can be recomputed from the data.
Rights. No content or data licence has been declared for the registry. Each record quotes a third-party source, and those quotations remain subject to their publishers' rights: nothing here grants a right to republish source material. TheMoroccoAI is independent and is not affiliated with the Government of Morocco or any institution it lists.
01Files
Start with /data/manifest.json. It lists each file with its role and the SHA-256 of the version published in the same build. Canonical files are maintained by hand and validated on every build; derived files are generated from them and say so in derived_from. Every file is plain UTF-8 JSON and needs no authentication.
Scroll horizontally to see all 3 columns.
| File | Role | Contents |
|---|---|---|
/data/evidence.json | canonical | Evidence records: source URL and organisation, publication and retrieval dates, verbatim excerpts, classification, verification status and note. Defines the classifications and verification statuses it uses. |
/data/ontology.json | canonical | Entity types, lifecycle stages, project kinds, origins, domains and predicates (each defined), then entities and typed relationships, each citing records in evidence.json. |
/data/gaps.json | canonical | Evidence gaps: what is established (with records), what is not, what would resolve each, the records and data digest each assessment rests on, and the data checks re-run on every build. |
/data/changelog.json | canonical | Published registry versions, corrections, and the commit or pull request behind each. |
/registry/matrix/matrix.json | derived | One row per relationship between an organisation or initiative and what it acts on, with the rules used to derive each row. |
/registry/gaps/gaps.json | derived | The gap register as published, with computed relationship lists resolved; it omits the checks and digests kept in data/gaps.json. |
/registry/changes/changes.json | derived | Classified changes to the documented record between published registry versions (evidence, entities, relationships, gaps, data contract), each with materiality, subject, before and after values, evidence and labelled dates. Computed from the repository's published history by tools/changes.py; it describes the record, not events in the world. |
/registry/reference-state.json | derived | Reference projections of the canonical data (counts, lifecycle and status-basis projections, official target records with their covering gap, open gaps, entity assessments, announcement-only and inferred relationships), each with its published rule and the SHA-256 of the canonical files it was computed from. No scores, conflicts or progress. |
The HTML pages are generated from the same files. Every entity page also embeds its entity as JSON-LD.
02Identifiers
- Evidence records:
MAI-EV-NNNN(evidence_idin evidence.json). Readable at/registry/evidence/#MAI-EV-NNNN. - Entities: a lowercase slug (
idin ontology.json), also the page address/registry/<id>/. - Relationships: have no separate identifier. Each is the triple
subject,predicate,object, which the validator keeps unique; matrix.json writes it assubject|predicate|object. - Gaps:
GAP-NN, readable at/registry/gaps/#gap-nn. - Defined values: classifications, verification statuses, entity types, lifecycle stages, project kinds, origins, domains, predicates and gap states are keys of dictionaries that define them in the same file.
Published identifiers are not reused. A record, entity or relationship may be corrected or withdrawn; each such change is listed in the changelog, and a withdrawn identifier is never assigned to anything else. A record whose claim later evidence contradicts is kept and marked superseded_by.
Since v0.1.0, no evidence or entity identifier has been removed or reused: every identifier published in any version is still present, with the same source address for records and the same type for entities. Earlier versions are not published as files; a test checks this against every version of the data in the public repository's history on each build, and anyone can repeat it from that history. One relationship has been replaced as a correction (v0.2.0).
03Provenance
- Every entity cites records in
evidence; a lifecycle stage citeslifecycle_evidence, an originorigin_evidence, and each attribute its own record. - Every relationship cites records in
evidenceand carries oneclassification, which is never stronger than its records support. - Every record gives the
source_url,source_organization,source_type,publication_date,retrieval_date, verbatimsource_excerptsinsource_language, and averification_statuswith averification_notethat states the record's limits. claimis the registry's summary of what the source documents; the excerpts are the source's own words.- A record's classification describes what its source documents, not whether a plan was delivered or a target met.
- A signature is documented by a report of it unless a record of the signed text itself is cited (evidence_type
signed_instrument). Such a record is admitted only when the registry has read the signed text in full, from a party to it or an official publisher of it; a report, summary, press release or news item about the signing never qualifies, even from a signatory or the government. An official gazette text approving an instrument, with or without a published summary of it, records a legal act about the instrument: it is neither the signed text nor a report of the signing, and it never qualifies either. The validator checks what it can (classification, verification, source type, the instrument's title, date, signatories and declared access, and that each signatory_of relationship citing it names one of its signatories); that the text was in fact read is an editorial requirement. No such record exists yet: every signature in the registry rests on a report of the signing, and some also cite an official gazette record of the instrument's approval.
04Null, absent and unknown values
publication_date: nullmeans the source is undated. Useretrieval_date, the day the source was read, which is always present. Dates areYYYY-MM-DD, orYYYY-MMwhere the source gives only a month.- An absent optional field means "not recorded", never "no" or "none". For example, an entity without
lifecycleis of a type that has no stage, and a record withoutstatus_evidencedeclares no stage. - In matrix.json,
object.lifecycleandobject.stageare null for entity types without a stage. - An empty list means none is recorded here, not that none exists.
- A defined value (classification, stage, predicate, gap state) that is not defined in its file is an error. A consumer should stop rather than guess its meaning; the example below does.
- The values accepted for
source_type,evidence_typeandstatus_basisare listed in the manifest undervocabularies. - Free-text fields (
status,note,summary,qualifications) are for readers and are not a controlled vocabulary.
05Versions and updates
- evidence.json and ontology.json carry the same
versionandas_ofdate, which the validator enforces; derived files carry them asregistry_versionandas_of.as_ofis the date the registry's sources were last checked. - The registry version changes, with a changelog entry, whenever the published reference data or its meaning changes: records, entities, relationships, gap assessments or the definitions they use. An editorial change that affects neither, such as a typo in a note, may be published without a new version. Every change is a commit in the public repository.
- data/gaps.json and data/changelog.json carry no version of their own: their place in a build is shown by the manifest only.
- Fetch the manifest first and compare each file's SHA-256. A mismatch means the file came from a different build, for example while a new version propagates through caches; fetch again later.
- The hashes are published by the same site as the files. They show that the files you fetched belong to one build and were not changed after it; they are not a signature, and they do not show who published the files or that their content is accurate. Accuracy rests on the cited sources, which each record links to.
- When the data a gap rests on changes, the build fails until the gap is re-assessed. Each gap in data/gaps.json stores the records it was assessed against and a digest of that data (
assessed_fingerprint), which a consumer can recompute. - A gap with
entity_assessmentsis assessed per entity: for each entity, the records documenting each evidence dimension defined inentity_assessment(legal approval, governance event, staffing, premises, operational activity, outputs, documented non-commencement, documented discontinuation). Only a VERIFIED FACT about the entity can document a dimension. An entity resolves only through a published resolution path (documented operation, documented non-commencement, or documented discontinuation after operation), never on a legal approval, a governance event or missing records, and stays listed while the others remain open; the gap resolves when every entity has. An empty dimension means no qualifying record is recorded here, not that the thing does not exist.
06Coverage and limits
The registry holds what it has documented so far: 63 records, 65 entities and 78 relationships. It is not a complete map of Morocco's AI ecosystem, and an absent organisation, relationship or record is a gap in coverage. Public availability is not use, a signature or an announcement is not delivery, and a target is not an outcome. The methodology sets out what the registry does not establish, and the gap register lists 7 questions it cannot yet answer. Whether others use the data, and how, is not measured.
07Which answers can be recomputed
An answer is reproducible when it follows from the published data and published rules. Some parts rest on judgments that the data records but cannot derive; they are marked below. matrix.json publishes the rules for its derived fields, row order and caveats under derivation; registry/gaps/gaps.json publishes the gap checks and the digest algorithm.
Q8: organisations and projects
Scroll horizontally to see all 3 columns.
| Part of the answer | Status | From |
|---|---|---|
| Which organisations are connected to which projects, through which relationships | Reproducible | Matrix rows whose subject has type institution or company and whose object has type project, of any project kind (institutes, agreements, digital platforms, compute infrastructure and AI applications). Models, datasets and initiatives are not included. Organisations are listed by name compared in lower case; each organisation's rows keep matrix order, one line per relationship (an organisation with two relationships to one project has two); its evidence is the distinct ids of all its rows, sorted. Projects are counted as distinct entities |
| How each connection is documented (signed, developed, announced or planned, and so on) | Reproducible | The published documented_as rule, from the relationship's classification |
| How many connections rest only on announcements, news reports or descriptions | Reproducible | Rows whose documentation_basis is announcement-or-description, under the published rule |
| The counts in the summary sentence | Reproducible | Counting the rows above |
| Each relationship's classification, and the records it cites | Recorded, not derivable | An editorial judgment, made under the evidence rules and recorded in ontology.json |
| Each project's lifecycle stage and its basis | Recorded, not derivable | An editorial judgment; the validator checks that it is supported (manifest: classification_support): a stage beyond announced cites a record that declares it |
| The caveats (a signature is not delivery; these are the connections recorded here) | Fixed wording | Part of the answer's text, not computed |
Q9: official targets and recorded progress
Scroll horizontally to see all 3 columns.
| Part of the answer | Status | From |
|---|---|---|
| Which official targets are recorded, and for which strategy | Reproducible | Each record classified OFFICIAL TARGET, in evidence_id order, superseded or not; its claim (the registry's summary; the source's words are its excerpts); and each entity of type initiative among its related_entities, in that order. The targets relationships from strategies to sectors are not used |
| Which projects each strategy is recorded as including, and their stages | Reproducible | includes relationships from the strategy to entities with a lifecycle, in ontology.json order |
| Which gap covers the strategy, and whether it is open | Reproducible | data/gaps.json: the first gap, in file order, whose entities include the strategy, and its state |
| That no recorded evidence measures progress towards the targets of Morocco AI 2030 or Digital Morocco 2030 | Editorial assessment | GAP-02 and GAP-06 are open because an editor judged that their assessed records quantify no progress: for Morocco AI 2030 these include the ministry's presentation of main advances (MAI-EV-0040); for Digital Morocco 2030, a statement about digital spending (MAI-EV-0003), which is an unchecked input figure, not progress. No data check backs this judgment; a consumer can confirm that the data it rests on has not changed since (its digest) but cannot re-derive the judgment |
| That every strategy with an official target has a gap on its progress | Reproducible | The build refuses to publish an initiative related to an OFFICIAL TARGET record that no gap's entities include |
Reference state
reference-state.json publishes projections of the canonical data, each with its rule under derivation and the SHA-256 of the canonical files it was computed from (derived_from). It is computed from those files only; the manifest, which lists the reference state's own SHA-256, is generated after it. Every reference projection is reproducible from the published canonical data. Fixed contract metadata is explicitly labelled recorded-not-derivable. Where a field copies or counts a recorded editorial judgment (a classification, a lifecycle stage, a gap's state), its rule names that judgment under rests_on. It describes what this registry records, not Morocco's AI ecosystem. The reference state page presents it for reading.
Scroll horizontally to see all 3 columns.
| Field | Status | Rule |
|---|---|---|
scope | Recorded not derivable | The approved fixed scope statement for this file. It is contract metadata published with the snapshot; it is not derived from evidence.json, ontology.json or gaps.json, and a change to those files never changes it. |
documentation | Recorded not derivable | The fixed path of the data reference page (/data/). It is contract metadata published with the snapshot; it is not derived from evidence.json, ontology.json or gaps.json. |
registry_version | Reproducible | evidence.json version. |
as_of | Reproducible | evidence.json as_of. |
derived_from | Reproducible | For each file in this order, /data/evidence.json, /data/ontology.json, /data/gaps.json: its path and the SHA-256 of its bytes as published. These are the only inputs. The manifest is not an input: it is generated after this file and lists this file's own SHA-256. |
counts.records_by_classification | Reproducible | For each key of evidence.json classifications, the number of records with that classification, superseded records included; 0 when none. |
counts.records_by_verification_status | Reproducible | For each key of evidence.json verification_statuses, the number of records with that verification_status; 0 when none. |
counts.relationships_by_classification | Reproducible | For each key of evidence.json classifications, the number of relationships in ontology.json with that classification; 0 when none. |
counts.entities_by_type | Reproducible | For each key of ontology.json entity_types, the number of entities of that type; 0 when none. |
counts.records | Reproducible | The number of records in evidence.json. |
counts.entities | Reproducible | The number of entities in ontology.json. |
counts.relationships | Reproducible | The number of relationships in ontology.json. |
superseded_records | Reproducible | Every record with a non-empty superseded_by: evidence_id and superseded_by (its order kept), sorted by evidence_id. A superseded record stays published and cannot set a lifecycle stage. |
lifecycle.entities | Reproducible | Every entity whose type has a lifecycle (project, model, dataset): id, type, project_kind (null for types without one), lifecycle, lifecycle_evidence (its order kept) and status_bases, the sorted distinct status_basis values of its lifecycle_evidence records whose status_evidence equals its lifecycle (empty when none). Sorted by id. |
lifecycle.by_type_and_kind | Reproducible | lifecycle.entities counted by (type, project_kind, lifecycle): one entry per combination that occurs, with its count, sorted by type, then project_kind (null first), then lifecycle. |
operational_or_pilot | Reproducible | The entries of lifecycle.entities whose lifecycle is operational or pilot, with status_evidence_records (the entity's lifecycle_evidence records whose status_evidence equals its lifecycle, in lifecycle_evidence order) and counts_as_ai_deployment, true exactly when project_kind is ai-application: under ontology.json project_kinds, compute infrastructure is not by itself an AI application and a digital platform never counts as an AI deployment. Initiatives have no lifecycle and never appear. Sorted by id. A basis of public-availability-observed shows that a service was offered on a date, not that it is used. |
operational_or_pilot_by_status_basis | Reproducible | For each status_basis that occurs in operational_or_pilot status_evidence_records, the sorted ids of the entities with a status record on that basis. Keys are the bases (an entity can appear under more than one). |
announced_projects_by_kind | Reproducible | For each key of ontology.json project_kinds, the sorted ids of projects whose lifecycle is announced; an empty list when none. Announced means no record declaring a later stage is recorded here, not that the project was not delivered. |
unresolved_lifecycle | Reproducible | Every entity whose lifecycle is unresolved: id, type, project_kind and lifecycle_evidence, sorted by id. The reason is in the entity's note in ontology.json. This concerns the lifecycle stage only. |
unresolved_origin | Reproducible | Every company whose origin is unresolved: id and origin_evidence, sorted by id. This concerns the company's origin only and is unrelated to unresolved_lifecycle. |
official_targets | Reproducible | Every record classified OFFICIAL TARGET, superseded or not, sorted by evidence_id: evidence_id, target_year and initiatives. initiatives lists each entity of type initiative among the record's related_entities, in that order, with covering_gap (the first gap in data/gaps.json order whose entities include it; null when none) and gap_state (that gap's state; null when none). Nothing here states whether a target was met: a gap's text, not this file, records what the registry establishes about progress. |
open_gaps | Reproducible | Every gap in data/gaps.json whose state is open, in file order: id, entities (their order kept), assessed, assessed_fingerprint (null when the gap has no entities) and has_entity_assessments. |
entities_in_open_gaps | Reproducible | For each entity listed by an open gap, the ids of the open gaps listing it, in file order. Keys are entity ids. An entity not listed is not thereby complete. |
entity_assessments | Reproducible | For every gap with entity_assessments, in file order: gap and assessments, a verbatim copy of the gap's entity_assessments as published in data/gaps.json and /registry/gaps/gaps.json, including any note. Their keys are written sorted; the display order of the dimensions is entity_assessment.dimension_order in /registry/gaps/gaps.json. |
announcement_only_relationships | Reproducible | The list published as relationships by the gap whose check is computed_relationships (announcement_only) in /registry/gaps/gaps.json, recomputed by the rules in /registry/matrix/matrix.json derivation.documentation_basis: id, subject, relationship, object, classification and evidence, in matrix row order. |
independent_analysis_relationships | Reproducible | Every relationship classified INDEPENDENT ANALYSIS: id (subject|predicate|object), subject, relationship, object and evidence (its order kept), sorted by (subject, relationship, object). Each is an inference by the registry, labelled as such. |
records_unverified_claim | Reproducible | The sorted evidence_ids of records classified UNVERIFIED CLAIM. |
records_announced_plan | Reproducible | The sorted evidence_ids of records classified ANNOUNCED PLAN. |
records_partially_verified | Reproducible | The sorted evidence_ids of records whose verification_status is partial. |
It deliberately does not include:
- Any score, confidence or completeness measure, and any single evidence state per entity.
- Any list or count of conflicts between sources: conflicts are recorded in gap statements and record notes, not in a governed field.
- Any measure, count or statement of progress towards a target, of targets met or not met, or of indicators.
- Any sum of amounts, including appropriations for different years.
- Any rank computed by the registry, including a rank on the Online Services Index.
- Any classification of entities by first-party sources.
- domain, or any role, function or status of an actor inferred from it.
- Free-text summaries, notes or statuses, except the notes inside the verbatim copy of entity_assessments; each entity's reasons are in ontology.json.
08Checking the data yourself
/examples/registry_consumer.py (also in the repository) reads only the published JSON. It uses the Python 3.10+ standard library and does not import this site's code. It stops with an error if a reference is missing, a value is undefined or the files do not belong to the same build.
python3 registry_consumer.py verify: checks the manifest and every reference. It also recomputes the matrix, the GAP-05 list, each gap's data checks and digest, and every reproducible field of reference-state.json, validates its fixed contract metadata, and compares them with the published files.python3 registry_consumer.py relationship ministry-digital-transition operates idarati-ai: a relationship, its classification, and each supporting record with its source, dates and limits.python3 registry_consumer.py gap GAP-03: what a gap establishes and does not, with the result of its data checks.python3 registry_consumer.py q8andq9: the reproducible parts of those answers.
By default it reads https://themoroccoai.com. Use --source with another address or a local copy of the site.
09Changes to the data contract
A breaking change makes data that a consumer accepted under one version fail under the next. Each is listed here, in the manifest (breaking_changes) and in the changelog. Old values are not accepted as aliases, so a consumer built for an earlier version fails rather than misreads the data.
Scroll horizontally to see all 7 columns.
| Version | Field | Old value | New value | Why | Effect on an earlier consumer | Migration |
|---|---|---|---|---|---|---|
| 0.5.0 | /registry/matrix/matrix.json rows[].documentation_basis | includes-formal-record | includes-non-announcement-record | The value marks a formal-act relationship that cites at least one record other than an announcement: an official report, a regulatory record, a repository, a publication, a ranking or a direct observation. The old name described these as formal records of the act, which for signatures read as the signed text; no such text is recorded for any signature. The rows it applies to are unchanged; only the name changed. In v0.10.1 it applies to 22 rows. | A consumer that compares this field with the old value fails: the v0.4.1 example consumer exits with status 1 and reports, for each row, "has documentation_basis 'includes-non-announcement-record'; the published data gives 'includes-formal-record'". | Replace the old value with the new one, or read the names from derivation.documentation_basis.assignment in matrix.json, as the v0.5.0 example consumer does. |
Other changes in v0.5.0 add to the data without changing what existing values mean: a sentence in the qualifications of every Signed row, a sixth gap (GAP-06), and the evidence type signed_instrument in the manifest's vocabularies. A consumer that compares qualifications or gap lists exactly will see the additions.
10Corrections
Send corrections, with the record or entity identifier and a source, to agent@sohadot.com. Corrections are made in the canonical files and re-validated, then published as a new version, with the change listed in the changelog.