From 47c5b5048cdaec3872f4fa08eb76d673f31721ca Mon Sep 17 00:00:00 2001 From: Zachary Blumenfeld <89669746+zach-blumenfeld@users.noreply.github.com> Date: Tue, 16 Apr 2024 20:21:13 -0400 Subject: [PATCH] Switched Loading Script to Use HTTPS to Avoid "Cannot load from URL" Error. (#46) --- scripts/northwind.cypher | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/northwind.cypher b/scripts/northwind.cypher index eaee20c..a8d0f71 100644 --- a/scripts/northwind.cypher +++ b/scripts/northwind.cypher @@ -4,18 +4,18 @@ CREATE CONSTRAINT Supplier_supplierID IF NOT EXISTS FOR (s:Supplier) REQUIRE (s. CREATE CONSTRAINT Customer_customerID IF NOT EXISTS FOR (c:Customer) REQUIRE (c.customerID) IS UNIQUE; CREATE CONSTRAINT Order_orderID IF NOT EXISTS FOR (o:Order) REQUIRE (o.orderID) IS UNIQUE; -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 MERGE (n:Product {productID:row.productID}) SET n += row, n.unitPrice = toFloat(row.unitPrice), n.unitsInStock = toInteger(row.unitsInStock), n.unitsOnOrder = toInteger(row.unitsOnOrder), n.reorderLevel = toInteger(row.reorderLevel), n.discontinued = (row.discontinued <> "0"); -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 MERGE (n:Category {categoryID:row.categoryID}) 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 MERGE (n:Supplier {supplierID:row.supplierID}) SET n += row; @@ -27,11 +27,11 @@ MATCH (p:Product),(s:Supplier) WHERE p.supplierID = s.supplierID MERGE (s)-[:SUPPLIES]->(p); -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 MERGE (n:Customer {customerID:row.customerID}) 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 MERGE (n:Order {orderID:row.orderID}) SET n += row; @@ -39,7 +39,7 @@ MATCH (c:Customer),(o:Order) WHERE c.customerID = o.customerID MERGE (c)-[:PURCHASED]->(o); -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 MERGE (o)-[details:ORDERS]->(p)