Merge branch 'master' of
https://github.com/TopQuadrant/EPIM-Ontologies.git Conflicts: www.reportinghub.no/swp/DailyDrillingReport.uispin.html Also: linked download page to new service
Showing
15 changed files
with
469 additions
and
18 deletions
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | <div id="content"> | 27 | <div id="content"> |
| 28 | 28 | ||
| 29 | <h3>Download a Daily Drilling Report</h3> | 29 | <h3>Download a Daily Drilling Report</h3> |
| 30 | - <form action="ddrFileDownload"> | 30 | + <form action="download-report"> |
| 31 | 31 | ||
| 32 | <table> | 32 | <table> |
| 33 | <tr> | 33 | <tr> |
| ... | @@ -58,12 +58,12 @@ | ... | @@ -58,12 +58,12 @@ |
| 58 | <td style="padding-left:20px; vertical-align: top"> | 58 | <td style="padding-left:20px; vertical-align: top"> |
| 59 | <div> | 59 | <div> |
| 60 | <div class="formHeader">2. Select Well Bore:</div> | 60 | <div class="formHeader">2. Select Well Bore:</div> |
| 61 | - <select size="5" id="wellBoreSelect" style="width:200px"> | 61 | + <select size="5" id="wellBoreSelect" name="wellboreId" style="width:200px"> |
| 62 | </select> | 62 | </select> |
| 63 | </div><br /> | 63 | </div><br /> |
| 64 | <div> | 64 | <div> |
| 65 | <div class="formHeader">3. Select Date(s):</div> | 65 | <div class="formHeader">3. Select Date(s):</div> |
| 66 | - <input type="text" id="datepicker1" name="date1" style="width: 90px" /> - <input type="text" id="datepicker2" name="date2" style="width: 90px" /> | 66 | + <input type="text" id="datepicker1" name="timeFrom" style="width: 90px" /> - <input type="text" id="datepicker2" name="timeTo" style="width: 90px" /> |
| 67 | <script> | 67 | <script> |
| 68 | $(function() { | 68 | $(function() { |
| 69 | $("#datepicker1").datepicker(); | 69 | $("#datepicker1").datepicker(); | ... | ... |
| 1 | +# Saved by TopBraid on Wed Aug 10 13:54:55 BST 2011 | ||
| 1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/core | 2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/core |
| 2 | # imports: http://www.linkedmodel.org/1.2/schema/vaem | 3 | # imports: http://www.linkedmodel.org/1.2/schema/vaem |
| 3 | 4 | ||
| ... | @@ -23,6 +24,12 @@ ep-core:PhysicalThing | ... | @@ -23,6 +24,12 @@ ep-core:PhysicalThing |
| 23 | rdfs:label "physical thing"^^xsd:string ; | 24 | rdfs:label "physical thing"^^xsd:string ; |
| 24 | rdfs:subClassOf owl:Thing . | 25 | rdfs:subClassOf owl:Thing . |
| 25 | 26 | ||
| 27 | +ep-core:apiName | ||
| 28 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | ||
| 29 | + rdfs:label "API name"^^xsd:string ; | ||
| 30 | + rdfs:range xsd:string ; | ||
| 31 | + rdfs:subPropertyOf ep-core:name . | ||
| 32 | + | ||
| 26 | ep-core:basisFor | 33 | ep-core:basisFor |
| 27 | rdf:type owl:ObjectProperty ; | 34 | rdf:type owl:ObjectProperty ; |
| 28 | rdfs:label "basis for"^^xsd:string . | 35 | rdfs:label "basis for"^^xsd:string . |
| ... | @@ -31,6 +38,12 @@ ep-core:derivedFrom | ... | @@ -31,6 +38,12 @@ ep-core:derivedFrom |
| 31 | rdf:type owl:TransitiveProperty , owl:ObjectProperty ; | 38 | rdf:type owl:TransitiveProperty , owl:ObjectProperty ; |
| 32 | rdfs:label "derived from"^^xsd:string . | 39 | rdfs:label "derived from"^^xsd:string . |
| 33 | 40 | ||
| 41 | +ep-core:dtiName | ||
| 42 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
| 43 | + rdfs:label "DTI name"^^xsd:string ; | ||
| 44 | + rdfs:range xsd:string ; | ||
| 45 | + rdfs:subPropertyOf ep-core:name . | ||
| 46 | + | ||
| 34 | ep-core:hasPart | 47 | ep-core:hasPart |
| 35 | rdf:type owl:TransitiveProperty ; | 48 | rdf:type owl:TransitiveProperty ; |
| 36 | rdfs:domain ep-core:PhysicalThing ; | 49 | rdfs:domain ep-core:PhysicalThing ; |
| ... | @@ -46,11 +59,35 @@ ep-core:hasTemporalPart | ... | @@ -46,11 +59,35 @@ ep-core:hasTemporalPart |
| 46 | rdfs:subPropertyOf ep-core:hasPart ; | 59 | rdfs:subPropertyOf ep-core:hasPart ; |
| 47 | owl:inverseOf ep-core:partOf . | 60 | owl:inverseOf ep-core:partOf . |
| 48 | 61 | ||
| 62 | +ep-core:localFieldName | ||
| 63 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | ||
| 64 | + rdfs:label "local field name"^^xsd:string ; | ||
| 65 | + rdfs:range xsd:string ; | ||
| 66 | + rdfs:subPropertyOf ep-core:name . | ||
| 67 | + | ||
| 49 | ep-core:name | 68 | ep-core:name |
| 50 | rdf:type owl:DatatypeProperty ; | 69 | rdf:type owl:DatatypeProperty ; |
| 51 | rdfs:label "name"^^xsd:string ; | 70 | rdfs:label "name"^^xsd:string ; |
| 52 | rdfs:range xsd:string . | 71 | rdfs:range xsd:string . |
| 53 | 72 | ||
| 73 | +ep-core:npdCode | ||
| 74 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | ||
| 75 | + rdfs:label "NPD code"^^xsd:string ; | ||
| 76 | + rdfs:range xsd:string ; | ||
| 77 | + rdfs:subPropertyOf ep-core:name . | ||
| 78 | + | ||
| 79 | +ep-core:npdName | ||
| 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 ; | ||
| 87 | + rdfs:label "NPD number"^^xsd:string ; | ||
| 88 | + rdfs:range xsd:string ; | ||
| 89 | + rdfs:subPropertyOf ep-core:name . | ||
| 90 | + | ||
| 54 | ep-core:partOf | 91 | ep-core:partOf |
| 55 | rdf:type owl:TransitiveProperty ; | 92 | rdf:type owl:TransitiveProperty ; |
| 56 | rdfs:domain ep-core:PhysicalThing ; | 93 | rdfs:domain ep-core:PhysicalThing ; |
| ... | @@ -58,6 +95,12 @@ ep-core:partOf | ... | @@ -58,6 +95,12 @@ ep-core:partOf |
| 58 | rdfs:range ep-core:PhysicalThing ; | 95 | rdfs:range ep-core:PhysicalThing ; |
| 59 | owl:inverseOf ep-core:hasPart . | 96 | owl:inverseOf ep-core:hasPart . |
| 60 | 97 | ||
| 98 | +ep-core:prospectName | ||
| 99 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | ||
| 100 | + rdfs:label "prospect name"^^xsd:string ; | ||
| 101 | + rdfs:range xsd:string ; | ||
| 102 | + rdfs:subPropertyOf ep-core:name . | ||
| 103 | + | ||
| 61 | ep-core:temporalPartOf | 104 | ep-core:temporalPartOf |
| 62 | rdf:type owl:TransitiveProperty ; | 105 | rdf:type owl:TransitiveProperty ; |
| 63 | rdfs:domain ep-core:PhysicalThing ; | 106 | rdfs:domain ep-core:PhysicalThing ; | ... | ... |
| 1 | +# Saved by TopBraid on Wed Aug 10 13:32:44 BST 2011 | ||
| 1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/facility | 2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/facility |
| 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
| 2 | # imports: http://purl.org/dc/elements/1.1/ | 4 | # imports: http://purl.org/dc/elements/1.1/ |
| 3 | -# imports: http://purl.org/dc/terms/ | ||
| 4 | # imports: http://spinrdf.org/spin | 5 | # imports: http://spinrdf.org/spin |
| 5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 6 | +# imports: http://purl.org/dc/terms/ |
| 6 | 7 | ||
| 7 | @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . | 8 | @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . |
| 8 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 9 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| ... | @@ -15,9 +16,14 @@ | ... | @@ -15,9 +16,14 @@ |
| 15 | 16 | ||
| 16 | <http://www.reportinghub.no/ep/schema/1.0/facility> | 17 | <http://www.reportinghub.no/ep/schema/1.0/facility> |
| 17 | rdf:type owl:Ontology ; | 18 | rdf:type owl:Ontology ; |
| 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/> ; | 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> ; |
| 19 | owl:versionInfo "0.1.0"^^xsd:string . | 20 | owl:versionInfo "0.1.0"^^xsd:string . |
| 20 | 21 | ||
| 22 | +ep-fac:AllOrPartOfTheLifeOfARig | ||
| 23 | + rdf:type owl:Class ; | ||
| 24 | + rdfs:label "all or part of the life of a rig"^^xsd:string ; | ||
| 25 | + rdfs:subClassOf ep-fac:Facility . | ||
| 26 | + | ||
| 21 | ep-fac:Facility | 27 | ep-fac:Facility |
| 22 | rdf:type owl:Class ; | 28 | rdf:type owl:Class ; |
| 23 | rdfs:label "facility"^^xsd:string ; | 29 | rdfs:label "facility"^^xsd:string ; |
| ... | @@ -33,7 +39,8 @@ ep-fac:MoveableFacility | ... | @@ -33,7 +39,8 @@ ep-fac:MoveableFacility |
| 33 | 39 | ||
| 34 | ep-fac:Rig | 40 | ep-fac:Rig |
| 35 | rdf:type owl:Class ; | 41 | rdf:type owl:Class ; |
| 36 | - rdfs:subClassOf ep-fac:Facility . | 42 | + rdfs:label "rig"^^xsd:string ; |
| 43 | + rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig . | ||
| 37 | 44 | ||
| 38 | ep-fac:SubSurfaceFixedFacility | 45 | ep-fac:SubSurfaceFixedFacility |
| 39 | rdf:type owl:Class ; | 46 | rdf:type owl:Class ; |
| ... | @@ -42,3 +49,8 @@ ep-fac:SubSurfaceFixedFacility | ... | @@ -42,3 +49,8 @@ ep-fac:SubSurfaceFixedFacility |
| 42 | ep-fac:SurfaceFixedFacility | 49 | ep-fac:SurfaceFixedFacility |
| 43 | rdf:type owl:Class ; | 50 | rdf:type owl:Class ; |
| 44 | rdfs:subClassOf ep-fac:FixedFacility . | 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.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
| 1 | +# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011 | ||
| 1 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization |
| 2 | -# imports: http://spinrdf.org/spin | ||
| 3 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity | ||
| 4 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | ||
| 5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
| 6 | -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
| 7 | -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | ||
| 8 | -# imports: http://www.reportinghub.no/ep/schema/1.0/report | ||
| 9 | -# imports: http://www.reportinghub.no/ep/schema/1.0/well | ||
| 10 | # 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 | ||
| 5 | +# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo | ||
| 11 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport | 6 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport |
| 12 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo | 7 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo |
| 13 | 8 | ||
| ... | @@ -20,11 +15,13 @@ | ... | @@ -20,11 +15,13 @@ |
| 20 | @prefix sp: <http://spinrdf.org/sp#> . | 15 | @prefix sp: <http://spinrdf.org/sp#> . |
| 21 | @prefix spin: <http://spinrdf.org/spin#> . | 16 | @prefix spin: <http://spinrdf.org/spin#> . |
| 22 | @prefix spl: <http://spinrdf.org/spl#> . | 17 | @prefix spl: <http://spinrdf.org/spl#> . |
| 18 | +@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> . | ||
| 19 | +@prefix wellboreInfo: <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . | ||
| 23 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 20 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 24 | 21 | ||
| 25 | <http://www.reportinghub.no/ep/transform/1.1/normalization> | 22 | <http://www.reportinghub.no/ep/transform/1.1/normalization> |
| 26 | rdf:type owl:Ontology ; | 23 | rdf:type owl:Ontology ; |
| 27 | - owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ; | 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> ; |
| 28 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 25 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 29 | 26 | ||
| 30 | owl:Thing | 27 | owl:Thing |
| ... | @@ -65,8 +62,8 @@ owl:Thing | ... | @@ -65,8 +62,8 @@ owl:Thing |
| 65 | ]) | 62 | ]) |
| 66 | ] . | 63 | ] . |
| 67 | 64 | ||
| 68 | -_:b3 sp:varName "newLabel"^^xsd:string . | 65 | +_:b1 sp:varName "oldLabel"^^xsd:string . |
| 69 | 66 | ||
| 70 | _:b2 sp:varName "p"^^xsd:string . | 67 | _:b2 sp:varName "p"^^xsd:string . |
| 71 | 68 | ||
| 72 | -_:b1 sp:varName "oldLabel"^^xsd:string . | 69 | +_:b3 sp:varName "newLabel"^^xsd:string . | ... | ... |
This diff is collapsed. Click to expand it.
| 1 | +# Saved by TopBraid on Wed Aug 10 11:12:10 BST 2011 | ||
| 2 | +# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias | ||
| 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/wellAndWellBoreAlias#> . | ||
| 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 151 Transfer WellBore aliases"^^xsd:string ; | ||
| 23 | + sp:templates ([ sp:object _:b1 ; | ||
| 24 | + sp:predicate _:b2 ; | ||
| 25 | + sp:subject _:b3 | ||
| 26 | + ]) ; | ||
| 27 | + sp:where ([ sp:object _:b4 ; | ||
| 28 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; | ||
| 29 | + sp:subject spin:_this | ||
| 30 | + ] [ sp:object _:b5 ; | ||
| 31 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
| 32 | + sp:subject spin:_this | ||
| 33 | + ] [ sp:object _:b6 ; | ||
| 34 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreAlias> ; | ||
| 35 | + sp:subject spin:_this | ||
| 36 | + ] [ sp:object _:b1 ; | ||
| 37 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ; | ||
| 38 | + sp:subject _:b6 | ||
| 39 | + ] [ sp:object _:b7 ; | ||
| 40 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumNamingSystem> ; | ||
| 41 | + sp:subject _:b6 | ||
| 42 | + ] [ sp:object _:b8 ; | ||
| 43 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | ||
| 44 | + sp:subject _:b9 | ||
| 45 | + ] [ sp:object _:b3 ; | ||
| 46 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 47 | + sp:subject _:b8 | ||
| 48 | + ] [ rdf:type sp:Bind ; | ||
| 49 | + sp:expression | ||
| 50 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 51 | + sp:arg1 _:b4 | ||
| 52 | + ] ; | ||
| 53 | + sp:variable _:b10 | ||
| 54 | + ] [ rdf:type sp:Bind ; | ||
| 55 | + sp:expression | ||
| 56 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
| 57 | + sp:arg1 _:b10 ; | ||
| 58 | + sp:arg2 _:b5 | ||
| 59 | + ] ; | ||
| 60 | + sp:variable _:b9 | ||
| 61 | + ] [ rdf:type sp:Bind ; | ||
| 62 | + sp:expression | ||
| 63 | + [ rdf:type ep-spin-lib:selectLabelOfSystem ; | ||
| 64 | + sp:arg1 _:b7 | ||
| 65 | + ] ; | ||
| 66 | + sp:variable _:b2 | ||
| 67 | + ]) | ||
| 68 | + ] ; | ||
| 69 | + spin:rule | ||
| 70 | + [ rdf:type sp:Construct ; | ||
| 71 | + rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ; | ||
| 72 | + sp:templates ([ sp:object _:b11 ; | ||
| 73 | + sp:predicate _:b12 ; | ||
| 74 | + sp:subject _:b13 | ||
| 75 | + ]) ; | ||
| 76 | + sp:where ([ sp:object _:b14 ; | ||
| 77 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; | ||
| 78 | + sp:subject spin:_this | ||
| 79 | + ] [ sp:object _:b15 ; | ||
| 80 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
| 81 | + sp:subject spin:_this | ||
| 82 | + ] [ sp:object _:b16 ; | ||
| 83 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellAlias> ; | ||
| 84 | + sp:subject spin:_this | ||
| 85 | + ] [ sp:object _:b11 ; | ||
| 86 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ; | ||
| 87 | + sp:subject _:b16 | ||
| 88 | + ] [ sp:object _:b17 ; | ||
| 89 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumNamingSystem> ; | ||
| 90 | + sp:subject _:b16 | ||
| 91 | + ] [ sp:object _:b13 ; | ||
| 92 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; | ||
| 93 | + sp:subject _:b18 | ||
| 94 | + ] [ rdf:type sp:Bind ; | ||
| 95 | + sp:expression | ||
| 96 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
| 97 | + sp:arg1 _:b14 | ||
| 98 | + ] ; | ||
| 99 | + sp:variable _:b19 | ||
| 100 | + ] [ rdf:type sp:Bind ; | ||
| 101 | + sp:expression | ||
| 102 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
| 103 | + sp:arg1 _:b19 ; | ||
| 104 | + sp:arg2 _:b15 | ||
| 105 | + ] ; | ||
| 106 | + sp:variable _:b18 | ||
| 107 | + ] [ rdf:type sp:Bind ; | ||
| 108 | + sp:expression | ||
| 109 | + [ rdf:type ep-spin-lib:selectLabelOfSystem ; | ||
| 110 | + sp:arg1 _:b17 | ||
| 111 | + ] ; | ||
| 112 | + sp:variable _:b12 | ||
| 113 | + ]) | ||
| 114 | + ] . | ||
| 115 | + | ||
| 116 | +<http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> | ||
| 117 | + rdf:type owl:Ontology ; | ||
| 118 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; | ||
| 119 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
| 120 | + | ||
| 121 | +_:b14 | ||
| 122 | + sp:varName "nameWellBore"^^xsd:string . | ||
| 123 | + | ||
| 124 | +_:b15 | ||
| 125 | + sp:varName "dTimStart"^^xsd:string . | ||
| 126 | + | ||
| 127 | +_:b16 | ||
| 128 | + sp:varName "wellAlias"^^xsd:string . | ||
| 129 | + | ||
| 130 | +_:b11 | ||
| 131 | + sp:varName "name"^^xsd:string . | ||
| 132 | + | ||
| 133 | +_:b17 | ||
| 134 | + sp:varName "namingSystem"^^xsd:string . | ||
| 135 | + | ||
| 136 | +_:b18 | ||
| 137 | + sp:varName "dailyDrillingActivity"^^xsd:string . | ||
| 138 | + | ||
| 139 | +_:b13 | ||
| 140 | + sp:varName "well"^^xsd:string . | ||
| 141 | + | ||
| 142 | +_:b19 | ||
| 143 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
| 144 | + | ||
| 145 | +_:b12 | ||
| 146 | + sp:varName "labelOfSystem"^^xsd:string . | ||
| 147 | + | ||
| 148 | +_:b4 sp:varName "nameWellBore"^^xsd:string . | ||
| 149 | + | ||
| 150 | +_:b5 sp:varName "dTimStart"^^xsd:string . | ||
| 151 | + | ||
| 152 | +_:b6 sp:varName "wellBoreAlias"^^xsd:string . | ||
| 153 | + | ||
| 154 | +_:b1 sp:varName "name"^^xsd:string . | ||
| 155 | + | ||
| 156 | +_:b7 sp:varName "namingSystem"^^xsd:string . | ||
| 157 | + | ||
| 158 | +_:b9 sp:varName "dailyDrillingActivity"^^xsd:string . | ||
| 159 | + | ||
| 160 | +_:b8 sp:varName "temporalPartOfAWellBore"^^xsd:string . | ||
| 161 | + | ||
| 162 | +_:b3 sp:varName "wellBore"^^xsd:string . | ||
| 163 | + | ||
| 164 | +_:b10 | ||
| 165 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
| 166 | + | ||
| 167 | +_:b2 sp:varName "labelOfSystem"^^xsd:string . | ||
| 168 | + | ||
| 169 | +[] rdf:type smf:regex . | ||
| 170 | + | ||
| 171 | +[] rdf:type smf:trim . | ||
| 172 | + | ||
| 173 | +[] rdf:type fn:starts-with . | ||
| 174 | + | ||
| 175 | +[] rdf:type sp:Modify . | ||
| 176 | + | ||
| 177 | +([]) . | ||
| 178 | + | ||
| 179 | +([]) . | ||
| 180 | + | ||
| 181 | +([] [] [ rdf:type sp:Filter | ||
| 182 | + ] [ rdf:type sp:Bind | ||
| 183 | + ]) . |
| 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 | +([]) . |
-
Please register or login to post a comment