Graph databases and Php

Posted by stagas on Stack Overflow See other posts from Stack Overflow or by stagas
Published on 2010-05-16T09:37:00Z Indexed on 2010/05/16 9:40 UTC
Read the original article Hit count: 431

Filed under:
|
|

I want to use a graph database using php. Can you point out some resources on where to get started? Is there any example code / tutorial out there? Or are there any other methods of storing data that relate to each other in totally random/abstract situations?

Very abstract example of the relations needed: John relates to Mary, both relate to School, John is Tall, Mary is Short, John has Blue Eyes, Mary has Green Eyes, query I want is which people are related to 'Short people that have Green Eyes and go to School' -> answer John

It is possible in MySQL but it would require a fixed set of attributes/columns for each item and a complex non-flexible query, instead I need every attribute to be an item by itself and instead of 'belonging' to something, to be 'related' to something.

© Stack Overflow or respective owner

Related posts about graph-databases

Related posts about nosql