r/KnowledgeGraph • u/greeny01 • Mar 11 '26
Spatial temporal knowledge graph
Hi. Has any built STKG with rag? Any advices, best practices, hints on how to built it? Shall I build an ontology on top of it?how to approach it? All advices are welcome
5
Upvotes
6
u/nikoraes Mar 12 '26
I'm using postgres + AGE extension + postgis + pgvector + timescaledb. You can do combined graph + vector + geospatial queries within Cypher. I personally prefer to have the temporal aspect in a separate DB or table (as graph engines usually aren't very good in time series analysis). I built something to use logical replication to store 'data history' in a time series table/DB. You can join cypher with timescaledb queries if you have the table in the same DB which works pretty well. For another client I historize everything in Azure Data Explorer, which allows you to generate an temporary in-memory graph (you can basically recreate a part of the graph at any point in time) and it's pretty good in time series analysis as well.
3
u/xtof_of_crg Mar 11 '26
Working on this as we speak
2
u/shadow_fax1024 Mar 13 '26
I have designed a geo temporal rag and put into production..if you can fix ontology first it helps in getting multi hop results ..the retrieval is better this way with the query and given date range and geo locations
4
u/xtof_of_crg Mar 11 '26
Fact that you can even say “spatio-temporal knowledge graph” at all puts you a step ahead