@@ -20,7 +20,9 @@ script_name="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
2020# initial default values
2121APP_NAME=" RDF DB Filler"
2222CLONE_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 "
2426cleanup=false
2527online=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"
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"
98106repo_ensure_latest " $ont_dir " " $CLONE_URL_OKH_ONTOLOGY "
99107ontology_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 " ) "
102110projs_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"
104112data_ttls_root=" $projs_data_dir /RDF"
105113
106114if $cleanup
0 commit comments