Holger Knublauch

Adjusted some SPIN functions to align with NPD names

Added NPDI example file for all known well/bore IDs
......@@ -13,7 +13,7 @@
<http://www.reportinghub.no/ep/schema/1.0/activity>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
owl:versionInfo "0.1.0"^^xsd:string .
ep-activity:Activity
......@@ -22,33 +22,33 @@ ep-activity:Activity
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:finishedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:finishedAt
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
] .
ep-activity:DailyDrillingActivity
......@@ -57,13 +57,13 @@ ep-activity:DailyDrillingActivity
rdfs:subClassOf ep-activity:DrillingActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ;
owl:onProperty ep-activity:onWellBore
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
......@@ -72,13 +72,13 @@ ep-activity:DailyDrillingActivity
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ;
owl:onProperty ep-activity:onWellBore
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
] .
ep-activity:DailyDrillingReportFinalisationType
......@@ -132,13 +132,13 @@ ep-activity:DrillingActivity
rdfs:subClassOf ep-activity:Activity .
ep-activity:FormationIntegrityTest
rdf:type ep-activity:PressureTestType , owl:Class ;
rdf:type owl:Class , ep-activity:PressureTestType ;
rdfs:label "formation integrity test"^^xsd:string ;
rdfs:subClassOf ep-activity:WellBorePressureTest ;
owl:disjointWith ep-activity:LeakOffTest .
ep-activity:LeakOffTest
rdf:type ep-activity:PressureTestType , owl:Class ;
rdf:type owl:Class , ep-activity:PressureTestType ;
rdfs:label "leak-off test"^^xsd:string ;
rdfs:subClassOf ep-activity:WellBorePressureTest ;
owl:disjointWith ep-activity:FormationIntegrityTest .
......@@ -174,7 +174,7 @@ ep-activity:OffshoreWellActivity
rdfs:subClassOf ep-activity:OffshoreActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:onWell
] ;
rdfs:subClassOf
......@@ -184,7 +184,7 @@ ep-activity:OffshoreWellActivity
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
owl:onProperty ep-activity:onWell
] .
......@@ -229,7 +229,7 @@ ep-activity:WellBorePressureTest
rdfs:subClassOf ep-activity:Activity .
ep-activity:createdAt
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "created at"^^xsd:string ;
rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
......@@ -251,7 +251,7 @@ ep-activity:onWell
rdfs:label "on well"^^xsd:string .
ep-activity:onWellBore
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:label "on WellBore"^^xsd:string .
ep-activity:reportOn
......@@ -264,17 +264,8 @@ ep-activity:startedAt
rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
ep-activity:wellBoreDrillingType
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-activity:DrillingActivity ;
rdfs:label "has sub activity"^^xsd:string ;
rdfs:range ep-activity:WellBoreDrillingType ;
rdfs:subPropertyOf rdf:type .
<http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
rdf:type ep-activity:DailyDrillingReportFinalisationType .
<http://www.reportinghub.no/ep/schema/report#NormalDailyDrillingReport>
rdf:type ep-activity:DailyDrillingReportFinalisationType .
<http://www.reportinghub.no/ep/schema/report#PreliminaryDailyDrillingReport>
rdf:type ep-activity:DailyDrillingReportFinalisationType .
......
This diff could not be displayed because it is too large.
......@@ -7,6 +7,7 @@
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/spin/rh
@prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
......@@ -23,7 +24,7 @@
<http://www.reportinghub.no/ep/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <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> ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
......@@ -41,7 +42,7 @@ ep-spin-lib:buildDailyDrillingActivityPurposeTypeURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/schema/1.1/activity-purpose#" ;
sp:arg1 "http://www.reportinghub.no/ep/schema/activity-purpose#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b1
......@@ -145,7 +146,7 @@ ep-spin-lib:buildURI
sp:resultVariables (_:b6) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:resource ;
[ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 spin:_arg2
......@@ -165,47 +166,13 @@ ep-spin-lib:buildURI
spl:valueType xsd:string
] .
ep-spin-lib:buildWellBoreURI
rdf:type spin:Function ;
rdfs:label "build well bore URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b7) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/WellBore/" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b7
])
] .
ep-spin-lib:buildWellURI
rdf:type spin:Function ;
rdfs:label "build well URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b8) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/Well#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b8
])
] .
ep-spin-lib:normalizeString
rdf:type spin:Function ;
rdfs:label "normalize string"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b9) ;
sp:resultVariables (_:b7) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
......@@ -213,67 +180,67 @@ ep-spin-lib:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b10
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 _:b10
sp:arg1 _:b8
] ;
sp:variable _:b11
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:encodeURL ;
sp:arg1 _:b11
sp:arg1 _:b9
] ;
sp:variable _:b12
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b12 ;
sp:arg1 _:b10 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b13
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b13 ;
sp:arg1 _:b11 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b14
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b14 ;
sp:arg1 _:b12 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b15
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b15 ;
sp:arg1 _:b13 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b16
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b16 ;
sp:arg1 _:b14 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b17
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type smf:upperCase ;
sp:arg1 _:b17
sp:arg1 _:b15
]
] ;
sp:variable _:b9
sp:variable _:b7
])
] ;
spin:constraint
......@@ -288,31 +255,25 @@ ep-spin-lib:selectDailyDrillingReportType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:resultVariables (_:b16) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_normal>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#NormalDailyDrillingReport> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#PreliminaryDailyDrillingReport> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_final>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
] ;
sp:variable _:b18
sp:variable _:b16
])
] .
......@@ -322,7 +283,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b19) ;
sp:resultVariables (_:b17) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
......@@ -906,7 +867,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
] ;
sp:variable _:b19
sp:variable _:b17
])
] .
......@@ -916,7 +877,7 @@ ep-spin-lib:selectPressureTestType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b20) ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
......@@ -933,7 +894,7 @@ ep-spin-lib:selectPressureTestType
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest>
]
] ;
sp:variable _:b20
sp:variable _:b18
])
] .
......@@ -943,105 +904,57 @@ ep-spin-lib:selectWellBoreDrillingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_bypass>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-bypass> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_initial>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-initial> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_redrill>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-redrill> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_reentry>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-re-entry> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_respud>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-re-spud> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_sidetrack>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-sidetrack>
]
]
]
]
]
] ;
sp:variable _:b21
sp:resultVariables (_:b19) ;
sp:where ([ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ;
sp:subject spin:_arg1
])
] .
_:b1 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b19
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b16
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b18
sp:varName "pressureTestType"^^xsd:string .
_:b9 sp:varName "normalizedStr"^^xsd:string .
_:b17
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b10
sp:varName "s1"^^xsd:string .
_:b15
sp:varName "t4"^^xsd:string .
_:b11
sp:varName "s2"^^xsd:string .
_:b14
sp:varName "t3"^^xsd:string .
_:b13
sp:varName "t2"^^xsd:string .
_:b12
sp:varName "t0a"^^xsd:string .
sp:varName "t1"^^xsd:string .
_:b13
_:b11
sp:varName "t0b"^^xsd:string .
_:b14
sp:varName "t1"^^xsd:string .
_:b10
sp:varName "t0a"^^xsd:string .
_:b15
sp:varName "t2"^^xsd:string .
_:b9 sp:varName "s2"^^xsd:string .
_:b16
sp:varName "t3"^^xsd:string .
_:b8 sp:varName "s1"^^xsd:string .
_:b17
sp:varName "t4"^^xsd:string .
_:b7 sp:varName "normalizedStr"^^xsd:string .
_:b18
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b19
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b20
sp:varName "pressureTestType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b21
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
......
......@@ -11,6 +11,7 @@
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/activity#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
......@@ -20,6 +21,7 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
......@@ -28,208 +30,208 @@
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 130 Transfer proprietaryCode"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
rdfs:comment "STEP 127 Create part activity and temporal part of WellBore"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b1
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b3 ;
sp:where ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b4 ;
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
sp:subject spin:_this
] [ sp:object _:b5 ;
] [ sp:object _:b10 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
sp:subject _:b4
] [ sp:object _:b6 ;
sp:subject _:b9
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b4
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumProprietaryCode> ;
sp:subject _:b4
sp:subject _:b9
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b3
sp:arg1 _:b7
] ;
sp:variable _:b8
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildPartActivityURI ;
sp:arg1 _:b8 ;
sp:arg2 _:b6 ;
sp:arg3 _:b5
sp:arg1 _:b11 ;
sp:arg2 _:b3 ;
sp:arg3 _:b10
] ;
sp:variable _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName _:b7
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b11 ;
sp:arg2 _:b8
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDrillingActivityPurposeType ;
sp:arg1 _:b7
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 _:b11 ;
sp:arg2 _:b3 ;
sp:arg3 _:b4
] ;
sp:variable _:b1
sp:variable _:b5
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 129 Transfer tvd"^^xsd:string ;
sp:templates ([ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
sp:subject _:b10
rdfs:comment "STEP 128 Transfer md"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
sp:subject _:b13
]) ;
sp:where ([ sp:object _:b11 ;
sp:where ([ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b12 ;
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
sp:subject spin:_this
] [ sp:object _:b13 ;
] [ sp:object _:b16 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
sp:subject _:b12
] [ sp:object _:b14 ;
sp:subject _:b15
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b12
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
sp:subject _:b12
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b15
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
sp:subject _:b15
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b11
sp:arg1 _:b14
] ;
sp:variable _:b16
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildPartActivityURI ;
sp:arg1 _:b16 ;
sp:arg2 _:b14 ;
sp:arg3 _:b13
sp:arg1 _:b19 ;
sp:arg2 _:b17 ;
sp:arg3 _:b16
] ;
sp:variable _:b15
sp:variable _:b18
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 128 Transfer md"^^xsd:string ;
sp:templates ([ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
sp:subject _:b18
rdfs:comment "STEP 129 Transfer tvd"^^xsd:string ;
sp:templates ([ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
sp:subject _:b21
]) ;
sp:where ([ sp:object _:b19 ;
sp:where ([ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b20 ;
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
sp:subject spin:_this
] [ sp:object _:b21 ;
] [ sp:object _:b24 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:subject _:b23
] [ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b20
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
sp:subject _:b20
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b23
] [ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
sp:subject _:b23
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b26
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b19
sp:arg1 _:b22
] ;
sp:variable _:b24
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildPartActivityURI ;
sp:arg1 _:b24 ;
sp:arg2 _:b22 ;
sp:arg3 _:b21
sp:arg1 _:b27 ;
sp:arg2 _:b25 ;
sp:arg3 _:b24
] ;
sp:variable _:b23
sp:variable _:b26
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 127 Create part activity and temporal part of WellBore"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b25
] [ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b26
] [ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b25
] [ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject _:b25
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
rdfs:comment "STEP 130 Transfer proprietaryCode"^^xsd:string ;
sp:templates ([ sp:object _:b28 ;
sp:predicate rdf:type ;
sp:subject _:b29
] [ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b29
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b25
]) ;
sp:where ([ sp:object _:b31 ;
sp:where ([ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b32 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b33 ;
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
sp:subject spin:_this
] [ sp:object _:b34 ;
] [ sp:object _:b32 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
sp:subject _:b33
] [ sp:object _:b27 ;
sp:subject _:b31
] [ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b33
] [ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject _:b33
sp:subject _:b31
] [ sp:object _:b34 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumProprietaryCode> ;
sp:subject _:b31
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b31
sp:arg1 _:b30
] ;
sp:variable _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildPartActivityURI ;
sp:arg1 _:b35 ;
sp:arg2 _:b27 ;
sp:arg3 _:b34
] ;
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b35
sp:arg2 _:b33 ;
sp:arg3 _:b32
] ;
sp:variable _:b30
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b35 ;
sp:arg2 _:b32
] ;
sp:variable _:b26
sp:variable _:b29
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 _:b35 ;
sp:arg2 _:b27 ;
sp:arg3 _:b28
[ rdf:type ep-spin-lib:selectDrillingActivityPurposeType ;
sp:arg1 _:b34
] ;
sp:variable _:b29
sp:variable _:b28
])
] .
......@@ -238,98 +240,98 @@
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b25
sp:varName "partActivity"^^xsd:string .
_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b26
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b27
sp:varName "dTimStartPart"^^xsd:string .
_:b6 sp:varName "wellBore"^^xsd:string .
_:b28
sp:varName "dTimEndPart"^^xsd:string .
_:b1 sp:varName "partActivity"^^xsd:string .
_:b29
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b11
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b30
sp:varName "wellBore"^^xsd:string .
_:b4 sp:varName "dTimEndPart"^^xsd:string .
_:b31
sp:varName "nameWellBore"^^xsd:string .
_:b3 sp:varName "dTimStartPart"^^xsd:string .
_:b32
sp:varName "dTimStart"^^xsd:string .
_:b10
sp:varName "index"^^xsd:string .
_:b33
sp:varName "activity"^^xsd:string .
_:b9 sp:varName "activity"^^xsd:string .
_:b34
sp:varName "index"^^xsd:string .
_:b8 sp:varName "dTimStart"^^xsd:string .
_:b35
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b7 sp:varName "nameWellBore"^^xsd:string .
_:b17
sp:varName "md"^^xsd:string .
_:b19
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b18
sp:varName "temporalPartOfAWellBore"^^xsd:string .
sp:varName "partActivity"^^xsd:string .
_:b19
sp:varName "nameWellBore"^^xsd:string .
_:b17
sp:varName "dTimStartPart"^^xsd:string .
_:b20
_:b16
sp:varName "index"^^xsd:string .
_:b15
sp:varName "activity"^^xsd:string .
_:b21
sp:varName "index"^^xsd:string .
_:b14
sp:varName "nameWellBore"^^xsd:string .
_:b22
sp:varName "dTimStartPart"^^xsd:string .
_:b13
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b23
sp:varName "partActivity"^^xsd:string .
_:b12
sp:varName "md"^^xsd:string .
_:b24
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b9 sp:varName "tvd"^^xsd:string .
_:b26
sp:varName "partActivity"^^xsd:string .
_:b10
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b25
sp:varName "dTimStartPart"^^xsd:string .
_:b11
sp:varName "nameWellBore"^^xsd:string .
_:b24
sp:varName "index"^^xsd:string .
_:b12
_:b23
sp:varName "activity"^^xsd:string .
_:b13
sp:varName "index"^^xsd:string .
_:b22
sp:varName "nameWellBore"^^xsd:string .
_:b14
sp:varName "dTimStartPart"^^xsd:string .
_:b21
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b15
sp:varName "partActivity"^^xsd:string .
_:b20
sp:varName "tvd"^^xsd:string .
_:b16
_:b35
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b1 sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b2 sp:varName "partActivity"^^xsd:string .
_:b34
sp:varName "proprietaryCode"^^xsd:string .
_:b3 sp:varName "nameWellBore"^^xsd:string .
_:b33
sp:varName "dTimStartPart"^^xsd:string .
_:b4 sp:varName "activity"^^xsd:string .
_:b32
sp:varName "index"^^xsd:string .
_:b5 sp:varName "index"^^xsd:string .
_:b31
sp:varName "activity"^^xsd:string .
_:b6 sp:varName "dTimStartPart"^^xsd:string .
_:b30
sp:varName "nameWellBore"^^xsd:string .
_:b7 sp:varName "proprietaryCode"^^xsd:string .
_:b29
sp:varName "partActivity"^^xsd:string .
_:b8 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b28
sp:varName "drillingActivityPurposeType"^^xsd:string .
......
......@@ -11,6 +11,7 @@
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
......@@ -21,6 +22,7 @@
@prefix p1: <http://example.org/file1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
......@@ -104,38 +106,45 @@ Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b9
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName _:b7
] ;
sp:variable _:b6
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
rdfs:comment """STEP 103
Classify a DailyDrillingReport"""^^xsd:string ;
sp:templates ([ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:predicate rdf:type ;
sp:subject _:b11
]) ;
sp:where ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
] [ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumVersionKind> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
sp:arg1 _:b14
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b12
] ;
sp:variable _:b14
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b14 ;
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b15 ;
sp:arg2 _:b13
] ;
sp:variable _:b11
......@@ -145,70 +154,63 @@ Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
[ rdf:type sp:Construct ;
rdfs:comment """STEP 101a Set name of DailyDrillingReport as label
Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
sp:templates ([ sp:object _:b15 ;
sp:templates ([ sp:object _:b16 ;
sp:predicate rdfs:label ;
sp:subject _:b16
sp:subject _:b17
]) ;
sp:where ([ sp:object _:b17 ;
sp:where ([ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
sp:subject spin:_this
] [ sp:object _:b18 ;
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b17
sp:arg1 _:b18
] ;
sp:variable _:b19
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b19 ;
sp:arg2 _:b18
sp:arg1 _:b20 ;
sp:arg2 _:b19
] ;
sp:variable _:b16
sp:variable _:b17
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103
Classify a DailyDrillingReport"""^^xsd:string ;
sp:templates ([ sp:object _:b20 ;
sp:predicate rdf:type ;
sp:subject _:b21
rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
sp:templates ([ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b22
]) ;
sp:where ([ sp:object _:b22 ;
sp:where ([ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumVersionKind> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
sp:arg1 _:b24
] ;
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b22
sp:arg1 _:b23
] ;
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b25 ;
sp:arg2 _:b23
sp:arg2 _:b24
] ;
sp:variable _:b21
sp:variable _:b22
])
] ;
spin:rule
......@@ -260,7 +262,7 @@ Classify a DailyDrillingReport"""^^xsd:string ;
sp:variable _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellURI ;
[ rdf:type rhspin:wellByName ;
sp:arg1 _:b33
] ;
sp:variable _:b26
......@@ -269,95 +271,95 @@ Classify a DailyDrillingReport"""^^xsd:string ;
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/transform/1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b26
sp:varName "well"^^xsd:string .
_:b6 sp:varName "wellBore"^^xsd:string .
_:b27
sp:varName "nameWell"^^xsd:string .
_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b28
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b29
sp:varName "wellBore"^^xsd:string .
_:b1 sp:varName "dailyDrillingReport"^^xsd:string .
_:b30
sp:varName "nameWellBore"^^xsd:string .
_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b31
sp:varName "dTimStart"^^xsd:string .
_:b3 sp:varName "createDate"^^xsd:string .
_:b32
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b8 sp:varName "dTimEnd"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b7 sp:varName "nameWellBore"^^xsd:string .
_:b33
sp:varName "normalizedWellName"^^xsd:string .
_:b20
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b32
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b21
sp:varName "dailyDrillingReport"^^xsd:string .
_:b31
sp:varName "dTimStart"^^xsd:string .
_:b22
_:b30
sp:varName "nameWellBore"^^xsd:string .
_:b23
sp:varName "createDate"^^xsd:string .
_:b24
sp:varName "versionKind"^^xsd:string .
_:b25
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b15
sp:varName "nameDailyDrillingReport"^^xsd:string .
_:b29
sp:varName "wellBore"^^xsd:string .
_:b16
sp:varName "dailyDrillingReport"^^xsd:string .
_:b28
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b17
sp:varName "nameWellBore"^^xsd:string .
_:b27
sp:varName "nameWell"^^xsd:string .
_:b18
sp:varName "createDate"^^xsd:string .
_:b26
sp:varName "well"^^xsd:string .
_:b19
_:b15
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b10
sp:varName "dTimEnd"^^xsd:string .
_:b14
sp:varName "versionKind"^^xsd:string .
_:b11
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b13
sp:varName "createDate"^^xsd:string .
_:b12
sp:varName "nameWellBore"^^xsd:string .
_:b13
sp:varName "dTimStart"^^xsd:string .
_:b11
sp:varName "dailyDrillingReport"^^xsd:string .
_:b14
_:b10
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b20
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b1 sp:varName "dailyDrillingReport"^^xsd:string .
_:b19
sp:varName "createDate"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b18
sp:varName "nameWellBore"^^xsd:string .
_:b3 sp:varName "createDate"^^xsd:string .
_:b17
sp:varName "dailyDrillingReport"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b16
sp:varName "nameDailyDrillingReport"^^xsd:string .
_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b25
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b6 sp:varName "wellBore"^^xsd:string .
_:b24
sp:varName "dTimStart"^^xsd:string .
_:b7 sp:varName "nameWellBore"^^xsd:string .
_:b23
sp:varName "nameWellBore"^^xsd:string .
_:b8 sp:varName "dTimEnd"^^xsd:string .
_:b22
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b21
sp:varName "dTimEnd"^^xsd:string .
......
......@@ -12,7 +12,6 @@
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
@prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
@prefix activity: <http://www.reportinghub.no/ep/transform/1.1/ddr/activity#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
......@@ -66,8 +65,8 @@ owl:Thing
])
] .
_:b1 sp:varName "oldLabel"^^xsd:string .
_:b3 sp:varName "newLabel"^^xsd:string .
_:b2 sp:varName "p"^^xsd:string .
_:b3 sp:varName "newLabel"^^xsd:string .
_:b1 sp:varName "oldLabel"^^xsd:string .
......
This diff could not be displayed because it is too large.
......@@ -444,6 +444,46 @@ rhspin:wellBoreById
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> .
rhspin:wellBoreByName
rdf:type spin:Function ;
rdfs:comment "Gets a WellBore by a name. This name currently must match the NPD name known to the NPD named graph. Will return without result otherwise."^^xsd:string ;
rdfs:label "well bore by name"^^xsd:string ;
rdfs:subClassOf spl:URIFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ rdf:type sp:Union ;
sp:elements (([ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b18
]) ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:replaceAll ;
sp:arg1 _:b19 ;
sp:arg2 "/0" ;
sp:arg3 "/"
] ;
sp:variable _:b20
] [ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b18
]))
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b18
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The name of the well bore."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#wellBoreName> ;
spl:valueType xsd:string
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> .
rhspin:wellByName
rdf:type spin:Function ;
rdfs:comment "Gets the URI resource of a well based on its NPD name."^^xsd:string ;
......@@ -470,43 +510,52 @@ rhspin:wellByName
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> .
_:b3 sp:varName "wellBore"^^xsd:string .
_:b20
sp:varName "str"^^xsd:string .
_:b4 sp:varName "nowDate"^^xsd:string .
_:b19
sp:varName "wellBoreName"^^xsd:string .
_:b5 sp:varName "share"^^xsd:string .
_:b18
sp:varName "wellBore"^^xsd:string .
_:b6 sp:varName "licence"^^xsd:string .
_:b17
sp:varName "t4"^^xsd:string .
_:b7 sp:varName "startDate"^^xsd:string .
_:b16
sp:varName "t3"^^xsd:string .
_:b8 sp:varName "endDate"^^xsd:string .
_:b15
sp:varName "t2"^^xsd:string .
_:b9 sp:varName "normalizedStr"^^xsd:string .
_:b14
sp:varName "t1"^^xsd:string .
_:b10
sp:varName "s1"^^xsd:string .
_:b13
sp:varName "t0b"^^xsd:string .
_:b12
sp:varName "t0a"^^xsd:string .
_:b11
sp:varName "s2"^^xsd:string .
_:b12
sp:varName "t0a"^^xsd:string .
_:b10
sp:varName "s1"^^xsd:string .
_:b13
sp:varName "t0b"^^xsd:string .
_:b9 sp:varName "normalizedStr"^^xsd:string .
_:b14
sp:varName "t1"^^xsd:string .
_:b8 sp:varName "endDate"^^xsd:string .
_:b15
sp:varName "t2"^^xsd:string .
_:b7 sp:varName "startDate"^^xsd:string .
_:b16
sp:varName "t3"^^xsd:string .
_:b6 sp:varName "licence"^^xsd:string .
_:b17
sp:varName "t4"^^xsd:string .
_:b5 sp:varName "share"^^xsd:string .
_:b4 sp:varName "nowDate"^^xsd:string .
_:b3 sp:varName "wellBore"^^xsd:string .
_:b2 sp:varName "wellBore"^^xsd:string .
......