The specification discloses a spatio-temporal
knowledge graph construction method,
system and device for
ecological risk prediction, which accesses spatio-temporal data through a platform
data interface, structurally processes the spatio-temporal
entity model data containing geometric attributes, time attributes and state attributes, constructs a
hybrid spatio-temporal index combining spatial index and
time index, performs spatial range retrieval on an
entity model library according to a given target entity, determines a candidate entity set, combines the state attributes, calculates the correlation strength between entities through a preset quantitative calculation model, generates an enhanced relationship edge containing a
weight value and a quantitative indicator, maps the spatio-temporal entity and the enhanced relationship edge to a
graph database, and obtains a spatio-temporal
knowledge graph; receives a query request containing spatio-temporal constraint conditions and attribute filtering conditions, performs
graph traversal and screening based on the
weight value and the quantitative indicator of the enhanced relationship edge, and outputs a query result; and updates the spatio-temporal
knowledge graph according to a preset data cycle.