Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schaertl_andreas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
supervision
schaertl_andreas
Commits
96cadae9
Commit
96cadae9
authored
5 years ago
by
Andreas Schärtl
Browse files
Options
Downloads
Plain Diff
Merge branch 'feat/isabellefix'
parents
6e464c92
70bfa557
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
ulo/extract-iris.sh
+8
-0
8 additions, 0 deletions
ulo/extract-iris.sh
ulo/isabelle-prepare.sh
+30
-0
30 additions, 0 deletions
ulo/isabelle-prepare.sh
with
38 additions
and
0 deletions
ulo/extract-iris.sh
0 → 100755
+
8
−
0
View file @
96cadae9
#! /bin/sh
# extract iris from rdf files passed on stdin; really it just returns all
# quoted strings
set
-eu
grep
-P
-o
'".*"'
|
sed
's/"//g'
This diff is collapsed.
Click to expand it.
ulo/isabelle-prepare.sh
0 → 100755
+
30
−
0
View file @
96cadae9
#! /bin/sh
set
-eu
# prepare DIRECTORY for import w/ the graphdb web
# interface; this is for our prototype, I can't imagine
# we'll use the web interface in production
#
# this script is a fork of xz-to-gz.sh, found in the
# same directory
if
[
!
$#
-eq
1
]
;
then
echo
"usage:
$0
DIRECTORY"
1>&2
exit
1
fi
directory
=
"
$1
"
files
=
$(
find
"
$directory
"
-name
"*.xz"
)
for
file
in
$files
;
do
echo
"
$file
"
1>&2
# the filename of the extracted (uncompressed) file
rdf_file
=
$(
echo
"
$file
"
|
sed
's/\.xz//'
)
# uncompress, fix iris, compress again
unxz
"
$file
"
sed
-i
's/|/%7C/g'
"
$rdf_file
"
gzip
"
$rdf_file
"
done
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