Skip to content
Snippets Groups Projects
Commit e571337a authored by kurzum's avatar kurzum
Browse files

more testing

parent ae9f94f1
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,19 @@ then
exit 1
fi
##################
# Server DownloadURL
##################
DOMAIN=$GROUP
if [ "$GROUP" = "generic" ] || [ "$GROUP" = "mappings" ]
then
DOMAIN="mappings"
elif [ "$GROUP" = "text" ]
then
DOMAIN="generic"
fi
##################
# Setup and clone pom files
......@@ -33,7 +46,6 @@ for path in $(find "$EXTRACTIONBASEDIR" -name "*.ttl.bz2" | sort); do
mapAndLink $path
done
exit
# deploy
cd $DATABUSDIR/dbpedia/$GROUP;
......@@ -41,15 +53,22 @@ mvn versions:set -DnewVersion=$(ls * | grep '^[0-9]\{4\}.[0-9]\{2\}.[0-9]\{2\}$'
# get git commit link
GITHUBLINK="$(diefCommitLink)"
PUBLISHER="https://vehnem.github.io/webid.ttl#this";
# TODO marvin: shouldn't this be the web dir directly?
PACKAGEDIR="/data/extraction/release/\${project.groupId}/\${project.artifactId}";
DOWNLOADURL="http://dbpedia-$GROUP.tib.eu/release/\${project.groupId}/\${project.artifactId}/\${project.version}/";
PACKAGEDIR="/var/www/dbpedia-mappings.tib.eu/databus-repo/marvin/\${project.groupId}/\${project.artifactId}";
DOWNLOADURL="http://dbpedia-$DOMAIN.tib.eu/release/\${project.groupId}/\${project.artifactId}/\${project.version}/";
LABELPREFIX="(pre-release) ";
# todo replace with markdown or html when supported by upload client
COMMENTPREFIX="(MARVIN is the DBpedia bot for monthly raw releases (unparsed, unsorted) for debugging the DIEF software. After its releases, data is cleaned and persisted under the dbpedia account. Commit: $GITHUBLINK) " ;
echo "
$GITHUBLINK
$PUBLISHER
$PACKAGEDIR
$DOWNLOADURL
$LABELPREFIX
$COMMENTPREFIX
"
exit
mvn clean deploy -Ddatabus.publisher="$PUBLISHER" -Ddatabus.packageDirectory="$PACKAGEDIR" -Ddatabus.downloadUrlPath="$DOWNLOADURL" -Ddatabus.labelPrefix="$LABELPREFIX" -Ddatabus.commentPrefix="$COMMENTPREFIX";
......@@ -183,12 +183,12 @@ mapAndLink() {
if [ -d "$DATABUSDIR/dbpedia/$GROUP/$artifact" ]; then
mkdir -p $targetFolder
else
echo "\"$artifact\" (artifact not found) $path" >&2;
echo "[DEBUG]\"$artifact\" (artifact not found, might not be in group $GROUP) $path" >&2;
fi
# TODO proper handling of "_redirected"
# 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-infobox-properties_redirected.ttl.bz2
# < enwiki/20191001/enwiki-20191001-page-links_redirected.ttl.bz2
......
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