albert's blog

Showing posts with label Neo4j. Show all posts
Showing posts with label Neo4j. Show all posts
2018/11/07

[Neo4j] Example for using unwind and shortestPath in Cypher

›
Scenario 以下是 Neo4j graph database 中的資料,假設我想: (1) 找出某段時間,看診次數超過 3 次的 patients (2) 找出 patients 間,關係長度為 2 的 patients How-To // 找出某...
2018/10/15

[Neo4j] How to implement having clause in cypher?

›
假設我透過以下 Cypher 語法,查詢到在某時間區間內,每個醫生、開立某種藥物以及次數 match ( doc: Doctor )-[ r1: PRESCRIBES ]->( med: Medicine ) where r1 . date >= ...
2018/10/10

[Spring] [Neo4j] How to create customized query in repository

›
在 graph database 中有以下幾筆 Movie 的資料,假設我要找出片名有 Fa 此字眼的 Movie Movie node entity 內容如下: package neo4j . springdata . vo ; import org.n...
2018/10/09

[Neo4j] Cypher example

›
以下有個朋友與電影的關係圖: 若想找出 John Johnson 的朋友: // 找出 John Johnson 的朋友 match ( u: User ) where u . name = "John Johnson" matc...
›
Home
View web version
Powered by Blogger.