Graph Model for Open Street Map Data


(Giang Ngo) #1

I am working on Open Street Map (OSM) data, I want to import OSM data to DGraph database so I can write A* algorithm using DGraph, to find the optimal routes.
But I am new to the Graph Database, and I have no idea how to model OSM data as a graph.
Do the edges of a graph have their own properties like a road that connecting 2 intersection has its own name, type of road and length?


(Michel Conrado (Support Engineer)) #2

Edge Concept https://docs.dgraph.io/design-concepts/#edges

An Edge can have specific attributes using Facets. But Facets are not first-class citizens. https://docs.dgraph.io/query-language/#facets-edge-attributes

We have a good tour for you https://tour.dgraph.io/

Also we have Geolocation https://docs.dgraph.io/query-language/#geolocation


(Giang Ngo) #3

@MichelDiz, Thanks <3<3<3<3