Skip to content
Snippets Groups Projects
Commit 1fe1edc9 authored by Marvin Hofer's avatar Marvin Hofer
Browse files

label comment prefix mappings-release

parent 10137187
No related branches found
No related tags found
No related merge requests found
...@@ -115,6 +115,11 @@ collectExtractionFun() { ...@@ -115,6 +115,11 @@ collectExtractionFun() {
done done
} }
renameRedirected() {
cd $DATABUSMVNPOMDIR;
# for f in $(find . -name "*_redirected*" ); do rename -n 's/_redirected\.ttl\.bz2$/\.ttl\.bz2$/' $f; done
for f in $(find . -name "*_redirected*" ); do rename -n 's/_redirected//' $f; done
}
# [Main] # [Main]
......
...@@ -50,13 +50,6 @@ mapExtraction() { ...@@ -50,13 +50,6 @@ mapExtraction() {
# [FUNCTIONS] # [FUNCTIONS]
printStart() {
>&2 echo "-----------------"
>&2 echo " Generic Release "
>&2 echo "-----------------"
}
copyToMavenPlugin() { copyToMavenPlugin() {
# https://www.tldp.org/LDP/abs/html/string-manipulation.html#Substring%20Removal#Substring Removal # https://www.tldp.org/LDP/abs/html/string-manipulation.html#Substring%20Removal#Substring Removal
...@@ -115,10 +108,7 @@ copyToMavenPlugin() { ...@@ -115,10 +108,7 @@ copyToMavenPlugin() {
# [MAIN] # [MAIN]
main() { main() {
printStart
copyToMavenPlugin copyToMavenPlugin
#TODO add release
} }
main main
...@@ -20,7 +20,8 @@ DATABUSMAVENPOMDIR="/data/extraction/databus-maven-plugin/dbpedia/mappings"; ...@@ -20,7 +20,8 @@ DATABUSMAVENPOMDIR="/data/extraction/databus-maven-plugin/dbpedia/mappings";
RELEASEPUBLISHER="https://vehnem.github.io/webid.ttl#this"; RELEASEPUBLISHER="https://vehnem.github.io/webid.ttl#this";
RELEASEPACKAGEDIR="/data/extraction/release"; RELEASEPACKAGEDIR="/data/extraction/release";
RELEASEDOWNLOADURL="http://dbpedia-mappings.tib.eu/release"; RELEASEDOWNLOADURL="http://dbpedia-mappings.tib.eu/release";
RELEASELABELPREFIX="" RELEASELABELPREFIX="(pre-release)"
RELEASECOMMENTPREFIX="(MARVIN is the DBpedia bot, that runs the DBpedia Information Extraction Framework (DIEF) and releases the data as is, i.e. unparsed, unsorted, not redirected for debugging the software. After its releases, data is cleaned and persisted under the dbpedia account.)"
#logging directory #logging directory
LOGS="/data/extraction/logs/$(date +%Y-%m-%d)"; LOGS="/data/extraction/logs/$(date +%Y-%m-%d)";
...@@ -92,7 +93,8 @@ deployRelease() { ...@@ -92,7 +93,8 @@ deployRelease() {
-Ddatabus.publisher="$RELEASEPUBLISHER" \ -Ddatabus.publisher="$RELEASEPUBLISHER" \
-Ddatabus.packageDirectory="$RELEASEPACKAGEDIR/\${project.groupId}/\${project.artifactId}" \ -Ddatabus.packageDirectory="$RELEASEPACKAGEDIR/\${project.groupId}/\${project.artifactId}" \
-Ddatabus.downloadUrlPath="$RELEASEDOWNLOADURL/\${project.groupId}/\${project.artifactId}/\${project.version}" \ -Ddatabus.downloadUrlPath="$RELEASEDOWNLOADURL/\${project.groupId}/\${project.artifactId}/\${project.version}" \
-Ddatabus.labelPrefix="$RELEASELABELPREFIX"; -Ddatabus.labelPrefix="$RELEASELABELPREFIX" \
-Ddatabus.commentPrefix="$RELEASECOMMENTPREFIX";
} }
compressLogs() { compressLogs() {
...@@ -136,4 +138,6 @@ main() { ...@@ -136,4 +138,6 @@ main() {
compressLogs; compressLogs;
} }
execWithLogging main; if [ ! -f "$SCRIPTROOT/generic-release.pid" ]; then
(execWithLogging main; rm "$SCRIPTROOT/generic-release.pid") & echo $! > "$SCRIPTROOT/generic-release.pid"
fi
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