2025-10-22 17:48:22 +02:00
2025-10-22 07:51:05 +02:00
2025-10-22 17:48:22 +02:00
2025-10-21 10:13:57 +02:00
2025-10-22 07:45:11 +02:00
2025-10-21 11:46:51 +02:00
2025-10-19 09:08:49 +02:00
2025-10-19 09:08:49 +02:00
2025-10-18 06:54:35 +02:00
2025-10-18 06:54:35 +02:00
2025-10-22 08:00:05 +02:00

docker build -t mon-app .

http://localhost:3000

LOAD CSV FROM 'file:///artists.csv' AS row
MERGE (a:Artist { name: row[1], year: toInteger(row[2]) })
RETURN a.name, a.year
LOAD CSV WITH HEADERS
FROM 'file:///individus.csv' AS row
FIELDTERMINATOR ';'
MERGE (i:Individu { id: toInteger(row['id']) })
SET i.prenom = row['prenom'],
    i.age = toInteger(row['age']),
    i.sexe =  row['sexe'],
    i.etudes = toInteger(row['etudes']),
    i.richesse = toInteger(row['richesse']),
    i.lecture =  toFloat(row['lecture']),
    i.musique = toFloat(row['musique']),
    i.sport =  toFloat(row['sport']);
MATCH (i:Individu) RETURN i LIMIT 25;
MATCH (i:Individu {id: 58 })
RETURN i;
LOAD CSV WITH HEADERS
FROM 'file:///edges.csv' AS row
FIELDTERMINATOR ';'
MATCH (a:Individu {id: toInteger(row.source)})
MATCH (b:Individu {id: toInteger(row.target)})
MERGE (a)-[r:AMI]->(b)
MERGE (b)-[r2:AMI]->(a);
MATCH (i:Individu)
DETACH DELETE i;

MATCH path = (a:Individu {id:24})-[:AMI*1..3]->(b:Individu) RETURN path;

MATCH (a:Individu {id: 22}), (b:Individu {id: 100}), path = shortestPath((a)-[:AMI*..15]-(b)) RETURN path;

MATCH (a:Point {nom:'Boulangerie'}), (b:Point {nom:'Salle des fêtes'}) RETURN point.distance(a.location, b.location)

Réseau routier

LOAD CSV WITH HEADERS
FROM 'file:///points.csv' AS row
MERGE (p:Point { id: toInteger(row.id) })
SET p.nom = row.nom,
    p.altitude = toInteger(row.altitude),
    p.location = point({
      longitude: toFloat(row.longitude),
      latitude: toFloat(row.latitude)
    });

Réseau d'amis

LOAD CSV WITH HEADERS
FROM 'file:///individus.csv' AS row
MERGE (i:Individu { id: toInteger(row.id) })
SET i.prenom = row.prenom,
    i.age = toInteger(row.age),
    i.sexe =  row.sexe,
    i.etudes = toInteger(row.etudes),
    i.richesse = toInteger(row.richesse),
    i.lecture =  toFloat(row.lecture),
    i.musique = toFloat(row.musique),
    i.sport =  toFloat(row.sport);
CREATE CONSTRAINT individu_id IF NOT EXISTS
  FOR (i:Individu)
  REQUIRE i.id IS UNIQUE;
Description
No description provided
Readme 668 KiB
Languages
TypeScript 85.4%
HTML 9.3%
CSS 4%
Dockerfile 1.3%