Skip to content

Commit 71badda

Browse files
authored
fix: enforce label on SoftwareAgent (#869)
1 parent 4aaac8d commit 71badda

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/test.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
matrix:
1111
python-version: [3.6, 3.7, 3.8]
1212
steps:
13-
- uses: actions/checkout@master
13+
- uses: actions/checkout@v2
14+
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
1415
- name: Set up Python ${{ matrix.python-version }}
1516
uses: actions/setup-python@v1
1617
with:
@@ -30,7 +31,10 @@ jobs:
3031
matrix:
3132
python-version: [3.6, 3.7, 3.8]
3233
steps:
33-
- uses: actions/checkout@master
34+
- uses: actions/checkout@v2
35+
with:
36+
fetch-depth: 0
37+
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3438
- name: Set up Python ${{ matrix.python-version }}
3539
uses: actions/setup-python@v1
3640
with:
@@ -39,6 +43,7 @@ jobs:
3943
run: |
4044
python -m pip install --upgrade pip
4145
python -m pip install .[nodocs]
46+
python setup.py --version
4247
git config --global --add user.name "Renku @ SDSC"
4348
git config --global --add user.email "renku@datascience.ch"
4449
- name: Test with pytest
@@ -51,7 +56,10 @@ jobs:
5156
matrix:
5257
python-version: [3.6, 3.7, 3.8]
5358
steps:
54-
- uses: actions/checkout@master
59+
- uses: actions/checkout@v2
60+
with:
61+
fetch-depth: 0
62+
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
5563
- name: Set up Python ${{ matrix.python-version }}
5664
uses: actions/setup-python@v1
5765
with:

renku/core/models/provenance/agents.py

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def __attrs_post_init__(self):
160160
context={
161161
'prov': 'http://www.w3.org/ns/prov#',
162162
'wfprov': 'http://purl.org/wf4ever/wfprov#',
163+
'rdfs': 'http://www.w3.org/2000/01/rdf-schema#',
163164
},
164165
frozen=True,
165166
slots=True,

renku/data/shacl_shape.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,11 @@
732732
"path": "rdfs:label",
733733
"datatype": {
734734
"@id": "xsd:string"
735-
}
735+
},
736+
"minCount": 1,
737+
"maxCount": 1,
738+
"sh:pattern": "renku \\d+\\.\\d+\\.\\d+(?:\\.dev\\d+)?",
739+
"sh:flags": "i"
736740
},
737741
{
738742
"path": "prov:wasStartedBy",

0 commit comments

Comments
 (0)