The RT Topology Library exposes an API to create and manage standard (ISO 13249 aka SQL/MM) topologies using user-provided data stores.

WWW: https://strk.kbt.io/projects/rttopo/
