Skip to content

Instantly share code, notes, and snippets.

@cleishm
Forked from quagly/OneLabel
Created November 5, 2013 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleishm/7313331 to your computer and use it in GitHub Desktop.
Save cleishm/7313331 to your computer and use it in GitHub Desktop.
= graphGist generated from spock test Neo4jCypherOneLabel.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Sun Jul 28 08:03:43 PDT 2013
//console
query to create plato with philosopher label
[source,cypher]
----
CREATE (n:Philosopher { name : 'Plato' , url : 'http://dbpedia.org/resource/Plato' })
----
//table
query to create Aristotle with philosopher label
[source,cypher]
----
CREATE (n:Philosopher { name : 'Aristotle' , url : 'http://dbpedia.org/resource/Aristotle' })
----
//table
query to return all nodes with label philosopher
[source,cypher]
----
MATCH (p:Philosopher)
RETURN p as philosopher
----
//table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment