Extended Drilling RD gen to start Object Properties, added 3 PropertySpace rd links to core
Showing
5 changed files
with
38 additions
and
5 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 | ] ; | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment