-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathontdoc-gitlab-template.yml
101 lines (99 loc) · 2.99 KB
/
ontdoc-gitlab-template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
spec:
inputs:
version:
type: string
default: main
rdffilepath:
default: ""
type: string
docpath:
default: public
type: string
prefixns:
default: http://www.sparqlunicorn.link/data/
type: string
prefixnsshort:
default: suni
type: string
indexpages:
default: true
type: boolean
ghpages:
default: true
type: boolean
ghpagesbranch:
default: gh-pages
type: string
ghpagesfolder:
default: /
type: string
checkout:
default: true
type: boolean
templatedir:
default: resources/html/
type: string
createcollections:
default: false
type: boolean
preferredlang:
default: en
type: string
license:
default: ""
type: string
logourl:
default: ""
type: string
metadatatable:
default: false
type: boolean
createnonNSPages:
default: false
type: boolean
createVOWL:
default: false
type: boolean
ogcapifeatures:
default: true
type: boolean
iiif:
default: true
type: boolean
ckan:
default: true
type: boolean
startconcept:
default: ""
type: string
offlinecompat:
default: false
type: boolean
exports:
default: "ttl"
type: string
datasettitle:
default: ""
type: string
publisher:
default: ""
type: string
publishingorg:
default: ""
type: string
---
image: ubuntu:latest
pages:
stage: deploy
script:
- apt-get update
- apt-get install python3 python3-pip git -y
- pip3 install rdflib shapely pillow requests
- git clone https://github.com/sparqlunicorn/sparqlunicornGoesGIS-ontdoc.git ontdocscript
- cd ontdocscript
- git checkout "$[[inputs.version]]" || git checkout main
- cd ..
- python3 ontdocscript/src/sparqlunicorn_ontdoc/docgeneration.py --input "$[[inputs.rdffilepath]]" --output "$[[inputs.docpath]]" --prefixns "$[[inputs.prefixns]]" --prefixnsshort "$[[inputs.prefixnsshort]]" --createIndexPages "$[[inputs.indexpages]]" --createCollections "$[[inputs.createcollections]]" --labellang "$[[inputs.preferredlang]]" --license "$[[inputs.license]]" --logourl "$[[inputs.logourl]]" --metadatatable "$[[inputs.metadatatable]]" --nonnspages "$[[inputs.createnonNSPages]]" --createvowl "$[[inputs.createVOWL]]" --ogcapifeatures "$[[inputs.ogcapifeatures]]" --iiif "$[[inputs.iiif]]" --ckan "$[[inputs.ckan]]" --startconcept "$[[inputs.startconcept]]" --deploypath "https://$CI_PROJECT_NAMESPACE.github.io/$CI_PROJECT_NAME" --templatepath "$[[inputs.templatedir]]" --offlinecompat "$[[inputs.offlinecompat]]" --exports "$[[inputs.exports]]" --datasettitle "$[[inputs.datasettitle]]" --publisher "$[[inputs.publisher]]" --publishingorg "$[[inputs.publishingorg]]"
artifacts:
paths:
- "$[[inputs.docpath]]"