diagram manager query, semantics

query is done.
semantics has all the functions except triangles (to be figured out).
Need to label chord end points.