Packaging Graphs and Queries
We’re going to save our graph serializations and database queries in the graph store, and we’ll need some data access properties to describe them. To keep things simple, let’s say we’re going to work with text-based formats only.
We’ll want to encapsulate those graph and query serializations, along with the properties for accessing them, into data packages for transporting to and from the graph store. Essentially, we’re building containers for the graphs and queries. We’ll use structs for those data packages—one for graphs and one for queries.
So let’s extend our module structure to add in a new module for a %GraphCommons.Graph{} struct to capture a graph serialization. We’ll also add a module for a %GraphCommons.Query{} ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access