Skip to content

Commit d1eabba

Browse files
committed
started working on ISA process fix
1 parent 9bc3063 commit d1eabba

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,29 @@
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;
28+
sh:name "Identify ISA processes within the RO-Crate" ;
29+
sh:description "A Process has type LabProcess and is attached to a Study or Assay." ;
30+
sh:targetClass bioschemas:LabProcess ;
31+
# Expand data graph with triples from the file data entity
32+
sh:rule [
33+
a sh:TripleRule ;
34+
sh:subject sh:this ;
35+
sh:predicate rdf:type ;
36+
sh:object isa-ro-crate:Process ;
37+
# The condition: need to be attached to a Study or Assay
38+
sh:condition [
39+
sh:property [
40+
sh:path [ sh:inversePath schema:about ] ;
41+
sh:or (
42+
[sh:class isa-ro-crate:Study]
43+
[sh:class isa-ro-crate:Assay]
44+
) ;
45+
] ;
46+
] ;
47+
]
48+
.
49+
2750

2851

2952
# check process must have name
@@ -33,7 +56,7 @@
3356
isa-ro-crate:ProcessMustHaveName a sh:NodeShape ;
3457
sh:name "Process MUST have name" ;
3558
sh:description "A Process MUST have a name" ;
36-
sh:targetClass bioschemas:LabProcess ;
59+
sh:targetClass isa-ro-crate:Process ;
3760
sh:property [
3861
a sh:PropertyShape ;
3962
sh:path schema:name ;

rocrate_validator/profiles/isa-ro-crate/ontology.ttl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ isa-ro-crate:Assay rdf:type owl:Class ;
3636
rdfs:subClassOf schema:Dataset ;
3737
rdfs:label "Assay"@en .
3838

39+
# Process
40+
isa-ro-crate:Process rdf:type owl:Class ;
41+
rdfs:subClassOf bioschemas:LabProcess ;
42+
rdfs:label "Process"@en .
43+
3944
isa-ro-crate:Parameter rdf:type owl:Class ;
4045
rdfs:subClassOf schema:PropertyValue ;
4146
rdfs:label "Parameter"@en .

0 commit comments

Comments
 (0)