Draconai Documentation

dd_id_bbb13b9988
3. App Technical

Architecture: Relations (SOTO)

Overview

  • SOTO = text-embedded semantic relations.
  • The relation is authored inside a content field and parsed into DB relations.

Key Components (Legacy)

Components

  • Storage entity: - old/dracon/src/Entity/Item/Relation/SimpleOneToOneRelation/SotoDbRelationEntity.php
  • Auto item trait: - old/dracon/src/Entity/Item/AutoItem/RelationTrait/AutoItemEntitySotoRelationTrait.php
  • Stores soto_string and active/passive relation collections.
  • Relation convention: - old/dracon/src/Conventions/App/RelationConvention.php

Behavior

  • Active item = the item containing the reference tag.
  • Passive item = the referenced item.
  • Unique constraint: one active/passive pair per relation type.

Next Layer

Next

  • Implementation Notes: implementation_soto.md