From 5922832d59611ccc2f701d178952ef0094546b14 Mon Sep 17 00:00:00 2001 From: Oskar Damkjaer Date: Mon, 3 Oct 2022 13:21:24 +0200 Subject: [PATCH] fix urls for loading northwind data (#1831) --- src/browser/documentation/help/load-csv.tsx | 2 +- .../documentation/play-guides/northwind-graph.tsx | 12 ++++++------ .../documentation/sidebar-guides/northwind-graph.tsx | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/browser/documentation/help/load-csv.tsx b/src/browser/documentation/help/load-csv.tsx index ae1201408c7..f1b57db30ba 100644 --- a/src/browser/documentation/help/load-csv.tsx +++ b/src/browser/documentation/help/load-csv.tsx @@ -66,7 +66,7 @@ const content = (
-          {`LOAD CSV FROM "http://data.neo4j.com/examples/person.csv" AS line
+          {`LOAD CSV FROM "https://data.neo4j.com/examples/person.csv" AS line
 MERGE (n:Person {id: toInteger(line[0])})
 SET n.name = line[1]
 RETURN n`}
diff --git a/src/browser/documentation/play-guides/northwind-graph.tsx b/src/browser/documentation/play-guides/northwind-graph.tsx
index a8ecc35f204..fe9c33437ce 100644
--- a/src/browser/documentation/play-guides/northwind-graph.tsx
+++ b/src/browser/documentation/play-guides/northwind-graph.tsx
@@ -77,7 +77,7 @@ const slides = [
       

Load records

-          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/products.csv" AS row
+          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/products.csv" AS row
 CREATE (n:Product)
 SET n = row,
 n.unitPrice = toFloat(row.unitPrice),
@@ -87,14 +87,14 @@ n.reorderLevel = toInteger(row.reorderLevel), n.discontinued = (row.discontinued
       
-          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/categories.csv" AS row
+          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/categories.csv" AS row
 CREATE (n:Category)
 SET n = row`}
         
-          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/suppliers.csv" AS row
+          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/suppliers.csv" AS row
 CREATE (n:Supplier)
 SET n = row`}
         
@@ -236,14 +236,14 @@ RETURN DISTINCT s.companyName as ProduceSuppliers`}

Load and index records

-          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/customers.csv" AS row
+          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/customers.csv" AS row
 CREATE (n:Customer)
 SET n = row`}
         
-          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/orders.csv" AS row
+          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/orders.csv" AS row
 CREATE (n:Order)
 SET n = row`}
         
@@ -299,7 +299,7 @@ CREATE (c)-[:PURCHASED]->(o)`}

Load and index records

-          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/order-details.csv" AS row
+          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/order-details.csv" AS row
 MATCH (p:Product), (o:Order)
 WHERE p.productID = row.productID AND o.orderID = row.orderID
 CREATE (o)-[details:ORDERS]->(p)
diff --git a/src/browser/documentation/sidebar-guides/northwind-graph.tsx b/src/browser/documentation/sidebar-guides/northwind-graph.tsx
index fbb953a43d5..4edbf061668 100644
--- a/src/browser/documentation/sidebar-guides/northwind-graph.tsx
+++ b/src/browser/documentation/sidebar-guides/northwind-graph.tsx
@@ -77,7 +77,7 @@ const slides = [
       
  • Load product data.
    -          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/products.csv" AS row
    +          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/products.csv" AS row
     CREATE (n:Product)
     SET n = row,
     n.unitPrice = toFloat(row.unitPrice),
    @@ -88,7 +88,7 @@ n.reorderLevel = toInteger(row.reorderLevel), n.discontinued = (row.discontinued
           
  • Load category data.
    -          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/categories.csv" AS row
    +          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/categories.csv" AS row
     CREATE (n:Category)
     SET n = row`}
             
    @@ -96,7 +96,7 @@ SET n = row`}
  • Load supplier data.
    -          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/suppliers.csv" AS row
    +          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/suppliers.csv" AS row
     CREATE (n:Supplier)
     SET n = row`}
             
    @@ -208,7 +208,7 @@ RETURN DISTINCT s.companyName as ProduceSuppliers`}
  • Load customer data.
    -          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/customers.csv" AS row
    +          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/customers.csv" AS row
     CREATE (n:Customer)
     SET n = row`}
             
    @@ -216,7 +216,7 @@ SET n = row`}
  • Load order data.
    -          {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/orders.csv" AS row
    +          {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/orders.csv" AS row
     CREATE (n:Order)
     SET n = row`}
             
    @@ -281,7 +281,7 @@ CREATE (n)-[:PURCHASED]->(o)`} className="img-responsive" />
    -      {`LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/order-details.csv" AS row
    +      {`LOAD CSV WITH HEADERS FROM "https://data.neo4j.com/northwind/order-details.csv" AS row
     MATCH (p:Product), (o:Order)
     WHERE p.productID = row.productID AND o.orderID = row.orderID
     CREATE (o)-[details:ORDERS]->(p)