Showing
10 changed files
with
311 additions
and
78 deletions
1 | -# Saved by TopBraid on Wed Aug 10 10:37:51 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 13:54:55 BST 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/core | 2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/core |
3 | # imports: http://www.linkedmodel.org/1.2/schema/vaem | 3 | # imports: http://www.linkedmodel.org/1.2/schema/vaem |
4 | 4 | ||
... | @@ -25,7 +25,7 @@ ep-core:PhysicalThing | ... | @@ -25,7 +25,7 @@ ep-core:PhysicalThing |
25 | rdfs:subClassOf owl:Thing . | 25 | rdfs:subClassOf owl:Thing . |
26 | 26 | ||
27 | ep-core:apiName | 27 | ep-core:apiName |
28 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 28 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
29 | rdfs:label "API name"^^xsd:string ; | 29 | rdfs:label "API name"^^xsd:string ; |
30 | rdfs:range xsd:string ; | 30 | rdfs:range xsd:string ; |
31 | rdfs:subPropertyOf ep-core:name . | 31 | rdfs:subPropertyOf ep-core:name . |
... | @@ -35,11 +35,11 @@ ep-core:basisFor | ... | @@ -35,11 +35,11 @@ ep-core:basisFor |
35 | rdfs:label "basis for"^^xsd:string . | 35 | rdfs:label "basis for"^^xsd:string . |
36 | 36 | ||
37 | ep-core:derivedFrom | 37 | ep-core:derivedFrom |
38 | - rdf:type owl:ObjectProperty , owl:TransitiveProperty ; | 38 | + rdf:type owl:TransitiveProperty , owl:ObjectProperty ; |
39 | rdfs:label "derived from"^^xsd:string . | 39 | rdfs:label "derived from"^^xsd:string . |
40 | 40 | ||
41 | ep-core:dtiName | 41 | ep-core:dtiName |
42 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | 42 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; |
43 | rdfs:label "DTI name"^^xsd:string ; | 43 | rdfs:label "DTI name"^^xsd:string ; |
44 | rdfs:range xsd:string ; | 44 | rdfs:range xsd:string ; |
45 | rdfs:subPropertyOf ep-core:name . | 45 | rdfs:subPropertyOf ep-core:name . |
... | @@ -60,7 +60,7 @@ ep-core:hasTemporalPart | ... | @@ -60,7 +60,7 @@ ep-core:hasTemporalPart |
60 | owl:inverseOf ep-core:partOf . | 60 | owl:inverseOf ep-core:partOf . |
61 | 61 | ||
62 | ep-core:localFieldName | 62 | ep-core:localFieldName |
63 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 63 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
64 | rdfs:label "local field name"^^xsd:string ; | 64 | rdfs:label "local field name"^^xsd:string ; |
65 | rdfs:range xsd:string ; | 65 | rdfs:range xsd:string ; |
66 | rdfs:subPropertyOf ep-core:name . | 66 | rdfs:subPropertyOf ep-core:name . |
... | @@ -71,13 +71,19 @@ ep-core:name | ... | @@ -71,13 +71,19 @@ ep-core:name |
71 | rdfs:range xsd:string . | 71 | rdfs:range xsd:string . |
72 | 72 | ||
73 | ep-core:npdCode | 73 | ep-core:npdCode |
74 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 74 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
75 | rdfs:label "NPD code"^^xsd:string ; | 75 | rdfs:label "NPD code"^^xsd:string ; |
76 | rdfs:range xsd:string ; | 76 | rdfs:range xsd:string ; |
77 | rdfs:subPropertyOf ep-core:name . | 77 | rdfs:subPropertyOf ep-core:name . |
78 | 78 | ||
79 | -ep-core:npdNumber | 79 | +ep-core:npdName |
80 | rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | 80 | rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
81 | + rdfs:label "NPD name"^^xsd:string ; | ||
82 | + rdfs:range xsd:string ; | ||
83 | + rdfs:subPropertyOf ep-core:name . | ||
84 | + | ||
85 | +ep-core:npdNumber | ||
86 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
81 | rdfs:label "NPD number"^^xsd:string ; | 87 | rdfs:label "NPD number"^^xsd:string ; |
82 | rdfs:range xsd:string ; | 88 | rdfs:range xsd:string ; |
83 | rdfs:subPropertyOf ep-core:name . | 89 | rdfs:subPropertyOf ep-core:name . |
... | @@ -90,7 +96,7 @@ ep-core:partOf | ... | @@ -90,7 +96,7 @@ ep-core:partOf |
90 | owl:inverseOf ep-core:hasPart . | 96 | owl:inverseOf ep-core:hasPart . |
91 | 97 | ||
92 | ep-core:prospectName | 98 | ep-core:prospectName |
93 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 99 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
94 | rdfs:label "prospect name"^^xsd:string ; | 100 | rdfs:label "prospect name"^^xsd:string ; |
95 | rdfs:range xsd:string ; | 101 | rdfs:range xsd:string ; |
96 | rdfs:subPropertyOf ep-core:name . | 102 | rdfs:subPropertyOf ep-core:name . | ... | ... |
1 | -# baseURI: http://www.reportinghub.no/ep/schema/1.0/facility | 1 | +# Saved by TopBraid on Wed Aug 10 13:32:44 BST 2011 |
2 | -# imports: http://purl.org/dc/elements/1.1/ | 2 | +# baseURI: http://www.reportinghub.no/ep/schema/1.0/facility |
3 | -# imports: http://purl.org/dc/terms/ | 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core |
4 | -# imports: http://spinrdf.org/spin | 4 | +# imports: http://purl.org/dc/elements/1.1/ |
5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 5 | +# imports: http://spinrdf.org/spin |
6 | - | 6 | +# imports: http://purl.org/dc/terms/ |
7 | -@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . | 7 | + |
8 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 8 | +@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . |
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 sp: <http://spinrdf.org/sp#> . | 11 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
12 | -@prefix spin: <http://spinrdf.org/spin#> . | 12 | +@prefix sp: <http://spinrdf.org/sp#> . |
13 | -@prefix spl: <http://spinrdf.org/spl#> . | 13 | +@prefix spin: <http://spinrdf.org/spin#> . |
14 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 14 | +@prefix spl: <http://spinrdf.org/spl#> . |
15 | - | 15 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
16 | -<http://www.reportinghub.no/ep/schema/1.0/facility> | 16 | + |
17 | - rdf:type owl:Ontology ; | 17 | +<http://www.reportinghub.no/ep/schema/1.0/facility> |
18 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://purl.org/dc/terms/> , <http://purl.org/dc/elements/1.1/> ; | 18 | + rdf:type owl:Ontology ; |
19 | - owl:versionInfo "0.1.0"^^xsd:string . | 19 | + owl:imports <http://purl.org/dc/elements/1.1/> , <http://purl.org/dc/terms/> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> ; |
20 | - | 20 | + owl:versionInfo "0.1.0"^^xsd:string . |
21 | -ep-fac:Facility | 21 | + |
22 | - rdf:type owl:Class ; | 22 | +ep-fac:AllOrPartOfTheLifeOfARig |
23 | - rdfs:label "facility"^^xsd:string ; | 23 | + rdf:type owl:Class ; |
24 | - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . | 24 | + rdfs:label "all or part of the life of a rig"^^xsd:string ; |
25 | - | 25 | + rdfs:subClassOf ep-fac:Facility . |
26 | -ep-fac:FixedFacility | 26 | + |
27 | - rdf:type owl:DeprecatedClass ; | 27 | +ep-fac:Facility |
28 | - rdfs:subClassOf ep-fac:Facility . | 28 | + rdf:type owl:Class ; |
29 | - | 29 | + rdfs:label "facility"^^xsd:string ; |
30 | -ep-fac:MoveableFacility | 30 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . |
31 | - rdf:type owl:Class ; | 31 | + |
32 | - rdfs:subClassOf ep-fac:Facility . | 32 | +ep-fac:FixedFacility |
33 | - | 33 | + rdf:type owl:DeprecatedClass ; |
34 | -ep-fac:Rig | 34 | + rdfs:subClassOf ep-fac:Facility . |
35 | - rdf:type owl:Class ; | 35 | + |
36 | - rdfs:subClassOf ep-fac:Facility . | 36 | +ep-fac:MoveableFacility |
37 | - | 37 | + rdf:type owl:Class ; |
38 | -ep-fac:SubSurfaceFixedFacility | 38 | + rdfs:subClassOf ep-fac:Facility . |
39 | - rdf:type owl:Class ; | 39 | + |
40 | - rdfs:subClassOf ep-fac:FixedFacility . | 40 | +ep-fac:Rig |
41 | - | 41 | + rdf:type owl:Class ; |
42 | -ep-fac:SurfaceFixedFacility | 42 | + rdfs:label "rig"^^xsd:string ; |
43 | - rdf:type owl:Class ; | 43 | + rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig . |
44 | - rdfs:subClassOf ep-fac:FixedFacility . | 44 | + |
45 | +ep-fac:SubSurfaceFixedFacility | ||
46 | + rdf:type owl:Class ; | ||
47 | + rdfs:subClassOf ep-fac:FixedFacility . | ||
48 | + | ||
49 | +ep-fac:SurfaceFixedFacility | ||
50 | + rdf:type owl:Class ; | ||
51 | + rdfs:subClassOf ep-fac:FixedFacility . | ||
52 | + | ||
53 | +ep-fac:TemporalPartOfARig | ||
54 | + rdf:type owl:Class ; | ||
55 | + rdfs:label "temporal part of a rig"^^xsd:string ; | ||
56 | + rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig . | ... | ... |
This diff is collapsed. Click to expand it.
1 | -# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 13:36:32 BST 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
1 | -# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization |
3 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity | 3 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity |
4 | # imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias | 4 | # imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias |
5 | +# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo | ||
5 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport | 6 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport |
6 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo | 7 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo |
7 | 8 | ||
... | @@ -15,11 +16,12 @@ | ... | @@ -15,11 +16,12 @@ |
15 | @prefix spin: <http://spinrdf.org/spin#> . | 16 | @prefix spin: <http://spinrdf.org/spin#> . |
16 | @prefix spl: <http://spinrdf.org/spl#> . | 17 | @prefix spl: <http://spinrdf.org/spl#> . |
17 | @prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> . | 18 | @prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> . |
19 | +@prefix wellboreInfo: <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . | ||
18 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 20 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
19 | 21 | ||
20 | <http://www.reportinghub.no/ep/transform/1.1/normalization> | 22 | <http://www.reportinghub.no/ep/transform/1.1/normalization> |
21 | rdf:type owl:Ontology ; | 23 | rdf:type owl:Ontology ; |
22 | - owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ; | 24 | + owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> ; |
23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 25 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
24 | 26 | ||
25 | owl:Thing | 27 | owl:Thing | ... | ... |
1 | -# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
This diff is collapsed. Click to expand it.
1 | -# baseURI: null | 1 | +# Saved by TopBraid on Wed Aug 10 12:50:05 BST 2011 |
2 | - | 2 | +# baseURI: null |
3 | -@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 3 | + |
4 | -@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | 4 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . |
5 | -@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | 5 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . |
6 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 6 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . |
7 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 7 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
8 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 8 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
9 | -@prefix visual: <http://topbraid.org/visual#> . | 9 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
10 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 10 | +@prefix visual: <http://topbraid.org/visual#> . |
11 | - | 11 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
12 | -[] rdf:type inference:Configuration ; | 12 | + |
13 | - composite:child | 13 | +[] rdf:type inference:Configuration ; |
14 | - [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | 14 | + composite:child |
15 | - <http://spinrdf.org/spin#topSPINOptions> | 15 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; |
16 | - "singlePass" ; | 16 | + <http://spinrdf.org/spin#topSPINOptions> |
17 | - composite:index "0"^^xsd:int | 17 | + "singlePass" ; |
18 | - ] ; | 18 | + composite:index "0"^^xsd:int |
19 | - inference:completeMode | 19 | + ] ; |
20 | - "true"^^xsd:boolean . | 20 | + inference:completeMode |
21 | + "true"^^xsd:boolean . | ... | ... |
1 | +# Saved by TopBraid on Wed Aug 10 14:05:00 BST 2011 | ||
2 | +# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo | ||
3 | +# imports: http://www.reportinghub.no/ep/spin/1.1/lib | ||
4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
5 | +# imports: http://spinrdf.org/spin | ||
6 | + | ||
7 | +@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . | ||
8 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
9 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
13 | +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . | ||
14 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
15 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
16 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
17 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
18 | + | ||
19 | +<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport> | ||
20 | + spin:rule | ||
21 | + [ rdf:type sp:Construct ; | ||
22 | + rdfs:comment "STEP 161 Set name for Rig"^^xsd:string ; | ||
23 | + sp:templates ([ sp:object _:b1 ; | ||
24 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#npdName> ; | ||
25 | + sp:subject _:b2 | ||
26 | + ]) ; | ||
27 | + sp:where ([ sp:object _:b3 ; | ||
28 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; | ||
29 | + sp:subject spin:_this | ||
30 | + ] [ sp:object _:b4 ; | ||
31 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
32 | + sp:subject spin:_this | ||
33 | + ] [ sp:object _:b5 ; | ||
34 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreInfo> ; | ||
35 | + sp:subject spin:_this | ||
36 | + ] [ sp:object _:b6 ; | ||
37 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#rigAlias> ; | ||
38 | + sp:subject _:b5 | ||
39 | + ] [ sp:object _:b1 ; | ||
40 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ; | ||
41 | + sp:subject _:b6 | ||
42 | + ] [ sp:object "NPD Name" ; | ||
43 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#namingSystem> ; | ||
44 | + sp:subject _:b6 | ||
45 | + ] [ sp:object _:b7 ; | ||
46 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ; | ||
47 | + sp:subject _:b8 | ||
48 | + ] [ sp:object _:b2 ; | ||
49 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
50 | + sp:subject _:b7 | ||
51 | + ] [ rdf:type sp:Bind ; | ||
52 | + sp:expression | ||
53 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
54 | + sp:arg1 _:b3 | ||
55 | + ] ; | ||
56 | + sp:variable _:b9 | ||
57 | + ] [ rdf:type sp:Bind ; | ||
58 | + sp:expression | ||
59 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
60 | + sp:arg1 _:b9 ; | ||
61 | + sp:arg2 _:b4 | ||
62 | + ] ; | ||
63 | + sp:variable _:b8 | ||
64 | + ]) | ||
65 | + ] ; | ||
66 | + spin:rule | ||
67 | + [ rdf:type sp:Construct ; | ||
68 | + rdfs:comment "STEP 160 Set rig for drilling activity"^^xsd:string ; | ||
69 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig> ; | ||
70 | + sp:predicate rdf:type ; | ||
71 | + sp:subject _:b10 | ||
72 | + ] [ sp:object _:b10 ; | ||
73 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ; | ||
74 | + sp:subject _:b11 | ||
75 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Rig> ; | ||
76 | + sp:predicate rdf:type ; | ||
77 | + sp:subject _:b12 | ||
78 | + ] [ sp:object _:b13 ; | ||
79 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#npdCode> ; | ||
80 | + sp:subject _:b12 | ||
81 | + ] [ sp:object _:b12 ; | ||
82 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
83 | + sp:subject _:b10 | ||
84 | + ]) ; | ||
85 | + sp:where ([ sp:object _:b14 ; | ||
86 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; | ||
87 | + sp:subject spin:_this | ||
88 | + ] [ sp:object _:b15 ; | ||
89 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
90 | + sp:subject spin:_this | ||
91 | + ] [ sp:object _:b16 ; | ||
92 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
93 | + sp:subject spin:_this | ||
94 | + ] [ sp:object _:b17 ; | ||
95 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreInfo> ; | ||
96 | + sp:subject spin:_this | ||
97 | + ] [ sp:object _:b18 ; | ||
98 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#rigAlias> ; | ||
99 | + sp:subject _:b17 | ||
100 | + ] [ sp:object "NPD Code" ; | ||
101 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#namingSystem> ; | ||
102 | + sp:subject _:b18 | ||
103 | + ] [ sp:object _:b13 ; | ||
104 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ; | ||
105 | + sp:subject _:b18 | ||
106 | + ] [ rdf:type sp:Bind ; | ||
107 | + sp:expression | ||
108 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
109 | + sp:arg1 _:b14 | ||
110 | + ] ; | ||
111 | + sp:variable _:b19 | ||
112 | + ] [ rdf:type sp:Bind ; | ||
113 | + sp:expression | ||
114 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
115 | + sp:arg1 _:b13 | ||
116 | + ] ; | ||
117 | + sp:variable _:b20 | ||
118 | + ] [ rdf:type sp:Bind ; | ||
119 | + sp:expression | ||
120 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
121 | + sp:arg1 _:b19 ; | ||
122 | + sp:arg2 _:b15 | ||
123 | + ] ; | ||
124 | + sp:variable _:b11 | ||
125 | + ] [ rdf:type sp:Bind ; | ||
126 | + sp:expression | ||
127 | + [ rdf:type ep-spin-lib:buildRigURI ; | ||
128 | + sp:arg1 _:b20 | ||
129 | + ] ; | ||
130 | + sp:variable _:b12 | ||
131 | + ] [ rdf:type sp:Bind ; | ||
132 | + sp:expression | ||
133 | + [ rdf:type ep-spin-lib:buildTemporalPartOfARigURI ; | ||
134 | + sp:arg1 _:b20 ; | ||
135 | + sp:arg2 _:b15 ; | ||
136 | + sp:arg3 _:b16 | ||
137 | + ] ; | ||
138 | + sp:variable _:b10 | ||
139 | + ]) | ||
140 | + ] . | ||
141 | + | ||
142 | +<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> | ||
143 | + rdf:type owl:Ontology ; | ||
144 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; | ||
145 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
146 | + | ||
147 | +[] rdf:type smf:regex . | ||
148 | + | ||
149 | +[] rdf:type smf:trim . | ||
150 | + | ||
151 | +[] rdf:type fn:starts-with . | ||
152 | + | ||
153 | +[] rdf:type sp:Modify . | ||
154 | + | ||
155 | +_:b14 | ||
156 | + sp:varName "nameWellBore"^^xsd:string . | ||
157 | + | ||
158 | +_:b15 | ||
159 | + sp:varName "dTimStart"^^xsd:string . | ||
160 | + | ||
161 | +_:b16 | ||
162 | + sp:varName "dTimEnd"^^xsd:string . | ||
163 | + | ||
164 | +_:b17 | ||
165 | + sp:varName "wellboreInfo"^^xsd:string . | ||
166 | + | ||
167 | +_:b18 | ||
168 | + sp:varName "rigAlias"^^xsd:string . | ||
169 | + | ||
170 | +_:b13 | ||
171 | + sp:varName "nameRig"^^xsd:string . | ||
172 | + | ||
173 | +_:b19 | ||
174 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
175 | + | ||
176 | +_:b20 | ||
177 | + sp:varName "normalizedRigName"^^xsd:string . | ||
178 | + | ||
179 | +_:b11 | ||
180 | + sp:varName "dailyDrillingActivity"^^xsd:string . | ||
181 | + | ||
182 | +_:b12 | ||
183 | + sp:varName "rig"^^xsd:string . | ||
184 | + | ||
185 | +_:b10 | ||
186 | + sp:varName "temporalPartOfARig"^^xsd:string . | ||
187 | + | ||
188 | +_:b3 sp:varName "nameWellBore"^^xsd:string . | ||
189 | + | ||
190 | +_:b4 sp:varName "dTimStart"^^xsd:string . | ||
191 | + | ||
192 | +_:b5 sp:varName "wellboreInfo"^^xsd:string . | ||
193 | + | ||
194 | +_:b6 sp:varName "rigAlias"^^xsd:string . | ||
195 | + | ||
196 | +_:b1 sp:varName "name"^^xsd:string . | ||
197 | + | ||
198 | +_:b8 sp:varName "dailyDrillingActivity"^^xsd:string . | ||
199 | + | ||
200 | +_:b7 sp:varName "temporalPartOfARig"^^xsd:string . | ||
201 | + | ||
202 | +_:b2 sp:varName "rig"^^xsd:string . | ||
203 | + | ||
204 | +_:b9 sp:varName "normalizedWellBoreName"^^xsd:string . | ||
205 | + | ||
206 | +([] [] [ rdf:type sp:Filter | ||
207 | + ] [ rdf:type sp:Bind | ||
208 | + ]) . | ||
209 | + | ||
210 | +([]) . | ||
211 | + | ||
212 | +([]) . |
... | @@ -3,13 +3,13 @@ | ... | @@ -3,13 +3,13 @@ |
3 | <link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" /> | 3 | <link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" /> |
4 | </head> | 4 | </head> |
5 | <body> | 5 | <body> |
6 | - <h1>Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label ?wellBoreName } }</h1> | 6 | + <h1>Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode ?wellBoreName } }</h1> |
7 | <div>End time: {= ui:label(spl:object(?reportOn, ep-activity:finishedAt)) }</div> | 7 | <div>End time: {= ui:label(spl:object(?reportOn, ep-activity:finishedAt)) }</div> |
8 | <hr /> | 8 | <hr /> |
9 | <table><tr> | 9 | <table><tr> |
10 | <td class="ddrSummaryLeft"> | 10 | <td class="ddrSummaryLeft"> |
11 | <rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" /> | 11 | <rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" /> |
12 | - <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label ?wellBoreName } }" /> | 12 | + <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode ?wellBoreName } }" /> |
13 | <rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" /> | 13 | <rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" /> |
14 | <rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" /> | 14 | <rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" /> |
15 | <rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" /> | 15 | <rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" /> | ... | ... |
-
Please register or login to post a comment