Conditional Relations in DB Column

How would a graph model handle conditional relationships like:

(Alice -[Dates]-> Bob)  
Where [Dates] exists IF and ONLY IF 
(Bob -[Owns]-> Ferrari) is true

Besides a simple query, I am wondering if the relation will be applied by the database engine based on this condition or whether it needs to be managed in the application.

+4
source share
2 answers

I cannot speak for arangodb, but for neo4j this bit should be considered by the application. Schema bits that you can claim about graphs do not take into account what relationships can exist outside of the node type. Contingent relationships, such as what you are talking about, are one step further than this.

, . , Ferrari. ( !). - . , Ferrari. ?

  • ? (.. )
  • ? (I.e. .... !)
  • - ?

. , . , , ( , ).

+4

FrobberOfBits ArangoDB. ArangoDB "Foxx", API , .

Foxx : * , : 1) 2)

, ( -), .

+5

All Articles