{"id":"public.thing_relationship_qgis","schema":"public","name":"thing_relationship_qgis","description":"One row per thing_relationship triple with both endpoints' identity, concept glyph, and a synthesized LineString geometry (ST_MakeLine of the two things' points) connecting subject to object -- the real data source for drawing relationship lines on the map, replacing the hardcoded K18/K1 prototype in lmb-maptwo/map.js. Plain view, not materialized, per Toby's request -- refresh cost is just thing_relationship's own sync (see sync_thing_relationships in lmb-sdk) plus two indexed joins, no separate REFRESH step needed. Skips either-geom-null rows outright (a relationship whose subject or object has no thing.geom set can't draw a line), and skips any relationship involving K1 (Bainbridge Island itself, kid=1) -- too coarse an endpoint to draw a useful line to/from (e.g. R38 location to the island itself would stretch across the whole map); the underlying thing_relationship triple is untouched, this is purely a rendering exclusion. subject_glyph/object_glyph are LEFT JOINed from concept_qgis (via lmb_has_type_cid) since a thing may have no concept assigned at all -- NULL, not a missing row, in that case. forward_phrase/inverse_phrase (not heading/inverse_heading) are the real verb-phrase sentence form -- \"{subject_label} {forward_phrase} {object_label}\" reads as an actual sentence, e.g. \"Helix House is part of Naval Radio Transmitting Station Battle Point\".","properties":[{"name":"subject_kid","type":"int4","description":""},{"name":"subject_kno","type":"text","description":""},{"name":"subject_label","type":"varchar","description":""},{"name":"subject_glyph","type":"varchar","description":""},{"name":"rid","type":"int8","description":""},{"name":"rno","type":"varchar","description":""},{"name":"forward_phrase","type":"text","description":""},{"name":"inverse_phrase","type":"text","description":""},{"name":"object_kid","type":"int4","description":""},{"name":"object_kno","type":"text","description":""},{"name":"object_label","type":"varchar","description":""},{"name":"object_glyph","type":"varchar","description":""}],"geometrytype":"LineString","center":[-94.95269182720205,-4.129823202541363],"bounds":[-122.61621665440408,-55.98,-67.289167,47.72035359491727],"minzoom":0,"maxzoom":22,"tileurl":"https://tiles.letsmapbainbridge.org/public.thing_relationship_qgis/{z}/{x}/{y}.pbf"}
