Semantic Annotations

Semantic Annotations#

Semantic annotations attach meaning to the bodies and regions in a world: that a body interpreted as a handle, or that a collection of bodies is interpreted as a double door. Because they are plain, typed Python classes, you can reason over them with the Entity Query Language and persist them through the ORM.

This part of the guide collects the semantic-annotation tutorials:

  • Semantic Annotations — what semantic annotations are and how to define your own.

  • Part-Whole Relationships — building annotations from structural parts via the part-whole relationship, using the unified add method and part-whole relationship fields.

  • Factories — convenience factories that spawn an annotation together with a body and generated geometry.