Re: Data model design questio: graph in database

2024-02-29 Thread Sébastien Hinderer
Dear Ryan, 'Ryan Nowakowski' via Django users (2024/02/26 17:39 -0600): > You might consider using GenericRelation. That would allow you to query the > edges that have a certain vertex type. > > https://docs.djangoproject.com/en/5.0/ref/contrib/contenttypes/#generic-relations That looks indeed

Re: Data model design questio: graph in database

2024-02-26 Thread Sébastien Hinderer
Dear mike, Mike Dewhirst (2024/02/27 17:10 +1100): > On 26/02/2024 8:00 pm, Sébastien Hinderer wrote: > > I will thus need to find a way to disable in the admin interface the > > possibility to work directly on the Vertex and Edge classes, but I > > expect the documentation will tell me how to ach

Re: Data model design questio: graph in database

2024-02-26 Thread Mike Dewhirst
On 26/02/2024 8:00 pm, Sébastien Hinderer wrote: I will thus need to find a way to disable in the admin interface the possibility to work directly on the Vertex and Edge classes, but I expect the documentation will tell me how to achieve this. In fact you need to enable the classes you want -

Re: Data model design questio: graph in database

2024-02-26 Thread Sébastien Hinderer
Hi again, Jason (2024/02/25 17:28 -0800): > Question about this, why focus on using a rdbms for this functionality vs > using an actual graph db like neo4j with neomodel > ? I'm actually a bit nervous about giving up completely the relational mo

Re: Data model design questio: graph in database

2024-02-26 Thread Sébastien Hinderer
t; find such an approach very comforting.CheersMike--(Unsigned mail from my > phone) > Original message From: Sébastien Hinderer > Date: 25/2/24 21:46 (GMT+10:00) To: > django-users@googlegroups.com Subject: Re: Data model design questio: graph > in database De

Re: Data model design questio: graph in database

2024-02-26 Thread Sébastien Hinderer
Dear Jason, Many thanks! Jason (2024/02/25 17:28 -0800): > Question about this, why focus on using a rdbms for this functionality vs > using an actual graph db like neo4j with neomodel > ? Oh simply because I was absolutely not aware of the exi

Re: Data model design questio: graph in database

2024-02-25 Thread Jason
Question about this, why focus on using a rdbms for this functionality vs using an actual graph db like neo4j with neomodel ? On Sunday, February 25, 2024 at 7:59:31 PM UTC-5 Mike Dewhirst wrote: > Re-reading your question perhaps I was too brie

Re: Data model design questio: graph in database

2024-02-25 Thread Mike Dewhirst
Re-reading your question perhaps I was too brief in my earlier response. Let me assume all your actual edges and vertices are objects of child classes. I also assume your base Edge and Vertex classes are abstract for inheritance purposes only. It doesn't matter whether instances of edges and v

Re: Data model design questio: graph in database

2024-02-25 Thread Mike Dewhirst
expect. I find such an approach very comforting.CheersMike--(Unsigned mail from my phone) Original message From: Sébastien Hinderer Date: 25/2/24 21:46 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Data model design questio: graph in database Dear Mike,I will

Re: Data model design questio: graph in database

2024-02-25 Thread Sébastien Hinderer
Dear Mike, I will definitely play aroudn with your nice suggestion, but I would like to share a concern I have. At this stage I am actually unsure how this will work. Indeed, suppose a vertex is given as input and one tries to query the database about all the edges that originate from this vertex

Re: Data model design questio: graph in database

2024-02-25 Thread Sébastien Hinderer
Dear Mike, Many thanks for your suggestion! I find it significantly superior to what I had in mind, in the sense that I would have had to handle the class types manually, with the obvious drawbacks (error-prone, not so easy to extend), which your solution completely avoids. I will thus definitel

Re: Data model design questio: graph in database

2024-02-24 Thread Mike Dewhirst
On 24/02/2024 7:20 am, Sébastien Hinderer wrote: Dear all, Using the mailing list rather than the forum because, like many visually impaired people, I find mailing lists way easier to use than forums, I hope the list is still active. I need to store in database and manipulate graphs of which bo

Data model design questio: graph in database

2024-02-23 Thread Sébastien Hinderer
Dear all, Using the mailing list rather than the forum because, like many visually impaired people, I find mailing lists way easier to use than forums, I hope the list is still active. I need to store in database and manipulate graphs of which both vertices and edges can each be of several types.