Skip to content

Ruth-Julien #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions oracle-of-bacon-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ To build :
```

To Run, execute class *com.serli.oracle.of.bacon.Application*.

neo4j-admin import --database=neo4j --nodes=..\..\Data\movies.csv --nodes=..\..\Data\actors.csv --relationships=..\..\Data\roles.csv

On a eu beaucoup de problèmes sur l'import de la partie neo4j qui nous a empecher de continuer.
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@
import org.neo4j.driver.types.Node;
import org.neo4j.driver.types.Relationship;


public class Neo4JRepository {
private final Driver driver;

public Neo4JRepository() {
this.driver = GraphDatabase.driver("bolt://localhost:7687", AuthTokens.basic("neo4j", "password"));
this.driver = GraphDatabase.driver("bolt://localhost:7687", AuthTokens.basic("neo4j", "neo4j!"));
}


public List<Map<String, GraphItem>> getConnectionsToKevinBacon(String actorName) {
Session session = driver.session();

// TODO
return null;
List<Map<String, GraphItem>> graphe = new LinkedList<>();

return graphe;
}

private GraphEdge mapRelationShipToNodeEdge(Relationship relationship) {
Expand Down