MonkeyChap

Merge branch 'IanThu1'

1 # baseURI: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest 1 # baseURI: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://www.epim.no/schemas/mprml/1 3 # imports: http://www.epim.no/schemas/mprml/1
4 +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
4 # imports: http://www.reportinghub.no/ep/schema/1.0/production-well 5 # imports: http://www.reportinghub.no/ep/schema/1.0/production-well
5 # imports: http://www.reportinghub.no/ep/schema/1.0/report 6 # imports: http://www.reportinghub.no/ep/schema/1.0/report
6 # imports: http://www.reportinghub.no/ep/schema/1.0/well 7 # imports: http://www.reportinghub.no/ep/schema/1.0/well
7 8
8 @prefix : <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest#> . 9 @prefix : <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest#> .
10 +@prefix arg: <http://spinrdf.org/arg#> .
9 @prefix owl: <http://www.w3.org/2002/07/owl#> . 11 @prefix owl: <http://www.w3.org/2002/07/owl#> .
10 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 12 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 13 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
14 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
12 @prefix sp: <http://spinrdf.org/sp#> . 15 @prefix sp: <http://spinrdf.org/sp#> .
13 @prefix spin: <http://spinrdf.org/spin#> . 16 @prefix spin: <http://spinrdf.org/spin#> .
14 @prefix spl: <http://spinrdf.org/spl#> . 17 @prefix spl: <http://spinrdf.org/spl#> .
15 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 18 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
16 19
17 -<http://www.epim.no/schemas/mprml/1#Obj_wellTest> 20 +<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
18 spin:rule 21 spin:rule
19 [ rdf:type sp:Construct ; 22 [ rdf:type sp:Construct ;
20 rdfs:comment """STEP 30101 Create WellTest activity - anonymous because there is no mandatory data about it 23 rdfs:comment """STEP 30101 Create WellTest activity - anonymous because there is no mandatory data about it
21 -The name of the WellBore has \"-wellbore\" after it, so a temporary WellBore URI for now. 24 +DPR was using wellbore for this, here we use Well."""^^xsd:string ;
22 -The WellTest is part of the DailyProductionActivity, but there may not be a ProductionOperations element."""^^xsd:string ;
23 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTest> ; 25 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTest> ;
24 sp:predicate rdf:type ; 26 sp:predicate rdf:type ;
25 - sp:subject _:b1 27 + sp:subject
26 - ] [ sp:object _:b1 ; 28 + [ sp:varName "epWellTest"^^xsd:string
29 + ]
30 + ] [ sp:object
31 + [ sp:varName "epWellTest"^^xsd:string
32 + ] ;
27 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 33 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
28 sp:subject 34 sp:subject
29 [ sp:varName "monthlyProductionActivity"^^xsd:string 35 [ sp:varName "monthlyProductionActivity"^^xsd:string
...@@ -32,7 +38,35 @@ The WellTest is part of the DailyProductionActivity, but there may not be a Prod ...@@ -32,7 +38,35 @@ The WellTest is part of the DailyProductionActivity, but there may not be a Prod
32 [ sp:varName "testDate"^^xsd:string 38 [ sp:varName "testDate"^^xsd:string
33 ] ; 39 ] ;
34 sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; 40 sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
35 - sp:subject _:b1 41 + sp:subject
42 + [ sp:varName "epWellTest"^^xsd:string
43 + ]
44 + ] [ sp:object
45 + [ sp:varName "epWell"^^xsd:string
46 + ] ;
47 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
48 + sp:subject
49 + [ sp:varName "epWellTest"^^xsd:string
50 + ]
51 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTestType> ;
52 + sp:predicate rdf:type ;
53 + sp:subject
54 + [ sp:varName "epWellTestType"^^xsd:string
55 + ]
56 + ] [ sp:object
57 + [ sp:varName "epWellTestType"^^xsd:string
58 + ] ;
59 + sp:predicate rdf:type ;
60 + sp:subject
61 + [ sp:varName "epWellTest"^^xsd:string
62 + ]
63 + ] [ sp:object
64 + [ sp:varName "wellTestTypeText"^^xsd:string
65 + ] ;
66 + sp:predicate rdfs:label ;
67 + sp:subject
68 + [ sp:varName "epWellTestType"^^xsd:string
69 + ]
36 ]) ; 70 ]) ;
37 sp:where ([ sp:object spin:_this ; 71 sp:where ([ sp:object spin:_this ;
38 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 72 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
...@@ -57,12 +91,37 @@ The WellTest is part of the DailyProductionActivity, but there may not be a Prod ...@@ -57,12 +91,37 @@ The WellTest is part of the DailyProductionActivity, but there may not be a Prod
57 [ sp:varName "wellTest"^^xsd:string 91 [ sp:varName "wellTest"^^xsd:string
58 ] 92 ]
59 ] [ sp:object 93 ] [ sp:object
60 - [ sp:varName "wellBoreTestName"^^xsd:string 94 + [ sp:varName "wellName"^^xsd:string
61 ] ; 95 ] ;
62 sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; 96 sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
63 sp:subject 97 sp:subject
64 [ sp:varName "wellTest"^^xsd:string 98 [ sp:varName "wellTest"^^xsd:string
65 ] 99 ]
100 + ] [ rdf:type sp:Bind ;
101 + sp:expression
102 + [ rdf:type rhspin:wellByName ;
103 + arg:wellName
104 + [ sp:varName "wellName"^^xsd:string
105 + ]
106 + ] ;
107 + sp:variable
108 + [ sp:varName "epWell"^^xsd:string
109 + ]
110 + ] [ rdf:type sp:Bind ;
111 + sp:expression
112 + [ rdf:type <http://www.reportinghub.no/ep/spin/lib#buildURI> ;
113 + sp:arg1 "https://www.reportinghub.no/ep/data/wellTest/" ;
114 + sp:arg2 [ rdf:type <http://www.w3.org/2005/xpath-functions#concat> ;
115 + sp:arg1 [ rdf:type <http://www.reportinghub.no/ep/spin/lib#normalizeString> ;
116 + sp:arg1 [ sp:varName "wellName"^^xsd:string
117 + ]
118 + ] ;
119 + sp:arg2 <http://topbraid.org/sparqlmotionfunctions#generateUUID>
120 + ]
121 + ] ;
122 + sp:variable
123 + [ sp:varName "epWellTest"^^xsd:string
124 + ]
66 ] [ rdf:type sp:Optional ; 125 ] [ rdf:type sp:Optional ;
67 sp:elements ([ sp:object 126 sp:elements ([ sp:object
68 [ sp:varName "testDate"^^xsd:string 127 [ sp:varName "testDate"^^xsd:string
...@@ -81,10 +140,33 @@ The WellTest is part of the DailyProductionActivity, but there may not be a Prod ...@@ -81,10 +140,33 @@ The WellTest is part of the DailyProductionActivity, but there may not be a Prod
81 [ sp:varName "wellTest"^^xsd:string 140 [ sp:varName "wellTest"^^xsd:string
82 ] 141 ]
83 ]) 142 ])
143 + ] [ rdf:type sp:Optional ;
144 + sp:elements ([ sp:object
145 + [ sp:varName "wellTestTypeText"^^xsd:string
146 + ] ;
147 + sp:predicate <http://www.epim.no/schemas/mprml/1#testType> ;
148 + sp:subject
149 + [ sp:varName "wellTest"^^xsd:string
150 + ]
151 + ] [ rdf:type sp:Bind ;
152 + sp:expression
153 + [ rdf:type <http://www.reportinghub.no/ep/spin/lib#buildURI> ;
154 + sp:arg1 "https://www.reportinghub.no/ep/data/wellTestType/" ;
155 + sp:arg2 [ rdf:type <http://www.w3.org/2005/xpath-functions#concat> ;
156 + sp:arg1 [ rdf:type <http://www.reportinghub.no/ep/spin/lib#normalizeString> ;
157 + sp:arg1 [ sp:varName "wellTestTypeText"^^xsd:string
158 + ]
159 + ]
160 + ]
161 + ] ;
162 + sp:variable
163 + [ sp:varName "epWellTestType"^^xsd:string
164 + ]
165 + ])
84 ]) 166 ])
85 ] . 167 ] .
86 168
87 <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> 169 <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest>
88 rdf:type owl:Ontology ; 170 rdf:type owl:Ontology ;
89 - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/production-well> ; 171 + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
90 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 172 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......