Initial set up of DPR2 as DailyProductionReport using DPR-tables
Showing
4 changed files
with
29 additions
and
18 deletions
This diff is collapsed. Click to expand it.
| 1 | -<ui:group | 1 | +<ui:group |
| 2 | - let:report="{# SELECT ?report WHERE {?report a ep-report:DailyProductionReport }}" | 2 | +let:report="{# SELECT ?report WHERE { ?report a ep-report:ProductionReport . } }" |
| 3 | - let:mainAct="{# SELECT ?mainAct WHERE {?report a ep-report:DailyProductionReport . ?report ep-report:reportOn ?mainAct}}" | 3 | + |
| 4 | - let:mainFac="{# SELECT ?mainFac WHERE {?report a ep-report:DailyProductionReport . ?report ep-report:reportOn ?mainAct . ?mainAct ep-prodact:involvement ?epMainFacTempPart . ?mainFac ep-core:hasTemporalPart ?epMainFacTempPart}}" | 4 | +let:reportedFieldName="{# SELECT ?reportedFieldName |
| 5 | - let:opCo="{# SELECT ?opCo WHERE {?report a ep-prodreport:DailyProductionReport . ?report ep-report:reportOn ?mainAct . ?mainFac ep-fac:facilityOperator ?opCo}}" | 5 | +WHERE { |
| 6 | - > | 6 | + ?report a ep-report:ProductionReport . |
| 7 | - <center> | 7 | + |
| 8 | - <h1>{# SELECT ?mfName WHERE {?mainFac rdfs:label ?mfName}}</h1> | 8 | + ?report ep-report:reportOn ?partOfFacility . |
| 9 | - <h2>{# SELECT ?ocName WHERE {?opCo rdfs:label ?ocName}}</h2> | 9 | + ?partOfFacility ep-core:temporalPartOf ?reportedField . |
| 10 | - <h2>{# SELECT ?docName WHERE {?report rdfs:label ?docName}}</h2> | 10 | + ?reportedField npd:name ?reportedFieldName . |
| 11 | - <h2>Report date: {# SELECT ?docDate WHERE {?report ep-report:dateCoveredByReport ?docDate}}</h2> | 11 | +}}" |
| 12 | - <h2>Issue date: {# SELECT ?createDate WHERE {?report ep-report:createdAt ?createDate}}</h2> | 12 | + |
| 13 | - </center> | 13 | +> |
| 14 | - <hr /> | 14 | + |
| 15 | +<h1>Daily Production Report : {= ?reportedFieldName } Field {# SELECT ?day WHERE { ?partOfFacility ep-activity:existsThroughout ?day . } }</h1> | ||
| 16 | +<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2> | ||
| 17 | +<h2>Submitted by : {# SELECT ?submittingFieldName WHERE | ||
| 18 | +{ | ||
| 19 | + | ||
| 20 | +?report a ep-report:ProductionReport . | ||
| 21 | +?report ep-report:reportSubmittedFrom ?submittingFieldState . | ||
| 22 | +?submittingFieldState ep-core:temporalPartOf ?submittingField . | ||
| 23 | +?submittingField npd:name ?submittingFieldName . | ||
| 24 | + | ||
| 25 | +} }</h2> | ||
| 15 | 26 | ||
| 16 | <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInformation" /> | 27 | <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInformation" /> |
| 28 | + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:PersonnelInformation" /> | ||
| 17 | 29 | ||
| 18 | </ui:group> | 30 | </ui:group> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -28,7 +28,7 @@ arg:template | ... | @@ -28,7 +28,7 @@ arg:template |
| 28 | rdfs:label "template"^^xsd:string ; | 28 | rdfs:label "template"^^xsd:string ; |
| 29 | rdfs:subPropertyOf sp:arg . | 29 | rdfs:subPropertyOf sp:arg . |
| 30 | 30 | ||
| 31 | -<http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> | 31 | +<http://www.reportinghub.no/ep/schema/report#ProductionReport> |
| 32 | ui:instanceView | 32 | ui:instanceView |
| 33 | [ rdf:type dprswp:DailyProductionReportView ; | 33 | [ rdf:type dprswp:DailyProductionReportView ; |
| 34 | arg:report spin:_this | 34 | arg:report spin:_this |
| ... | @@ -47,7 +47,7 @@ dprswp:DailyProductionReportView | ... | @@ -47,7 +47,7 @@ dprswp:DailyProductionReportView |
| 47 | [ rdf:type spl:Argument ; | 47 | [ rdf:type spl:Argument ; |
| 48 | rdfs:comment "The report to display."^^xsd:string ; | 48 | rdfs:comment "The report to display."^^xsd:string ; |
| 49 | spl:predicate arg:report ; | 49 | spl:predicate arg:report ; |
| 50 | - spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> | 50 | + spl:valueType <http://www.reportinghub.no/ep/schema/report#ProductionReport> |
| 51 | ] ; | 51 | ] ; |
| 52 | ui:headIncludes | 52 | ui:headIncludes |
| 53 | [ rdf:type html:Link ; | 53 | [ rdf:type html:Link ; |
| ... | @@ -67,7 +67,7 @@ dprswp:Table | ... | @@ -67,7 +67,7 @@ dprswp:Table |
| 67 | rdfs:comment "The report that serves as root of the template."^^xsd:string ; | 67 | rdfs:comment "The report that serves as root of the template."^^xsd:string ; |
| 68 | spl:optional "true"^^xsd:boolean ; | 68 | spl:optional "true"^^xsd:boolean ; |
| 69 | spl:predicate arg:report ; | 69 | spl:predicate arg:report ; |
| 70 | - spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> | 70 | + spl:valueType <http://www.reportinghub.no/ep/schema/report#ProductionReport> |
| 71 | ] ; | 71 | ] ; |
| 72 | spin:constraint | 72 | spin:constraint |
| 73 | [ rdf:type spl:Argument ; | 73 | [ rdf:type spl:Argument ; | ... | ... |
-
Please register or login to post a comment