Holger Knublauch

Re-added SPIN function numberWellbore

...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
31 31
32 <http://www.reportinghub.no/ep/spin/1.1/lib> 32 <http://www.reportinghub.no/ep/spin/1.1/lib>
33 rdf:type owl:Ontology ; 33 rdf:type owl:Ontology ;
34 - owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/facility> ; 34 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/spin/rh> , <http://www.witsml.org/schemas/1series> ;
35 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 35 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
36 36
37 ep-spin-lib:Function 37 ep-spin-lib:Function
...@@ -1223,6 +1223,42 @@ ep-spin-lib:normalizeTimeFromDateTime ...@@ -1223,6 +1223,42 @@ ep-spin-lib:normalizeTimeFromDateTime
1223 spl:valueType xsd:dateTime 1223 spl:valueType xsd:dateTime
1224 ] . 1224 ] .
1225 1225
1226 +ep-spin-lib:numberWellbore
1227 + rdf:type spin:MagicProperty ;
1228 + rdfs:comment "A magic property that safely gets the NPD number of a well bore (variable on the right) from a DDR SXML structure (resource on the left side)."^^xsd:string ;
1229 + rdfs:label "number wellbore"^^xsd:string ;
1230 + rdfs:subClassOf spin:MagicProperties ;
1231 + spin:body
1232 + [ rdf:type sp:Select ;
1233 + sp:resultVariables ([ sp:varName "number"^^xsd:string
1234 + ]) ;
1235 + sp:where ([ sp:object
1236 + [ sp:varName "ref"^^xsd:string
1237 + ] ;
1238 + sp:predicate ddr:wellboreAliasRef ;
1239 + sp:subject spin:_arg1
1240 + ] [ sp:object ddr:WNS_NPDnumber ;
1241 + sp:predicate ddr:namingSystemRef ;
1242 + sp:subject
1243 + [ sp:varName "ref"^^xsd:string
1244 + ]
1245 + ] [ sp:object
1246 + [ sp:varName "number"^^xsd:string
1247 + ] ;
1248 + sp:predicate ddr:name ;
1249 + sp:subject
1250 + [ sp:varName "ref"^^xsd:string
1251 + ]
1252 + ])
1253 + ] ;
1254 + spin:constraint
1255 + [ rdf:type spl:Argument ;
1256 + rdfs:comment "The drill report (left hand side)."^^xsd:string ;
1257 + spl:predicate sp:arg1 ;
1258 + spl:valueType ddr:Obj_drillReport
1259 + ] ;
1260 + spin:returnType xsd:string .
1261 +
1226 ep-spin-lib:selectActivitySuccessType 1262 ep-spin-lib:selectActivitySuccessType
1227 rdf:type spin:Function ; 1263 rdf:type spin:Function ;
1228 rdfs:label "select ActivitySuccessType"^^xsd:string ; 1264 rdfs:label "select ActivitySuccessType"^^xsd:string ;
......