David Leal

UoM mapping to RDL

...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
11 <http://www.reportinghub.no/ep/transform/transform-helper-schema> 11 <http://www.reportinghub.no/ep/transform/transform-helper-schema>
12 rdf:type owl:Ontology ; 12 rdf:type owl:Ontology ;
13 rdfs:comment "The Transform Helper Schema is the set of properties and classes used for the creation of temporary data used as part of the ERH transformations. All instances of classes and uses of these properties is deleted before the triples are stored in the RDF database."^^xsd:string ; 13 rdfs:comment "The Transform Helper Schema is the set of properties and classes used for the creation of temporary data used as part of the ERH transformations. All instances of classes and uses of these properties is deleted before the triples are stored in the RDF database."^^xsd:string ;
14 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.epim.no/schemas/mprml/1> ; 14 + owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/activity> ;
15 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 15 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
16 16
17 transhelp:derivedFrom 17 transhelp:derivedFrom
18 rdf:type owl:ObjectProperty . 18 rdf:type owl:ObjectProperty .
19 19
20 transhelp:facilityIdentifier 20 transhelp:facilityIdentifier
21 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . 21 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
22 22
23 transhelp:forComment 23 transhelp:forComment
24 rdf:type owl:ObjectProperty ; 24 rdf:type owl:ObjectProperty ;
...@@ -30,30 +30,35 @@ transhelp:hasDerivedText ...@@ -30,30 +30,35 @@ transhelp:hasDerivedText
30 rdf:type owl:DatatypeProperty . 30 rdf:type owl:DatatypeProperty .
31 31
32 transhelp:interval 32 transhelp:interval
33 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . 33 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
34 34
35 transhelp:intervalEnd 35 transhelp:intervalEnd
36 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . 36 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
37 37
38 transhelp:intervalIdentifier 38 transhelp:intervalIdentifier
39 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . 39 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
40 40
41 transhelp:intervalStart 41 transhelp:intervalStart
42 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . 42 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
43 43
44 transhelp:label 44 transhelp:label
45 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . 45 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
46 46
47 transhelp:mapsTo 47 transhelp:mapsTo
48 rdf:type rdf:Property . 48 rdf:type rdf:Property .
49 49
50 transhelp:materialClassMapsToMPREnumeration 50 transhelp:materialClassMapsToMPREnumeration
51 - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty , owl:FunctionalProperty ; 51 + rdf:type owl:FunctionalProperty , owl:InverseFunctionalProperty , owl:ObjectProperty ;
52 rdfs:label "material class maps to MPR enumeration"^^xsd:string ; 52 rdfs:label "material class maps to MPR enumeration"^^xsd:string ;
53 rdfs:subPropertyOf transhelp:mapsTo . 53 rdfs:subPropertyOf transhelp:mapsTo .
54 54
55 transhelp:nominalInstant 55 transhelp:nominalInstant
56 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . 56 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
57 +
58 +transhelp:quantitySpaceMapsToClassOfScale
59 + rdf:type owl:FunctionalProperty , owl:InverseFunctionalProperty , owl:ObjectProperty ;
60 + rdfs:label "quantity space maps to class of scale"^^xsd:string ;
61 + rdfs:subPropertyOf transhelp:mapsTo .
57 62
58 transhelp:standardTempPres 63 transhelp:standardTempPres
59 rdf:type rdf:Property ; 64 rdf:type rdf:Property ;
......
1 +# baseURI: http://www.reportinghub.no/refdata/transform/quantityToClassOfScaleMap
2 +# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
3 +# imports: http://rds.posccaesar.org/2008/06/OWL/RDL
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 +# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
6 +
7 +@prefix : <http://www.reportinghub.no/refdata/transform/quantityToClassOfScaleMap#> .
8 +@prefix RDL: <http://rds.posccaesar.org/2008/06/OWL/RDL#> .
9 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
10 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
12 +@prefix transhelp: <http://www.reportinghub.no/ep/transform/transform-helper-schema#> .
13 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
14 +
15 +<http://www.reportinghub.no/ep/schema/core#Area>
16 + transhelp:quantitySpaceMapsToClassOfScale
17 + RDL:RDS1054511091 .
18 +
19 +<http://www.reportinghub.no/ep/schema/core#Density>
20 + transhelp:quantitySpaceMapsToClassOfScale
21 + RDL:RDS1354352791 .
22 +
23 +<http://www.reportinghub.no/ep/schema/core#Length>
24 + transhelp:quantitySpaceMapsToClassOfScale
25 + RDL:RDS1355222971 .
26 +
27 +<http://www.reportinghub.no/ep/schema/core#Mass>
28 + transhelp:quantitySpaceMapsToClassOfScale
29 + RDL:RDS1358660531 .
30 +
31 +<http://www.reportinghub.no/ep/schema/core#PlaneAngle>
32 + transhelp:quantitySpaceMapsToClassOfScale
33 + RDL:RDS1354272171 .
34 +
35 +<http://www.reportinghub.no/ep/schema/core#Power>
36 + transhelp:quantitySpaceMapsToClassOfScale
37 + RDL:RDS1358697161 .
38 +
39 +<http://www.reportinghub.no/ep/schema/core#Pressure>
40 + transhelp:quantitySpaceMapsToClassOfScale
41 + RDL:RDS1359461141 .
42 +
43 +<http://www.reportinghub.no/ep/schema/core#Temperature>
44 + transhelp:quantitySpaceMapsToClassOfScale
45 + RDL:RDS1054571911 .
46 +
47 +<http://www.reportinghub.no/ep/schema/core#TimeDuration>
48 + transhelp:quantitySpaceMapsToClassOfScale
49 + RDL:RDS1370654931 .
50 +
51 +<http://www.reportinghub.no/ep/schema/core#Velocity>
52 + transhelp:quantitySpaceMapsToClassOfScale
53 + RDL:RDS1406985181 .
54 +
55 +<http://www.reportinghub.no/ep/schema/core#Volume>
56 + transhelp:quantitySpaceMapsToClassOfScale
57 + RDL:RDS1369330550 .
58 +
59 +<http://www.reportinghub.no/ep/schema/core#VolumetricFlowRate>
60 + transhelp:quantitySpaceMapsToClassOfScale
61 + RDL:RDS1359698151 .
62 +
63 +<http://www.reportinghub.no/refdata/transform/quantityToClassOfScaleMap>
64 + rdf:type owl:Ontology ;
65 + owl:imports <http://rds.posccaesar.org/2008/06/OWL/RDL> , <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
66 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 -# baseURI: http://www.reportinghub.no/refdata/transform/uomprop2rd 1 +# baseURI: http://www.reportinghub.no/refdata/transform/uomprop2rd
2 -# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003 2 +# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
3 -# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations 3 +# imports: http://rds.posccaesar.org/2008/06/OWL/RDL
4 -# imports: http://spinrdf.org/spin 4 +# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/drilling 5 +# imports: http://spinrdf.org/spin
6 - 6 +# imports: http://www.reportinghub.no/ep/schema/1.0/drilling
7 -@prefix : <http://www.reportinghub.no/refdata/transform/uomprop2rd#> . 7 +# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
8 -@prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> . 8 +# imports: http://www.reportinghub.no/refdata/transform/quantityToClassOfScaleMap
9 -@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . 9 +
10 -@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 10 +@prefix : <http://www.reportinghub.no/refdata/transform/uomprop2rd#> .
11 -@prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> . 11 +@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
12 -@prefix fn: <http://www.w3.org/2005/xpath-functions#> . 12 +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
13 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 13 +@prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> .
14 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 14 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
15 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 15 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
16 -@prefix sp: <http://spinrdf.org/sp#> . 16 +@prefix pca-dm: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
17 -@prefix spif: <http://spinrdf.org/spif#> . 17 +@prefix quantityToClassOfScaleMap: <http://www.reportinghub.no/refdata/transform/quantityToClassOfScaleMap#> .
18 -@prefix spin: <http://spinrdf.org/spin#> . 18 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
19 -@prefix spl: <http://spinrdf.org/spl#> . 19 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
20 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 20 +@prefix sp: <http://spinrdf.org/sp#> .
21 - 21 +@prefix spif: <http://spinrdf.org/spif#> .
22 -<http://www.reportinghub.no/refdata/transform/uomprop2rd> 22 +@prefix spin: <http://spinrdf.org/spin#> .
23 - rdf:type owl:Ontology ; 23 +@prefix spl: <http://spinrdf.org/spl#> .
24 - owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/drilling> ; 24 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
25 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 25 +
26 - 26 +<http://www.reportinghub.no/refdata/transform/uomprop2rd>
27 -owl:DatatypeProperty 27 + rdf:type owl:Ontology ;
28 - spin:rule 28 + owl:imports <http://rds.posccaesar.org/2008/06/OWL/RDL> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/drilling> , <http://spinrdf.org/spin> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://www.reportinghub.no/refdata/transform/quantityToClassOfScaleMap> ;
29 - [ rdf:type sp:Construct ; 29 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
30 - rdfs:comment "0340 Set URI and designation for EHR RD from Datatype Property that ARE UoM"^^xsd:string ; 30 +
31 - sp:templates ([ sp:object 31 +owl:DatatypeProperty
32 - [ sp:varName "thisrduri"^^xsd:string 32 + spin:rule
33 - ] ; 33 + [ rdf:type sp:Construct ;
34 - sp:predicate owl:sameAs ; 34 + rdfs:comment "0341 Set the domain and classification"^^xsd:string ;
35 - sp:subject spin:_this 35 + sp:templates ([ sp:object
36 - ] [ sp:object 36 + [ sp:varName "rdDomain"^^xsd:string
37 - [ sp:varName "desigation"^^xsd:string 37 + ] ;
38 - ] ; 38 + sp:predicate pca-dm:hasDomain ;
39 - sp:predicate <http://posccaesar.org/rdl/hasDesignation> ; 39 + sp:subject
40 - sp:subject 40 + [ sp:varName "thisrduri"^^xsd:string
41 - [ sp:varName "thisrduri"^^xsd:string 41 + ]
42 - ] 42 + ] [ sp:object pca-dm:Classification ;
43 - ] [ sp:object 43 + sp:predicate rdf:type ;
44 - [ sp:varName "pcaid"^^xsd:string 44 + sp:subject
45 - ] ; 45 + [ sp:varName "clsncuri"^^xsd:string
46 - sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ; 46 + ]
47 - sp:subject 47 + ] [ sp:object
48 - [ sp:varName "thisrduri"^^xsd:string 48 + [ sp:varName "classOfScale"^^xsd:string
49 - ] 49 + ] ;
50 - ] [ sp:object ISO-15926-2_2003:Scale ; 50 + sp:predicate pca-dm:hasClassifier ;
51 - sp:predicate rdf:type ; 51 + sp:subject
52 - sp:subject 52 + [ sp:varName "clsncuri"^^xsd:string
53 - [ sp:varName "thisrduri"^^xsd:string 53 + ]
54 - ] 54 + ] [ sp:object
55 - ]) ; 55 + [ sp:varName "thisrduri"^^xsd:string
56 - sp:where ([ rdf:type sp:NotExists ; 56 + ] ;
57 - sp:elements ([ sp:object 57 + sp:predicate pca-dm:hasClassified ;
58 - [ sp:varName "same"^^xsd:string 58 + sp:subject
59 - ] ; 59 + [ sp:varName "clsncuri"^^xsd:string
60 - sp:predicate owl:sameAs ; 60 + ]
61 - sp:subject spin:_this 61 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
62 - ]) 62 + sp:predicate rdf:type ;
63 - ] [ rdf:type sp:NotExists ; 63 + sp:subject
64 - sp:elements ([ sp:object 64 + [ sp:varName "clsncuri"^^xsd:string
65 - [ sp:varName "seerd"^^xsd:string 65 + ]
66 - ] ; 66 + ]) ;
67 - sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; 67 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
68 - sp:subject spin:_this 68 + sp:predicate rdf:type ;
69 - ]) 69 + sp:subject spin:_this
70 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ; 70 + ] [ sp:object spin:_this ;
71 - sp:predicate rdf:type ; 71 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
72 - sp:subject spin:_this 72 + sp:subject
73 - ] [ rdf:type sp:Filter ; 73 + [ sp:varName "thisrduri"^^xsd:string
74 - sp:expression 74 + ]
75 - [ rdf:type sp:ne ; 75 + ] [ sp:object
76 - sp:arg1 [ rdf:type afn:namespace ; 76 + [ sp:varName "domain"^^xsd:string
77 - sp:arg1 spin:_this 77 + ] ;
78 - ] ; 78 + sp:predicate rdfs:domain ;
79 - sp:arg2 "http://www.linkedmodel.org/schema/vaem#" 79 + sp:subject spin:_this
80 - ] 80 + ] [ sp:object
81 - ] [ rdf:type sp:Filter ; 81 + [ sp:varName "rdDomain"^^xsd:string
82 - sp:expression 82 + ] ;
83 - [ rdf:type sp:ne ; 83 + sp:predicate owl:sameAs ;
84 - sp:arg1 [ rdf:type afn:namespace ; 84 + sp:subject
85 - sp:arg1 spin:_this 85 + [ sp:varName "domain"^^xsd:string
86 - ] ; 86 + ]
87 - sp:arg2 "http://www.w3.org/2004/02/skos/core#" 87 + ] [ rdf:type sp:Optional ;
88 - ] 88 + sp:elements ([ sp:object
89 - ] [ sp:object 89 + [ sp:varName "classOfScale"^^xsd:string
90 - [ sp:varName "label"^^xsd:string 90 + ] ;
91 - ] ; 91 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#quantitySpaceMapsToClassOfScale> ;
92 - sp:predicate rdfs:label ; 92 + sp:subject
93 - sp:subject spin:_this 93 + [ sp:varName "domain"^^xsd:string
94 - ] [ rdf:type sp:Bind ; 94 + ]
95 - sp:expression 95 + ])
96 - [ rdf:type spif:generateUUID 96 + ] [ rdf:type sp:Bind ;
97 - ] ; 97 + sp:expression
98 - sp:variable 98 + [ rdf:type spif:generateUUID
99 - [ sp:varName "uuid"^^xsd:string 99 + ] ;
100 - ] 100 + sp:variable
101 - ] [ rdf:type sp:Bind ; 101 + [ sp:varName "clsnuuid"^^xsd:string
102 - sp:expression 102 + ]
103 - [ rdf:type fn:concat ; 103 + ] [ rdf:type sp:Bind ;
104 - sp:arg1 "ERH" ; 104 + sp:expression
105 - sp:arg2 [ sp:varName "uuid"^^xsd:string 105 + [ rdf:type fn:concat ;
106 - ] 106 + sp:arg1 "ERH" ;
107 - ] ; 107 + sp:arg2 [ sp:varName "clsnuuid"^^xsd:string
108 - sp:variable 108 + ]
109 - [ sp:varName "pcaid"^^xsd:string 109 + ] ;
110 - ] 110 + sp:variable
111 - ] [ rdf:type sp:Bind ; 111 + [ sp:varName "clsnid"^^xsd:string
112 - sp:expression 112 + ]
113 - [ rdf:type spif:buildURI ; 113 + ] [ rdf:type sp:Bind ;
114 - sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" 114 + sp:expression
115 - ] ; 115 + [ rdf:type spif:buildURI ;
116 - sp:variable 116 + sp:arg1 "<http://posccaesar.org/rdl/{?clsnid}>"
117 - [ sp:varName "thisrduri"^^xsd:string 117 + ] ;
118 - ] 118 + sp:variable
119 - ] [ rdf:type sp:Bind ; 119 + [ sp:varName "clsncuri"^^xsd:string
120 - sp:expression 120 + ]
121 - [ rdf:type fn:upper-case ; 121 + ])
122 - sp:arg1 [ sp:varName "label"^^xsd:string 122 + ] ;
123 - ] 123 + spin:rule
124 - ] ; 124 + [ rdf:type sp:Construct ;
125 - sp:variable 125 + rdfs:comment "0340a Set URI and designation for EHR RD from Datatype Property that ARE UoM - no label"^^xsd:string ;
126 - [ sp:varName "desigation"^^xsd:string 126 + sp:templates ([ sp:object
127 - ] 127 + [ sp:varName "thisrduri"^^xsd:string
128 - ]) 128 + ] ;
129 - ] . 129 + sp:predicate owl:sameAs ;
130 + sp:subject spin:_this
131 + ] [ sp:object
132 + [ sp:varName "desigation"^^xsd:string
133 + ] ;
134 + sp:predicate <http://posccaesar.org/rdl/hasDesignation> ;
135 + sp:subject
136 + [ sp:varName "thisrduri"^^xsd:string
137 + ]
138 + ] [ sp:object
139 + [ sp:varName "pcaid"^^xsd:string
140 + ] ;
141 + sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ;
142 + sp:subject
143 + [ sp:varName "thisrduri"^^xsd:string
144 + ]
145 + ] [ sp:object pca-dm:Scale ;
146 + sp:predicate rdf:type ;
147 + sp:subject
148 + [ sp:varName "thisrduri"^^xsd:string
149 + ]
150 + ] [ sp:object "Scale imported from the EPIM schema - no label" ;
151 + sp:predicate <http://posccaesar.org/rdl/hasNoteAdmin> ;
152 + sp:subject
153 + [ sp:varName "thisrduri"^^xsd:string
154 + ]
155 + ] [ sp:object spin:_this ;
156 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
157 + sp:subject
158 + [ sp:varName "thisrduri"^^xsd:string
159 + ]
160 + ]) ;
161 + sp:where ([ rdf:type sp:NotExists ;
162 + sp:elements ([ sp:object
163 + [ sp:varName "same"^^xsd:string
164 + ] ;
165 + sp:predicate owl:sameAs ;
166 + sp:subject spin:_this
167 + ])
168 + ] [ rdf:type sp:NotExists ;
169 + sp:elements ([ sp:object
170 + [ sp:varName "seeReferenceData"^^xsd:string
171 + ] ;
172 + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
173 + sp:subject spin:_this
174 + ])
175 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
176 + sp:predicate rdf:type ;
177 + sp:subject spin:_this
178 + ] [ rdf:type sp:NotExists ;
179 + sp:elements ([ sp:object
180 + [ sp:varName "label"^^xsd:string
181 + ] ;
182 + sp:predicate rdfs:label ;
183 + sp:subject spin:_this
184 + ])
185 + ] [ rdf:type sp:Bind ;
186 + sp:expression
187 + [ rdf:type spif:generateUUID
188 + ] ;
189 + sp:variable
190 + [ sp:varName "uuid"^^xsd:string
191 + ]
192 + ] [ rdf:type sp:Bind ;
193 + sp:expression
194 + [ rdf:type fn:concat ;
195 + sp:arg1 "ERH" ;
196 + sp:arg2 [ sp:varName "uuid"^^xsd:string
197 + ]
198 + ] ;
199 + sp:variable
200 + [ sp:varName "pcaid"^^xsd:string
201 + ]
202 + ] [ rdf:type sp:Bind ;
203 + sp:expression
204 + [ rdf:type spif:buildURI ;
205 + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
206 + ] ;
207 + sp:variable
208 + [ sp:varName "thisrduri"^^xsd:string
209 + ]
210 + ] [ rdf:type sp:Bind ;
211 + sp:expression
212 + [ rdf:type fn:upper-case ;
213 + sp:arg1 "no label"
214 + ] ;
215 + sp:variable
216 + [ sp:varName "desigation"^^xsd:string
217 + ]
218 + ] [ rdf:type sp:Filter ;
219 + sp:expression
220 + [ rdf:type sp:ne ;
221 + sp:arg1 [ rdf:type afn:namespace ;
222 + sp:arg1 spin:_this
223 + ] ;
224 + sp:arg2 "http://www.linkedmodel.org/schema/vaem#"
225 + ]
226 + ] [ rdf:type sp:Filter ;
227 + sp:expression
228 + [ rdf:type sp:ne ;
229 + sp:arg1 [ rdf:type afn:namespace ;
230 + sp:arg1 spin:_this
231 + ] ;
232 + sp:arg2 "http://www.w3.org/2004/02/skos/core#"
233 + ]
234 + ])
235 + ] ;
236 + spin:rule
237 + [ rdf:type sp:Construct ;
238 + rdfs:comment "0342 Set the range - not Beaufort scale which has an integer range"^^xsd:string ;
239 + sp:templates ([ sp:object <http://rds.posccaesar.org/2008/06/OWL/RDL#RDS999900710> ;
240 + sp:predicate pca-dm:hasCodomain ;
241 + sp:subject
242 + [ sp:varName "thisrduri"^^xsd:string
243 + ]
244 + ]) ;
245 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
246 + sp:predicate rdf:type ;
247 + sp:subject spin:_this
248 + ] [ rdf:type sp:NotExists ;
249 + sp:elements ([ sp:object "Beaufort scale number" ;
250 + sp:predicate rdfs:label ;
251 + sp:subject spin:_this
252 + ])
253 + ] [ sp:object spin:_this ;
254 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
255 + sp:subject
256 + [ sp:varName "thisrduri"^^xsd:string
257 + ]
258 + ])
259 + ] ;
260 + spin:rule
261 + [ rdf:type sp:Construct ;
262 + rdfs:comment "0340 Set URI and designation for EHR RD from Datatype Property that ARE UoM"^^xsd:string ;
263 + sp:templates ([ sp:object
264 + [ sp:varName "thisrduri"^^xsd:string
265 + ] ;
266 + sp:predicate owl:sameAs ;
267 + sp:subject spin:_this
268 + ] [ sp:object
269 + [ sp:varName "desigation"^^xsd:string
270 + ] ;
271 + sp:predicate <http://posccaesar.org/rdl/hasDesignation> ;
272 + sp:subject
273 + [ sp:varName "thisrduri"^^xsd:string
274 + ]
275 + ] [ sp:object
276 + [ sp:varName "pcaid"^^xsd:string
277 + ] ;
278 + sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ;
279 + sp:subject
280 + [ sp:varName "thisrduri"^^xsd:string
281 + ]
282 + ] [ sp:object pca-dm:Scale ;
283 + sp:predicate rdf:type ;
284 + sp:subject
285 + [ sp:varName "thisrduri"^^xsd:string
286 + ]
287 + ] [ sp:object "Scale imported from the EPIM schema" ;
288 + sp:predicate <http://posccaesar.org/rdl/hasNoteAdmin> ;
289 + sp:subject
290 + [ sp:varName "thisrduri"^^xsd:string
291 + ]
292 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
293 + sp:predicate rdf:type ;
294 + sp:subject
295 + [ sp:varName "thisrduri"^^xsd:string
296 + ]
297 + ] [ sp:object pca-dm:Classification ;
298 + sp:predicate rdf:type ;
299 + sp:subject
300 + [ sp:varName "clsncuri"^^xsd:string
301 + ]
302 + ] [ sp:object <http://posccaesar.org/rdl/ERH00001> ;
303 + sp:predicate pca-dm:hasClassifier ;
304 + sp:subject
305 + [ sp:varName "clsncuri"^^xsd:string
306 + ]
307 + ] [ sp:object
308 + [ sp:varName "thisrduri"^^xsd:string
309 + ] ;
310 + sp:predicate pca-dm:hasClassified ;
311 + sp:subject
312 + [ sp:varName "clsncuri"^^xsd:string
313 + ]
314 + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
315 + sp:predicate rdf:type ;
316 + sp:subject
317 + [ sp:varName "clsncuri"^^xsd:string
318 + ]
319 + ] [ sp:object spin:_this ;
320 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
321 + sp:subject
322 + [ sp:varName "thisrduri"^^xsd:string
323 + ]
324 + ]) ;
325 + sp:where ([ rdf:type sp:NotExists ;
326 + sp:elements ([ sp:object
327 + [ sp:varName "same"^^xsd:string
328 + ] ;
329 + sp:predicate owl:sameAs ;
330 + sp:subject spin:_this
331 + ])
332 + ] [ rdf:type sp:NotExists ;
333 + sp:elements ([ sp:object
334 + [ sp:varName "seeReferenceData"^^xsd:string
335 + ] ;
336 + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
337 + sp:subject spin:_this
338 + ])
339 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
340 + sp:predicate rdf:type ;
341 + sp:subject spin:_this
342 + ] [ sp:object
343 + [ sp:varName "label"^^xsd:string
344 + ] ;
345 + sp:predicate rdfs:label ;
346 + sp:subject spin:_this
347 + ] [ rdf:type sp:Bind ;
348 + sp:expression
349 + [ rdf:type spif:generateUUID
350 + ] ;
351 + sp:variable
352 + [ sp:varName "uuid"^^xsd:string
353 + ]
354 + ] [ rdf:type sp:Bind ;
355 + sp:expression
356 + [ rdf:type fn:concat ;
357 + sp:arg1 "ERH" ;
358 + sp:arg2 [ sp:varName "uuid"^^xsd:string
359 + ]
360 + ] ;
361 + sp:variable
362 + [ sp:varName "pcaid"^^xsd:string
363 + ]
364 + ] [ rdf:type sp:Bind ;
365 + sp:expression
366 + [ rdf:type spif:buildURI ;
367 + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
368 + ] ;
369 + sp:variable
370 + [ sp:varName "thisrduri"^^xsd:string
371 + ]
372 + ] [ rdf:type sp:Bind ;
373 + sp:expression
374 + [ rdf:type fn:upper-case ;
375 + sp:arg1 [ sp:varName "label"^^xsd:string
376 + ]
377 + ] ;
378 + sp:variable
379 + [ sp:varName "desigation"^^xsd:string
380 + ]
381 + ] [ rdf:type sp:Filter ;
382 + sp:expression
383 + [ rdf:type sp:ne ;
384 + sp:arg1 [ rdf:type afn:namespace ;
385 + sp:arg1 spin:_this
386 + ] ;
387 + sp:arg2 "http://www.linkedmodel.org/schema/vaem#"
388 + ]
389 + ] [ rdf:type sp:Filter ;
390 + sp:expression
391 + [ rdf:type sp:ne ;
392 + sp:arg1 [ rdf:type afn:namespace ;
393 + sp:arg1 spin:_this
394 + ] ;
395 + sp:arg2 "http://www.w3.org/2004/02/skos/core#"
396 + ]
397 + ])
398 + ] .
......
...@@ -12,5 +12,7 @@ ...@@ -12,5 +12,7 @@
12 [] rdf:type inference:Configuration ; 12 [] rdf:type inference:Configuration ;
13 composite:child 13 composite:child
14 [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; 14 [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + <http://spinrdf.org/spin#topSPINOptions>
16 + "singlePass" ;
15 composite:index "0"^^xsd:int 17 composite:index "0"^^xsd:int
16 ] . 18 ] .
......