Commit 734b69d 1 parent c65ef67 commit 734b69d Copy full SHA for 734b69d
File tree 5 files changed +85
-14
lines changed
5 files changed +85
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : build
2
-
2
+
3
3
on :
4
4
workflow_dispatch :
5
5
push :
6
6
branches :
7
7
- master
8
-
8
+
9
9
jobs :
10
- deploy :
10
+ build :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Checkout code
14
14
uses : actions/checkout@v4
15
15
16
16
- name : Install dependencies
17
- run : |
18
- sudo apt-get install -y raptor2-utils
17
+ run : sudo apt-get install -y raptor2-utils
19
18
20
19
- name : Build
21
- run : ./build
22
-
20
+ run : scripts/combine | tee $GITHUB_STEP_SUMMARY
21
+
23
22
- name : Deploy
24
23
uses : JamesIves/github-pages-deploy-action@v4
25
24
with :
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ tags : ' [2-9][0-9]\.[0-9][0-9]'
5
+ jobs :
6
+ create-release :
7
+ name : Create release
8
+ runs-on : ubuntu-latest
9
+ outputs :
10
+ upload_url : ${{ steps.create-release.outputs.upload_url }}
11
+ steps :
12
+ - name : Changelog
13
+ id : changelog
14
+ uses : mikepenz/release-changelog-builder-action@v4
15
+ with :
16
+ commitMode : true
17
+ configurationJson : |
18
+ {
19
+ "pr_template": "- #{{TITLE}}",
20
+ "template": "#{{UNCATEGORIZED}}"
21
+ }
22
+
23
+ - name : Checkout code
24
+ uses : actions/checkout@v4
25
+
26
+ - name : Install dependencies
27
+ run : sudo apt-get install -y raptor2-utils
28
+
29
+ - name : Build
30
+ id : build
31
+ run : |
32
+ scripts/combine | tee $GITHUB_STEP_SUMMARY
33
+ echo 'summary<<EOF' >> $GITHUB_OUTPUT
34
+ cat ${GITHUB_STEP_SUMMARY} >> $GITHUB_OUTPUT
35
+ echo 'EOF' >> $GITHUB_OUTPUT
36
+
37
+ - name : Create Release
38
+ id : create-release
39
+ uses : softprops/action-gh-release@v2
40
+ with :
41
+ body : |
42
+ ${{ steps.build.outputs.summary }}
43
+ ${{ steps.changelog.outputs.changelog }}
44
+ files : |
45
+ dist/hito.nt
46
+ dist/hito.ttl
47
+ dist/shacl.ttl
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ scripts/cluster/*.svg
6
6
scripts /cluster /tree
7
7
* .pdf
8
8
dist /hito.ttl
9
+ dist /hito.nt
9
10
dist /shacl.ttl
10
11
dist /all.ttl
11
12
.env
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #/bin/sh
2
+ # Combine all of HITO into one file.
3
+
4
+ MYPATH=`dirname "$0"`
5
+ MYPATH=`( cd "$MYPATH" && pwd )`
6
+ DISTPATH=$MYPATH/../dist
7
+ mkdir -p $DISTPATH
8
+
9
+ #cat dbpedia/os.nt >> $F
10
+ cd $MYPATH/..
11
+ cat *.ttl | rapper -i turtle -o turtle - http://hitontology.eu/ontology/ > $DISTPATH/hito.ttl
12
+ cp shacl.ttl dist/shacl.ttl
13
+
14
+ cd $DISTPATH
15
+ cat hito.ttl dbpedia.ttl swo.ttl | rapper -i turtle -o turtle - http://hitontology.eu/ontology/ > all.ttl
16
+ rapper -i turtle -o ntriples hito.ttl > hito.nt
17
+
18
+ echo "hito.ttl and hito.nt contain the HITO ontology, instances and SHACL shapes."
19
+ printf "all.ttl additionally contains externally referenced resources from DBpedia and the Software Ontology (SWO).\n\n"
20
+ echo "| Filename | triples | bytes | KiB | MiB | KB | MB |"
21
+ echo "| --------- | ------- | ----- | --- | --- | -- | -- |"
22
+ # "command ls" in case it is aliased to eza or something else, we need the exact ls output format
23
+ command ls -l *.nt *.ttl | tr -s ' ' | cut -f5,9 -d ' ' | while read -r size filename; do
24
+ triples=$(rapper -i turtle -c "$filename" 2>&1 | grep -o "[0-9]*")
25
+ kib=$((size / 1000))
26
+ mib=$((size / 1000000))
27
+ kb=$((size / 1024))
28
+ mb=$((size / 1024 / 1024))
29
+ #echo "$size $filename"
30
+ printf "| %11s | %11s | %12s | %9s | %7s | %9s |%7s |\n" $filename $triples $size $kib $mib $kb $mb
31
+ done
You can’t perform that action at this time.
0 commit comments