-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.39 KB
/
data-registry-create-graphs.yaml
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
name: Update Knowledge Graph and Search Graph when the Data Registry changes
on:
push:
branches: ["main"]
paths: ["data-registry/**"]
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout data repository
uses: actions/checkout@v4
with:
path: ./data
sparse-checkout: data-registry
- name: Checkout code repository
uses: actions/checkout@v4
with:
path: ./code
repository: colonial-heritage/integration-layer
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install app
run: |
cd ./code
npm install --no-progress
npx turbo run build --filter=@colonial-collections/data-registry
- name: Create graphs
run: |
cd ./data
../code/apps/data-registry/dist/cli.js upload \
--glob-pattern "data-registry/**/*.ttl" \
--graph-base-iri "https://data.colonialcollections.nl" \
--triplydb-instance-url "${{ vars.TRIPLYDB_INSTANCE_URL }}" \
--triplydb-api-token "${{ secrets.TRIPLYDB_API_TOKEN }}" \
--triplydb-account "${{ vars.TRIPLYDB_ACCOUNT }}" \
--triplydb-dataset "${{ vars.TRIPLYDB_DATASET_KG }}" \
--triplydb-service-name "kg" \
--triplydb-service-type "virtuoso"