Skip to content

Commit

Permalink
fix urls for loading northwind data (#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer authored Oct 3, 2022
1 parent f434242 commit 5922832
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/browser/documentation/help/load-csv.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const content = (
<section className="example">
<figure className="runnable">
<pre>
{`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`}
Expand Down
12 changes: 6 additions & 6 deletions src/browser/documentation/play-guides/northwind-graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const slides = [
<h4>Load records</h4>
<figure>
<pre className="pre-scrollable code runnable">
{`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),
Expand All @@ -87,14 +87,14 @@ n.reorderLevel = toInteger(row.reorderLevel), n.discontinued = (row.discontinued
</figure>
<figure>
<pre className="pre-scrollable code runnable">
{`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`}
</pre>
</figure>
<figure>
<pre className="pre-scrollable code runnable">
{`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`}
</pre>
Expand Down Expand Up @@ -236,14 +236,14 @@ RETURN DISTINCT s.companyName as ProduceSuppliers`}
<h4>Load and index records</h4>
<figure>
<pre className="pre-scrollable code runnable">
{`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`}
</pre>
</figure>
<figure>
<pre className="pre-scrollable code runnable">
{`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`}
</pre>
Expand Down Expand Up @@ -299,7 +299,7 @@ CREATE (c)-[:PURCHASED]->(o)`}
<h4>Load and index records</h4>
<figure>
<pre className="pre-scrollable code runnable">
{`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)
Expand Down
12 changes: 6 additions & 6 deletions src/browser/documentation/sidebar-guides/northwind-graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const slides = [
<li>
Load product data.
<pre className="pre-scrollable code runnable">
{`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),
Expand All @@ -88,15 +88,15 @@ n.reorderLevel = toInteger(row.reorderLevel), n.discontinued = (row.discontinued
<li>
Load category data.
<pre className="pre-scrollable code runnable">
{`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`}
</pre>
</li>
<li>
Load supplier data.
<pre className="pre-scrollable code runnable">
{`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`}
</pre>
Expand Down Expand Up @@ -208,15 +208,15 @@ RETURN DISTINCT s.companyName as ProduceSuppliers`}
<li>
Load customer data.
<pre className="pre-scrollable code runnable">
{`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`}
</pre>
</li>
<li>
Load order data.
<pre className="pre-scrollable code runnable">
{`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`}
</pre>
Expand Down Expand Up @@ -281,7 +281,7 @@ CREATE (n)-[:PURCHASED]->(o)`}
className="img-responsive"
/>
<pre className="pre-scrollable code runnable">
{`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)
Expand Down

0 comments on commit 5922832

Please sign in to comment.