Skip to content
Snippets Groups Projects
Commit ba111868 authored by Your Name's avatar Your Name
Browse files
parents 973094a3 fb4423da
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ CONFIGDIR="$ROOT/extractionConfiguration" ...@@ -18,7 +18,7 @@ CONFIGDIR="$ROOT/extractionConfiguration"
DIEFDIR="$ROOT/marvin-extraction/extraction-framework" DIEFDIR="$ROOT/marvin-extraction/extraction-framework"
LOGDIR="$ROOT/marvin-extraction/logs/$(date +%Y-%m-%d)" && mkdir -p $LOGDIR LOGDIR="$ROOT/marvin-extraction/logs/$(date +%Y-%m-%d)" && mkdir -p $LOGDIR
EXTRACTIONBASEDIR="$ROOT/marvin-extraction/wikidumps" && mkdir -p $EXTRACTIONBASEDIR EXTRACTIONBASEDIR="$ROOT/marvin-extraction/wikidumps" && mkdir -p $EXTRACTIONBASEDIR
DATABUSDIR="$ROOT/marvin-extraction/databus-maven-plugin" DATABUSDIR="$ROOT/databus-poms"
############## ##############
# functions # functions
...@@ -148,7 +148,9 @@ mapNamesToDatabus() { ...@@ -148,7 +148,9 @@ mapNamesToDatabus() {
esac esac
} }
mapAndCopy() { # creates links in databus dir
mapAndLink() {
# each individual file
path=$1 path=$1
# split filename # split filename
...@@ -181,12 +183,12 @@ mapAndCopy() { ...@@ -181,12 +183,12 @@ mapAndCopy() {
if [ -d "$DATABUSDIR/dbpedia/$GROUP/$artifact" ]; then if [ -d "$DATABUSDIR/dbpedia/$GROUP/$artifact" ]; then
mkdir -p $targetFolder mkdir -p $targetFolder
else else
echo "\"$artifact\" (artifact not found) $path" >&2; echo "[DEBUG]\"$artifact\" (artifact not found, might not be in group $GROUP) $path" >&2;
fi fi
# TODO proper handling of "_redirected" # TODO proper handling of "_redirected"
# TODO see above, redirected are moved to logdir and overwrite the unredirected # TODO see above, redirected are moved to logdir and overwrite the unredirected
# concerns onlyy generic: # concerns only generic:
# < enwiki/20191001/enwiki-20191001-disambiguations_redirected.ttl.bz2 # < enwiki/20191001/enwiki-20191001-disambiguations_redirected.ttl.bz2
# < enwiki/20191001/enwiki-20191001-infobox-properties_redirected.ttl.bz2 # < enwiki/20191001/enwiki-20191001-infobox-properties_redirected.ttl.bz2
# < enwiki/20191001/enwiki-20191001-page-links_redirected.ttl.bz2 # < enwiki/20191001/enwiki-20191001-page-links_redirected.ttl.bz2
...@@ -195,13 +197,14 @@ mapAndCopy() { ...@@ -195,13 +197,14 @@ mapAndCopy() {
# copy # copy
# TODO enable after testing # TODO enable after testing
cp -n "$path" "$targetFolder/$targetFile" #cp -n "$path" "$targetFolder/$targetFile"
ln -s "$path" "$targetFolder/$targetFile"
echo -e "< $path\n> $targetFolder/$targetFile\n----------------------" echo -e "< $path\n> $targetFolder/$targetFile\n----------------------"
} }
diefCommitLink() {
cd $DIEFDIR
echo "https://github.com/dbpedia/extraction-framework/commit/$(git rev-parse @)"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment