By Neo4j Staff | November 14, 2011
With Cypher, querying data is like creating Ascii Art to navigate through information. While fun and powerful, sometimes the pesky execution engine doesn’t appreciate the beauty of what you’ve typed. In this blog post, Rickard Öberg presents his implementation of a DSL to safely construct Cypher queries in Java.
For example:
start( node( "n", 3, 1 ) ).
where( prop( "n.age" ).lt( 30 ).and( prop( "n.name" ).eq( "Tobias" )).
or(not(prop("n.name").eq("Tobias" )))).
returns( nodes( "n" ) )
For more, read on at Rickard’s blog.
Cheers,
Andreas
Keywords: Ascii-Art cypher cypher queries DSL java Rickard Oberg
1 Comment
Leave a Reply
Upcoming Event

From the CEO
Have a Graph Question?
Reach out and connect with the Neo4j staff.
StackoverflowSlack
Contact Us
Share your Graph Story?
Email us: content@neotechnology.com
Popular Graph Topics
- cypher (327)
- graphconnect (204)
- nosql (135)
- relational database (95)
- graph visualization (93)
- emil eifrem (84)
- sql (75)
- data model (70)
- Connected Data (63)
- Recommendation Engine (61)
The really interesting thing is how to build native Java "queries" for Neo4J, without any cypher usage at all.