This invention discloses a storage optimization method and
system for crowdsourced querying of knowledge graphs in the field of
Traditional Chinese Medicine (TCM). The method includes: storing TCM
RDF triple data in the form of an
adjacency list; constructing an uncertain edge index based on a
hash table and a definite edge index based on a B+ tree for different patterns in crowdsourced queries, where the known predicate is not the subject / object or the known subject / predicate / object combination, with index entries pointing to an inverted
linked list storing entity ID sequences; supporting
dynamic maintenance of the
adjacency list and indexes during incremental data updates; for unknown nodes in the query graph, retrieving the candidate entity ID set for each edge using a
hybrid index, and calculating and returning the top K candidate nodes with the minimum overall cost based on a preset
crowdsourcing cost using a Top-K matching
algorithm based on a max-heap. This invention effectively solves the problems of low
storage efficiency, index mismatch, and poor update
scalability in TCM
knowledge graph crowdsourced query scenarios, achieving efficient storage, fast querying, and low-cost
crowdsourcing.