官术网_书友最值得收藏!

Chapter 1. Querying Neo4j Effectively with Pattern Matching

Querying a graph database using the Java API can be very tedious; you would need to visit the whole graph and skip nodes that don't match what you are searching for. Any changes to the query will result in rethinking the code, changing it, and building it all over again. Why? The reason is that we are using an imperative language to do pattern matching, and traditional imperative languages don't work well in this task. Cypher is the declarative query language used to query a Neo4j database. Declarative means that it focuses on the aspects of the result rather than on methods or ways to get the result so that it is human-readable and expressive.

In this chapter, we will cover the following topics:

  • Setting up a Neo4j database
  • Querying the database in a simpler way than using the Java API
主站蜘蛛池模板: 荔波县| 金沙县| 阳江市| 叙永县| 天祝| 宜章县| 勐海县| 新巴尔虎左旗| 安陆市| 临沧市| 霍州市| 乐昌市| 德保县| 都昌县| 洛宁县| 南部县| 双鸭山市| 四平市| 临汾市| 景洪市| 鸡西市| 马关县| 芜湖县| 蓬安县| 安岳县| 濮阳市| 尼玛县| 北票市| 平远县| 双城市| 梧州市| 临泉县| 铜鼓县| 临城县| 南安市| 鄯善县| 杨浦区| 长沙县| 建德市| 遵义市| 古浪县|