Holger Knublauch

SPIN templates for DDR tables

1 +# baseURI: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
4 +# imports: http://www.reportinghub.no/spin/rh
5 +
6 +@prefix ddr-tables: <http://www.reportinghub.no/ep/spin/ddr-tables#> .
7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
11 +@prefix sp: <http://spinrdf.org/sp#> .
12 +@prefix spin: <http://spinrdf.org/spin#> .
13 +@prefix spl: <http://spinrdf.org/spl#> .
14 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
15 +
16 +ddr-tables:Operations
17 + rdf:type rhspin:TableTemplate ;
18 + rdfs:label "Operations"^^xsd:string ;
19 + rdfs:subClassOf rhspin:DDRTableTemplates ;
20 + spin:body
21 + [ rdf:type sp:Select ;
22 + sp:orderBy (_:b1) ;
23 + sp:resultVariables (_:b1 _:b2 [ sp:varName "startDepth"^^xsd:string
24 + ] [ sp:varName "endDepth"^^xsd:string
25 + ] [ sp:varName "activity"^^xsd:string
26 + ] [ sp:varName "state"^^xsd:string
27 + ] [ sp:varName "remark"^^xsd:string
28 + ]) ;
29 + sp:where ([ sp:object _:b3 ;
30 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
31 + sp:subject
32 + [ sp:varName "report"^^xsd:string
33 + ]
34 + ] [ sp:object _:b4 ;
35 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
36 + sp:subject _:b3
37 + ] [ sp:object _:b1 ;
38 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
39 + sp:subject _:b4
40 + ] [ sp:object _:b2 ;
41 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
42 + sp:subject _:b4
43 + ])
44 + ] ;
45 + rhspin:tableHeaders ("Start Time"^^xsd:string "End Time"^^xsd:string "Start Depth mMD"^^xsd:string "End Depth mMD"^^xsd:string "Depth mMD"^^xsd:string "Main - Sub Activity"^^xsd:string "State"^^xsd:string "Remark"^^xsd:string) .
46 +
47 +<http://www.reportinghub.no/ep/spin/ddr-tables-v1.0>
48 + rdf:type owl:Ontology ;
49 + rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
50 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> ;
51 + owl:versionInfo "0.1.0"^^xsd:string .
52 +
53 +_:b2 sp:varName "endTime"^^xsd:string .
54 +
55 +_:b1 sp:varName "startTime"^^xsd:string .
56 +
57 +_:b4 sp:varName "part"^^xsd:string .
58 +
59 +_:b3 sp:varName "reportOn"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + composite:index "0"^^xsd:int
16 + ] .
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 # imports: http://www.reportinghub.no/ep/schema/1.0/core 5 # imports: http://www.reportinghub.no/ep/schema/1.0/core
6 # imports: http://www.reportinghub.no/ep/schema/1.0/facility 6 # imports: http://www.reportinghub.no/ep/schema/1.0/facility
7 # imports: http://www.reportinghub.no/ep/schema/1.0/organization 7 # imports: http://www.reportinghub.no/ep/schema/1.0/organization
8 -# imports: http://www.reportinghub.no/ep/schema/1.0/well 8 +# imports: http://www.reportinghub.no/ep/schema/1.0/report
9 # imports: http://www.reportinghub.no/np/schema/1.0/npd 9 # imports: http://www.reportinghub.no/np/schema/1.0/npd
10 10
11 @prefix fn: <http://www.w3.org/2005/xpath-functions#> . 11 @prefix fn: <http://www.w3.org/2005/xpath-functions#> .
...@@ -35,6 +35,11 @@ ...@@ -35,6 +35,11 @@
35 rdfs:label "name"^^xsd:string ; 35 rdfs:label "name"^^xsd:string ;
36 rdfs:subPropertyOf sp:arg . 36 rdfs:subPropertyOf sp:arg .
37 37
38 +<http://spinrdf.org/arg#report>
39 + rdf:type rdf:Property ;
40 + rdfs:label "report"^^xsd:string ;
41 + rdfs:subPropertyOf sp:arg .
42 +
38 <http://spinrdf.org/arg#resource> 43 <http://spinrdf.org/arg#resource>
39 rdf:type rdf:Property ; 44 rdf:type rdf:Property ;
40 rdfs:label "resource"^^xsd:string ; 45 rdfs:label "resource"^^xsd:string ;
...@@ -62,9 +67,21 @@ npdata:npd ...@@ -62,9 +67,21 @@ npdata:npd
62 <http://www.reportinghub.no/spin/rh> 67 <http://www.reportinghub.no/spin/rh>
63 rdf:type owl:Ontology ; 68 rdf:type owl:Ontology ;
64 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ; 69 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
65 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.linkedmodel.org/schema/dtype> ; 70 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.linkedmodel.org/schema/dtype> ;
66 owl:versionInfo "0.1.0"^^xsd:string . 71 owl:versionInfo "0.1.0"^^xsd:string .
67 72
73 +rhspin:DDRTableTemplates
74 + rdf:type rhspin:TableTemplate ;
75 + rdfs:label "DDRTable templates"^^xsd:string ;
76 + rdfs:subClassOf rhspin:TableTemplates ;
77 + spin:abstract "true"^^xsd:boolean ;
78 + spin:constraint
79 + [ rdf:type spl:Argument ;
80 + rdfs:comment "The DDR that serves as root of the query."^^xsd:string ;
81 + spl:predicate <http://spinrdf.org/arg#report> ;
82 + spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
83 + ] .
84 +
68 rhspin:GetWellBoresOfWell 85 rhspin:GetWellBoresOfWell
69 rdf:type spin:SelectTemplate ; 86 rdf:type spin:SelectTemplate ;
70 rdfs:comment "Gets an ordered list of well bores that belong to a given Well. Result variables are ?wellBoreId and ?wellBoreName."^^xsd:string ; 87 rdfs:comment "Gets an ordered list of well bores that belong to a given Well. Result variables are ?wellBoreId and ?wellBoreName."^^xsd:string ;
...@@ -97,6 +114,18 @@ rhspin:GetWellBoresOfWell ...@@ -97,6 +114,18 @@ rhspin:GetWellBoresOfWell
97 spl:valueType <http://www.reportinghub.no/ep/schema/well#Well> 114 spl:valueType <http://www.reportinghub.no/ep/schema/well#Well>
98 ] . 115 ] .
99 116
117 +rhspin:TableTemplate
118 + rdf:type rdfs:Class ;
119 + rdfs:comment "A spin:Template for SELECT queries that are meant to be displayed as a table. The added feature compared to normal templates is the ability to specify headers for the result variables."^^xsd:string ;
120 + rdfs:label "Table template"^^xsd:string ;
121 + rdfs:subClassOf spin:SelectTemplate .
122 +
123 +rhspin:TableTemplates
124 + rdf:type rhspin:TableTemplate ;
125 + rdfs:label "Table templates"^^xsd:string ;
126 + rdfs:subClassOf spin:SelectTemplates ;
127 + spin:abstract "true"^^xsd:boolean .
128 +
100 rhspin:baaById 129 rhspin:baaById
101 rdf:type spin:Function ; 130 rdf:type spin:Function ;
102 rdfs:label "baa by id"^^xsd:string ; 131 rdfs:label "baa by id"^^xsd:string ;
...@@ -243,15 +272,15 @@ rhspin:dtypeValue ...@@ -243,15 +272,15 @@ rhspin:dtypeValue
243 ] ; 272 ] ;
244 spin:constraint 273 spin:constraint
245 [ rdf:type spl:Argument ; 274 [ rdf:type spl:Argument ;
246 - rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
247 - spl:predicate sp:arg2 ;
248 - spl:valueType rdf:Property
249 - ] ;
250 - spin:constraint
251 - [ rdf:type spl:Argument ;
252 rdfs:comment "The subject of the value."^^xsd:string ; 275 rdfs:comment "The subject of the value."^^xsd:string ;
253 spl:predicate sp:arg1 ; 276 spl:predicate sp:arg1 ;
254 spl:valueType rdfs:Resource 277 spl:valueType rdfs:Resource
278 + ] ;
279 + spin:constraint
280 + [ rdf:type spl:Argument ;
281 + rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
282 + spl:predicate sp:arg2 ;
283 + spl:valueType rdf:Property
255 ] . 284 ] .
256 285
257 rhspin:facilityById 286 rhspin:facilityById
...@@ -483,6 +512,13 @@ rhspin:parentCompanyByName ...@@ -483,6 +512,13 @@ rhspin:parentCompanyByName
483 ] ; 512 ] ;
484 spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . 513 spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> .
485 514
515 +rhspin:tableHeaders
516 + rdf:type owl:ObjectProperty ;
517 + rdfs:comment "Points to an rdf:List of xsd:string literals, one for each result column of the associated template."^^xsd:string ;
518 + rdfs:domain rhspin:TableTemplate ;
519 + rdfs:label "table headers"^^xsd:string ;
520 + rdfs:range rdf:List .
521 +
486 rhspin:tufById 522 rhspin:tufById
487 rdf:type spin:Function ; 523 rdf:type spin:Function ;
488 rdfs:label "tuf by id"^^xsd:string ; 524 rdfs:label "tuf by id"^^xsd:string ;
...@@ -604,18 +640,6 @@ rhspin:wellByName ...@@ -604,18 +640,6 @@ rhspin:wellByName
604 ] ; 640 ] ;
605 spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . 641 spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> .
606 642
607 -_:b10
608 - sp:varName "value"^^xsd:string .
609 -
610 -_:b11
611 - sp:varName "reif"^^xsd:string .
612 -
613 -_:b21
614 - sp:varName "id"^^xsd:string .
615 -
616 -_:b22
617 - sp:varName "name"^^xsd:string .
618 -
619 _:b25 643 _:b25
620 sp:varName "str"^^xsd:string . 644 sp:varName "str"^^xsd:string .
621 645
...@@ -625,6 +649,12 @@ _:b24 ...@@ -625,6 +649,12 @@ _:b24
625 _:b23 649 _:b23
626 sp:varName "wellBore"^^xsd:string . 650 sp:varName "wellBore"^^xsd:string .
627 651
652 +_:b22
653 + sp:varName "name"^^xsd:string .
654 +
655 +_:b21
656 + sp:varName "id"^^xsd:string .
657 +
628 _:b20 658 _:b20
629 sp:varName "t4"^^xsd:string . 659 sp:varName "t4"^^xsd:string .
630 660
...@@ -652,6 +682,12 @@ _:b13 ...@@ -652,6 +682,12 @@ _:b13
652 _:b12 682 _:b12
653 sp:varName "normalizedStr"^^xsd:string . 683 sp:varName "normalizedStr"^^xsd:string .
654 684
685 +_:b11
686 + sp:varName "reif"^^xsd:string .
687 +
688 +_:b10
689 + sp:varName "value"^^xsd:string .
690 +
655 _:b9 sp:varName "endDate"^^xsd:string . 691 _:b9 sp:varName "endDate"^^xsd:string .
656 692
657 _:b8 sp:varName "startDate"^^xsd:string . 693 _:b8 sp:varName "startDate"^^xsd:string .
......
1 +<div>
2 + <hr />
3 + <ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/ddr-tables-v1.0&gt;">
4 + <h2>{= ui:label(?template) }</h2>
5 + </ui:setContext>
6 + <table class="ddrTable">
7 + <ui:setContext ui:queryGraph="&lt;http://www.reportinghub.no/ep/spin/ddr-tables-v1.0&gt;">
8 + <tr class="ddrTR">
9 + <ui:forEach ui:resultSet="{#
10 + SELECT ?header
11 + WHERE {
12 + ?template rhspin:tableHeaders ?list .
13 + ?list &lt;http://jena.hpl.hp.com/ARQ/list#member&gt; ?header .
14 + }
15 + }">
16 + <th class="ddrTH">{= ?header }</th>
17 + </ui:forEach>
18 + </tr>
19 + </ui:setContext>
20 + <ui:call ui:template="{= ?template }" arg:report="{= ?report }">
21 + <ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }">
22 + <tr class="ddrTR">
23 + <ui:forEach ui:resultSet="{# SELECT ?cell WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?cellIndex) } }">
24 + <td class="ddrTD">{= ui:label(?cell) }</td>
25 + </ui:forEach>
26 + </tr>
27 + </ui:forEach>
28 + </ui:call>
29 + </table>
30 + <br />
31 +</div>
...\ No newline at end of file ...\ No newline at end of file
1 -<ui:group let:activity="{= spl:object(?this, ep-activity:reportOn) }" 1 +<ui:group
2 - let:onWellBore="{# SELECT ?onWellBore WHERE { ?this ep-activity:reportOn/ep-activity:onWellBore ?onWellBore } }" 2 + let:activity="{= spl:object(?report, ep-activity:reportOn) }"
3 - let:report="{= ?this }"> 3 + let:onWellBore="{# SELECT ?onWellBore WHERE { ?this ep-activity:reportOn/ep-activity:onWellBore ?onWellBore } }">
4 <ui:group let:wellBore="{= spl:object(?onWellBore, ep-core:temporalPartOf) }"> 4 <ui:group let:wellBore="{= spl:object(?onWellBore, ep-core:temporalPartOf) }">
5 <h1>Summary report Wellbore: {= rhspin:npdName(?wellBore) }</h1> 5 <h1>Summary report Wellbore: {= rhspin:npdName(?wellBore) }</h1>
6 <div>End time: {= ui:label(spl:object(?activity, ep-activity:finishedAt)) }</div> 6 <div>End time: {= ui:label(spl:object(?activity, ep-activity:finishedAt)) }</div>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
9 <td class="ddrSummaryLeft"> 9 <td class="ddrSummaryLeft">
10 <rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" /> 10 <rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" />
11 <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= rhspin:npdName(?wellBore) }" /> 11 <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= rhspin:npdName(?wellBore) }" />
12 - <rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" /> 12 + <rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?report, rdf:type)) }" />
13 <rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" /> 13 <rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" />
14 <rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" /> 14 <rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" />
15 <rhswp:NameValuePair arg:name="Spud date:" arg:value="{ spl:object(?this, ???) }" /> 15 <rhswp:NameValuePair arg:name="Spud date:" arg:value="{ spl:object(?this, ???) }" />
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
19 <rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{ spl:object(?this, ???) }" /> 19 <rhswp:NameValuePair arg:name="Fixed rig:" arg:value="{ spl:object(?this, ???) }" />
20 <rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:mdKickoff) }" /> 20 <rhswp:NameValuePair arg:name="Depth at Kick Off mMD:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:mdKickoff) }" />
21 <rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:mdPlugTop) }" /> 21 <rhswp:NameValuePair arg:name="Plug Back Depth mMD:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:mdPlugTop) }" />
22 - <rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{= spl:object(?activity, ddr:ropCurrent) }" /> 22 + <rhswp:NameValuePair arg:name="Penetration Rate m/h:" arg:value="{= rhspin:dtypeValue(?activity, ddr:ropCurrent) }" />
23 <rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{# SELECT ui:label(?pressureTestType) WHERE { ?activity ep-core:hasPart/rdf:type ?pressureTestType . ?pressureTestType a ep-activity:PressureTestType} }" /> 23 <rhswp:NameValuePair arg:name="Pressure Test Type:" arg:value="{# SELECT ui:label(?pressureTestType) WHERE { ?activity ep-core:hasPart/rdf:type ?pressureTestType . ?pressureTestType a ep-activity:PressureTestType} }" />
24 <rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdStrengthForm) }" /> 24 <rhswp:NameValuePair arg:name="Depth At Formation Strength mMD:" arg:value="{= rhspin:dtypeValue(?activity, ddr:mdStrengthForm) }" />
25 <rhswp:NameValuePair arg:name="Dia Last Casing In:" arg:value="{ spl:object(?this, ???) }" /> 25 <rhswp:NameValuePair arg:name="Dia Last Casing In:" arg:value="{ spl:object(?this, ???) }" />
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 <td class="ddrSummaryRight"> 28 <td class="ddrSummaryRight">
29 <rhswp:NameValuePair arg:name="Period:" arg:value="{= fn:concat(ui:label(spl:object(?activity, ep-activity:startedAt)), ' - ', ui:label(spl:object(?activity, ep-activity:finishedAt))) }" /> 29 <rhswp:NameValuePair arg:name="Period:" arg:value="{= fn:concat(ui:label(spl:object(?activity, ep-activity:startedAt)), ' - ', ui:label(spl:object(?activity, ep-activity:finishedAt))) }" />
30 <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{= rhspin:npdId(?wellBore) }" /> 30 <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{= rhspin:npdId(?wellBore) }" />
31 - <rhswp:NameValuePair arg:name="Created date:" arg:value="{= ui:label(spl:object(?this, ep-activity:createdAt)) }" /> 31 + <rhswp:NameValuePair arg:name="Created date:" arg:value="{= ui:label(spl:object(?report, ep-activity:createdAt)) }" />
32 <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{ spl:object(?this, ???) }" /> 32 <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{ spl:object(?this, ???) }" />
33 <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{ spl:object(?this, ???) }" /> 33 <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{ spl:object(?this, ???) }" />
34 <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{ spl:object(?this, ???) }" /> 34 <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{ spl:object(?this, ???) }" />
...@@ -45,5 +45,8 @@ ...@@ -45,5 +45,8 @@
45 <rhswp:NameValuePair arg:name="Depth At Last Casing mMD:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:mdCsgLast) }" /> 45 <rhswp:NameValuePair arg:name="Depth At Last Casing mMD:" arg:value="{= rhspin:dtypeValue(?onWellBore, ddr:mdCsgLast) }" />
46 </td> 46 </td>
47 </tr></table> 47 </tr></table>
48 +
49 + <ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:Operations" />
50 +
48 </ui:group> 51 </ui:group>
49 </ui:group> 52 </ui:group>
......
1 -# Saved by TopBraid on Thu Aug 11 15:40:02 BST 2011 1 +# baseURI: http://www.reportinghub.no/swp/ddr
2 -# baseURI: http://www.reportinghub.no/swp/ddr 2 +# imports: http://uispin.org/tui
3 -# imports: http://www.reportinghub.no/ep/schema/1.0/organization 3 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/report 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 5 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
6 -# imports: http://www.reportinghub.no/ep/schema/1.0/well 6 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
7 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose 7 +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment 8 +# imports: http://www.reportinghub.no/ep/schema/1.0/facility
9 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity 9 +# imports: http://www.reportinghub.no/ep/schema/1.0/organization
10 -# imports: http://www.reportinghub.no/ep/schema/1.0/facility 10 +# imports: http://www.reportinghub.no/ep/schema/1.0/report
11 -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr 11 +# imports: http://www.reportinghub.no/ep/schema/1.0/well
12 -# imports: http://uispin.org/tui 12 +# imports: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0
13 - 13 +# imports: http://www.reportinghub.no/spin/rh
14 -@prefix : <http://www.reportinghub.no/swp/ddr#> . 14 +
15 -@prefix let: <http://uispin.org/let#> . 15 +@prefix arg: <http://spinrdf.org/arg#> .
16 -@prefix letrs: <http://uispin.org/letrs#> . 16 +@prefix ddrswp: <http://www.reportinghub.no/swp/ddr#> .
17 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 17 +@prefix html: <http://uispin.org/html#> .
18 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 18 +@prefix let: <http://uispin.org/let#> .
19 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 19 +@prefix letrs: <http://uispin.org/letrs#> .
20 -@prefix sp: <http://spinrdf.org/sp#> . 20 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
21 -@prefix spin: <http://spinrdf.org/spin#> . 21 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
22 -@prefix spl: <http://spinrdf.org/spl#> . 22 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
23 -@prefix ui: <http://uispin.org/ui#> . 23 +@prefix sp: <http://spinrdf.org/sp#> .
24 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 24 +@prefix spin: <http://spinrdf.org/spin#> .
25 - 25 +@prefix spl: <http://spinrdf.org/spl#> .
26 -<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> 26 +@prefix ui: <http://uispin.org/ui#> .
27 - ui:instanceView <http://www.reportinghub.no/swp/DailyDrillingReport.uispin.html> . 27 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
28 - 28 +
29 -<http://www.reportinghub.no/swp/ddr> 29 +arg:report
30 - rdf:type owl:Ontology ; 30 + rdf:type rdf:Property ;
31 - owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <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/facility> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ; 31 + rdfs:label "report"^^xsd:string ;
32 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 32 + rdfs:subPropertyOf sp:arg .
33 +
34 +arg:template
35 + rdf:type rdf:Property ;
36 + rdfs:label "template"^^xsd:string ;
37 + rdfs:subPropertyOf sp:arg .
38 +
39 +<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
40 + ui:instanceView
41 + [ rdf:type ddrswp:DailyDrillingReportView ;
42 + arg:report spin:_this
43 + ] .
44 +
45 +<http://www.reportinghub.no/swp/ddr>
46 + rdf:type owl:Ontology ;
47 + owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <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/facility> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/ddr-tables-v1.0> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/spin/rh> ;
48 + owl:versionInfo "0.1.0"^^xsd:string .
49 +
50 +ddrswp:DailyDrillingReportView
51 + rdf:type ui:NodeClass ;
52 + rdfs:label "Daily drilling report view"^^xsd:string ;
53 + rdfs:subClassOf ui:Element ;
54 + spin:constraint
55 + [ rdf:type spl:Argument ;
56 + rdfs:comment "The report to display."^^xsd:string ;
57 + spl:predicate arg:report ;
58 + spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
59 + ] ;
60 + ui:headIncludes
61 + [ rdf:type html:Link ;
62 + html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
63 + html:rel "stylesheet"^^xsd:string ;
64 + html:type "text/css"^^xsd:string
65 + ] ;
66 + ui:prototype <http://www.reportinghub.no/swp/DailyDrillingReport.uispin.html> .
67 +
68 +ddrswp:Table
69 + rdf:type ui:NodeClass ;
70 + rdfs:comment "An HTML table displaying the results of a given SPIN template for a given DDR. The template should also provide rhspin:tableHeaders."^^xsd:string ;
71 + rdfs:label "Table"^^xsd:string ;
72 + rdfs:subClassOf ui:Element ;
73 + spin:constraint
74 + [ rdf:type spl:Argument ;
75 + rdfs:comment "The report that serves as root of the template."^^xsd:string ;
76 + spl:optional "true"^^xsd:boolean ;
77 + spl:predicate arg:report ;
78 + spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
79 + ] ;
80 + spin:constraint
81 + [ rdf:type spl:Argument ;
82 + rdfs:comment "The SPIN Template to execute."^^xsd:string ;
83 + spl:predicate arg:template ;
84 + spl:valueType spin:Template
85 + ] ;
86 + ui:prototype <http://www.reportinghub.no/swp/DDRTable.uispin.html> .
......