bolt.properties 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #235Mysql\u6570\u636E\u5E93
  2. url_235 = jdbc:mysql://192.168.2.235:3306/scale?useUnicode=true&characterEncoding=UTF-8
  3. userNmae_235 = root
  4. pass_235 = diagbot@20180822
  5. # neo4j bolt credentials
  6. #\u7EBF\u4E0A\u4F7F\u7528
  7. bolt.uri=bolt://192.168.2.233
  8. bolt.user=neo4j
  9. bolt.passwd=root
  10. #\u533B\u5B66\u672F\u8BED\u4F7F\u7528
  11. bolt232.uri=bolt://192.168.2.232
  12. bolt232.user=neo4j
  13. bolt232.passwd=root
  14. #\u6D4B\u8BD5\u4F7F\u7528
  15. bolt112.uri=bolt://192.168.3.112
  16. bolt112.user=neo4j
  17. bolt112.passwd=123456
  18. #\u63A8\u786E\u8BCA\u5904\u7406sql
  19. #\u67E5\u627E\u8FD1\u4E49\u8BCD\u548C\u5316\u9A8C\u548C\u8F85\u68C0\u9879\u76EE
  20. #searchJinyici=with fildList as data unwind data as fild \n \
  21. #match(d:Disease)-[R1:\u63A8\u8350]->(h)-[r:\u7ED3\u679C]->(l) \n \
  22. #where l.name=fild \n \
  23. #return l.name as zi,labels(l)[0] as jin,h.name as fu,labels(h)[0] as da \n \
  24. #union \n \
  25. #with fildList as data unwind data as fild \n \
  26. #match(l)-[r:\u8FD1\u4E49\u8BCD]->(h) \n \
  27. #where l.name=fild \n \
  28. #return l.name as zi,labels(l)[0] as jin,h.name as fu,labels(h)[0] as da
  29. searchJinyici=with fildList as data unwind data as fild \n \
  30. match(l)-[r:\u8FD1\u4E49\u8BCD]->(h) \n \
  31. where l.name=fild \n \
  32. return l.name as zi,labels(l)[0] as jin,h.name as fu,labels(h)[0] as da
  33. #\u67E5\u627E\u80FD\u63A8\u51FA\u8BCA\u65AD\u4F9D\u636E\u7684\u8BCD
  34. searchCondition=with newList as data unwind data as row\n \
  35. match (l)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m)\n \
  36. where l.name= row\n \
  37. with m,fildList as data unwind data as row\n \
  38. match (n)-[r:\u8BCA\u65AD\u4F9D\u636E]->(m)\n \
  39. where n.name= row\n \
  40. return m.name as condition, count(distinct r)>=m.path as jundgement, labels(m)[0] as label
  41. #\u67E5\u627E\u786E\u8BCA\u7684\u8BED\u53E5
  42. searchQuezhen=with fildList as data unwind data as row\n \
  43. match (n)-[r:\u786E\u8BCA]->(m)\n \
  44. where n.name=row\n \
  45. with distinct m,r\n \
  46. return m.name as name, labels(m)[0] as label,type(r) as relationType
  47. #\u67E5\u627E\u4E00\u4E9B\u8BCD\u662F\u5426\u5728\u56FE\u8C31\u4E2D
  48. searchWords=match(d) where d.name in fildList return distinct d.name as name
  49. #\u6839\u636E\u75BE\u75C5\u67E5\u627E\u76F8\u5E94\u7684Lis Pacs
  50. serchLisPacs=match (d:Disease)-[r1:\u63A8\u8350]->(m)\n \
  51. where d.name in diseaseNmae return distinct d.name as name,labels(m)[0] as lei,m.name as n
  52. #\u66F4\u65B0\u8BCA\u65AD\u4F9D\u636E\u7684path
  53. updateConditionPath=match (n:Condition)<-[:\u8BCA\u65AD\u4F9D\u636E]-(m) \n \
  54. with n,\n \
  55. case \n \
  56. when n.relation="\u6216" then 1 \n \
  57. when n.relation="\u4E14" then count(distinct m) \n \
  58. when n.relation="\u4EFB\u4E00" then 1 \n \
  59. when n.relation="\u4EFB\u4E8C" then 2 \n \
  60. when n.relation="\u4EFB\u4E09" then 3 \n \
  61. when n.relation="\u4EFB\u56DB" then 4 \n\
  62. else 100 end as a \n \
  63. set n.path=a