简体   繁体   English

在没有Neo4j的情况下使用Cypher

[英]Using Cypher without Neo4j

How can I use Neo4j's Cypher query language without Neo4j ? 没有Neo4j的情况下如何使用Neo4j的Cypher查询语言?

Our open source project can build system dependency graphs, and we would like to allow users to run custom queries. 我们的开源项目可以构建系统依赖图,并且我们希望允许用户运行自定义查询。

The graph does not need to be stored in a database, a simple in-memory cache is enough for most use cases. 该图不需要存储在数据库中,对于大多数用例而言,简单的内存中缓存就足够了。
We don't want to reinvent a graph query language though, and Cypher is the most user friendly. 但是,我们不想重新发明图形查询语言,Cypher是最用户友好的。
I'm looking for a way to use Cypher directly on some kind of Graph Java object. 我正在寻找一种在某种Graph Java对象上直接使用Cypher的方法。 The API seems decoupled enough to allow it. API似乎已经解耦到足以允许它。

Cypher is an open specification (not a language) delivered over the openCypher project . Cypher是通过openCypher项目交付的一种开放规范 (不是语言)。

Here you can find some open implementations of this specification including: 在这里,您可以找到该规范的一些开放式实现,包括:

I believe that if these implementations are not useful for you, then you can use the ANTLR grammar of Cypher to generate a parser targeting another programming language. 我相信,如果这些实现对您没有用,那么您可以使用Cypher的ANTLR语法生成针对另一种编程语言的解析器。 ANTLR can generate parsers targeting Java, C#, JavaScript and others. ANTLR可以生成针对Java,C#,JavaScript等的解析器

Cypher is an open language, with the opencypher initiative : http://www.opencypher.org/ Cypher是一种开放语言,由opencypher发起: http : //www.opencypher.org/

So you will find on the website, all you need to implement cypher (grammar, tck, ...). 因此,您将在网站上找到实现密码所需的全部信息(语法,tck等)。

Cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM