cancervariants / metakb

Central repository for the VICC metakb web application
MIT License
14 stars 4 forks source link

Refactor graph/DB methods #373

Open jsstevenson opened 1 week ago

jsstevenson commented 1 week ago

Started looking at this in #356 but the later versions of the Neo4j Python SDK recommend that you use Graph.execute_query for simple queries (for our purposes, reads). Additionally, we're using a transaction-based API for all of our writes, but we're not actually packaging them as collected transactions. Finally, it might be good to separate out concerns related to graph connection instantiation/management and tailored write methods upon the graph.