Skip to content

Commit

Permalink
Add neo4j cypher dependency and move existing code to snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshyAAAgrawal committed Feb 25, 2021
1 parent 5facd64 commit 8461db0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ hs_err_pid*
target/
.project
data/
/bin/
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
</properties>

<dependencies>
<!-- https://mvnrepository.com/artifact/org.neo4j/neo4j-ast -->
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ast</artifactId>
<version>4.2.3</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.KRacR.s2c;

import org.neo4j.driver.*;

import static org.neo4j.driver.Values.parameters;
Expand Down Expand Up @@ -54,15 +52,16 @@ public void close()
}
}

public class App
public class Query_jena
{
public static void main( String[] args )
{
SmallExample example = new SmallExample("bolt://localhost:7687", "neo4j", "neo4jnew");
example.addPerson("Ada");
example.addPerson("Alice");
example.addPerson("Bob");
example.printPeople("A");
example.close();
// SmallExample example = new SmallExample("bolt://localhost:7687", "neo4j", "neo4jnew");
// example.addPerson("Ada");
// example.addPerson("Alice");
// example.addPerson("Bob");
// example.printPeople("A");
// example.close();

}
}
8 changes: 8 additions & 0 deletions src/com/KRacR/s2c/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.KRacR.s2c;

import org.neo4j.cypher.*;

public class App {
public static void main( String[] args ){
}
}

0 comments on commit 8461db0

Please sign in to comment.