{"id":1293,"date":"2026-02-15T20:14:30","date_gmt":"2026-02-15T20:14:30","guid":{"rendered":"https:\/\/docs.ai.drawconclusions.org\/?page_id=1293"},"modified":"2026-02-24T12:45:55","modified_gmt":"2026-02-24T12:45:55","slug":"architecture-relations-aem","status":"publish","type":"page","link":"https:\/\/docs.ai.drawconclusions.org\/?page_id=1293","title":{"rendered":"Architecture: Relations (AEM)"},"content":{"rendered":"<h2>Overview<\/h2>\n<ul>\n<li>AEM = Atom\u2013Electron\u2013Molecule.<\/li>\n<li>Used for structured relations with ordering\/metadata.<\/li>\n<\/ul>\n<h2>Key Components (Legacy)<\/h2>\n<h2>Components<\/h2>\n<ul>\n<li>Storage entity: <code>- old\/dracon\/src\/Entity\/Item\/Relation\/AtomElectronMolecule\/AemDbRelationEntity.php<\/code><\/li>\n<li>Auto item trait: <code>- old\/dracon\/src\/Entity\/Item\/AutoItem\/RelationTrait\/AutoItemEntityAemRelationTrait.php<\/code><\/li>\n<li>Electron entities:<\/li>\n<li><code>- old\/dracon\/src\/Entity\/Item\/Relation\/AtomElectronMolecule\/ConDimElectronEntity.php<\/code> (rank)<\/li>\n<li><code>- old\/dracon\/src\/Entity\/Item\/Relation\/AtomElectronMolecule\/SenExpElectronEntity.php<\/code> (focus\/enjoyment)<\/li>\n<li>Relation convention: <code>- old\/dracon\/src\/Conventions\/App\/RelationConvention.php<\/code><\/li>\n<\/ul>\n<h2>Behavior<\/h2>\n<ul>\n<li>Molecule = the main item that owns the structure.<\/li>\n<li>Atom = the related item.<\/li>\n<li>Electron = metadata (rank\/order\/focus).<\/li>\n<li>Sorting uses the electron\u2019s sorting getter (rank or focus).<\/li>\n<\/ul>\n<h2>Next Layer<\/h2>\n<h2>Next<\/h2>\n<ul>\n<li>Implementation Notes: <code>implementation_aem.md<\/code><\/li>\n<\/ul>\n<p class=\"developerdocs-id-search\" aria-hidden=\"true\">DeveloperDoc ID: dd_id_44d0fe26f8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview AEM = Atom\u2013Electron\u2013Molecule. Used for structured relations with ordering\/metadata. Key Components (Legacy) Components Storage entity: &#8211; old\/dracon\/src\/Entity\/Item\/Relation\/AtomElectronMolecule\/AemDbRelationEntity.php Auto item trait: &#8211; old\/dracon\/src\/Entity\/Item\/AutoItem\/RelationTrait\/AutoItemEntityAemRelationTrait.php Electron entities: &#8211; old\/dracon\/src\/Entity\/Item\/Relation\/AtomElectronMolecule\/ConDimElectronEntity.php (rank) &#8211; old\/dracon\/src\/Entity\/Item\/Relation\/AtomElectronMolecule\/SenExpElectronEntity.php (focus\/enjoyment) Relation convention: &#8211; old\/dracon\/src\/Conventions\/App\/RelationConvention.php Behavior Molecule = the main item that owns the structure. Atom = the related item. Electron = metadata (rank\/order\/focus). Sorting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1292,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[],"doc_layer":[30],"class_list":["post-1293","page","type-page","status-publish","hentry","layer-dd_id_8f59177ca0"],"_links":{"self":[{"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=\/wp\/v2\/pages\/1293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1293"}],"version-history":[{"count":5,"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=\/wp\/v2\/pages\/1293\/revisions"}],"predecessor-version":[{"id":3808,"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=\/wp\/v2\/pages\/1293\/revisions\/3808"}],"up":[{"embeddable":true,"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=\/wp\/v2\/pages\/1292"}],"wp:attachment":[{"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1293"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_category&post=1293"},{"taxonomy":"doc_layer","embeddable":true,"href":"https:\/\/docs.ai.drawconclusions.org\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_layer&post=1293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}