You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[generateMarkdownReference.sh](./generateMarkdownReference.sh)|| Generates "REPORTS.md" containing a reference to all scripts in this directory and its subdirectories. |
18
18
|[generateScriptReference.sh](./generateScriptReference.sh)|| Generates "SCRIPTS.md" containing a reference to all scripts in this directory and its subdirectories. |
19
19
|[prepareAnalysis.sh](./prepareAnalysis.sh)|| Prepares and validates the graph database before analysis |
20
+
|[Default.sh](./profiles/Default.sh)| profiles | Sets (if any) settings variables for a default analysis. |
21
+
|[Neo4jv4.sh](./profiles/Neo4jv4.sh)| profiles | Sets all settings variables for an analysis with Neo4j v4.4.x (long term support (LTS) version as of may 2023). |
22
+
|[Neo4jv5.sh](./profiles/Neo4jv5.sh)| profiles | Sets all settings variables for an analysis with Neo4j v5.x (newest version as of june 2023). |
20
23
|[CentralityCsv.sh](./reports/CentralityCsv.sh)| reports | Looks for centrality using the Graph Data Science Library of Neo4j and creates CSV reports. |
21
24
|[CommunityCsv.sh](./reports/CommunityCsv.sh)| reports | Detects communities using the Graph Data Science Library of Neo4j and creates CSV reports. |
22
25
|[DatabaseCsvExport.sh](./reports/DatabaseCsvExport.sh)| reports | Exports the whole graph database as a CSV file using the APOC procedure "apoc.export.csv.all" |
# Assure that there is a download script for the given analysis name.
115
-
if [ !-f"${SCRIPTS_DIR}/${ARTIFACT_SCRIPTS_DIRECTORY}/download${analysisName}.sh" ] ;then
116
-
echo"Error (analyze): No download${analysisName}.sh script in the directory ${SCRIPTS_DIR}/${ARTIFACT_SCRIPTS_DIRECTORY} for analysis name ${analysisName}."
117
-
exit 1
118
-
fi
119
-
120
119
# Assure that there is a download script for the given analysis name argument.
echo"Error (analyze): No download${analysisName}.sh script in the directory ${SCRIPTS_DIR}/${ARTIFACT_SCRIPTS_DIRECTORY} for analysis name ${analysisName}."
122
+
echo"analyze${analysisName}: Error: No download${analysisName}.sh script in the directory ${SCRIPTS_DIR}/${ARTIFACT_SCRIPTS_DIRECTORY} for analysis name ${analysisName}."
124
123
exit 1
125
124
fi
126
125
127
126
# Assure that there is a report compilation script for the given report argument.
echo"Error (analyze): No ${analysisReportCompilation}Reports.sh script in the directory ${SCRIPTS_DIR}/${REPORTS_SCRIPTS_DIRECTORY}/${REPORT_COMPILATIONS_SCRIPTS_DIRECTORY} for report name ${analysisReportCompilation}."
129
+
echo"analyze${analysisName}: Error: No ${analysisReportCompilation}Reports.sh script in the directory ${SCRIPTS_DIR}/${REPORTS_SCRIPTS_DIRECTORY}/${REPORT_COMPILATIONS_SCRIPTS_DIRECTORY} for report name ${analysisReportCompilation}."
131
130
exit 1
132
131
fi
133
132
133
+
# Assure that there is a script file for the given settings profile name.
echo"analyze ${analysisName}: Error: No ${settingsProfile}.sh script in the directory ${SCRIPTS_DIR}/${SETTINGS_PROFILE_SCRIPTS_DIRECTORY} for settings profile ${settingsProfile}."
137
+
exit 1
138
+
fi
139
+
140
+
# Execute the settings profile script that sets all the neccessary settings variables (overrideable by environment variables).
141
+
echo"analyze ${analysisName}: Using analysis settings profile script ${SETTINGS_PROFILE_SCRIPT}"
142
+
source"${SETTINGS_PROFILE_SCRIPT}"||exit 1
143
+
134
144
# Create working directory if it hadn't been created yet
0 commit comments