mapmaker.annotation.json_annotations module

class mapmaker.annotation.json_annotations.Annotation(*, name: str = <factory>, term: str = <factory>, parents: str = <factory>, properties: dict[str, typing.Any] = <factory>)[source]

Bases: object

name: str
term: str
parents: str
properties: dict[str, Any]
property parent_list
class mapmaker.annotation.json_annotations.JsonAnnotations(annotation_file: str)[source]

Bases: object

property systems: list[mapmaker.annotation.json_annotations.Annotation]
property nerves: list[mapmaker.annotation.json_annotations.Annotation]
property vessels: list[mapmaker.annotation.json_annotations.Annotation]
property organs: list[mapmaker.annotation.json_annotations.Annotation]
property ftus: list[mapmaker.annotation.json_annotations.Annotation]
add_system(name: str)[source]
add_nerve(name: str, parent: str)[source]
add_vessel(name: str)[source]
add_organ(name: str, systems: set[str])[source]
add_ftu(name: str, organ: str, connected: bool = False)[source]
save()[source]