Showing
13 changed files
with
1079 additions
and
384 deletions
| 1 | # baseURI: http://www.reportinghub.no/refdata/production | 1 | # baseURI: http://www.reportinghub.no/refdata/production |
| 2 | -# imports: http://spinrdf.org/spin | 2 | +# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations |
| 3 | -# imports: http://www.reportinghub.no/ep/schema/1.0/production | ||
| 4 | -# imports: http://www.reportinghub.no/refdata/drilling | ||
| 5 | # imports: http://www.reportinghub.no/refdata/foundation | 3 | # imports: http://www.reportinghub.no/refdata/foundation |
| 6 | -# imports: http://www.reportinghub.no/refdata/npdfacts | ||
| 7 | 4 | ||
| 5 | +@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . | ||
| 6 | +@prefix foundation: <http://www.reportinghub.no/refdata/foundation#> . | ||
| 8 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 7 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 8 | +@prefix p2: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> . | ||
| 9 | +@prefix pca-rdl: <http://posccaesar.org/rdl/> . | ||
| 9 | @prefix production: <http://www.reportinghub.no/refdata/production#> . | 10 | @prefix production: <http://www.reportinghub.no/refdata/production#> . |
| 10 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 11 | @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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 12 | -@prefix sp: <http://spinrdf.org/sp#> . | ||
| 13 | -@prefix spin: <http://spinrdf.org/spin#> . | ||
| 14 | -@prefix spl: <http://spinrdf.org/spl#> . | ||
| 15 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 13 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 16 | 14 | ||
| 17 | <http://www.reportinghub.no/refdata/production> | 15 | <http://www.reportinghub.no/refdata/production> |
| 18 | rdf:type owl:Ontology ; | 16 | rdf:type owl:Ontology ; |
| 19 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/refdata/drilling> , <http://www.reportinghub.no/refdata/foundation> , <http://www.reportinghub.no/refdata/npdfacts> ; | 17 | + owl:imports <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://www.reportinghub.no/refdata/foundation> ; |
| 20 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 18 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
www.reportinghub.no/refdata/drilling2.ttl
0 → 100644
| 1 | +# baseURI: http://www.reportinghub.no/refdata/drilling2 | ||
| 2 | +# imports: http://www.reportinghub.no/refdata/foundation | ||
| 3 | + | ||
| 4 | +@prefix : <http://www.reportinghub.no/refdata/drilling2#> . | ||
| 5 | +@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> . | ||
| 6 | +@prefix foundation: <http://www.reportinghub.no/refdata/foundation#> . | ||
| 7 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 8 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 9 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +<http://www.reportinghub.no/refdata/drilling2> | ||
| 13 | + rdf:type owl:Ontology ; | ||
| 14 | + owl:imports <http://www.reportinghub.no/refdata/foundation> ; | ||
| 15 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 1 | +# baseURI: http://www.reportinghub.no/refdata/transform/class2rd-drill | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/drilling | ||
| 4 | +# imports: http://www.reportinghub.no/refdata/transform/class2rd | ||
| 5 | + | ||
| 6 | +@prefix : <http://www.reportinghub.no/refdata/transform/class2rd-drill#> . | ||
| 7 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | ||
| 8 | +@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> . | ||
| 9 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
| 10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 13 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 14 | +@prefix spif: <http://spinrdf.org/spif#> . | ||
| 15 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 16 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 17 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 18 | + | ||
| 19 | +<http://www.reportinghub.no/refdata/transform/class2rd-drill> | ||
| 20 | + rdf:type owl:Ontology ; | ||
| 21 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/drilling> , <http://www.reportinghub.no/refdata/transform/class2rd> ; | ||
| 22 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
| 23 | + | ||
| 24 | +rdfs:Class | ||
| 25 | + spin:rule | ||
| 26 | + [ rdf:type sp:Construct ; | ||
| 27 | + rdfs:comment "0196 Handle classification of RD classes as Drilling"^^xsd:string ; | ||
| 28 | + sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ; | ||
| 29 | + sp:predicate rdf:type ; | ||
| 30 | + sp:subject | ||
| 31 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 32 | + ] | ||
| 33 | + ] [ sp:object | ||
| 34 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 35 | + ] ; | ||
| 36 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ; | ||
| 37 | + sp:subject | ||
| 38 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 39 | + ] | ||
| 40 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00004> ; | ||
| 41 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ; | ||
| 42 | + sp:subject | ||
| 43 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 44 | + ] | ||
| 45 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 46 | + sp:predicate rdf:type ; | ||
| 47 | + sp:subject | ||
| 48 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 49 | + ] | ||
| 50 | + ]) ; | ||
| 51 | + sp:where ([ sp:object | ||
| 52 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 53 | + ] ; | ||
| 54 | + sp:predicate owl:sameAs ; | ||
| 55 | + sp:subject spin:_this | ||
| 56 | + ] [ rdf:type sp:Filter ; | ||
| 57 | + sp:expression | ||
| 58 | + [ rdf:type sp:ne ; | ||
| 59 | + sp:arg1 [ rdf:type afn:namespace ; | ||
| 60 | + sp:arg1 spin:_this | ||
| 61 | + ] ; | ||
| 62 | + sp:arg2 "http://www.reportinghub.no/np/schema/npd#" | ||
| 63 | + ] | ||
| 64 | + ] [ rdf:type sp:Bind ; | ||
| 65 | + sp:expression | ||
| 66 | + [ rdf:type spif:generateUUID | ||
| 67 | + ] ; | ||
| 68 | + sp:variable | ||
| 69 | + [ sp:varName "uuid"^^xsd:string | ||
| 70 | + ] | ||
| 71 | + ] [ rdf:type sp:Bind ; | ||
| 72 | + sp:expression | ||
| 73 | + [ rdf:type fn:concat ; | ||
| 74 | + sp:arg1 "ERH" ; | ||
| 75 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
| 76 | + ] | ||
| 77 | + ] ; | ||
| 78 | + sp:variable | ||
| 79 | + [ sp:varName "pcaid"^^xsd:string | ||
| 80 | + ] | ||
| 81 | + ] [ rdf:type sp:Bind ; | ||
| 82 | + sp:expression | ||
| 83 | + [ rdf:type spif:buildURI ; | ||
| 84 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
| 85 | + ] ; | ||
| 86 | + sp:variable | ||
| 87 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 88 | + ] | ||
| 89 | + ]) | ||
| 90 | + ] . | ||
| 91 | + | ||
| 92 | +owl:Class | ||
| 93 | + spin:rule | ||
| 94 | + [ rdf:type sp:Construct ; | ||
| 95 | + rdfs:comment "0140 Set Part 2 Class of EHR RD Class"^^xsd:string ; | ||
| 96 | + sp:templates ([ sp:object | ||
| 97 | + [ sp:varName "p2class"^^xsd:string | ||
| 98 | + ] ; | ||
| 99 | + sp:predicate rdf:type ; | ||
| 100 | + sp:subject | ||
| 101 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 102 | + ] | ||
| 103 | + ]) ; | ||
| 104 | + sp:where ([ sp:object | ||
| 105 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 106 | + ] ; | ||
| 107 | + sp:predicate owl:sameAs ; | ||
| 108 | + sp:subject spin:_this | ||
| 109 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 110 | + sp:predicate rdf:type ; | ||
| 111 | + sp:subject | ||
| 112 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 113 | + ] | ||
| 114 | + ] [ rdf:type sp:Optional ; | ||
| 115 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 116 | + sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ; | ||
| 117 | + sp:path [ rdf:type sp:ModPath ; | ||
| 118 | + sp:modMax -2 ; | ||
| 119 | + sp:modMin 0 ; | ||
| 120 | + sp:subPath rdfs:subClassOf | ||
| 121 | + ] ; | ||
| 122 | + sp:subject spin:_this | ||
| 123 | + ] [ rdf:type sp:Bind ; | ||
| 124 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfActivity> ; | ||
| 125 | + sp:variable | ||
| 126 | + [ sp:varName "p2class"^^xsd:string | ||
| 127 | + ] | ||
| 128 | + ]) | ||
| 129 | + ] [ rdf:type sp:Optional ; | ||
| 130 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 131 | + sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 132 | + sp:path [ rdf:type sp:ModPath ; | ||
| 133 | + sp:modMax -2 ; | ||
| 134 | + sp:modMin 0 ; | ||
| 135 | + sp:subPath rdfs:subClassOf | ||
| 136 | + ] ; | ||
| 137 | + sp:subject spin:_this | ||
| 138 | + ] [ rdf:type sp:Bind ; | ||
| 139 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#FunctionalPhysicalObject> ; | ||
| 140 | + sp:variable | ||
| 141 | + [ sp:varName "p2class"^^xsd:string | ||
| 142 | + ] | ||
| 143 | + ]) | ||
| 144 | + ] [ rdf:type sp:Optional ; | ||
| 145 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 146 | + sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
| 147 | + sp:path [ rdf:type sp:ModPath ; | ||
| 148 | + sp:modMax -2 ; | ||
| 149 | + sp:modMin 0 ; | ||
| 150 | + sp:subPath rdfs:subClassOf | ||
| 151 | + ] ; | ||
| 152 | + sp:subject spin:_this | ||
| 153 | + ] [ rdf:type sp:Bind ; | ||
| 154 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 155 | + sp:variable | ||
| 156 | + [ sp:varName "p2class"^^xsd:string | ||
| 157 | + ] | ||
| 158 | + ]) | ||
| 159 | + ] [ rdf:type sp:Optional ; | ||
| 160 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 161 | + sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ; | ||
| 162 | + sp:path [ rdf:type sp:ModPath ; | ||
| 163 | + sp:modMax -2 ; | ||
| 164 | + sp:modMin 0 ; | ||
| 165 | + sp:subPath rdfs:subClassOf | ||
| 166 | + ] ; | ||
| 167 | + sp:subject spin:_this | ||
| 168 | + ] [ rdf:type sp:Bind ; | ||
| 169 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 170 | + sp:variable | ||
| 171 | + [ sp:varName "p2class"^^xsd:string | ||
| 172 | + ] | ||
| 173 | + ]) | ||
| 174 | + ] [ rdf:type sp:Optional ; | ||
| 175 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 176 | + sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | ||
| 177 | + sp:path [ rdf:type sp:ModPath ; | ||
| 178 | + sp:modMax -2 ; | ||
| 179 | + sp:modMin 0 ; | ||
| 180 | + sp:subPath rdfs:subClassOf | ||
| 181 | + ] ; | ||
| 182 | + sp:subject spin:_this | ||
| 183 | + ] [ rdf:type sp:Bind ; | ||
| 184 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 185 | + sp:variable | ||
| 186 | + [ sp:varName "p2class"^^xsd:string | ||
| 187 | + ] | ||
| 188 | + ]) | ||
| 189 | + ] [ rdf:type sp:Optional ; | ||
| 190 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 191 | + sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ; | ||
| 192 | + sp:path [ rdf:type sp:ModPath ; | ||
| 193 | + sp:modMax -2 ; | ||
| 194 | + sp:modMin 0 ; | ||
| 195 | + sp:subPath rdfs:subClassOf | ||
| 196 | + ] ; | ||
| 197 | + sp:subject spin:_this | ||
| 198 | + ] [ rdf:type sp:Bind ; | ||
| 199 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 200 | + sp:variable | ||
| 201 | + [ sp:varName "p2class"^^xsd:string | ||
| 202 | + ] | ||
| 203 | + ]) | ||
| 204 | + ] [ rdf:type sp:Optional ; | ||
| 205 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 206 | + sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWell> ; | ||
| 207 | + sp:path [ rdf:type sp:ModPath ; | ||
| 208 | + sp:modMax -2 ; | ||
| 209 | + sp:modMin 0 ; | ||
| 210 | + sp:subPath rdfs:subClassOf | ||
| 211 | + ] ; | ||
| 212 | + sp:subject spin:_this | ||
| 213 | + ] [ rdf:type sp:Bind ; | ||
| 214 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 215 | + sp:variable | ||
| 216 | + [ sp:varName "p2class"^^xsd:string | ||
| 217 | + ] | ||
| 218 | + ]) | ||
| 219 | + ] [ rdf:type sp:Optional ; | ||
| 220 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 221 | + sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | ||
| 222 | + sp:path [ rdf:type sp:ModPath ; | ||
| 223 | + sp:modMax -2 ; | ||
| 224 | + sp:modMin 0 ; | ||
| 225 | + sp:subPath rdfs:subClassOf | ||
| 226 | + ] ; | ||
| 227 | + sp:subject spin:_this | ||
| 228 | + ] [ rdf:type sp:Bind ; | ||
| 229 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 230 | + sp:variable | ||
| 231 | + [ sp:varName "p2class"^^xsd:string | ||
| 232 | + ] | ||
| 233 | + ]) | ||
| 234 | + ] [ rdf:type sp:Optional ; | ||
| 235 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 236 | + sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
| 237 | + sp:path [ rdf:type sp:ModPath ; | ||
| 238 | + sp:modMax -2 ; | ||
| 239 | + sp:modMin 0 ; | ||
| 240 | + sp:subPath rdfs:subClassOf | ||
| 241 | + ] ; | ||
| 242 | + sp:subject spin:_this | ||
| 243 | + ] [ rdf:type sp:Bind ; | ||
| 244 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 245 | + sp:variable | ||
| 246 | + [ sp:varName "p2class"^^xsd:string | ||
| 247 | + ] | ||
| 248 | + ]) | ||
| 249 | + ] [ rdf:type sp:Optional ; | ||
| 250 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 251 | + sp:object <http://www.reportinghub.no/ep/schema/material#Material> ; | ||
| 252 | + sp:path [ rdf:type sp:ModPath ; | ||
| 253 | + sp:modMax -2 ; | ||
| 254 | + sp:modMin 0 ; | ||
| 255 | + sp:subPath rdfs:subClassOf | ||
| 256 | + ] ; | ||
| 257 | + sp:subject spin:_this | ||
| 258 | + ] [ rdf:type sp:Bind ; | ||
| 259 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfCompound> ; | ||
| 260 | + sp:variable | ||
| 261 | + [ sp:varName "p2class"^^xsd:string | ||
| 262 | + ] | ||
| 263 | + ]) | ||
| 264 | + ] [ rdf:type sp:Optional ; | ||
| 265 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 266 | + sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 267 | + sp:path [ rdf:type sp:ModPath ; | ||
| 268 | + sp:modMax -2 ; | ||
| 269 | + sp:modMin 0 ; | ||
| 270 | + sp:subPath rdfs:subClassOf | ||
| 271 | + ] ; | ||
| 272 | + sp:subject spin:_this | ||
| 273 | + ] [ rdf:type sp:Bind ; | ||
| 274 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfOrganization> ; | ||
| 275 | + sp:variable | ||
| 276 | + [ sp:varName "p2class"^^xsd:string | ||
| 277 | + ] | ||
| 278 | + ]) | ||
| 279 | + ] [ rdf:type sp:Optional ; | ||
| 280 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 281 | + sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; | ||
| 282 | + sp:path [ rdf:type sp:ModPath ; | ||
| 283 | + sp:modMax -2 ; | ||
| 284 | + sp:modMin 0 ; | ||
| 285 | + sp:subPath rdfs:subClassOf | ||
| 286 | + ] ; | ||
| 287 | + sp:subject spin:_this | ||
| 288 | + ] [ rdf:type sp:Bind ; | ||
| 289 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfPerson> ; | ||
| 290 | + sp:variable | ||
| 291 | + [ sp:varName "p2class"^^xsd:string | ||
| 292 | + ] | ||
| 293 | + ]) | ||
| 294 | + ] [ rdf:type sp:Optional ; | ||
| 295 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 296 | + sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | ||
| 297 | + sp:path [ rdf:type sp:ModPath ; | ||
| 298 | + sp:modMax -2 ; | ||
| 299 | + sp:modMin 0 ; | ||
| 300 | + sp:subPath rdfs:subClassOf | ||
| 301 | + ] ; | ||
| 302 | + sp:subject spin:_this | ||
| 303 | + ] [ rdf:type sp:Bind ; | ||
| 304 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInformationObject> ; | ||
| 305 | + sp:variable | ||
| 306 | + [ sp:varName "p2class"^^xsd:string | ||
| 307 | + ] | ||
| 308 | + ]) | ||
| 309 | + ]) | ||
| 310 | + ] . |
| 1 | +# baseURI: http://www.reportinghub.no/refdata/transform/class2rd-npd | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.reportinghub.no/np/schema/1.0/npd | ||
| 4 | +# imports: http://www.reportinghub.no/refdata/transform/class2rd | ||
| 5 | + | ||
| 6 | +@prefix : <http://www.reportinghub.no/refdata/transform/class2rd-npd#> . | ||
| 7 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | ||
| 8 | +@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> . | ||
| 9 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
| 10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 13 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 14 | +@prefix spif: <http://spinrdf.org/spif#> . | ||
| 15 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 16 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 17 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 18 | + | ||
| 19 | +<http://www.reportinghub.no/refdata/transform/class2rd-npd> | ||
| 20 | + rdf:type owl:Ontology ; | ||
| 21 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/refdata/transform/class2rd> ; | ||
| 22 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
| 23 | + | ||
| 24 | +rdfs:Class | ||
| 25 | + spin:rule | ||
| 26 | + [ rdf:type sp:Construct ; | ||
| 27 | + rdfs:comment "0195 Handle classification of RD classes as NPD"^^xsd:string ; | ||
| 28 | + sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ; | ||
| 29 | + sp:predicate rdf:type ; | ||
| 30 | + sp:subject | ||
| 31 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 32 | + ] | ||
| 33 | + ] [ sp:object | ||
| 34 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 35 | + ] ; | ||
| 36 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ; | ||
| 37 | + sp:subject | ||
| 38 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 39 | + ] | ||
| 40 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00002> ; | ||
| 41 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ; | ||
| 42 | + sp:subject | ||
| 43 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 44 | + ] | ||
| 45 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 46 | + sp:predicate rdf:type ; | ||
| 47 | + sp:subject | ||
| 48 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 49 | + ] | ||
| 50 | + ]) ; | ||
| 51 | + sp:where ([ sp:object | ||
| 52 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 53 | + ] ; | ||
| 54 | + sp:predicate owl:sameAs ; | ||
| 55 | + sp:subject spin:_this | ||
| 56 | + ] [ rdf:type sp:Filter ; | ||
| 57 | + sp:expression | ||
| 58 | + [ rdf:type sp:eq ; | ||
| 59 | + sp:arg1 [ rdf:type afn:namespace ; | ||
| 60 | + sp:arg1 spin:_this | ||
| 61 | + ] ; | ||
| 62 | + sp:arg2 "http://www.reportinghub.no/np/schema/npd#" | ||
| 63 | + ] | ||
| 64 | + ] [ rdf:type sp:Bind ; | ||
| 65 | + sp:expression | ||
| 66 | + [ rdf:type spif:generateUUID | ||
| 67 | + ] ; | ||
| 68 | + sp:variable | ||
| 69 | + [ sp:varName "uuid"^^xsd:string | ||
| 70 | + ] | ||
| 71 | + ] [ rdf:type sp:Bind ; | ||
| 72 | + sp:expression | ||
| 73 | + [ rdf:type fn:concat ; | ||
| 74 | + sp:arg1 "ERH" ; | ||
| 75 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
| 76 | + ] | ||
| 77 | + ] ; | ||
| 78 | + sp:variable | ||
| 79 | + [ sp:varName "pcaid"^^xsd:string | ||
| 80 | + ] | ||
| 81 | + ] [ rdf:type sp:Bind ; | ||
| 82 | + sp:expression | ||
| 83 | + [ rdf:type spif:buildURI ; | ||
| 84 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
| 85 | + ] ; | ||
| 86 | + sp:variable | ||
| 87 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 88 | + ] | ||
| 89 | + ]) | ||
| 90 | + ] . | ||
| 91 | + | ||
| 92 | +owl:Class | ||
| 93 | + spin:rule | ||
| 94 | + [ rdf:type sp:Construct ; | ||
| 95 | + rdfs:comment "0140 Set Part 2 Class of EHR RD Class"^^xsd:string ; | ||
| 96 | + sp:templates ([ sp:object | ||
| 97 | + [ sp:varName "p2class"^^xsd:string | ||
| 98 | + ] ; | ||
| 99 | + sp:predicate rdf:type ; | ||
| 100 | + sp:subject | ||
| 101 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 102 | + ] | ||
| 103 | + ]) ; | ||
| 104 | + sp:where ([ sp:object | ||
| 105 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 106 | + ] ; | ||
| 107 | + sp:predicate owl:sameAs ; | ||
| 108 | + sp:subject spin:_this | ||
| 109 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 110 | + sp:predicate rdf:type ; | ||
| 111 | + sp:subject | ||
| 112 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 113 | + ] | ||
| 114 | + ] [ rdf:type sp:Optional ; | ||
| 115 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 116 | + sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ; | ||
| 117 | + sp:path [ rdf:type sp:ModPath ; | ||
| 118 | + sp:modMax -2 ; | ||
| 119 | + sp:modMin 0 ; | ||
| 120 | + sp:subPath rdfs:subClassOf | ||
| 121 | + ] ; | ||
| 122 | + sp:subject spin:_this | ||
| 123 | + ] [ rdf:type sp:Bind ; | ||
| 124 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfActivity> ; | ||
| 125 | + sp:variable | ||
| 126 | + [ sp:varName "p2class"^^xsd:string | ||
| 127 | + ] | ||
| 128 | + ]) | ||
| 129 | + ] [ rdf:type sp:Optional ; | ||
| 130 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 131 | + sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 132 | + sp:path [ rdf:type sp:ModPath ; | ||
| 133 | + sp:modMax -2 ; | ||
| 134 | + sp:modMin 0 ; | ||
| 135 | + sp:subPath rdfs:subClassOf | ||
| 136 | + ] ; | ||
| 137 | + sp:subject spin:_this | ||
| 138 | + ] [ rdf:type sp:Bind ; | ||
| 139 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#FunctionalPhysicalObject> ; | ||
| 140 | + sp:variable | ||
| 141 | + [ sp:varName "p2class"^^xsd:string | ||
| 142 | + ] | ||
| 143 | + ]) | ||
| 144 | + ] [ rdf:type sp:Optional ; | ||
| 145 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 146 | + sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
| 147 | + sp:path [ rdf:type sp:ModPath ; | ||
| 148 | + sp:modMax -2 ; | ||
| 149 | + sp:modMin 0 ; | ||
| 150 | + sp:subPath rdfs:subClassOf | ||
| 151 | + ] ; | ||
| 152 | + sp:subject spin:_this | ||
| 153 | + ] [ rdf:type sp:Bind ; | ||
| 154 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 155 | + sp:variable | ||
| 156 | + [ sp:varName "p2class"^^xsd:string | ||
| 157 | + ] | ||
| 158 | + ]) | ||
| 159 | + ] [ rdf:type sp:Optional ; | ||
| 160 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 161 | + sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ; | ||
| 162 | + sp:path [ rdf:type sp:ModPath ; | ||
| 163 | + sp:modMax -2 ; | ||
| 164 | + sp:modMin 0 ; | ||
| 165 | + sp:subPath rdfs:subClassOf | ||
| 166 | + ] ; | ||
| 167 | + sp:subject spin:_this | ||
| 168 | + ] [ rdf:type sp:Bind ; | ||
| 169 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 170 | + sp:variable | ||
| 171 | + [ sp:varName "p2class"^^xsd:string | ||
| 172 | + ] | ||
| 173 | + ]) | ||
| 174 | + ] [ rdf:type sp:Optional ; | ||
| 175 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 176 | + sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | ||
| 177 | + sp:path [ rdf:type sp:ModPath ; | ||
| 178 | + sp:modMax -2 ; | ||
| 179 | + sp:modMin 0 ; | ||
| 180 | + sp:subPath rdfs:subClassOf | ||
| 181 | + ] ; | ||
| 182 | + sp:subject spin:_this | ||
| 183 | + ] [ rdf:type sp:Bind ; | ||
| 184 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 185 | + sp:variable | ||
| 186 | + [ sp:varName "p2class"^^xsd:string | ||
| 187 | + ] | ||
| 188 | + ]) | ||
| 189 | + ] [ rdf:type sp:Optional ; | ||
| 190 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 191 | + sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ; | ||
| 192 | + sp:path [ rdf:type sp:ModPath ; | ||
| 193 | + sp:modMax -2 ; | ||
| 194 | + sp:modMin 0 ; | ||
| 195 | + sp:subPath rdfs:subClassOf | ||
| 196 | + ] ; | ||
| 197 | + sp:subject spin:_this | ||
| 198 | + ] [ rdf:type sp:Bind ; | ||
| 199 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 200 | + sp:variable | ||
| 201 | + [ sp:varName "p2class"^^xsd:string | ||
| 202 | + ] | ||
| 203 | + ]) | ||
| 204 | + ] [ rdf:type sp:Optional ; | ||
| 205 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 206 | + sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWell> ; | ||
| 207 | + sp:path [ rdf:type sp:ModPath ; | ||
| 208 | + sp:modMax -2 ; | ||
| 209 | + sp:modMin 0 ; | ||
| 210 | + sp:subPath rdfs:subClassOf | ||
| 211 | + ] ; | ||
| 212 | + sp:subject spin:_this | ||
| 213 | + ] [ rdf:type sp:Bind ; | ||
| 214 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 215 | + sp:variable | ||
| 216 | + [ sp:varName "p2class"^^xsd:string | ||
| 217 | + ] | ||
| 218 | + ]) | ||
| 219 | + ] [ rdf:type sp:Optional ; | ||
| 220 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 221 | + sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | ||
| 222 | + sp:path [ rdf:type sp:ModPath ; | ||
| 223 | + sp:modMax -2 ; | ||
| 224 | + sp:modMin 0 ; | ||
| 225 | + sp:subPath rdfs:subClassOf | ||
| 226 | + ] ; | ||
| 227 | + sp:subject spin:_this | ||
| 228 | + ] [ rdf:type sp:Bind ; | ||
| 229 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 230 | + sp:variable | ||
| 231 | + [ sp:varName "p2class"^^xsd:string | ||
| 232 | + ] | ||
| 233 | + ]) | ||
| 234 | + ] [ rdf:type sp:Optional ; | ||
| 235 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 236 | + sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
| 237 | + sp:path [ rdf:type sp:ModPath ; | ||
| 238 | + sp:modMax -2 ; | ||
| 239 | + sp:modMin 0 ; | ||
| 240 | + sp:subPath rdfs:subClassOf | ||
| 241 | + ] ; | ||
| 242 | + sp:subject spin:_this | ||
| 243 | + ] [ rdf:type sp:Bind ; | ||
| 244 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 245 | + sp:variable | ||
| 246 | + [ sp:varName "p2class"^^xsd:string | ||
| 247 | + ] | ||
| 248 | + ]) | ||
| 249 | + ] [ rdf:type sp:Optional ; | ||
| 250 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 251 | + sp:object <http://www.reportinghub.no/ep/schema/material#Material> ; | ||
| 252 | + sp:path [ rdf:type sp:ModPath ; | ||
| 253 | + sp:modMax -2 ; | ||
| 254 | + sp:modMin 0 ; | ||
| 255 | + sp:subPath rdfs:subClassOf | ||
| 256 | + ] ; | ||
| 257 | + sp:subject spin:_this | ||
| 258 | + ] [ rdf:type sp:Bind ; | ||
| 259 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfCompound> ; | ||
| 260 | + sp:variable | ||
| 261 | + [ sp:varName "p2class"^^xsd:string | ||
| 262 | + ] | ||
| 263 | + ]) | ||
| 264 | + ] [ rdf:type sp:Optional ; | ||
| 265 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 266 | + sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 267 | + sp:path [ rdf:type sp:ModPath ; | ||
| 268 | + sp:modMax -2 ; | ||
| 269 | + sp:modMin 0 ; | ||
| 270 | + sp:subPath rdfs:subClassOf | ||
| 271 | + ] ; | ||
| 272 | + sp:subject spin:_this | ||
| 273 | + ] [ rdf:type sp:Bind ; | ||
| 274 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfOrganization> ; | ||
| 275 | + sp:variable | ||
| 276 | + [ sp:varName "p2class"^^xsd:string | ||
| 277 | + ] | ||
| 278 | + ]) | ||
| 279 | + ] [ rdf:type sp:Optional ; | ||
| 280 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 281 | + sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; | ||
| 282 | + sp:path [ rdf:type sp:ModPath ; | ||
| 283 | + sp:modMax -2 ; | ||
| 284 | + sp:modMin 0 ; | ||
| 285 | + sp:subPath rdfs:subClassOf | ||
| 286 | + ] ; | ||
| 287 | + sp:subject spin:_this | ||
| 288 | + ] [ rdf:type sp:Bind ; | ||
| 289 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfPerson> ; | ||
| 290 | + sp:variable | ||
| 291 | + [ sp:varName "p2class"^^xsd:string | ||
| 292 | + ] | ||
| 293 | + ]) | ||
| 294 | + ] [ rdf:type sp:Optional ; | ||
| 295 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 296 | + sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | ||
| 297 | + sp:path [ rdf:type sp:ModPath ; | ||
| 298 | + sp:modMax -2 ; | ||
| 299 | + sp:modMin 0 ; | ||
| 300 | + sp:subPath rdfs:subClassOf | ||
| 301 | + ] ; | ||
| 302 | + sp:subject spin:_this | ||
| 303 | + ] [ rdf:type sp:Bind ; | ||
| 304 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInformationObject> ; | ||
| 305 | + sp:variable | ||
| 306 | + [ sp:varName "p2class"^^xsd:string | ||
| 307 | + ] | ||
| 308 | + ]) | ||
| 309 | + ]) | ||
| 310 | + ] . |
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +[] rdf:type inference:Configuration ; | ||
| 13 | + composite:child | ||
| 14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 15 | + composite:index "0"^^xsd:int | ||
| 16 | + ] . |
| 1 | +# baseURI: http://www.reportinghub.no/refdata/transform/class2rd-prod | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production | ||
| 4 | +# imports: http://www.reportinghub.no/refdata/transform/class2rd | ||
| 5 | + | ||
| 6 | +@prefix : <http://www.reportinghub.no/refdata/transform/class2rd-prod#> . | ||
| 7 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | ||
| 8 | +@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> . | ||
| 9 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
| 10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 13 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 14 | +@prefix spif: <http://spinrdf.org/spif#> . | ||
| 15 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 16 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 17 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 18 | + | ||
| 19 | +<http://www.reportinghub.no/refdata/transform/class2rd-prod> | ||
| 20 | + rdf:type owl:Ontology ; | ||
| 21 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/refdata/transform/class2rd> ; | ||
| 22 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
| 23 | + | ||
| 24 | +rdfs:Class | ||
| 25 | + spin:rule | ||
| 26 | + [ rdf:type sp:Construct ; | ||
| 27 | + rdfs:comment "0195 Handle classification of RD classes as Production"^^xsd:string ; | ||
| 28 | + sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ; | ||
| 29 | + sp:predicate rdf:type ; | ||
| 30 | + sp:subject | ||
| 31 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 32 | + ] | ||
| 33 | + ] [ sp:object | ||
| 34 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 35 | + ] ; | ||
| 36 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ; | ||
| 37 | + sp:subject | ||
| 38 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 39 | + ] | ||
| 40 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00004> ; | ||
| 41 | + sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ; | ||
| 42 | + sp:subject | ||
| 43 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 44 | + ] | ||
| 45 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 46 | + sp:predicate rdf:type ; | ||
| 47 | + sp:subject | ||
| 48 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 49 | + ] | ||
| 50 | + ]) ; | ||
| 51 | + sp:where ([ sp:object | ||
| 52 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 53 | + ] ; | ||
| 54 | + sp:predicate owl:sameAs ; | ||
| 55 | + sp:subject spin:_this | ||
| 56 | + ] [ rdf:type sp:Filter ; | ||
| 57 | + sp:expression | ||
| 58 | + [ rdf:type sp:eq ; | ||
| 59 | + sp:arg1 [ rdf:type afn:namespace ; | ||
| 60 | + sp:arg1 spin:_this | ||
| 61 | + ] ; | ||
| 62 | + sp:arg2 "http://www.reportinghub.no/np/schema/npd#" | ||
| 63 | + ] | ||
| 64 | + ] [ rdf:type sp:Bind ; | ||
| 65 | + sp:expression | ||
| 66 | + [ rdf:type spif:generateUUID | ||
| 67 | + ] ; | ||
| 68 | + sp:variable | ||
| 69 | + [ sp:varName "uuid"^^xsd:string | ||
| 70 | + ] | ||
| 71 | + ] [ rdf:type sp:Bind ; | ||
| 72 | + sp:expression | ||
| 73 | + [ rdf:type fn:concat ; | ||
| 74 | + sp:arg1 "ERH" ; | ||
| 75 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
| 76 | + ] | ||
| 77 | + ] ; | ||
| 78 | + sp:variable | ||
| 79 | + [ sp:varName "pcaid"^^xsd:string | ||
| 80 | + ] | ||
| 81 | + ] [ rdf:type sp:Bind ; | ||
| 82 | + sp:expression | ||
| 83 | + [ rdf:type spif:buildURI ; | ||
| 84 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
| 85 | + ] ; | ||
| 86 | + sp:variable | ||
| 87 | + [ sp:varName "clsnuri"^^xsd:string | ||
| 88 | + ] | ||
| 89 | + ]) | ||
| 90 | + ] . | ||
| 91 | + | ||
| 92 | +owl:Class | ||
| 93 | + spin:rule | ||
| 94 | + [ rdf:type sp:Construct ; | ||
| 95 | + rdfs:comment "0198 Set Part 2 Class of EHR RD Class"^^xsd:string ; | ||
| 96 | + sp:templates ([ sp:object | ||
| 97 | + [ sp:varName "p2class"^^xsd:string | ||
| 98 | + ] ; | ||
| 99 | + sp:predicate rdf:type ; | ||
| 100 | + sp:subject | ||
| 101 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 102 | + ] | ||
| 103 | + ]) ; | ||
| 104 | + sp:where ([ sp:object | ||
| 105 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 106 | + ] ; | ||
| 107 | + sp:predicate owl:sameAs ; | ||
| 108 | + sp:subject spin:_this | ||
| 109 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 110 | + sp:predicate rdf:type ; | ||
| 111 | + sp:subject | ||
| 112 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 113 | + ] | ||
| 114 | + ] [ rdf:type sp:Optional ; | ||
| 115 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 116 | + sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ; | ||
| 117 | + sp:path [ rdf:type sp:ModPath ; | ||
| 118 | + sp:modMax -2 ; | ||
| 119 | + sp:modMin 0 ; | ||
| 120 | + sp:subPath rdfs:subClassOf | ||
| 121 | + ] ; | ||
| 122 | + sp:subject spin:_this | ||
| 123 | + ] [ rdf:type sp:Bind ; | ||
| 124 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfActivity> ; | ||
| 125 | + sp:variable | ||
| 126 | + [ sp:varName "p2class"^^xsd:string | ||
| 127 | + ] | ||
| 128 | + ]) | ||
| 129 | + ] [ rdf:type sp:Optional ; | ||
| 130 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 131 | + sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 132 | + sp:path [ rdf:type sp:ModPath ; | ||
| 133 | + sp:modMax -2 ; | ||
| 134 | + sp:modMin 0 ; | ||
| 135 | + sp:subPath rdfs:subClassOf | ||
| 136 | + ] ; | ||
| 137 | + sp:subject spin:_this | ||
| 138 | + ] [ rdf:type sp:Bind ; | ||
| 139 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#FunctionalPhysicalObject> ; | ||
| 140 | + sp:variable | ||
| 141 | + [ sp:varName "p2class"^^xsd:string | ||
| 142 | + ] | ||
| 143 | + ]) | ||
| 144 | + ] [ rdf:type sp:Optional ; | ||
| 145 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 146 | + sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
| 147 | + sp:path [ rdf:type sp:ModPath ; | ||
| 148 | + sp:modMax -2 ; | ||
| 149 | + sp:modMin 0 ; | ||
| 150 | + sp:subPath rdfs:subClassOf | ||
| 151 | + ] ; | ||
| 152 | + sp:subject spin:_this | ||
| 153 | + ] [ rdf:type sp:Bind ; | ||
| 154 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 155 | + sp:variable | ||
| 156 | + [ sp:varName "p2class"^^xsd:string | ||
| 157 | + ] | ||
| 158 | + ]) | ||
| 159 | + ] [ rdf:type sp:Optional ; | ||
| 160 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 161 | + sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ; | ||
| 162 | + sp:path [ rdf:type sp:ModPath ; | ||
| 163 | + sp:modMax -2 ; | ||
| 164 | + sp:modMin 0 ; | ||
| 165 | + sp:subPath rdfs:subClassOf | ||
| 166 | + ] ; | ||
| 167 | + sp:subject spin:_this | ||
| 168 | + ] [ rdf:type sp:Bind ; | ||
| 169 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 170 | + sp:variable | ||
| 171 | + [ sp:varName "p2class"^^xsd:string | ||
| 172 | + ] | ||
| 173 | + ]) | ||
| 174 | + ] [ rdf:type sp:Optional ; | ||
| 175 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 176 | + sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | ||
| 177 | + sp:path [ rdf:type sp:ModPath ; | ||
| 178 | + sp:modMax -2 ; | ||
| 179 | + sp:modMin 0 ; | ||
| 180 | + sp:subPath rdfs:subClassOf | ||
| 181 | + ] ; | ||
| 182 | + sp:subject spin:_this | ||
| 183 | + ] [ rdf:type sp:Bind ; | ||
| 184 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 185 | + sp:variable | ||
| 186 | + [ sp:varName "p2class"^^xsd:string | ||
| 187 | + ] | ||
| 188 | + ]) | ||
| 189 | + ] [ rdf:type sp:Optional ; | ||
| 190 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 191 | + sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ; | ||
| 192 | + sp:path [ rdf:type sp:ModPath ; | ||
| 193 | + sp:modMax -2 ; | ||
| 194 | + sp:modMin 0 ; | ||
| 195 | + sp:subPath rdfs:subClassOf | ||
| 196 | + ] ; | ||
| 197 | + sp:subject spin:_this | ||
| 198 | + ] [ rdf:type sp:Bind ; | ||
| 199 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 200 | + sp:variable | ||
| 201 | + [ sp:varName "p2class"^^xsd:string | ||
| 202 | + ] | ||
| 203 | + ]) | ||
| 204 | + ] [ rdf:type sp:Optional ; | ||
| 205 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 206 | + sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWell> ; | ||
| 207 | + sp:path [ rdf:type sp:ModPath ; | ||
| 208 | + sp:modMax -2 ; | ||
| 209 | + sp:modMin 0 ; | ||
| 210 | + sp:subPath rdfs:subClassOf | ||
| 211 | + ] ; | ||
| 212 | + sp:subject spin:_this | ||
| 213 | + ] [ rdf:type sp:Bind ; | ||
| 214 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 215 | + sp:variable | ||
| 216 | + [ sp:varName "p2class"^^xsd:string | ||
| 217 | + ] | ||
| 218 | + ]) | ||
| 219 | + ] [ rdf:type sp:Optional ; | ||
| 220 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 221 | + sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | ||
| 222 | + sp:path [ rdf:type sp:ModPath ; | ||
| 223 | + sp:modMax -2 ; | ||
| 224 | + sp:modMin 0 ; | ||
| 225 | + sp:subPath rdfs:subClassOf | ||
| 226 | + ] ; | ||
| 227 | + sp:subject spin:_this | ||
| 228 | + ] [ rdf:type sp:Bind ; | ||
| 229 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 230 | + sp:variable | ||
| 231 | + [ sp:varName "p2class"^^xsd:string | ||
| 232 | + ] | ||
| 233 | + ]) | ||
| 234 | + ] [ rdf:type sp:Optional ; | ||
| 235 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 236 | + sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
| 237 | + sp:path [ rdf:type sp:ModPath ; | ||
| 238 | + sp:modMax -2 ; | ||
| 239 | + sp:modMin 0 ; | ||
| 240 | + sp:subPath rdfs:subClassOf | ||
| 241 | + ] ; | ||
| 242 | + sp:subject spin:_this | ||
| 243 | + ] [ rdf:type sp:Bind ; | ||
| 244 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 245 | + sp:variable | ||
| 246 | + [ sp:varName "p2class"^^xsd:string | ||
| 247 | + ] | ||
| 248 | + ]) | ||
| 249 | + ] [ rdf:type sp:Optional ; | ||
| 250 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 251 | + sp:object <http://www.reportinghub.no/ep/schema/material#Material> ; | ||
| 252 | + sp:path [ rdf:type sp:ModPath ; | ||
| 253 | + sp:modMax -2 ; | ||
| 254 | + sp:modMin 0 ; | ||
| 255 | + sp:subPath rdfs:subClassOf | ||
| 256 | + ] ; | ||
| 257 | + sp:subject spin:_this | ||
| 258 | + ] [ rdf:type sp:Bind ; | ||
| 259 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfCompound> ; | ||
| 260 | + sp:variable | ||
| 261 | + [ sp:varName "p2class"^^xsd:string | ||
| 262 | + ] | ||
| 263 | + ]) | ||
| 264 | + ] [ rdf:type sp:Optional ; | ||
| 265 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 266 | + sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 267 | + sp:path [ rdf:type sp:ModPath ; | ||
| 268 | + sp:modMax -2 ; | ||
| 269 | + sp:modMin 0 ; | ||
| 270 | + sp:subPath rdfs:subClassOf | ||
| 271 | + ] ; | ||
| 272 | + sp:subject spin:_this | ||
| 273 | + ] [ rdf:type sp:Bind ; | ||
| 274 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfOrganization> ; | ||
| 275 | + sp:variable | ||
| 276 | + [ sp:varName "p2class"^^xsd:string | ||
| 277 | + ] | ||
| 278 | + ]) | ||
| 279 | + ] [ rdf:type sp:Optional ; | ||
| 280 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 281 | + sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; | ||
| 282 | + sp:path [ rdf:type sp:ModPath ; | ||
| 283 | + sp:modMax -2 ; | ||
| 284 | + sp:modMin 0 ; | ||
| 285 | + sp:subPath rdfs:subClassOf | ||
| 286 | + ] ; | ||
| 287 | + sp:subject spin:_this | ||
| 288 | + ] [ rdf:type sp:Bind ; | ||
| 289 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfPerson> ; | ||
| 290 | + sp:variable | ||
| 291 | + [ sp:varName "p2class"^^xsd:string | ||
| 292 | + ] | ||
| 293 | + ]) | ||
| 294 | + ] [ rdf:type sp:Optional ; | ||
| 295 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 296 | + sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | ||
| 297 | + sp:path [ rdf:type sp:ModPath ; | ||
| 298 | + sp:modMax -2 ; | ||
| 299 | + sp:modMin 0 ; | ||
| 300 | + sp:subPath rdfs:subClassOf | ||
| 301 | + ] ; | ||
| 302 | + sp:subject spin:_this | ||
| 303 | + ] [ rdf:type sp:Bind ; | ||
| 304 | + sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInformationObject> ; | ||
| 305 | + sp:variable | ||
| 306 | + [ sp:varName "p2class"^^xsd:string | ||
| 307 | + ] | ||
| 308 | + ]) | ||
| 309 | + ]) | ||
| 310 | + ] ; | ||
| 311 | + spin:rule | ||
| 312 | + [ rdf:type sp:Construct ; | ||
| 313 | + rdfs:comment "0199 Set classification by foundation class ERH Production Class"^^xsd:string ; | ||
| 314 | + sp:templates ([ sp:object <http://posccaesar.org/rdl/ERH00004> ; | ||
| 315 | + sp:predicate rdf:type ; | ||
| 316 | + sp:subject | ||
| 317 | + [ sp:varName "rduri"^^xsd:string | ||
| 318 | + ] | ||
| 319 | + ]) ; | ||
| 320 | + sp:where ([ sp:object | ||
| 321 | + [ sp:varName "rduri"^^xsd:string | ||
| 322 | + ] ; | ||
| 323 | + sp:predicate owl:sameAs ; | ||
| 324 | + sp:subject spin:_this | ||
| 325 | + ]) | ||
| 326 | + ] . |
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +[] rdf:type inference:Configuration ; | ||
| 13 | + composite:child | ||
| 14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 15 | + composite:index "0"^^xsd:int | ||
| 16 | + ] . |
| ... | @@ -66,6 +66,11 @@ rdfs:Class | ... | @@ -66,6 +66,11 @@ rdfs:Class |
| 66 | sp:subject | 66 | sp:subject |
| 67 | [ sp:varName "thisrduri"^^xsd:string | 67 | [ sp:varName "thisrduri"^^xsd:string |
| 68 | ] | 68 | ] |
| 69 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00001> ; | ||
| 70 | + sp:predicate rdf:type ; | ||
| 71 | + sp:subject | ||
| 72 | + [ sp:varName "thisrduri"^^xsd:string | ||
| 73 | + ] | ||
| 69 | ]) ; | 74 | ]) ; |
| 70 | sp:where ([ rdf:type sp:NotExists ; | 75 | sp:where ([ rdf:type sp:NotExists ; |
| 71 | sp:elements ([ sp:object owl:Class ; | 76 | sp:elements ([ sp:object owl:Class ; |
| ... | @@ -245,138 +250,6 @@ rdfs:Class | ... | @@ -245,138 +250,6 @@ rdfs:Class |
| 245 | [ sp:varName "rduri"^^xsd:string | 250 | [ sp:varName "rduri"^^xsd:string |
| 246 | ] | 251 | ] |
| 247 | ]) | 252 | ]) |
| 248 | - ] ; | ||
| 249 | - spin:rule | ||
| 250 | - [ rdf:type sp:Construct ; | ||
| 251 | - rdfs:comment "0195 Handle classification of RD classes as NPD"^^xsd:string ; | ||
| 252 | - sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ; | ||
| 253 | - sp:predicate rdf:type ; | ||
| 254 | - sp:subject | ||
| 255 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 256 | - ] | ||
| 257 | - ] [ sp:object | ||
| 258 | - [ sp:varName "thisrduri"^^xsd:string | ||
| 259 | - ] ; | ||
| 260 | - sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ; | ||
| 261 | - sp:subject | ||
| 262 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 263 | - ] | ||
| 264 | - ] [ sp:object <http://posccaesar.org/rdl/ERH00002> ; | ||
| 265 | - sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ; | ||
| 266 | - sp:subject | ||
| 267 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 268 | - ] | ||
| 269 | - ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 270 | - sp:predicate rdf:type ; | ||
| 271 | - sp:subject | ||
| 272 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 273 | - ] | ||
| 274 | - ]) ; | ||
| 275 | - sp:where ([ sp:object | ||
| 276 | - [ sp:varName "thisrduri"^^xsd:string | ||
| 277 | - ] ; | ||
| 278 | - sp:predicate owl:sameAs ; | ||
| 279 | - sp:subject spin:_this | ||
| 280 | - ] [ rdf:type sp:Filter ; | ||
| 281 | - sp:expression | ||
| 282 | - [ rdf:type sp:eq ; | ||
| 283 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 284 | - sp:arg1 spin:_this | ||
| 285 | - ] ; | ||
| 286 | - sp:arg2 "http://www.reportinghub.no/np/schema/npd#" | ||
| 287 | - ] | ||
| 288 | - ] [ rdf:type sp:Bind ; | ||
| 289 | - sp:expression | ||
| 290 | - [ rdf:type spif:generateUUID | ||
| 291 | - ] ; | ||
| 292 | - sp:variable | ||
| 293 | - [ sp:varName "uuid"^^xsd:string | ||
| 294 | - ] | ||
| 295 | - ] [ rdf:type sp:Bind ; | ||
| 296 | - sp:expression | ||
| 297 | - [ rdf:type fn:concat ; | ||
| 298 | - sp:arg1 "ERH" ; | ||
| 299 | - sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
| 300 | - ] | ||
| 301 | - ] ; | ||
| 302 | - sp:variable | ||
| 303 | - [ sp:varName "pcaid"^^xsd:string | ||
| 304 | - ] | ||
| 305 | - ] [ rdf:type sp:Bind ; | ||
| 306 | - sp:expression | ||
| 307 | - [ rdf:type spif:buildURI ; | ||
| 308 | - sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
| 309 | - ] ; | ||
| 310 | - sp:variable | ||
| 311 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 312 | - ] | ||
| 313 | - ]) | ||
| 314 | - ] ; | ||
| 315 | - spin:rule | ||
| 316 | - [ rdf:type sp:Construct ; | ||
| 317 | - rdfs:comment "0196 Handle classification of RD classes as Drilling"^^xsd:string ; | ||
| 318 | - sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ; | ||
| 319 | - sp:predicate rdf:type ; | ||
| 320 | - sp:subject | ||
| 321 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 322 | - ] | ||
| 323 | - ] [ sp:object | ||
| 324 | - [ sp:varName "thisrduri"^^xsd:string | ||
| 325 | - ] ; | ||
| 326 | - sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ; | ||
| 327 | - sp:subject | ||
| 328 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 329 | - ] | ||
| 330 | - ] [ sp:object <http://posccaesar.org/rdl/ERH00004> ; | ||
| 331 | - sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ; | ||
| 332 | - sp:subject | ||
| 333 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 334 | - ] | ||
| 335 | - ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 336 | - sp:predicate rdf:type ; | ||
| 337 | - sp:subject | ||
| 338 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 339 | - ] | ||
| 340 | - ]) ; | ||
| 341 | - sp:where ([ sp:object | ||
| 342 | - [ sp:varName "thisrduri"^^xsd:string | ||
| 343 | - ] ; | ||
| 344 | - sp:predicate owl:sameAs ; | ||
| 345 | - sp:subject spin:_this | ||
| 346 | - ] [ rdf:type sp:Filter ; | ||
| 347 | - sp:expression | ||
| 348 | - [ rdf:type sp:ne ; | ||
| 349 | - sp:arg1 [ rdf:type afn:namespace ; | ||
| 350 | - sp:arg1 spin:_this | ||
| 351 | - ] ; | ||
| 352 | - sp:arg2 "http://www.reportinghub.no/np/schema/npd#" | ||
| 353 | - ] | ||
| 354 | - ] [ rdf:type sp:Bind ; | ||
| 355 | - sp:expression | ||
| 356 | - [ rdf:type spif:generateUUID | ||
| 357 | - ] ; | ||
| 358 | - sp:variable | ||
| 359 | - [ sp:varName "uuid"^^xsd:string | ||
| 360 | - ] | ||
| 361 | - ] [ rdf:type sp:Bind ; | ||
| 362 | - sp:expression | ||
| 363 | - [ rdf:type fn:concat ; | ||
| 364 | - sp:arg1 "ERH" ; | ||
| 365 | - sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
| 366 | - ] | ||
| 367 | - ] ; | ||
| 368 | - sp:variable | ||
| 369 | - [ sp:varName "pcaid"^^xsd:string | ||
| 370 | - ] | ||
| 371 | - ] [ rdf:type sp:Bind ; | ||
| 372 | - sp:expression | ||
| 373 | - [ rdf:type spif:buildURI ; | ||
| 374 | - sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
| 375 | - ] ; | ||
| 376 | - sp:variable | ||
| 377 | - [ sp:varName "clsnuri"^^xsd:string | ||
| 378 | - ] | ||
| 379 | - ]) | ||
| 380 | ] . | 253 | ] . |
| 381 | 254 | ||
| 382 | owl:Class | 255 | owl:Class |
| ... | @@ -414,7 +287,7 @@ owl:Class | ... | @@ -414,7 +287,7 @@ owl:Class |
| 414 | sp:subject | 287 | sp:subject |
| 415 | [ sp:varName "thisrduri"^^xsd:string | 288 | [ sp:varName "thisrduri"^^xsd:string |
| 416 | ] | 289 | ] |
| 417 | - ] [ sp:object <http://posccaesar.org/rdl/ERH00004> ; | 290 | + ] [ sp:object <http://posccaesar.org/rdl/ERH00001> ; |
| 418 | sp:predicate rdf:type ; | 291 | sp:predicate rdf:type ; |
| 419 | sp:subject | 292 | sp:subject |
| 420 | [ sp:varName "thisrduri"^^xsd:string | 293 | [ sp:varName "thisrduri"^^xsd:string |
| ... | @@ -480,31 +353,6 @@ owl:Class | ... | @@ -480,31 +353,6 @@ owl:Class |
| 480 | sp:variable | 353 | sp:variable |
| 481 | [ sp:varName "desigation"^^xsd:string | 354 | [ sp:varName "desigation"^^xsd:string |
| 482 | ] | 355 | ] |
| 483 | - ] [ rdf:type sp:Bind ; | ||
| 484 | - sp:expression | ||
| 485 | - [ rdf:type spif:generateUUID | ||
| 486 | - ] ; | ||
| 487 | - sp:variable | ||
| 488 | - [ sp:varName "clsnuuid"^^xsd:string | ||
| 489 | - ] | ||
| 490 | - ] [ rdf:type sp:Bind ; | ||
| 491 | - sp:expression | ||
| 492 | - [ rdf:type fn:concat ; | ||
| 493 | - sp:arg1 "ERH" ; | ||
| 494 | - sp:arg2 [ sp:varName "clsnuuid"^^xsd:string | ||
| 495 | - ] | ||
| 496 | - ] ; | ||
| 497 | - sp:variable | ||
| 498 | - [ sp:varName "clsnid"^^xsd:string | ||
| 499 | - ] | ||
| 500 | - ] [ rdf:type sp:Bind ; | ||
| 501 | - sp:expression | ||
| 502 | - [ rdf:type spif:buildURI ; | ||
| 503 | - sp:arg1 "<http://posccaesar.org/rdl/{?clsnid}>" | ||
| 504 | - ] ; | ||
| 505 | - sp:variable | ||
| 506 | - [ sp:varName "clsncuri"^^xsd:string | ||
| 507 | - ] | ||
| 508 | ]) | 356 | ]) |
| 509 | ] ; | 357 | ] ; |
| 510 | spin:rule | 358 | spin:rule |
| ... | @@ -610,222 +458,4 @@ owl:Class | ... | @@ -610,222 +458,4 @@ owl:Class |
| 610 | [ sp:varName "specuri"^^xsd:string | 458 | [ sp:varName "specuri"^^xsd:string |
| 611 | ] | 459 | ] |
| 612 | ]) | 460 | ]) |
| 613 | - ] ; | ||
| 614 | - spin:rule | ||
| 615 | - [ rdf:type sp:Construct ; | ||
| 616 | - rdfs:comment "0140 Set Part 2 Class of EHR RD Class"^^xsd:string ; | ||
| 617 | - sp:templates ([ sp:object | ||
| 618 | - [ sp:varName "p2class"^^xsd:string | ||
| 619 | - ] ; | ||
| 620 | - sp:predicate rdf:type ; | ||
| 621 | - sp:subject | ||
| 622 | - [ sp:varName "thisrduri"^^xsd:string | ||
| 623 | - ] | ||
| 624 | - ]) ; | ||
| 625 | - sp:where ([ sp:object | ||
| 626 | - [ sp:varName "thisrduri"^^xsd:string | ||
| 627 | - ] ; | ||
| 628 | - sp:predicate owl:sameAs ; | ||
| 629 | - sp:subject spin:_this | ||
| 630 | - ] [ sp:object <http://posccaesar.org/rdl/ERH00000> ; | ||
| 631 | - sp:predicate rdf:type ; | ||
| 632 | - sp:subject | ||
| 633 | - [ sp:varName "thisrduri"^^xsd:string | ||
| 634 | - ] | ||
| 635 | - ] [ rdf:type sp:Optional ; | ||
| 636 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 637 | - sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ; | ||
| 638 | - sp:path [ rdf:type sp:ModPath ; | ||
| 639 | - sp:modMax -2 ; | ||
| 640 | - sp:modMin 0 ; | ||
| 641 | - sp:subPath rdfs:subClassOf | ||
| 642 | - ] ; | ||
| 643 | - sp:subject spin:_this | ||
| 644 | - ] [ rdf:type sp:Bind ; | ||
| 645 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfActivity> ; | ||
| 646 | - sp:variable | ||
| 647 | - [ sp:varName "p2class"^^xsd:string | ||
| 648 | - ] | ||
| 649 | - ]) | ||
| 650 | - ] [ rdf:type sp:Optional ; | ||
| 651 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 652 | - sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 653 | - sp:path [ rdf:type sp:ModPath ; | ||
| 654 | - sp:modMax -2 ; | ||
| 655 | - sp:modMin 0 ; | ||
| 656 | - sp:subPath rdfs:subClassOf | ||
| 657 | - ] ; | ||
| 658 | - sp:subject spin:_this | ||
| 659 | - ] [ rdf:type sp:Bind ; | ||
| 660 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#FunctionalPhysicalObject> ; | ||
| 661 | - sp:variable | ||
| 662 | - [ sp:varName "p2class"^^xsd:string | ||
| 663 | - ] | ||
| 664 | - ]) | ||
| 665 | - ] [ rdf:type sp:Optional ; | ||
| 666 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 667 | - sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
| 668 | - sp:path [ rdf:type sp:ModPath ; | ||
| 669 | - sp:modMax -2 ; | ||
| 670 | - sp:modMin 0 ; | ||
| 671 | - sp:subPath rdfs:subClassOf | ||
| 672 | - ] ; | ||
| 673 | - sp:subject spin:_this | ||
| 674 | - ] [ rdf:type sp:Bind ; | ||
| 675 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 676 | - sp:variable | ||
| 677 | - [ sp:varName "p2class"^^xsd:string | ||
| 678 | - ] | ||
| 679 | - ]) | ||
| 680 | - ] [ rdf:type sp:Optional ; | ||
| 681 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 682 | - sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ; | ||
| 683 | - sp:path [ rdf:type sp:ModPath ; | ||
| 684 | - sp:modMax -2 ; | ||
| 685 | - sp:modMin 0 ; | ||
| 686 | - sp:subPath rdfs:subClassOf | ||
| 687 | - ] ; | ||
| 688 | - sp:subject spin:_this | ||
| 689 | - ] [ rdf:type sp:Bind ; | ||
| 690 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 691 | - sp:variable | ||
| 692 | - [ sp:varName "p2class"^^xsd:string | ||
| 693 | - ] | ||
| 694 | - ]) | ||
| 695 | - ] [ rdf:type sp:Optional ; | ||
| 696 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 697 | - sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | ||
| 698 | - sp:path [ rdf:type sp:ModPath ; | ||
| 699 | - sp:modMax -2 ; | ||
| 700 | - sp:modMin 0 ; | ||
| 701 | - sp:subPath rdfs:subClassOf | ||
| 702 | - ] ; | ||
| 703 | - sp:subject spin:_this | ||
| 704 | - ] [ rdf:type sp:Bind ; | ||
| 705 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 706 | - sp:variable | ||
| 707 | - [ sp:varName "p2class"^^xsd:string | ||
| 708 | - ] | ||
| 709 | - ]) | ||
| 710 | - ] [ rdf:type sp:Optional ; | ||
| 711 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 712 | - sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ; | ||
| 713 | - sp:path [ rdf:type sp:ModPath ; | ||
| 714 | - sp:modMax -2 ; | ||
| 715 | - sp:modMin 0 ; | ||
| 716 | - sp:subPath rdfs:subClassOf | ||
| 717 | - ] ; | ||
| 718 | - sp:subject spin:_this | ||
| 719 | - ] [ rdf:type sp:Bind ; | ||
| 720 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 721 | - sp:variable | ||
| 722 | - [ sp:varName "p2class"^^xsd:string | ||
| 723 | - ] | ||
| 724 | - ]) | ||
| 725 | - ] [ rdf:type sp:Optional ; | ||
| 726 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 727 | - sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWell> ; | ||
| 728 | - sp:path [ rdf:type sp:ModPath ; | ||
| 729 | - sp:modMax -2 ; | ||
| 730 | - sp:modMin 0 ; | ||
| 731 | - sp:subPath rdfs:subClassOf | ||
| 732 | - ] ; | ||
| 733 | - sp:subject spin:_this | ||
| 734 | - ] [ rdf:type sp:Bind ; | ||
| 735 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 736 | - sp:variable | ||
| 737 | - [ sp:varName "p2class"^^xsd:string | ||
| 738 | - ] | ||
| 739 | - ]) | ||
| 740 | - ] [ rdf:type sp:Optional ; | ||
| 741 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 742 | - sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | ||
| 743 | - sp:path [ rdf:type sp:ModPath ; | ||
| 744 | - sp:modMax -2 ; | ||
| 745 | - sp:modMin 0 ; | ||
| 746 | - sp:subPath rdfs:subClassOf | ||
| 747 | - ] ; | ||
| 748 | - sp:subject spin:_this | ||
| 749 | - ] [ rdf:type sp:Bind ; | ||
| 750 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 751 | - sp:variable | ||
| 752 | - [ sp:varName "p2class"^^xsd:string | ||
| 753 | - ] | ||
| 754 | - ]) | ||
| 755 | - ] [ rdf:type sp:Optional ; | ||
| 756 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 757 | - sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
| 758 | - sp:path [ rdf:type sp:ModPath ; | ||
| 759 | - sp:modMax -2 ; | ||
| 760 | - sp:modMin 0 ; | ||
| 761 | - sp:subPath rdfs:subClassOf | ||
| 762 | - ] ; | ||
| 763 | - sp:subject spin:_this | ||
| 764 | - ] [ rdf:type sp:Bind ; | ||
| 765 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ; | ||
| 766 | - sp:variable | ||
| 767 | - [ sp:varName "p2class"^^xsd:string | ||
| 768 | - ] | ||
| 769 | - ]) | ||
| 770 | - ] [ rdf:type sp:Optional ; | ||
| 771 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 772 | - sp:object <http://www.reportinghub.no/ep/schema/material#Material> ; | ||
| 773 | - sp:path [ rdf:type sp:ModPath ; | ||
| 774 | - sp:modMax -2 ; | ||
| 775 | - sp:modMin 0 ; | ||
| 776 | - sp:subPath rdfs:subClassOf | ||
| 777 | - ] ; | ||
| 778 | - sp:subject spin:_this | ||
| 779 | - ] [ rdf:type sp:Bind ; | ||
| 780 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfCompound> ; | ||
| 781 | - sp:variable | ||
| 782 | - [ sp:varName "p2class"^^xsd:string | ||
| 783 | - ] | ||
| 784 | - ]) | ||
| 785 | - ] [ rdf:type sp:Optional ; | ||
| 786 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 787 | - sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
| 788 | - sp:path [ rdf:type sp:ModPath ; | ||
| 789 | - sp:modMax -2 ; | ||
| 790 | - sp:modMin 0 ; | ||
| 791 | - sp:subPath rdfs:subClassOf | ||
| 792 | - ] ; | ||
| 793 | - sp:subject spin:_this | ||
| 794 | - ] [ rdf:type sp:Bind ; | ||
| 795 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfOrganization> ; | ||
| 796 | - sp:variable | ||
| 797 | - [ sp:varName "p2class"^^xsd:string | ||
| 798 | - ] | ||
| 799 | - ]) | ||
| 800 | - ] [ rdf:type sp:Optional ; | ||
| 801 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 802 | - sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ; | ||
| 803 | - sp:path [ rdf:type sp:ModPath ; | ||
| 804 | - sp:modMax -2 ; | ||
| 805 | - sp:modMin 0 ; | ||
| 806 | - sp:subPath rdfs:subClassOf | ||
| 807 | - ] ; | ||
| 808 | - sp:subject spin:_this | ||
| 809 | - ] [ rdf:type sp:Bind ; | ||
| 810 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfPerson> ; | ||
| 811 | - sp:variable | ||
| 812 | - [ sp:varName "p2class"^^xsd:string | ||
| 813 | - ] | ||
| 814 | - ]) | ||
| 815 | - ] [ rdf:type sp:Optional ; | ||
| 816 | - sp:elements ([ rdf:type sp:TriplePath ; | ||
| 817 | - sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | ||
| 818 | - sp:path [ rdf:type sp:ModPath ; | ||
| 819 | - sp:modMax -2 ; | ||
| 820 | - sp:modMin 0 ; | ||
| 821 | - sp:subPath rdfs:subClassOf | ||
| 822 | - ] ; | ||
| 823 | - sp:subject spin:_this | ||
| 824 | - ] [ rdf:type sp:Bind ; | ||
| 825 | - sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInformationObject> ; | ||
| 826 | - sp:variable | ||
| 827 | - [ sp:varName "p2class"^^xsd:string | ||
| 828 | - ] | ||
| 829 | - ]) | ||
| 830 | - ]) | ||
| 831 | ] . | 461 | ] . | ... | ... |
| 1 | +# baseURI: http://www.reportinghub.no/refdata/transform/make-rd-drill | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | + | ||
| 4 | +@prefix : <http://www.reportinghub.no/refdata/transform/make-rd-drill#> . | ||
| 5 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 6 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 7 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 8 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 9 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 10 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 11 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 12 | + | ||
| 13 | +<http://www.reportinghub.no/refdata/transform/make-rd-drill> | ||
| 14 | + rdf:type owl:Ontology ; | ||
| 15 | + owl:imports <http://spinrdf.org/spin> ; | ||
| 16 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +[] rdf:type inference:Configuration ; | ||
| 13 | + composite:child | ||
| 14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 15 | + <http://spinrdf.org/spin#topSPINOptions> | ||
| 16 | + "singlePass" ; | ||
| 17 | + composite:index "0"^^xsd:int | ||
| 18 | + ] . |
| 1 | +# baseURI: http://www.reportinghub.no/refdata/transform/make-rd-prod | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.reportinghub.no/refdata/drilling | ||
| 4 | +# imports: http://www.reportinghub.no/refdata/foundation | ||
| 5 | +# imports: http://www.reportinghub.no/refdata/npdfacts | ||
| 6 | +# imports: http://www.reportinghub.no/refdata/production | ||
| 7 | +# imports: http://www.reportinghub.no/refdata/transform/class2rd-prod | ||
| 8 | + | ||
| 9 | +@prefix : <http://www.reportinghub.no/refdata/transform/make-rd-prod#> . | ||
| 10 | +@prefix class2rd-prod: <http://www.reportinghub.no/refdata/transform/class2rd-prod#> . | ||
| 11 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 12 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 13 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 14 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 15 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 16 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 17 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 18 | + | ||
| 19 | +<http://www.reportinghub.no/refdata/transform/make-rd-prod> | ||
| 20 | + rdf:type owl:Ontology ; | ||
| 21 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/refdata/drilling> , <http://www.reportinghub.no/refdata/foundation> , <http://www.reportinghub.no/refdata/npdfacts> , <http://www.reportinghub.no/refdata/production> , <http://www.reportinghub.no/refdata/transform/class2rd-prod> ; | ||
| 22 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +[] rdf:type inference:Configuration ; | ||
| 13 | + composite:child | ||
| 14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 15 | + <http://spinrdf.org/spin#topSPINOptions> | ||
| 16 | + "singlePass" ; | ||
| 17 | + composite:index "0"^^xsd:int | ||
| 18 | + ] . |
-
Please register or login to post a comment