NEO4j知识汇总

本文介绍了Neo4j数据图数据库的基础知识,包括版本差异,特别是3.5与4.0中数据库删除方式的不同。文章详细讨论了Cypher查询语言中的MATCH和UNWIND子句,并阐述了它们在查询中的作用。此外,还提到了在Linux环境下导入CSV到Neo4j的步骤,以及安装APOC库的注意事项,特别是针对版本兼容性问题。
摘要由CSDN通过智能技术生成

NEO4J简单介绍

NEO4J数据图数据库,多用户NLP知识图谱,大数据,社交网站等领域。Cypher是Neo4j的查询语句,类似于关系型数据库的sql,不过更接近于自然语言,语义更清晰易懂。

Neo4j的版本区别

数据库的删除方式

3.5

3.5的data下面有个graph.db的文件夹,可以直接删除。

4.0

4.0有三个文件夹。分别删除第一个databases文件夹里面的全部内容和第三个transactions里面的全部内容。

MATCH

The MATCH clause allows you to specify the patterns Neo4j will search for in the database. This is the primary way of getting data into the current set of bindings. It is worth reading up more on the specification of the patterns themselves in Section 2.9, “Patterns”.

MATCH is often coupled to a WHERE part which adds restrictions, or predicates, to the MATCH patterns, making them more specific. The predicates are part of the pattern description, and should not be considered a filter applied only after the matching is done. This means that WHERE should always be put together with the MATCH clause it belongs to.

MATCH can occur at the beginning of the query or later, possibly after a WITH. If it is the first clause, nothing will have been bound yet, and Neo4j will design a search to find the results matching the clause and any associated predicates specified in any WHERE part. This could involve a scan of the database, a search for nodes having a certain label, or a search of an index to find starting points for the pattern matching. Nodes and relationships found by this search are available as bound pattern elements, and can be used for pattern matching of sub-graphs. They can also be used in any further MATCH clauses, where Neo4j will use the known elements, and from there find further unknown elements.

Cypher is declarative, and so usually the query itself does not specify

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值