Skip to content

Commit 71436af

Browse files
committed
fill: Allows using experimantal data wiht --experimental
1 parent 0dccd05 commit 71436af

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

run/fill-db

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ script_name="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
2020
# initial default values
2121
APP_NAME="RDF DB Filler"
2222
CLONE_URL_OKH_ONTOLOGY="https://github.com/iop-alliance/OpenKnowHow.git"
23-
CLONE_URL_LOSH_DATA="https://gitlab.opensourceecology.de/verein/projekte/losh-rdf.git"
23+
CLONE_URL_OLD_DATA="https://gitlab.opensourceecology.de/verein/projekte/losh-rdf.git"
24+
CLONE_URL_EXP_DATA="[email protected]:OSEGermany/OKH-data-experimental.git"
25+
data_url="$CLONE_URL_OLD_DATA"
2426
cleanup=false
2527
online=true
2628

@@ -35,6 +37,9 @@ function print_help() {
3537
echo " Print this usage help and exit"
3638
echo " --offline"
3739
echo " Do not try to fetch git repos"
40+
echo " --experimental"
41+
echo " Uses the new experimental data source"
42+
echo " NOTE: This data is private, so you need to get access first"
3843
echo "Examples:"
3944
echo " $script_name"
4045
echo " $script_name --help"
@@ -56,6 +61,9 @@ do
5661
-o|--offline)
5762
online=false
5863
;;
64+
--experimental)
65+
data_url="$CLONE_URL_EXP_DATA"
66+
;;
5967
*) # non-/unknown option
6068
POSITIONAL+=("$arg") # save it in an array for later
6169
;;
@@ -98,9 +106,9 @@ ont_dir="$data_dir/$ont_dir_name"
98106
repo_ensure_latest "$ont_dir" "$CLONE_URL_OKH_ONTOLOGY"
99107
ontology_ttls_root="$ont_dir/src/spec"
100108

101-
data_dir_name="$(basename --suffix ".git" "$CLONE_URL_LOSH_DATA")"
109+
data_dir_name="$(basename --suffix ".git" "$data_url")"
102110
projs_data_dir="$data_dir/$data_dir_name"
103-
repo_ensure_latest "$projs_data_dir" "$CLONE_URL_LOSH_DATA" "main"
111+
repo_ensure_latest "$projs_data_dir" "$data_url" "main"
104112
data_ttls_root="$projs_data_dir/RDF"
105113

106114
if $cleanup

0 commit comments

Comments
 (0)