Skip to content

Commit c5e29e4

Browse files
committed
fixed non-determinism with manual assay/study definition in process
1 parent c3e2d5f commit c5e29e4

3 files changed

Lines changed: 44 additions & 7 deletions

File tree

rocrate_validator/profiles/isa-ro-crate/1_study.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# ] .
6161

6262
# Find studies and add isa-ro-crate:Study type to them, for easier retrieval for checks
63-
ro-crate:FindStudies a sh:NodeShape, validator:HiddenShape;
63+
isa-ro-crate:FindStudies a sh:NodeShape, validator:HiddenShape;
6464
sh:name "Identify Studies within the RO-Crate" ;
6565
sh:description "A Study has type Dataset and additionalType 'Study'." ;
6666
sh:targetClass schema:Dataset ;

rocrate_validator/profiles/isa-ro-crate/2_assay.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# sh:object isa-ro-crate:Assay ;
5353
# ] .
5454

55-
ro-crate:FindAssays a sh:NodeShape, validator:HiddenShape;
55+
isa-ro-crate:FindAssays a sh:NodeShape, validator:HiddenShape;
5656
sh:name "Identify Assays within the RO-Crate" ;
5757
sh:description "An Assay has type Dataset and additionalType 'Assay'." ;
5858
sh:targetClass schema:Dataset ;

rocrate_validator/profiles/isa-ro-crate/3_process.ttl

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@prefix validator: <https://github.com/crs4/rocrate-validator/> .
2525
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2626

27-
ro-crate:FindISAProcesses a sh:NodeShape, validator:HiddenShape;
27+
isa-ro-crate:FindISAProcesses a sh:NodeShape, validator:HiddenShape;
2828
sh:name "Identify ISA processes within the RO-Crate" ;
2929
sh:description "A Process has type LabProcess and is attached to a Study or Assay." ;
3030
sh:targetClass bioschemas:LabProcess ;
@@ -38,15 +38,52 @@ ro-crate:FindISAProcesses a sh:NodeShape, validator:HiddenShape;
3838
sh:condition [
3939
sh:property [
4040
sh:path [ sh:inversePath schema:about ] ;
41-
sh:or (
42-
[sh:class isa-ro-crate:Study]
43-
[sh:class isa-ro-crate:Assay]
44-
) ;
41+
# sh:qualifiedValueShape [
42+
# sh:class isa-ro-crate:Assay
43+
# ] ;
44+
sh:qualifiedValueShape [
45+
sh:class schema:Dataset ;
46+
sh:property [
47+
sh:path schema:additionalType ;
48+
sh:or (
49+
[sh:hasValue "Study"]
50+
[sh:hasValue "Assay"]
51+
) ;
52+
] ;
53+
] ;
54+
sh:qualifiedMinCount 1 ;
4555
] ;
4656
] ;
4757
]
4858
.
4959

60+
# isa-ro-crate:FindISAProcesses a sh:NodeShape, validator:HiddenShape;
61+
# sh:name "Identify ISA processes within the RO-Crate" ;
62+
# sh:description "A Process has type LabProcess and is attached to a Study or Assay." ;
63+
# sh:target [
64+
# a sh:SPARQLTarget ;
65+
# sh:select """
66+
# PREFIX bioschemas: <https://bioschemas.org/>
67+
# PREFIX isa-ro-crate: <https://github.com/crs4/rocrate-validator/profiles/isa-ro-crate/>
68+
# PREFIX schema: <http://schema.org/>
69+
70+
# SELECT ?this
71+
# WHERE {
72+
# ?this a bioschemas:LabProcess .
73+
# ?assay schema:about ?this .
74+
# ?assay a isa-ro-crate:Assay .
75+
# }
76+
# """ ;
77+
# ] ;
78+
# # Expand data graph with triples from the file data entity
79+
# sh:rule [
80+
# a sh:TripleRule ;
81+
# sh:subject sh:this ;
82+
# sh:predicate rdf:type ;
83+
# sh:object isa-ro-crate:Process ;
84+
# ]
85+
# .
86+
5087

5188

5289
# check process must have name

0 commit comments

Comments
 (0)