2424@prefix validator: <https://github.com/crs4/rocrate-validator/> .
2525@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2626
27+ isa-ro-crate:FindISAPropertyValue a sh:NodeShape, validator:HiddenShape;
28+ sh:name " Identify ISA PropertyValues within the RO-Crate" ;
29+ sh:description " An ISA PropertyValue has type PropertyValue and is attached to an Assay, Process, Protocol, Sample, Person, or Article." ;
30+ sh:targetClass schema:PropertyValue ;
31+ sh:order 4 ;
32+ # Expand data graph with triples from the file data entity
33+ sh:rule [
34+ a sh:TripleRule ;
35+ sh:subject sh:this ;
36+ sh:predicate rdf:type ;
37+ sh:object isa-ro-crate:PropertyValue ;
38+ # The condition: need to be attached to a Assay, Process, Protocol, Sample, Person, or Article
39+ sh:condition [
40+ a sh:NodeShape;
41+ sh:name: " PropertyValue is attached to an Assay, Process, Protocol, Sample, Person, or Article" ;
42+ sh:or (
43+ [
44+ sh:property [
45+ sh:name " PropertyValue is measurementMethod of an Assay" ;
46+ sh:path [ sh:inversePath schema:variableMeasured ] ;
47+ sh:qualifiedValueShape [
48+ sh:class isa-ro-crate:Assay ;
49+ ] ;
50+ sh:qualifiedMinCount 1 ;
51+ ]
52+ ]
53+ [
54+ sh:property [
55+ sh:name " PropertyValue is parameterValue of a Process" ;
56+ sh:path [ sh:inversePath bioschemas-prop:parameterValue ] ;
57+ sh:qualifiedValueShape [
58+ sh:class isa-ro-crate:Process
59+ ] ;
60+ sh:qualifiedMinCount 1 ;
61+ ]
62+ ]
63+ [
64+ sh:property [
65+ sh:name " PropertyValue is computationalTool of a Protocol" ;
66+ sh:path [ sh:inversePath schema:computationalTool ] ;
67+ sh:qualifiedValueShape [
68+ sh:class isa-ro-crate:Protocol
69+ ] ;
70+ sh:qualifiedMinCount 1 ;
71+ ]
72+ ]
73+ [
74+ sh:property [
75+ sh:name " PropertyValue is labEquipment of a Protocol" ;
76+ sh:path [ sh:inversePath schema:labEquipment ] ;
77+ sh:qualifiedValueShape [
78+ sh:class isa-ro-crate:Protocol
79+ ] ;
80+ sh:qualifiedMinCount 1 ;
81+ ]
82+ ]
83+ [
84+ sh:property [
85+ sh:name " PropertyValue is reagent of a Protocol" ;
86+ sh:path [ sh:inversePath schema:reagent ] ;
87+ sh:qualifiedValueShape [
88+ sh:class isa-ro-crate:Protocol
89+ ] ;
90+ sh:qualifiedMinCount 1 ;
91+ ]
92+ ]
93+ [
94+ sh:property [
95+ sh:name " PropertyValue is characteristic of a Sample" ;
96+ sh:path [ sh:inversePath bioschemas-prop:additionalProperty ] ;
97+ sh:qualifiedValueShape [
98+ sh:class isa-ro-crate:Sample
99+ ] ;
100+ sh:qualifiedMinCount 1 ;
101+ ]
102+ ]
103+ [
104+ sh:property [
105+ sh:name " PropertyValue is identifier of a Person" ;
106+ sh:path [ sh:inversePath schema:identifier ] ;
107+ sh:qualifiedValueShape [
108+ sh:class isa-ro-crate:Person
109+ ] ;
110+ sh:qualifiedMinCount 1 ;
111+ ]
112+ ]
113+ [
114+ sh:property [
115+ sh:name " PropertyValue is identifier of a Publication" ;
116+ sh:path [ sh:inversePath schema:identifier ] ;
117+ sh:qualifiedValueShape [
118+ sh:class isa-ro-crate:Publication
119+ ] ;
120+ sh:qualifiedMinCount 1 ;
121+ ]
122+ ]
123+ ) ;
124+ ] ;
125+ ] ;
126+ .
27127
28128ro-crate:FindPropertyValueSubtypes a sh:NodeShape, validator:HiddenShape;
29129 sh:name " Identify PropertyValue subtypes within the RO-Crate" ;
30130 sh:description " A PropertyValue has type Parameter, Characteristic, Factor or Component if additionalType is set accordingly." ;
31- sh:targetClass schema :PropertyValue ;
131+ sh:targetClass isa-ro-crate :PropertyValue ;
32132 # Expand data graph with triples from the file data entity
33133 sh:rule [
34134 a sh:TripleRule ;
@@ -87,7 +187,7 @@ ro-crate:FindPropertyValueSubtypes a sh:NodeShape, validator:HiddenShape;
87187isa-ro-crate:PropertyValueMustHaveName a sh:NodeShape ;
88188 sh:name " PropertyValue MUST have a name" ;
89189 sh:description " A PropertyValue MUST have a name" ;
90- sh:targetClass schema :PropertyValue ;
190+ sh:targetClass isa-ro-crate :PropertyValue ;
91191 sh:property [
92192 a sh:PropertyShape ;
93193 sh:path schema:name ;
@@ -106,7 +206,7 @@ isa-ro-crate:PropertyValueMustHaveName a sh:NodeShape ;
106206isa-ro-crate:PropertyValueShouldHaveValueOfCorrectType a sh:NodeShape ;
107207 sh:name " PropertyValue SHOULD have value of correct type" ;
108208 sh:description " A PropertyValue SHOULD have at least one value of correct type" ;
109- sh:targetClass schema :PropertyValue ;
209+ sh:targetClass isa-ro-crate :PropertyValue ;
110210 sh:property [
111211 a sh:PropertyShape ;
112212 sh:path schema:value ;
0 commit comments