-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.56 KB
/
sparql-map-uniprot.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
name: UniProt to BioLink RDF
# TODO: Add step to manage versioning (delete previous graph, load new graph, generate metadata)
on:
workflow_dispatch:
inputs:
endpoint:
description: 'Upload to SPARQL endpoint'
required: true
default: 'https://graphdb.dumontierlab.com/repositories/ncats-red-kg/statements'
graph:
description: 'In the Graph'
required: true
default: 'https://w3id.org/d2s/graph/uniprot'
jobs:
run-sparql:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run SPARQL queries to convert UniProt
uses: vemonet/sparql-operations-action@v1
with:
file: datasets/uniprot/mapping
endpoint: ${{ github.event.inputs.endpoint }}
user: ${{ secrets.GRAPHDB_USER }}
password: ${{ secrets.GRAPHDB_PASSWORD }}
inputvar: https://sparql.uniprot.org
outputvar: ${{ github.event.inputs.graph }}
servicevar: https://sparql.uniprot.org
- name: Compute and insert HCLS descriptive metadata
uses: vemonet/sparql-operations-action@v1
with:
file: https://github.com/MaastrichtU-IDS/d2s-scripts-repository/tree/master/sparql/compute-hcls-stats
endpoint: ${{ github.event.inputs.endpoint }}
user: ${{ secrets.GRAPHDB_USER }}
password: ${{ secrets.GRAPHDB_PASSWORD }}
inputvar: ${{ github.event.inputs.graph }}
outputvar: https://w3id.org/d2s/metadata
servicevar: ${{ github.event.inputs.endpoint }}
# servicevar: http://localhost:7200/repositories/ncats-red-kg