Holger Knublauch

Re-added SPIN function numberWellbore

......@@ -31,7 +31,7 @@
<http://www.reportinghub.no/ep/spin/1.1/lib>
rdf:type owl:Ontology ;
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> ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
......@@ -1223,6 +1223,42 @@ ep-spin-lib:normalizeTimeFromDateTime
spl:valueType xsd:dateTime
] .
ep-spin-lib:numberWellbore
rdf:type spin:MagicProperty ;
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 ;
rdfs:label "number wellbore"^^xsd:string ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "number"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "ref"^^xsd:string
] ;
sp:predicate ddr:wellboreAliasRef ;
sp:subject spin:_arg1
] [ sp:object ddr:WNS_NPDnumber ;
sp:predicate ddr:namingSystemRef ;
sp:subject
[ sp:varName "ref"^^xsd:string
]
] [ sp:object
[ sp:varName "number"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject
[ sp:varName "ref"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The drill report (left hand side)."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType ddr:Obj_drillReport
] ;
spin:returnType xsd:string .
ep-spin-lib:selectActivitySuccessType
rdf:type spin:Function ;
rdfs:label "select ActivitySuccessType"^^xsd:string ;
......