David Leal

Improvement to approval processing

1 +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.epim.no/schemas/mprml/1
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-activity
5 +# imports: http://www.reportinghub.no/ep/schema/1.0/report
6 +# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
7 +
8 +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1#> .
9 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
10 +@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 sp: <http://spinrdf.org/sp#> .
13 +@prefix spin: <http://spinrdf.org/spin#> .
14 +@prefix spl: <http://spinrdf.org/spl#> .
15 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
16 +
17 +<http://www.epim.no/schemas/mprml/1#Cs_businessAssociate>
18 + spin:rule
19 + [ rdf:type sp:Construct ;
20 + rdfs:comment "STEP 90200 Set the approver"^^xsd:string ;
21 + sp:templates ([ sp:object _:b1 ;
22 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#approver> ;
23 + sp:subject
24 + [ sp:varName "approveReport"^^xsd:string
25 + ]
26 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonOrOrganization> ;
27 + sp:predicate rdf:type ;
28 + sp:subject _:b1
29 + ] [ sp:object
30 + [ sp:varName "approver"^^xsd:string
31 + ] ;
32 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
33 + sp:subject _:b1
34 + ]) ;
35 + sp:where ([ sp:object spin:_this ;
36 + sp:predicate <http://www.epim.no/schemas/mprml/1#approverRef> ;
37 + sp:subject
38 + [ sp:varName "target"^^xsd:string
39 + ]
40 + ] [ sp:object
41 + [ sp:varName "target"^^xsd:string
42 + ] ;
43 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
44 + sp:subject
45 + [ sp:varName "report"^^xsd:string
46 + ]
47 + ] [ sp:object
48 + [ sp:varName "report"^^xsd:string
49 + ] ;
50 + sp:predicate <http://www.reportinghub.no/ep/schema/report#approvedReport> ;
51 + sp:subject
52 + [ sp:varName "approveReport"^^xsd:string
53 + ]
54 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#ApproveAReport> ;
55 + sp:predicate rdf:type ;
56 + sp:subject
57 + [ sp:varName "approveReport"^^xsd:string
58 + ]
59 + ] [ sp:object spin:_this ;
60 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
61 + sp:subject
62 + [ sp:varName "approver"^^xsd:string
63 + ]
64 + ])
65 + ] .
66 +
67 +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1>
68 + rdf:type owl:Ontology ;
69 + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
70 + owl:versionInfo "Created with TopBraid Composer"^^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 + ] .
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
3 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults 3 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults
4 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults 4 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults
5 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest 5 # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest
6 +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1
6 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1 7 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1
7 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1 8 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1
8 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1 9 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1
...@@ -20,6 +21,7 @@ ...@@ -20,6 +21,7 @@
20 # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema 21 # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
21 22
22 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . 23 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
24 +@prefix TRANSFORM_mpr-approval-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1#> .
23 @prefix TRANSFORM_mpr-comment-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> . 25 @prefix TRANSFORM_mpr-comment-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> .
24 @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . 26 @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> .
25 @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . 27 @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> .
...@@ -48,5 +50,5 @@ ...@@ -48,5 +50,5 @@
48 50
49 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> 51 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
50 rdf:type owl:Ontology ; 52 rdf:type owl:Ontology ;
51 - owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-weather-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ; 53 + owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-weather-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ;
52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 54 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......