forked from ScottLogic/InferLLM
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FS-66: Add the POC CSV data set and cypher import script (#8)
* FS-66 Add the POC CSV data set and cypher import script * Update backend/README.md Co-authored-by: Ivan Mladjenovic - Scott Logic <[email protected]> --------- Co-authored-by: Ivan Mladjenovic - Scott Logic <[email protected]>
- Loading branch information
1 parent
c9b4577
commit 6ca8e97
Showing
10 changed files
with
90 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import_data_from_csv_script = """LOAD CSV WITH HEADERS FROM 'file:///esg_poc.csv' AS row | ||
MERGE (f:Fund {Name: row.`Fund Name`, Size:row.`Fund Size (Billion USD)`}) | ||
MERGE (c:Company {Name: row.`Company Name`}) | ||
MERGE (c)<-[:CONTAINS]-(f) | ||
MERGE (i:Industry {Name: row.Industry}) | ||
MERGE (c)-[:BELONGS_IN_INDUSTRY]->(i) | ||
MERGE (co:Country {Name: row.Country}) | ||
MERGE (c)-[:REGISTERED_IN]->(co) | ||
MERGE (esge:ESGScore {Category: 'Environmental', Score: row.`ESG score (Environmental)`, Date: row.`ESG scoring date`}) | ||
MERGE (c)-[:HAS_ESG_SCORE]->(esge) | ||
MERGE (esgs:ESGScore {Category: 'Social', Score: row.`ESG score (Social)`, Date: row.`ESG scoring date`}) | ||
MERGE (c)-[:HAS_ESG_SCORE]->(esgs) | ||
MERGE (esgg:ESGScore {Category: 'Governance', Score: row.`ESG score (Governance)`, Date: row.`ESG scoring date`}) | ||
MERGE (c)-[:HAS_ESG_SCORE]->(esgg) | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# Choose our version of Node | ||
FROM neo4j:5.19.0 | ||
FROM neo4j:latest | ||
|
||
# Set up a working directory | ||
WORKDIR /data | ||
|
||
# Copy the data content into the working directory | ||
COPY . /data | ||
|
||
# Copy the datasets into an import folder | ||
COPY /datasets/* /import/ | ||
|
||
# Expose port for writing to the database and viewing the graph | ||
EXPOSE 7474 | ||
EXPOSE 7687 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Fund Name,Fund Size (Billion USD),Company Name,Industry,Country,ESG score (Environmental),ESG score (Social),ESG score (Governance),ESG scoring date | ||
WhiteRock ETF,100,Ryanair,Aviation,Ireland,90,72,88,2023-01-01 | ||
WhiteRock ETF,100,EasyJet,Aviation,UK,60,70,88,2023-01-01 | ||
WhiteRock ETF,100,Turner Construction,Construction,USA,50,60,85,2023-01-01 | ||
WhiteRock ETF,100,Bechtel,Construction,USA,55,50,60,2023-01-01 | ||
WhiteRock ETF,100,Lufthansa,Aviation,Germany,85,78,80,2023-01-01 | ||
WhiteRock ETF,100,KLM,Aviation,Netherlands,75,82,77,2023-01-01 | ||
WhiteRock ETF,100,Shell,Energy,Netherlands,72,78,74,2023-01-01 | ||
WhiteRock ETF,100,Chevron,Energy,USA,69,74,71,2023-01-01 | ||
WhiteRock ETF,100,TotalEnergies,Energy,France,71,76,73,2023-01-01 | ||
Dynamic Industries Fund,350,Turner Construction,Construction,USA,50,60,85,2023-01-01 | ||
Dynamic Industries Fund,350,Bechtel,Construction,USA,55,50,60,2023-01-01 | ||
Dynamic Industries Fund,350,Skanska,Construction,Sweden,65,70,68,2023-01-01 | ||
Dynamic Industries Fund,350,Vinci,Construction,France,70,75,72,2023-01-01 | ||
Dynamic Industries Fund,350,Nvidia,Technology,USA,75,88,90,2023-01-01 | ||
Dynamic Industries Fund,350,Apple,Technology,USA,95,90,92,2023-01-01 | ||
Dynamic Industries Fund,350,Microsoft,Technology,USA,80,89,91,2023-01-01 | ||
Dynamic Industries Fund,350,Google,Technology,USA,81,91,93,2023-01-01 | ||
Silverman Global ETF,400,Bechtel,Construction,USA,55,50,60,2023-01-01 | ||
Silverman Global ETF,400,Turner Construction,Construction,USA,50,60,85,2023-01-01 | ||
Silverman Global ETF,400,Shell,Energy,Netherlands,72,78,74,2023-01-01 | ||
Silverman Global ETF,400,Chevron,Energy,USA,69,74,71,2023-01-01 | ||
Silverman Global ETF,400,TotalEnergies,Energy,France,71,76,73,2023-01-01 | ||
Silverman Global ETF,400,Lufthansa,Aviation,Germany,85,78,80,2023-01-01 | ||
Silverman Global ETF,400,KLM,Aviation,Netherlands,75,82,77,2023-01-01 | ||
Silverman Global ETF,400,British Airways,Aviation,UK,80,85,83,2023-01-01 | ||
Global Energy Fund,1500,ExxonMobil,Energy,USA,70,75,72,2023-01-01 | ||
Global Energy Fund,1500,BP,Energy,UK,68,73,70,2023-01-01 | ||
Global Energy Fund,1500,Shell,Energy,Netherlands,72,78,74,2023-01-01 | ||
Global Energy Fund,1500,Chevron,Energy,USA,69,74,71,2023-01-01 | ||
Global Energy Fund,1500,TotalEnergies,Energy,France,71,76,73,2023-01-01 | ||
European Growth Fund,500,Shell,Energy,Netherlands,72,78,74,2023-01-01 | ||
European Growth Fund,500,TotalEnergies,Energy,France,71,76,73,2023-01-01 | ||
European Growth Fund,500,Skanska,Construction,Sweden,65,70,68,2023-01-01 | ||
European Growth Fund,500,Vinci,Construction,France,70,75,72,2023-01-01 | ||
European Growth Fund,500,British Airways,Aviation,UK,80,85,83,2023-01-01 |