Modeling conditional relationships in neo4j v.2 (cypher)

僤鯓⒐⒋嵵緔 提交于 2019-12-02 10:33:06

For your first question, I'd take the relationship-centric approach as this kind of represents the inference of the information leading from your result-node to the disease.

Should work pretty well in modeling and querying too.

For your second question. That's what node-labels are for they represent different roles a node can play, each with different relevant properties and relationships.

So you could do MATCH (p:Person {name:"Jose"}) and treat it differently from MATCH (d:Developer {name:"Jose"}). I.e look at other props and rels.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!