Showing
4 changed files
with
158 additions
and
79 deletions
1 | -# baseURI: http://www.reportinghub.no/ep/spin/wdr-tables | 1 | +# Saved by TopBraid on Sat Oct 15 16:08:08 BST 2011 |
2 | -# imports: http://spinrdf.org/spin | 2 | +# baseURI: http://www.reportinghub.no/ep/spin/wdr-tables |
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://www.reportinghub.no/spin/rh | 5 | +# imports: http://spinrdf.org/spin |
6 | - | 6 | +# imports: http://www.reportinghub.no/spin/rh |
7 | -@prefix arg: <http://spinrdf.org/arg#> . | 7 | + |
8 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 8 | +@prefix arg: <http://spinrdf.org/arg#> . |
9 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 9 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
10 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 10 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
11 | -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | 11 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
12 | -@prefix sp: <http://spinrdf.org/sp#> . | 12 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . |
13 | -@prefix spif: <http://spinrdf.org/spif#> . | 13 | +@prefix sp: <http://spinrdf.org/sp#> . |
14 | -@prefix spin: <http://spinrdf.org/spin#> . | 14 | +@prefix spif: <http://spinrdf.org/spif#> . |
15 | -@prefix spl: <http://spinrdf.org/spl#> . | 15 | +@prefix spin: <http://spinrdf.org/spin#> . |
16 | -@prefix wdr-tables: <http://www.reportinghub.no/ep/spin/wdr-tables#> . | 16 | +@prefix spl: <http://spinrdf.org/spl#> . |
17 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 17 | +@prefix wdr-tables: <http://www.reportinghub.no/ep/spin/wdr-tables#> . |
18 | - | 18 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
19 | -<http://www.reportinghub.no/ep/spin/wdr-tables> | 19 | + |
20 | - rdf:type owl:Ontology ; | 20 | +<http://www.reportinghub.no/ep/spin/wdr-tables> |
21 | - rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; | 21 | + rdf:type owl:Ontology ; |
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> ; | 22 | + rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; |
23 | - owl:versionInfo "0.1.0"^^xsd:string . | 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> ; |
24 | - | 24 | + owl:versionInfo "0.1.0"^^xsd:string . |
25 | -wdr-tables:Test | 25 | + |
26 | - rdf:type rhspin:TableTemplate ; | 26 | +wdr-tables:DailyAndForecastComments |
27 | - rdfs:label "Test Table"^^xsd:string ; | 27 | + rdf:type rhspin:TableTemplate ; |
28 | - rdfs:subClassOf rhspin:WDRTableTemplates ; | 28 | + rdfs:label "Daily and Forecast Comments"^^xsd:string ; |
29 | - spin:body | 29 | + rdfs:subClassOf rhspin:WDRTableTemplates ; |
30 | - [ rdf:type sp:Select ; | 30 | + spin:body |
31 | - sp:resultVariables ([ sp:varName "a"^^xsd:string | 31 | + [ rdf:type sp:Select ; |
32 | - ] [ sp:varName "b"^^xsd:string | 32 | + sp:orderBy (_:b1) ; |
33 | - ] [ sp:varName "c"^^xsd:string | 33 | + sp:resultVariables (_:b1 _:b2 _:b3) ; |
34 | - ]) ; | 34 | + sp:where ([ sp:object |
35 | - sp:where ([ rdf:type sp:Bind ; | 35 | + [ sp:varName "wellBore"^^xsd:string |
36 | - sp:expression 42 ; | 36 | + ] ; |
37 | - sp:variable | 37 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
38 | - [ sp:varName "a"^^xsd:string | 38 | + sp:subject _:b4 |
39 | - ] | 39 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; |
40 | - ] [ rdf:type sp:Bind ; | 40 | + sp:predicate rdf:type ; |
41 | - sp:expression | 41 | + sp:subject _:b4 |
42 | - [ sp:varName "startDate"^^xsd:string | 42 | + ] [ sp:object _:b4 ; |
43 | - ] ; | 43 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
44 | - sp:variable | 44 | + sp:subject _:b5 |
45 | - [ sp:varName "b"^^xsd:string | 45 | + ] [ sp:object _:b5 ; |
46 | - ] | 46 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; |
47 | - ] [ rdf:type sp:Bind ; | 47 | + sp:subject _:b6 |
48 | - sp:expression | 48 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivityToStatus> ; |
49 | - [ sp:varName "wellBore"^^xsd:string | 49 | + sp:predicate rdf:type ; |
50 | - ] ; | 50 | + sp:subject _:b6 |
51 | - sp:variable | 51 | + ] [ sp:object _:b7 ; |
52 | - [ sp:varName "c"^^xsd:string | 52 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
53 | - ] | 53 | + sp:subject _:b6 |
54 | - ]) | 54 | + ] [ rdf:type sp:Bind ; |
55 | - ] ; | 55 | + sp:expression |
56 | - rhspin:tableHeaders ("Column 1"^^xsd:string "Column 2"^^xsd:string "Column 3"^^xsd:string) . | 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 | + | ||
86 | +wdr-tables:Test | ||
87 | + rdf:type rhspin:TableTemplate ; | ||
88 | + rdfs:label "Test Table"^^xsd:string ; | ||
89 | + rdfs:subClassOf rhspin:WDRTableTemplates ; | ||
90 | + spin:body | ||
91 | + [ rdf:type sp:Select ; | ||
92 | + sp:resultVariables ([ sp:varName "a"^^xsd:string | ||
93 | + ] [ sp:varName "b"^^xsd:string | ||
94 | + ] [ sp:varName "c"^^xsd:string | ||
95 | + ]) ; | ||
96 | + sp:where ([ rdf:type sp:Bind ; | ||
97 | + sp:expression 42 ; | ||
98 | + sp:variable | ||
99 | + [ sp:varName "a"^^xsd:string | ||
100 | + ] | ||
101 | + ] [ rdf:type sp:Bind ; | ||
102 | + sp:expression | ||
103 | + [ sp:varName "startDate"^^xsd:string | ||
104 | + ] ; | ||
105 | + sp:variable | ||
106 | + [ sp:varName "b"^^xsd:string | ||
107 | + ] | ||
108 | + ] [ rdf:type sp:Bind ; | ||
109 | + sp:expression | ||
110 | + [ sp:varName "wellBore"^^xsd:string | ||
111 | + ] ; | ||
112 | + sp:variable | ||
113 | + [ sp:varName "c"^^xsd:string | ||
114 | + ] | ||
115 | + ]) | ||
116 | + ] ; | ||
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 | 1 | +# baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest |
2 | -# baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest | 2 | +# imports: http://spinrdf.org/spin |
3 | -# imports: http://www.reportinghub.no/np/data/npd | 3 | +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0 |
4 | -# imports: http://spinrdf.org/spin | 4 | +# imports: http://www.reportinghub.no/np/data/npd |
5 | -# imports: http://www.witsml.org/schemas/131/addendum/combo | 5 | +# imports: http://www.reportinghub.no/np/data/npd-alias-identifiers |
6 | -# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0 | 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 owl: <http://www.w3.org/2002/07/owl#> . | 9 | +@prefix npd-alias-identifiers: <http://www.reportinghub.no/np/data/npd-alias-identifiers#> . |
10 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
11 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
12 | -@prefix sp: <http://spinrdf.org/sp#> . | 12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
13 | -@prefix spin: <http://spinrdf.org/spin#> . | 13 | +@prefix sp: <http://spinrdf.org/sp#> . |
14 | -@prefix spl: <http://spinrdf.org/spl#> . | 14 | +@prefix spin: <http://spinrdf.org/spin#> . |
15 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 15 | +@prefix spl: <http://spinrdf.org/spl#> . |
16 | - | 16 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
17 | -<http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest> | 17 | + |
18 | - rdf:type owl:Ontology ; | 18 | +<http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest> |
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> ; | 19 | + rdf:type owl:Ontology ; |
20 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 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> ; |
21 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment