Showing
4 changed files
with
87 additions
and
8 deletions
1 | +# Saved by TopBraid on Sat Oct 15 16:08:08 BST 2011 | ||
1 | # baseURI: http://www.reportinghub.no/ep/spin/wdr-tables | 2 | # baseURI: http://www.reportinghub.no/ep/spin/wdr-tables |
2 | -# imports: http://spinrdf.org/spin | ||
3 | # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose |
4 | # imports: http://www.reportinghub.no/ep/schema/1.0/ddr | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/ddr |
5 | +# imports: http://spinrdf.org/spin | ||
5 | # imports: http://www.reportinghub.no/spin/rh | 6 | # imports: http://www.reportinghub.no/spin/rh |
6 | 7 | ||
7 | @prefix arg: <http://spinrdf.org/arg#> . | 8 | @prefix arg: <http://spinrdf.org/arg#> . |
... | @@ -22,6 +23,66 @@ | ... | @@ -22,6 +23,66 @@ |
22 | owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> ; | 23 | owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> ; |
23 | owl:versionInfo "0.1.0"^^xsd:string . | 24 | owl:versionInfo "0.1.0"^^xsd:string . |
24 | 25 | ||
26 | +wdr-tables:DailyAndForecastComments | ||
27 | + rdf:type rhspin:TableTemplate ; | ||
28 | + rdfs:label "Daily and Forecast Comments"^^xsd:string ; | ||
29 | + rdfs:subClassOf rhspin:WDRTableTemplates ; | ||
30 | + spin:body | ||
31 | + [ rdf:type sp:Select ; | ||
32 | + sp:orderBy (_:b1) ; | ||
33 | + sp:resultVariables (_:b1 _:b2 _:b3) ; | ||
34 | + sp:where ([ sp:object | ||
35 | + [ sp:varName "wellBore"^^xsd:string | ||
36 | + ] ; | ||
37 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
38 | + sp:subject _:b4 | ||
39 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | ||
40 | + sp:predicate rdf:type ; | ||
41 | + sp:subject _:b4 | ||
42 | + ] [ sp:object _:b4 ; | ||
43 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
44 | + sp:subject _:b5 | ||
45 | + ] [ sp:object _:b5 ; | ||
46 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | ||
47 | + sp:subject _:b6 | ||
48 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivityToStatus> ; | ||
49 | + sp:predicate rdf:type ; | ||
50 | + sp:subject _:b6 | ||
51 | + ] [ sp:object _:b7 ; | ||
52 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
53 | + sp:subject _:b6 | ||
54 | + ] [ rdf:type sp:Bind ; | ||
55 | + sp:expression | ||
56 | + [ rdf:type spif:dateFormat ; | ||
57 | + arg:date _:b7 ; | ||
58 | + arg:pattern "yyyy-MM-dd" | ||
59 | + ] ; | ||
60 | + sp:variable _:b1 | ||
61 | + ] [ rdf:type sp:Bind ; | ||
62 | + sp:expression | ||
63 | + [ rdf:type spif:dateFormat ; | ||
64 | + arg:date | ||
65 | + [ sp:varName "startDate"^^xsd:string | ||
66 | + ] ; | ||
67 | + arg:pattern "yyyy-MM-dd" | ||
68 | + ] ; | ||
69 | + sp:variable _:b8 | ||
70 | + ] [ rdf:type sp:Filter ; | ||
71 | + sp:expression | ||
72 | + [ rdf:type sp:le ; | ||
73 | + sp:arg1 _:b8 ; | ||
74 | + sp:arg2 _:b1 | ||
75 | + ] | ||
76 | + ] [ sp:object _:b2 ; | ||
77 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesWithinTheDailyReportingPeriod> ; | ||
78 | + sp:subject _:b6 | ||
79 | + ] [ sp:object _:b3 ; | ||
80 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesForecastForTheNextDailyReportingPeriod> ; | ||
81 | + sp:subject _:b6 | ||
82 | + ]) | ||
83 | + ] ; | ||
84 | + rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) . | ||
85 | + | ||
25 | wdr-tables:Test | 86 | wdr-tables:Test |
26 | rdf:type rhspin:TableTemplate ; | 87 | rdf:type rhspin:TableTemplate ; |
27 | rdfs:label "Test Table"^^xsd:string ; | 88 | rdfs:label "Test Table"^^xsd:string ; |
... | @@ -54,3 +115,19 @@ wdr-tables:Test | ... | @@ -54,3 +115,19 @@ wdr-tables:Test |
54 | ]) | 115 | ]) |
55 | ] ; | 116 | ] ; |
56 | rhspin:tableHeaders ("Column 1"^^xsd:string "Column 2"^^xsd:string "Column 3"^^xsd:string) . | 117 | rhspin:tableHeaders ("Column 1"^^xsd:string "Column 2"^^xsd:string "Column 3"^^xsd:string) . |
118 | + | ||
119 | +_:b3 sp:varName "nextDayForecast"^^xsd:string . | ||
120 | + | ||
121 | +_:b2 sp:varName "dailySummary"^^xsd:string . | ||
122 | + | ||
123 | +_:b8 sp:varName "startDateDay"^^xsd:string . | ||
124 | + | ||
125 | +_:b1 sp:varName "day"^^xsd:string . | ||
126 | + | ||
127 | +_:b7 sp:varName "startedAt"^^xsd:string . | ||
128 | + | ||
129 | +_:b6 sp:varName "ddats"^^xsd:string . | ||
130 | + | ||
131 | +_:b5 sp:varName "partWellbore"^^xsd:string . | ||
132 | + | ||
133 | +_:b4 sp:varName "dayWellbore"^^xsd:string . | ... | ... |
1 | <ui:group> | 1 | <ui:group> |
2 | <ui:group > | 2 | <ui:group > |
3 | - <h1>Weekly Report for Well bore {= ?wellBore } starting at {= ?startDate }</h1> | 3 | + <h1>Weekly Partner Report</h1> |
4 | + <h2> {# SELECT ?wbName WHERE {?wellBore ep-core:npdCode ?wbName}}</h2> | ||
5 | + <h2>Start Date : {= ?startDate }</h2> | ||
4 | <hr /> | 6 | <hr /> |
5 | 7 | ||
6 | - <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:Test" /> | 8 | + <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:DailyAndForecastComments" /> |
7 | 9 | ||
8 | </ui:group> | 10 | </ui:group> |
9 | </ui:group> | 11 | </ui:group> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | -# Saved by TopBraid on Sat Oct 08 13:43:02 BST 2011 | ||
2 | # baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest | 1 | # baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest |
3 | -# imports: http://www.reportinghub.no/np/data/npd | ||
4 | # imports: http://spinrdf.org/spin | 2 | # imports: http://spinrdf.org/spin |
5 | -# imports: http://www.witsml.org/schemas/131/addendum/combo | ||
6 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0 | 3 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0 |
4 | +# imports: http://www.reportinghub.no/np/data/npd | ||
5 | +# imports: http://www.reportinghub.no/np/data/npd-alias-identifiers | ||
6 | +# imports: http://www.witsml.org/schemas/131/addendum/combo | ||
7 | 7 | ||
8 | @prefix : <http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest#> . | 8 | @prefix : <http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest#> . |
9 | +@prefix npd-alias-identifiers: <http://www.reportinghub.no/np/data/npd-alias-identifiers#> . | ||
9 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 10 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
10 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 11 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
11 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 12 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
... | @@ -16,5 +17,5 @@ | ... | @@ -16,5 +17,5 @@ |
16 | 17 | ||
17 | <http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest> | 18 | <http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest> |
18 | rdf:type owl:Ontology ; | 19 | rdf:type owl:Ontology ; |
19 | - owl:imports <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0> , <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/131/addendum/combo> ; | 20 | + owl:imports <http://www.reportinghub.no/np/data/npd-alias-identifiers> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0> , <http://www.reportinghub.no/np/data/npd> ; |
20 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 21 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment