Showing
1 changed file
with
105 additions
and
79 deletions
| ... | @@ -28,56 +28,96 @@ wdr-tables:DailyAndForecastComments | ... | @@ -28,56 +28,96 @@ wdr-tables:DailyAndForecastComments |
| 28 | rdfs:subClassOf rhspin:WDRTableTemplates ; | 28 | rdfs:subClassOf rhspin:WDRTableTemplates ; |
| 29 | spin:body | 29 | spin:body |
| 30 | [ rdf:type sp:Select ; | 30 | [ rdf:type sp:Select ; |
| 31 | - sp:orderBy (_:b1) ; | 31 | + sp:orderBy ([ sp:varName "day"^^xsd:string |
| 32 | - sp:resultVariables (_:b1 _:b2 _:b3) ; | 32 | + ]) ; |
| 33 | + sp:resultVariables ([ sp:varName "day"^^xsd:string | ||
| 34 | + ] [ sp:varName "dailySummary"^^xsd:string | ||
| 35 | + ] [ sp:varName "nextDayForecast"^^xsd:string | ||
| 36 | + ]) ; | ||
| 33 | sp:where ([ sp:object | 37 | sp:where ([ sp:object |
| 38 | + [ sp:varName "startDate"^^xsd:string | ||
| 39 | + ] ; | ||
| 40 | + sp:predicate rdf:first ; | ||
| 41 | + sp:subject | ||
| 42 | + [ sp:varName "?0"^^xsd:string | ||
| 43 | + ] | ||
| 44 | + ] [ sp:object | ||
| 45 | + [ sp:varName "?1"^^xsd:string | ||
| 46 | + ] ; | ||
| 47 | + sp:predicate rdf:rest ; | ||
| 48 | + sp:subject | ||
| 49 | + [ sp:varName "?0"^^xsd:string | ||
| 50 | + ] | ||
| 51 | + ] [ sp:object | ||
| 34 | [ sp:varName "wellBore"^^xsd:string | 52 | [ sp:varName "wellBore"^^xsd:string |
| 35 | ] ; | 53 | ] ; |
| 36 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 54 | + sp:predicate rdf:first ; |
| 37 | - sp:subject _:b4 | 55 | + sp:subject |
| 38 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | 56 | + [ sp:varName "?1"^^xsd:string |
| 39 | - sp:predicate rdf:type ; | 57 | + ] |
| 40 | - sp:subject _:b4 | 58 | + ] [ sp:object () ; |
| 41 | - ] [ sp:object _:b4 ; | 59 | + sp:predicate rdf:rest ; |
| 42 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 60 | + sp:subject |
| 43 | - sp:subject _:b5 | 61 | + [ sp:varName "?1"^^xsd:string |
| 44 | - ] [ sp:object _:b5 ; | 62 | + ] |
| 45 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 63 | + ] [ sp:object |
| 46 | - sp:subject _:b6 | 64 | + [ sp:varName "ddr"^^xsd:string |
| 65 | + ] ; | ||
| 66 | + sp:predicate rhspin:ddrOfWeek ; | ||
| 67 | + sp:subject | ||
| 68 | + [ sp:varName "?0"^^xsd:string | ||
| 69 | + ] | ||
| 70 | + ] [ sp:object | ||
| 71 | + [ sp:varName "dda"^^xsd:string | ||
| 72 | + ] ; | ||
| 73 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 74 | + sp:subject | ||
| 75 | + [ sp:varName "ddr"^^xsd:string | ||
| 76 | + ] | ||
| 77 | + ] [ sp:object | ||
| 78 | + [ sp:varName "ddats"^^xsd:string | ||
| 79 | + ] ; | ||
| 80 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
| 81 | + sp:subject | ||
| 82 | + [ sp:varName "dda"^^xsd:string | ||
| 83 | + ] | ||
| 47 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivityToStatus> ; | 84 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivityToStatus> ; |
| 48 | sp:predicate rdf:type ; | 85 | sp:predicate rdf:type ; |
| 49 | - sp:subject _:b6 | 86 | + sp:subject |
| 50 | - ] [ sp:object _:b7 ; | 87 | + [ sp:varName "ddats"^^xsd:string |
| 51 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 88 | + ] |
| 52 | - sp:subject _:b6 | 89 | + ] [ sp:object |
| 53 | - ] [ rdf:type sp:Bind ; | 90 | + [ sp:varName "startedAt"^^xsd:string |
| 54 | - sp:expression | ||
| 55 | - [ rdf:type spif:dateFormat ; | ||
| 56 | - arg:date _:b7 ; | ||
| 57 | - arg:pattern "yyyy-MM-dd" | ||
| 58 | ] ; | 91 | ] ; |
| 59 | - sp:variable _:b1 | 92 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 93 | + sp:subject | ||
| 94 | + [ sp:varName "ddats"^^xsd:string | ||
| 95 | + ] | ||
| 60 | ] [ rdf:type sp:Bind ; | 96 | ] [ rdf:type sp:Bind ; |
| 61 | sp:expression | 97 | sp:expression |
| 62 | [ rdf:type spif:dateFormat ; | 98 | [ rdf:type spif:dateFormat ; |
| 63 | arg:date | 99 | arg:date |
| 64 | - [ sp:varName "startDate"^^xsd:string | 100 | + [ sp:varName "startedAt"^^xsd:string |
| 65 | ] ; | 101 | ] ; |
| 66 | arg:pattern "yyyy-MM-dd" | 102 | arg:pattern "yyyy-MM-dd" |
| 67 | ] ; | 103 | ] ; |
| 68 | - sp:variable _:b8 | 104 | + sp:variable |
| 69 | - ] [ rdf:type sp:Filter ; | 105 | + [ sp:varName "day"^^xsd:string |
| 70 | - sp:expression | ||
| 71 | - [ rdf:type sp:le ; | ||
| 72 | - sp:arg1 _:b8 ; | ||
| 73 | - sp:arg2 _:b1 | ||
| 74 | ] | 106 | ] |
| 75 | - ] [ sp:object _:b2 ; | 107 | + ] [ sp:object |
| 108 | + [ sp:varName "dailySummary"^^xsd:string | ||
| 109 | + ] ; | ||
| 76 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesWithinTheDailyReportingPeriod> ; | 110 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesWithinTheDailyReportingPeriod> ; |
| 77 | - sp:subject _:b6 | 111 | + sp:subject |
| 78 | - ] [ sp:object _:b3 ; | 112 | + [ sp:varName "ddats"^^xsd:string |
| 113 | + ] | ||
| 114 | + ] [ sp:object | ||
| 115 | + [ sp:varName "nextDayForecast"^^xsd:string | ||
| 116 | + ] ; | ||
| 79 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesForecastForTheNextDailyReportingPeriod> ; | 117 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesForecastForTheNextDailyReportingPeriod> ; |
| 80 | - sp:subject _:b6 | 118 | + sp:subject |
| 119 | + [ sp:varName "ddats"^^xsd:string | ||
| 120 | + ] | ||
| 81 | ]) | 121 | ]) |
| 82 | ] ; | 122 | ] ; |
| 83 | rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) . | 123 | rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) . |
| ... | @@ -96,30 +136,51 @@ wdr-tables:MissedProduction | ... | @@ -96,30 +136,51 @@ wdr-tables:MissedProduction |
| 96 | ] [ sp:varName "comment"^^xsd:string | 136 | ] [ sp:varName "comment"^^xsd:string |
| 97 | ]) ; | 137 | ]) ; |
| 98 | sp:where ([ sp:object | 138 | sp:where ([ sp:object |
| 139 | + [ sp:varName "startDate"^^xsd:string | ||
| 140 | + ] ; | ||
| 141 | + sp:predicate rdf:first ; | ||
| 142 | + sp:subject | ||
| 143 | + [ sp:varName "?0"^^xsd:string | ||
| 144 | + ] | ||
| 145 | + ] [ sp:object | ||
| 146 | + [ sp:varName "?1"^^xsd:string | ||
| 147 | + ] ; | ||
| 148 | + sp:predicate rdf:rest ; | ||
| 149 | + sp:subject | ||
| 150 | + [ sp:varName "?0"^^xsd:string | ||
| 151 | + ] | ||
| 152 | + ] [ sp:object | ||
| 99 | [ sp:varName "wellBore"^^xsd:string | 153 | [ sp:varName "wellBore"^^xsd:string |
| 100 | ] ; | 154 | ] ; |
| 101 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 155 | + sp:predicate rdf:first ; |
| 102 | sp:subject | 156 | sp:subject |
| 103 | - [ sp:varName "dayWellbore"^^xsd:string | 157 | + [ sp:varName "?1"^^xsd:string |
| 104 | ] | 158 | ] |
| 105 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | 159 | + ] [ sp:object () ; |
| 106 | - sp:predicate rdf:type ; | 160 | + sp:predicate rdf:rest ; |
| 107 | sp:subject | 161 | sp:subject |
| 108 | - [ sp:varName "dayWellbore"^^xsd:string | 162 | + [ sp:varName "?1"^^xsd:string |
| 109 | ] | 163 | ] |
| 110 | ] [ sp:object | 164 | ] [ sp:object |
| 111 | - [ sp:varName "dayWellbore"^^xsd:string | 165 | + [ sp:varName "ddr"^^xsd:string |
| 112 | ] ; | 166 | ] ; |
| 113 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 167 | + sp:predicate rhspin:ddrOfWeek ; |
| 114 | sp:subject | 168 | sp:subject |
| 115 | - [ sp:varName "partWellbore"^^xsd:string | 169 | + [ sp:varName "?0"^^xsd:string |
| 116 | ] | 170 | ] |
| 117 | ] [ sp:object | 171 | ] [ sp:object |
| 118 | - [ sp:varName "partWellbore"^^xsd:string | 172 | + [ sp:varName "dda"^^xsd:string |
| 119 | ] ; | 173 | ] ; |
| 120 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 174 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
| 121 | sp:subject | 175 | sp:subject |
| 176 | + [ sp:varName "ddr"^^xsd:string | ||
| 177 | + ] | ||
| 178 | + ] [ sp:object | ||
| 122 | [ sp:varName "failure"^^xsd:string | 179 | [ sp:varName "failure"^^xsd:string |
| 180 | + ] ; | ||
| 181 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
| 182 | + sp:subject | ||
| 183 | + [ sp:varName "dda"^^xsd:string | ||
| 123 | ] | 184 | ] |
| 124 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#EquipmentFailureAndRepair> ; | 185 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#EquipmentFailureAndRepair> ; |
| 125 | sp:predicate rdf:type ; | 186 | sp:predicate rdf:type ; |
| ... | @@ -144,25 +205,6 @@ wdr-tables:MissedProduction | ... | @@ -144,25 +205,6 @@ wdr-tables:MissedProduction |
| 144 | sp:variable | 205 | sp:variable |
| 145 | [ sp:varName "day"^^xsd:string | 206 | [ sp:varName "day"^^xsd:string |
| 146 | ] | 207 | ] |
| 147 | - ] [ rdf:type sp:Bind ; | ||
| 148 | - sp:expression | ||
| 149 | - [ rdf:type spif:dateFormat ; | ||
| 150 | - arg:date | ||
| 151 | - [ sp:varName "startDate"^^xsd:string | ||
| 152 | - ] ; | ||
| 153 | - arg:pattern "yyyy-MM-dd" | ||
| 154 | - ] ; | ||
| 155 | - sp:variable | ||
| 156 | - [ sp:varName "startDateDay"^^xsd:string | ||
| 157 | - ] | ||
| 158 | - ] [ rdf:type sp:Filter ; | ||
| 159 | - sp:expression | ||
| 160 | - [ rdf:type sp:le ; | ||
| 161 | - sp:arg1 [ sp:varName "startDateDay"^^xsd:string | ||
| 162 | - ] ; | ||
| 163 | - sp:arg2 [ sp:varName "day"^^xsd:string | ||
| 164 | - ] | ||
| 165 | - ] | ||
| 166 | ] [ sp:object | 208 | ] [ sp:object |
| 167 | [ sp:varName "comment"^^xsd:string | 209 | [ sp:varName "comment"^^xsd:string |
| 168 | ] ; | 210 | ] ; |
| ... | @@ -231,19 +273,3 @@ wdr-tables:Test | ... | @@ -231,19 +273,3 @@ wdr-tables:Test |
| 231 | ]) | 273 | ]) |
| 232 | ] ; | 274 | ] ; |
| 233 | rhspin:tableHeaders ("Column 1"^^xsd:string "Column 2"^^xsd:string "Column 3"^^xsd:string) . | 275 | rhspin:tableHeaders ("Column 1"^^xsd:string "Column 2"^^xsd:string "Column 3"^^xsd:string) . |
| 234 | - | ||
| 235 | -_:b8 sp:varName "startDateDay"^^xsd:string . | ||
| 236 | - | ||
| 237 | -_:b7 sp:varName "startedAt"^^xsd:string . | ||
| 238 | - | ||
| 239 | -_:b6 sp:varName "ddats"^^xsd:string . | ||
| 240 | - | ||
| 241 | -_:b5 sp:varName "partWellbore"^^xsd:string . | ||
| 242 | - | ||
| 243 | -_:b4 sp:varName "dayWellbore"^^xsd:string . | ||
| 244 | - | ||
| 245 | -_:b3 sp:varName "nextDayForecast"^^xsd:string . | ||
| 246 | - | ||
| 247 | -_:b2 sp:varName "dailySummary"^^xsd:string . | ||
| 248 | - | ||
| 249 | -_:b1 sp:varName "day"^^xsd:string . | ... | ... |
-
Please register or login to post a comment