Extended Drilling RD gen to start Object Properties, added 3 PropertySpace rd links to core
Showing
5 changed files
with
329 additions
and
12 deletions
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
... | @@ -13,6 +13,7 @@ | ... | @@ -13,6 +13,7 @@ |
13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
15 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 15 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
16 | +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . | ||
16 | @prefix sp: <http://spinrdf.org/sp#> . | 17 | @prefix sp: <http://spinrdf.org/sp#> . |
17 | @prefix spif: <http://spinrdf.org/spif#> . | 18 | @prefix spif: <http://spinrdf.org/spif#> . |
18 | @prefix spin: <http://spinrdf.org/spin#> . | 19 | @prefix spin: <http://spinrdf.org/spin#> . |
... | @@ -27,7 +28,7 @@ | ... | @@ -27,7 +28,7 @@ |
27 | owl:Class | 28 | owl:Class |
28 | spin:rule | 29 | spin:rule |
29 | [ rdf:type sp:Construct ; | 30 | [ rdf:type sp:Construct ; |
30 | - rdfs:comment "0001 Set URI and designation for EHR RD Class"^^xsd:string ; | 31 | + rdfs:comment "0110 Set URI and designation for EHR RD Class"^^xsd:string ; |
31 | sp:templates ([ sp:object | 32 | sp:templates ([ sp:object |
32 | [ sp:varName "thisrduri"^^xsd:string | 33 | [ sp:varName "thisrduri"^^xsd:string |
33 | ] ; | 34 | ] ; |
... | @@ -107,7 +108,7 @@ owl:Class | ... | @@ -107,7 +108,7 @@ owl:Class |
107 | ] [ rdf:type sp:Bind ; | 108 | ] [ rdf:type sp:Bind ; |
108 | sp:expression | 109 | sp:expression |
109 | [ rdf:type spif:buildURI ; | 110 | [ rdf:type spif:buildURI ; |
110 | - sp:arg1 "<http://posccaesar.org/{?pcaid}>" | 111 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" |
111 | ] ; | 112 | ] ; |
112 | sp:variable | 113 | sp:variable |
113 | [ sp:varName "thisrduri"^^xsd:string | 114 | [ sp:varName "thisrduri"^^xsd:string |
... | @@ -125,7 +126,39 @@ owl:Class | ... | @@ -125,7 +126,39 @@ owl:Class |
125 | ] ; | 126 | ] ; |
126 | spin:rule | 127 | spin:rule |
127 | [ rdf:type sp:Construct ; | 128 | [ rdf:type sp:Construct ; |
128 | - rdfs:comment "0003 Handle subclasses"^^xsd:string ; | 129 | + rdfs:comment "0120 Set sameAs for RD items already in PCA RDL"^^xsd:string ; |
130 | + sp:templates ([ sp:object | ||
131 | + [ sp:varName "rduri"^^xsd:string | ||
132 | + ] ; | ||
133 | + sp:predicate owl:sameAs ; | ||
134 | + sp:subject spin:_this | ||
135 | + ]) ; | ||
136 | + sp:where ([ rdf:type sp:NotExists ; | ||
137 | + sp:elements ([ sp:object | ||
138 | + [ sp:varName "same"^^xsd:string | ||
139 | + ] ; | ||
140 | + sp:predicate owl:sameAs ; | ||
141 | + sp:subject spin:_this | ||
142 | + ]) | ||
143 | + ] [ sp:object | ||
144 | + [ sp:varName "seerd"^^xsd:string | ||
145 | + ] ; | ||
146 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | ||
147 | + sp:subject spin:_this | ||
148 | + ] [ rdf:type sp:Bind ; | ||
149 | + sp:expression | ||
150 | + [ rdf:type smf:buildURI ; | ||
151 | + sp:arg1 [ sp:varName "seerd"^^xsd:string | ||
152 | + ] | ||
153 | + ] ; | ||
154 | + sp:variable | ||
155 | + [ sp:varName "rduri"^^xsd:string | ||
156 | + ] | ||
157 | + ]) | ||
158 | + ] ; | ||
159 | + spin:rule | ||
160 | + [ rdf:type sp:Construct ; | ||
161 | + rdfs:comment "0130 Handle subclasses"^^xsd:string ; | ||
129 | sp:templates ([ sp:object ISO-15926-2_2003:Specialization ; | 162 | sp:templates ([ sp:object ISO-15926-2_2003:Specialization ; |
130 | sp:predicate rdf:type ; | 163 | sp:predicate rdf:type ; |
131 | sp:subject | 164 | sp:subject |
... | @@ -183,7 +216,7 @@ owl:Class | ... | @@ -183,7 +216,7 @@ owl:Class |
183 | ] [ rdf:type sp:Bind ; | 216 | ] [ rdf:type sp:Bind ; |
184 | sp:expression | 217 | sp:expression |
185 | [ rdf:type spif:buildURI ; | 218 | [ rdf:type spif:buildURI ; |
186 | - sp:arg1 "<http://posccaesar.org/{?pcaid}>" | 219 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" |
187 | ] ; | 220 | ] ; |
188 | sp:variable | 221 | sp:variable |
189 | [ sp:varName "specuri"^^xsd:string | 222 | [ sp:varName "specuri"^^xsd:string |
... | @@ -192,7 +225,7 @@ owl:Class | ... | @@ -192,7 +225,7 @@ owl:Class |
192 | ] ; | 225 | ] ; |
193 | spin:rule | 226 | spin:rule |
194 | [ rdf:type sp:Construct ; | 227 | [ rdf:type sp:Construct ; |
195 | - rdfs:comment "0004 Set Part 2 Class of EHR RD Class"^^xsd:string ; | 228 | + rdfs:comment "0140 Set Part 2 Class of EHR RD Class"^^xsd:string ; |
196 | sp:templates ([ sp:object | 229 | sp:templates ([ sp:object |
197 | [ sp:varName "p2class"^^xsd:string | 230 | [ sp:varName "p2class"^^xsd:string |
198 | ] ; | 231 | ] ; | ... | ... |
... | @@ -3,12 +3,13 @@ | ... | @@ -3,12 +3,13 @@ |
3 | # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations | 3 | # imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations |
4 | # imports: http://spinrdf.org/spin | 4 | # imports: http://spinrdf.org/spin |
5 | # imports: http://www.reportinghub.no/ep/schema/1.0/drilling | 5 | # imports: http://www.reportinghub.no/ep/schema/1.0/drilling |
6 | -# imports: http://www.reportinghub.no/refdata/DrillingClasses | 6 | +# imports: http://www.reportinghub.no/refdata/transform/class2rd |
7 | 7 | ||
8 | @prefix : <http://www.reportinghub.no/refdata/transform/objprop2rd#> . | 8 | @prefix : <http://www.reportinghub.no/refdata/transform/objprop2rd#> . |
9 | @prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> . | 9 | @prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> . |
10 | @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . | 10 | @prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . |
11 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | 11 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
12 | +@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> . | ||
12 | @prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> . | 13 | @prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> . |
13 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 14 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
14 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 15 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
... | @@ -20,15 +21,168 @@ | ... | @@ -20,15 +21,168 @@ |
20 | @prefix spl: <http://spinrdf.org/spl#> . | 21 | @prefix spl: <http://spinrdf.org/spl#> . |
21 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 22 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
22 | 23 | ||
24 | +<http://www.reportinghub.no/ep/schema/core#PropertySpace> | ||
25 | + spin:rule | ||
26 | + [ rdf:type sp:Construct ; | ||
27 | + rdfs:comment "0250 Set URI and designation for EHR Property Spaces Linked to PCA RD"^^xsd:string ; | ||
28 | + sp:templates ([ sp:object | ||
29 | + [ sp:varName "thisrduri"^^xsd:string | ||
30 | + ] ; | ||
31 | + sp:predicate owl:sameAs ; | ||
32 | + sp:subject spin:_this | ||
33 | + ]) ; | ||
34 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/core#PropertySpace> ; | ||
35 | + sp:predicate rdf:type ; | ||
36 | + sp:subject spin:_this | ||
37 | + ] [ rdf:type sp:NotExists ; | ||
38 | + sp:elements ([ sp:object | ||
39 | + [ sp:varName "same"^^xsd:string | ||
40 | + ] ; | ||
41 | + sp:predicate owl:sameAs ; | ||
42 | + sp:subject spin:_this | ||
43 | + ]) | ||
44 | + ] [ sp:object | ||
45 | + [ sp:varName "seerd"^^xsd:string | ||
46 | + ] ; | ||
47 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | ||
48 | + sp:subject spin:_this | ||
49 | + ] [ rdf:type sp:Bind ; | ||
50 | + sp:expression | ||
51 | + [ rdf:type spif:buildURI ; | ||
52 | + sp:arg1 [ sp:varName "seerd"^^xsd:string | ||
53 | + ] | ||
54 | + ] ; | ||
55 | + sp:variable | ||
56 | + [ sp:varName "thisrduri"^^xsd:string | ||
57 | + ] | ||
58 | + ]) | ||
59 | + ] ; | ||
60 | + spin:rule | ||
61 | + [ rdf:type sp:Construct ; | ||
62 | + rdfs:comment "0251 Set URI and designation for EHR RD Property Spaces"^^xsd:string ; | ||
63 | + sp:templates ([ sp:object | ||
64 | + [ sp:varName "thisrduri"^^xsd:string | ||
65 | + ] ; | ||
66 | + sp:predicate owl:sameAs ; | ||
67 | + sp:subject spin:_this | ||
68 | + ] [ sp:object | ||
69 | + [ sp:varName "desigation"^^xsd:string | ||
70 | + ] ; | ||
71 | + sp:predicate <http://posccaesar.org/rdl/hasDesignation> ; | ||
72 | + sp:subject | ||
73 | + [ sp:varName "thisrduri"^^xsd:string | ||
74 | + ] | ||
75 | + ] [ sp:object | ||
76 | + [ sp:varName "definition"^^xsd:string | ||
77 | + ] ; | ||
78 | + sp:predicate <http://posccaesar.org/rdl/hasDefinition> ; | ||
79 | + sp:subject | ||
80 | + [ sp:varName "thisrduri"^^xsd:string | ||
81 | + ] | ||
82 | + ] [ sp:object | ||
83 | + [ sp:varName "pcaid"^^xsd:string | ||
84 | + ] ; | ||
85 | + sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ; | ||
86 | + sp:subject | ||
87 | + [ sp:varName "thisrduri"^^xsd:string | ||
88 | + ] | ||
89 | + ] [ sp:object ISO-15926-2_2003:PropertySpace ; | ||
90 | + sp:predicate rdf:type ; | ||
91 | + sp:subject | ||
92 | + [ sp:varName "thisrduri"^^xsd:string | ||
93 | + ] | ||
94 | + ]) ; | ||
95 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/core#PropertySpace> ; | ||
96 | + sp:predicate rdf:type ; | ||
97 | + sp:subject spin:_this | ||
98 | + ] [ rdf:type sp:NotExists ; | ||
99 | + sp:elements ([ sp:object | ||
100 | + [ sp:varName "same"^^xsd:string | ||
101 | + ] ; | ||
102 | + sp:predicate owl:sameAs ; | ||
103 | + sp:subject spin:_this | ||
104 | + ]) | ||
105 | + ] [ rdf:type sp:NotExists ; | ||
106 | + sp:elements ([ sp:object | ||
107 | + [ sp:varName "seerd"^^xsd:string | ||
108 | + ] ; | ||
109 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | ||
110 | + sp:subject spin:_this | ||
111 | + ]) | ||
112 | + ] [ rdf:type sp:Filter ; | ||
113 | + sp:expression | ||
114 | + [ rdf:type sp:ne ; | ||
115 | + sp:arg1 [ rdf:type afn:namespace ; | ||
116 | + sp:arg1 spin:_this | ||
117 | + ] ; | ||
118 | + sp:arg2 "http://www.linkedmodel.org/schema/vaem#" | ||
119 | + ] | ||
120 | + ] [ rdf:type sp:Filter ; | ||
121 | + sp:expression | ||
122 | + [ rdf:type sp:ne ; | ||
123 | + sp:arg1 [ rdf:type afn:namespace ; | ||
124 | + sp:arg1 spin:_this | ||
125 | + ] ; | ||
126 | + sp:arg2 "http://www.w3.org/2004/02/skos/core#" | ||
127 | + ] | ||
128 | + ] [ rdf:type sp:Optional ; | ||
129 | + sp:elements ([ sp:object | ||
130 | + [ sp:varName "definition"^^xsd:string | ||
131 | + ] ; | ||
132 | + sp:predicate rdfs:comment ; | ||
133 | + sp:subject spin:_this | ||
134 | + ]) | ||
135 | + ] [ sp:object | ||
136 | + [ sp:varName "label"^^xsd:string | ||
137 | + ] ; | ||
138 | + sp:predicate rdfs:label ; | ||
139 | + sp:subject spin:_this | ||
140 | + ] [ rdf:type sp:Bind ; | ||
141 | + sp:expression | ||
142 | + [ rdf:type spif:generateUUID | ||
143 | + ] ; | ||
144 | + sp:variable | ||
145 | + [ sp:varName "uuid"^^xsd:string | ||
146 | + ] | ||
147 | + ] [ rdf:type sp:Bind ; | ||
148 | + sp:expression | ||
149 | + [ rdf:type fn:concat ; | ||
150 | + sp:arg1 "ERH" ; | ||
151 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
152 | + ] | ||
153 | + ] ; | ||
154 | + sp:variable | ||
155 | + [ sp:varName "pcaid"^^xsd:string | ||
156 | + ] | ||
157 | + ] [ rdf:type sp:Bind ; | ||
158 | + sp:expression | ||
159 | + [ rdf:type spif:buildURI ; | ||
160 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
161 | + ] ; | ||
162 | + sp:variable | ||
163 | + [ sp:varName "thisrduri"^^xsd:string | ||
164 | + ] | ||
165 | + ] [ rdf:type sp:Bind ; | ||
166 | + sp:expression | ||
167 | + [ rdf:type fn:upper-case ; | ||
168 | + sp:arg1 [ sp:varName "label"^^xsd:string | ||
169 | + ] | ||
170 | + ] ; | ||
171 | + sp:variable | ||
172 | + [ sp:varName "desigation"^^xsd:string | ||
173 | + ] | ||
174 | + ]) | ||
175 | + ] . | ||
176 | + | ||
23 | <http://www.reportinghub.no/refdata/transform/objprop2rd> | 177 | <http://www.reportinghub.no/refdata/transform/objprop2rd> |
24 | rdf:type owl:Ontology ; | 178 | rdf:type owl:Ontology ; |
25 | - 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> , <http://www.reportinghub.no/refdata/DrillingClasses> ; | 179 | + 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> , <http://www.reportinghub.no/refdata/transform/class2rd> ; |
26 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 180 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
27 | 181 | ||
28 | owl:ObjectProperty | 182 | owl:ObjectProperty |
29 | spin:rule | 183 | spin:rule |
30 | [ rdf:type sp:Construct ; | 184 | [ rdf:type sp:Construct ; |
31 | - rdfs:comment "0001 Set URI and designation for EHR RD from Object Property NOT Class of Indirect Property"^^xsd:string ; | 185 | + rdfs:comment "0210 Set URI and designation for EHR RD from Object Property NOT Class of Indirect Property"^^xsd:string ; |
32 | sp:templates ([ sp:object | 186 | sp:templates ([ sp:object |
33 | [ sp:varName "thisrduri"^^xsd:string | 187 | [ sp:varName "thisrduri"^^xsd:string |
34 | ] ; | 188 | ] ; |
... | @@ -55,6 +209,11 @@ owl:ObjectProperty | ... | @@ -55,6 +209,11 @@ owl:ObjectProperty |
55 | sp:subject | 209 | sp:subject |
56 | [ sp:varName "thisrduri"^^xsd:string | 210 | [ sp:varName "thisrduri"^^xsd:string |
57 | ] | 211 | ] |
212 | + ] [ sp:object ISO-15926-2_2003:ClassOfRelationship ; | ||
213 | + sp:predicate rdf:type ; | ||
214 | + sp:subject | ||
215 | + [ sp:varName "thisrduri"^^xsd:string | ||
216 | + ] | ||
58 | ]) ; | 217 | ]) ; |
59 | sp:where ([ rdf:type sp:NotExists ; | 218 | sp:where ([ rdf:type sp:NotExists ; |
60 | sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property> ; | 219 | sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property> ; |
... | @@ -121,7 +280,7 @@ owl:ObjectProperty | ... | @@ -121,7 +280,7 @@ owl:ObjectProperty |
121 | ] [ rdf:type sp:Bind ; | 280 | ] [ rdf:type sp:Bind ; |
122 | sp:expression | 281 | sp:expression |
123 | [ rdf:type spif:buildURI ; | 282 | [ rdf:type spif:buildURI ; |
124 | - sp:arg1 "<http://posccaesar.org/{?pcaid}>" | 283 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" |
125 | ] ; | 284 | ] ; |
126 | sp:variable | 285 | sp:variable |
127 | [ sp:varName "thisrduri"^^xsd:string | 286 | [ sp:varName "thisrduri"^^xsd:string |
... | @@ -139,7 +298,7 @@ owl:ObjectProperty | ... | @@ -139,7 +298,7 @@ owl:ObjectProperty |
139 | ] ; | 298 | ] ; |
140 | spin:rule | 299 | spin:rule |
141 | [ rdf:type sp:Construct ; | 300 | [ rdf:type sp:Construct ; |
142 | - rdfs:comment "0002 Set URI and designation for EHR RD from Object Property Class of Indirect Property"^^xsd:string ; | 301 | + rdfs:comment "0220 Set URI and designation for EHR RD from Object Property Class of Indirect Property"^^xsd:string ; |
143 | sp:templates ([ sp:object | 302 | sp:templates ([ sp:object |
144 | [ sp:varName "thisrduri"^^xsd:string | 303 | [ sp:varName "thisrduri"^^xsd:string |
145 | ] ; | 304 | ] ; |
... | @@ -235,7 +394,7 @@ owl:ObjectProperty | ... | @@ -235,7 +394,7 @@ owl:ObjectProperty |
235 | ] [ rdf:type sp:Bind ; | 394 | ] [ rdf:type sp:Bind ; |
236 | sp:expression | 395 | sp:expression |
237 | [ rdf:type spif:buildURI ; | 396 | [ rdf:type spif:buildURI ; |
238 | - sp:arg1 "<http://posccaesar.org/{?pcaid}>" | 397 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" |
239 | ] ; | 398 | ] ; |
240 | sp:variable | 399 | sp:variable |
241 | [ sp:varName "thisrduri"^^xsd:string | 400 | [ sp:varName "thisrduri"^^xsd:string |
... | @@ -253,7 +412,7 @@ owl:ObjectProperty | ... | @@ -253,7 +412,7 @@ owl:ObjectProperty |
253 | ] ; | 412 | ] ; |
254 | spin:rule | 413 | spin:rule |
255 | [ rdf:type sp:Construct ; | 414 | [ rdf:type sp:Construct ; |
256 | - rdfs:comment "0004 Set Class of Indirect Property Possessor"^^xsd:string ; | 415 | + rdfs:comment "0240 Set Class of Indirect Property Possessor"^^xsd:string ; |
257 | sp:templates ([ sp:object | 416 | sp:templates ([ sp:object |
258 | [ sp:varName "possessor"^^xsd:string | 417 | [ sp:varName "possessor"^^xsd:string |
259 | ] ; | 418 | ] ; |
... | @@ -283,4 +442,129 @@ owl:ObjectProperty | ... | @@ -283,4 +442,129 @@ owl:ObjectProperty |
283 | [ sp:varName "domain"^^xsd:string | 442 | [ sp:varName "domain"^^xsd:string |
284 | ] | 443 | ] |
285 | ]) | 444 | ]) |
445 | + ] ; | ||
446 | + spin:rule | ||
447 | + [ rdf:type sp:Construct ; | ||
448 | + rdfs:comment "0260 Set Class of Indirect Property Property Space"^^xsd:string ; | ||
449 | + sp:templates ([ sp:object | ||
450 | + [ sp:varName "space"^^xsd:string | ||
451 | + ] ; | ||
452 | + sp:predicate ISO-15926-2_2003:hasPropertySpace ; | ||
453 | + sp:subject | ||
454 | + [ sp:varName "rdproperty"^^xsd:string | ||
455 | + ] | ||
456 | + ]) ; | ||
457 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property> ; | ||
458 | + sp:predicate rdf:type ; | ||
459 | + sp:subject spin:_this | ||
460 | + ] [ sp:object | ||
461 | + [ sp:varName "rdproperty"^^xsd:string | ||
462 | + ] ; | ||
463 | + sp:predicate owl:sameAs ; | ||
464 | + sp:subject spin:_this | ||
465 | + ] [ sp:object | ||
466 | + [ sp:varName "range"^^xsd:string | ||
467 | + ] ; | ||
468 | + sp:predicate rdfs:range ; | ||
469 | + sp:subject spin:_this | ||
470 | + ] [ sp:object | ||
471 | + [ sp:varName "space"^^xsd:string | ||
472 | + ] ; | ||
473 | + sp:predicate owl:sameAs ; | ||
474 | + sp:subject | ||
475 | + [ sp:varName "range"^^xsd:string | ||
476 | + ] | ||
477 | + ]) | ||
478 | + ] ; | ||
479 | + spin:rule | ||
480 | + [ rdf:type sp:Construct ; | ||
481 | + rdfs:comment "0270 Set Part 2 ClassOfRelation of EHR RD Object Property"^^xsd:string ; | ||
482 | + sp:templates ([ sp:object | ||
483 | + [ sp:varName "p2class"^^xsd:string | ||
484 | + ] ; | ||
485 | + sp:predicate rdf:type ; | ||
486 | + sp:subject | ||
487 | + [ sp:varName "thisrduri"^^xsd:string | ||
488 | + ] | ||
489 | + ] [ sp:object | ||
490 | + [ sp:varName "domainrduri"^^xsd:string | ||
491 | + ] ; | ||
492 | + sp:predicate | ||
493 | + [ sp:varName "p2rel1"^^xsd:string | ||
494 | + ] ; | ||
495 | + sp:subject | ||
496 | + [ sp:varName "thisrduri"^^xsd:string | ||
497 | + ] | ||
498 | + ] [ sp:object | ||
499 | + [ sp:varName "rangerduri"^^xsd:string | ||
500 | + ] ; | ||
501 | + sp:predicate | ||
502 | + [ sp:varName "p2rel2"^^xsd:string | ||
503 | + ] ; | ||
504 | + sp:subject | ||
505 | + [ sp:varName "thisrduri"^^xsd:string | ||
506 | + ] | ||
507 | + ]) ; | ||
508 | + sp:where ([ rdf:type sp:NotExists ; | ||
509 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Class_of_indirect_property> ; | ||
510 | + sp:predicate rdf:type ; | ||
511 | + sp:subject spin:_this | ||
512 | + ]) | ||
513 | + ] [ sp:object | ||
514 | + [ sp:varName "thisrduri"^^xsd:string | ||
515 | + ] ; | ||
516 | + sp:predicate owl:sameAs ; | ||
517 | + sp:subject spin:_this | ||
518 | + ] [ sp:object | ||
519 | + [ sp:varName "domain"^^xsd:string | ||
520 | + ] ; | ||
521 | + sp:predicate rdfs:domain ; | ||
522 | + sp:subject spin:_this | ||
523 | + ] [ sp:object | ||
524 | + [ sp:varName "domainrduri"^^xsd:string | ||
525 | + ] ; | ||
526 | + sp:predicate owl:sameAs ; | ||
527 | + sp:subject | ||
528 | + [ sp:varName "domain"^^xsd:string | ||
529 | + ] | ||
530 | + ] [ sp:object | ||
531 | + [ sp:varName "range"^^xsd:string | ||
532 | + ] ; | ||
533 | + sp:predicate rdfs:range ; | ||
534 | + sp:subject spin:_this | ||
535 | + ] [ sp:object | ||
536 | + [ sp:varName "rangerduri"^^xsd:string | ||
537 | + ] ; | ||
538 | + sp:predicate owl:sameAs ; | ||
539 | + sp:subject | ||
540 | + [ sp:varName "range"^^xsd:string | ||
541 | + ] | ||
542 | + ] [ rdf:type sp:Optional ; | ||
543 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
544 | + sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ; | ||
545 | + sp:path [ rdf:type sp:ModPath ; | ||
546 | + sp:modMax -2 ; | ||
547 | + sp:modMin 0 ; | ||
548 | + sp:subPath rdfs:subClassOf | ||
549 | + ] ; | ||
550 | + sp:subject | ||
551 | + [ sp:varName "domain"^^xsd:string | ||
552 | + ] | ||
553 | + ] [ rdf:type sp:Bind ; | ||
554 | + sp:expression ISO-15926-2_2003:ClassOfParticipation ; | ||
555 | + sp:variable | ||
556 | + [ sp:varName "p2class"^^xsd:string | ||
557 | + ] | ||
558 | + ] [ rdf:type sp:Bind ; | ||
559 | + sp:expression ISO-15926-2_2003:hasClassOfWhole ; | ||
560 | + sp:variable | ||
561 | + [ sp:varName "p2rel1"^^xsd:string | ||
562 | + ] | ||
563 | + ] [ rdf:type sp:Bind ; | ||
564 | + sp:expression ISO-15926-2_2003:hasClassOfPart ; | ||
565 | + sp:variable | ||
566 | + [ sp:varName "p2rel2"^^xsd:string | ||
567 | + ] | ||
568 | + ]) | ||
569 | + ]) | ||
286 | ] . | 570 | ] . | ... | ... |
-
Please register or login to post a comment