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

Chapter 2. Querying the Graph with Cypher

We never live in isolation and this hold true with our data, which is nothing more than an interconnection between varied kinds of domains known as graphs.

Graphs are complex and evolving, so, to extract data from these complex graphs, we need an efficient query mechanism that focuses on the domain model and encourages "What to retrieve?" instead of "How to retrieve?".

Neo4j introduces a powerful, declarative, and SQL-inspired graph query language, Cypher.

Cypher is designed to be a humane query language, that leverages the concepts of pattern and pattern matching and allows for expressive, efficient querying and updating of the graph store. Cypher is a relatively simple but very powerful language.

This chapter will provide you with an in-depth understanding of Cypher as a query language for Neo4j database. It will guide you through the anatomy of Cypher, and then will focus on the heart of Cypher: pattern and pattern matching. We will also discuss a real-world example where we will query complex graphs with Cypher.

At the end of this chapter, you will be well versed in the Cypher constructs and will be able to write Cypher queries for extracting data from complex graphs within no time.

This chapter will cover the following points:

  • Basic anatomy of a Cypher query
  • Pattern and pattern matching
  • Working with nodes and relationships
主站蜘蛛池模板: 金寨县| 灌南县| 邵阳市| 郁南县| 左权县| 宜良县| 佳木斯市| 汉中市| 抚远县| 旺苍县| 安龙县| 仁布县| 轮台县| 连南| 隆化县| 赤城县| 德清县| 莱西市| 宣城市| 广昌县| 如皋市| 巴马| 潮安县| 县级市| 徐水县| 景宁| 荔波县| 化州市| 佛冈县| 霍州市| 信宜市| 黔南| 德州市| 阿荣旗| 石屏县| 阜南县| 崇文区| 会昌县| 丹寨县| 台中市| 蓬莱市|