Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MARVIN-config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dbpedia-assoc
MARVIN-config
Commits
ae9f94f1
Commit
ae9f94f1
authored
5 years ago
by
kurzum
Browse files
Options
Downloads
Patches
Plain Diff
replaced copy with links
parent
b186c6b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
databus-release.sh
+7
-5
7 additions, 5 deletions
databus-release.sh
functions.sh
+6
-3
6 additions, 3 deletions
functions.sh
with
13 additions
and
8 deletions
databus-release.sh
+
7
−
5
View file @
ae9f94f1
...
...
@@ -22,17 +22,19 @@ fi
#/data/extraction/wikidumps/enwiki/20191001
git clone
"https://github.com/dbpedia/databus-maven-plugin.git"
$DATABUSDIR
&>/dev/null
cd
$DATABUSDIR
git pull
#
git clone "https://github.com/dbpedia/databus-maven-plugin.git" $DATABUSDIR &>/dev/null
#
cd $DATABUSDIR
#
git pull
# c
opy
# c
reates links in databus dir
# iterate all .ttl.bz2 files
# uncomment for testing
for
path
in
$(
find
"
$EXTRACTIONBASEDIR
"
-name
"*.ttl.bz2"
|
sort
)
;
do
mapAnd
Copy
$path
mapAnd
Link
$path
done
exit
# deploy
cd
$DATABUSDIR
/dbpedia/
$GROUP
;
mvn versions:set
-DnewVersion
=
$(
ls
*
|
grep
'^[0-9]\{4\}.[0-9]\{2\}.[0-9]\{2\}$'
|
sort
-u
|
tail
-1
)
;
...
...
This diff is collapsed.
Click to expand it.
functions.sh
+
6
−
3
View file @
ae9f94f1
...
...
@@ -18,7 +18,7 @@ CONFIGDIR="$ROOT/extractionConfiguration"
DIEFDIR
=
"
$ROOT
/marvin-extraction/extraction-framework"
LOGDIR
=
"
$ROOT
/marvin-extraction/logs/
$(
date
+%Y-%m-%d
)
"
&&
mkdir
-p
$LOGDIR
EXTRACTIONBASEDIR
=
"
$ROOT
/marvin-extraction/wikidumps"
&&
mkdir
-p
$EXTRACTIONBASEDIR
DATABUSDIR
=
"
$ROOT
/
marvin-extraction/databus-maven-plugin
"
DATABUSDIR
=
"
$ROOT
/
databus-poms
"
##############
# functions
...
...
@@ -148,7 +148,9 @@ mapNamesToDatabus() {
esac
}
mapAndCopy
()
{
# creates links in databus dir
mapAndLink
()
{
# each individual file
path
=
$1
# split filename
...
...
@@ -195,7 +197,8 @@ mapAndCopy() {
# copy
# 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
----------------------"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment