Skip to Main Content
Exploring Graphs with Elixir
book

Exploring Graphs with Elixir

by Tony Hammond
November 2022
Intermediate to advanced content levelIntermediate to advanced
294 pages
5h 58m
English
Pragmatic Bookshelf
Content preview from Exploring Graphs with Elixir

Modeling the Book Graph

Once again, let’s go back to our book graph—see this figure which shows our reference book graph.

The following figure shows how this reference graph can be mapped in Dgraph.

images/book-dgraph-book-graph.png

Note that this resembles the RDF graph but with properties added to the edges.

We have some choices in how we load our book graph. We can load the data directly, and Dgraph will auto-generate predicates for us. A more principled way of proceeding would be to define a schema with types and predicates and to load that first.

Again, we have another choice. We can define a GraphQL schema, and Dgraph will auto-generate a DQL schema, or we can define a ...

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.
Start your free trial

You might also like

Concurrent Data Processing in Elixir

Concurrent Data Processing in Elixir

Svilen Gospodinov

Publisher Resources

ISBN: 9798888650059Errata Page