Example 8: Multi-Edge Weights with Filters and dress Transforms¶
This example ingests ticker CSV data into Neo4j with:
- Two vertex types —
ticker(byoftic) andmetric(byname+value), wheremetricrows are filtered so only Open, Close, and Volume with positive values become vertices. - One edge —
ticker→metricwith multiple weights (directont_obsplus nestedverticesmetadata on the metric endpoint). - Transforms with
dress—round_strandinttransforms targeted at specific(name, value)pairs viadress: { key: name, value: value }, plus a date parse that emitst_obs.
Layout¶
examples/8-multi-edges-weights/manifest.yaml— logical schema, DB profile (Neo4j indexes, edge specs), transforms, andticker_dataresource pipeline.examples/8-multi-edges-weights/ingest.py—FileConnector+Bindings, thenGraphEngine.define_and_ingest(...).examples/8-multi-edges-weights/data.csv— sample OHLCV-style rows.
Run locally¶
From the example directory, with Neo4j running (see repo docker/neo4j), run:
Related¶
- Polymorphic routing (Example 7) uses
vertex_router+ dynamicedgefor type-discriminated tables; this example uses filters on a vertex type and multi-weight edges instead.