.. badge:: Full Course :color: blue .. badge:: Developer Track :color: orange EM Data Architecture and the Python Library =========================================== .. raw:: html

▶ EM Data Architecture and the Python Library (~~7 min)

| **Clip:** 11 | **Duration:** ~7 min | **Recording segment:** ~50:00 → 57:29 ---- Prerequisites ------------- :doc:`09-grey-zone-combining` Overview -------- Under the hood: EM stores data as a JSON property graph (not a relational database). The Python library reads and writes this graph, exposes a REST API, and connects Blender with the Heriverse web platform. Node types and qualia vocabularies are defined in JSON files bundled with the code — offline-first. .. figure:: /_static/screenshots/clip_11/0001_architecture_diagram.jpg :alt: EM architecture: Blender → Python library → JSON graph → Heriverse. :width: 90% EM architecture: Blender → Python library → JSON graph → Heriverse. Key Concepts ------------ - EM data = JSON property graph, not a relational database. - The Python library mediates between Blender, yEd, and the Heriverse web platform. - Node types and qualia are defined in JSON — changing one file propagates to all tools. - Vocabularies (Getty, CIDOC) are bundled for offline use — no internet required. - A REST API exposes the graph for external tools and automation. Screenshots ----------- .. figure:: /_static/screenshots/clip_11/0002_json_node_declaration.jpg :alt: The node declaration JSON file defining all node types and connectors. :width: 90% The node declaration JSON file defining all node types and connectors. .. figure:: /_static/screenshots/clip_11/0003_qualia_json_getty_links.jpg :alt: Qualia definitions with linked Getty vocabulary URIs. :width: 90% Qualia definitions with linked Getty vocabulary URIs. .. figure:: /_static/screenshots/clip_11/0005_rest_api_docs.jpg :alt: The EM Python library REST API documentation. :width: 90% The EM Python library REST API documentation. Try It Yourself --------------- Open the EM node types JSON in a text editor and add a new qualia property to the 'construction' node type. .. note:: A video walkthrough for this tutorial will be available on the Extended Matrix YouTube channel. .. seealso:: :doc:`Installing EM Tools: yEd and Blender `