Rig alias bug fixed (datatype problem). CementingFluid table updated, but not yet finished.
Showing
2 changed files
with
507 additions
and
551 deletions
1 | -# Saved by TopBraid on Mon Oct 03 11:53:16 BST 2011 | 1 | +# Saved by TopBraid on Mon Oct 03 13:04:22 BST 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/spin/ddr-tables | 2 | # baseURI: http://www.reportinghub.no/ep/spin/ddr-tables |
3 | # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose |
4 | # imports: http://www.reportinghub.no/ep/schema/1.0/ddr | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/ddr |
... | @@ -20,7 +20,7 @@ | ... | @@ -20,7 +20,7 @@ |
20 | <http://www.reportinghub.no/ep/spin/ddr-tables> | 20 | <http://www.reportinghub.no/ep/spin/ddr-tables> |
21 | rdf:type owl:Ontology ; | 21 | rdf:type owl:Ontology ; |
22 | rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; | 22 | rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; |
23 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ; | 23 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ; |
24 | owl:versionInfo "0.1.0"^^xsd:string . | 24 | owl:versionInfo "0.1.0"^^xsd:string . |
25 | 25 | ||
26 | ddr-tables:BitRecord | 26 | ddr-tables:BitRecord |
... | @@ -339,41 +339,45 @@ ddr-tables:CementFluidInformation | ... | @@ -339,41 +339,45 @@ ddr-tables:CementFluidInformation |
339 | rdfs:subClassOf rhspin:DDRTableTemplates ; | 339 | rdfs:subClassOf rhspin:DDRTableTemplates ; |
340 | spin:body | 340 | spin:body |
341 | [ rdf:type sp:Select ; | 341 | [ rdf:type sp:Select ; |
342 | - sp:resultVariables (_:b61 _:b62 _:b63 _:b64 _:b65 _:b66 _:b67 _:b68 _:b69) ; | 342 | + sp:resultVariables (_:b61 _:b62 _:b63 _:b64 _:b65 _:b66 _:b67 _:b68 [ sp:varName "comments"^^xsd:string |
343 | - sp:where ([ sp:object _:b70 ; | 343 | + ]) ; |
344 | + sp:where ([ sp:object _:b69 ; | ||
344 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 345 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
345 | sp:subject | 346 | sp:subject |
346 | [ sp:varName "report"^^xsd:string | 347 | [ sp:varName "report"^^xsd:string |
347 | ] | 348 | ] |
348 | - ] [ sp:object _:b71 ; | 349 | + ] [ sp:object _:b70 ; |
349 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 350 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
350 | - sp:subject _:b70 | 351 | + sp:subject _:b69 |
351 | - ] [ sp:object _:b72 ; | 352 | + ] [ sp:object _:b71 ; |
352 | sp:predicate rdf:type ; | 353 | sp:predicate rdf:type ; |
353 | - sp:subject _:b71 | 354 | + sp:subject _:b70 |
354 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobPurposeType> ; | 355 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobPurposeType> ; |
355 | sp:predicate rdf:type ; | 356 | sp:predicate rdf:type ; |
356 | - sp:subject _:b72 | ||
357 | - ] [ rdf:type sp:Optional ; | ||
358 | - sp:elements ([ sp:object _:b69 ; | ||
359 | - sp:predicate <http://purl.org/dc/elements/1.1/description> ; | ||
360 | sp:subject _:b71 | 357 | sp:subject _:b71 |
361 | - ]) | 358 | + ] [ sp:object _:b72 ; |
362 | - ] [ rdf:type sp:Optional ; | ||
363 | - sp:elements ([ sp:object _:b73 ; | ||
364 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 359 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
365 | - sp:subject _:b71 | 360 | + sp:subject _:b70 |
366 | - ] [ sp:object _:b74 ; | 361 | + ] [ sp:object _:b73 ; |
367 | sp:predicate rdf:type ; | 362 | sp:predicate rdf:type ; |
368 | - sp:subject _:b73 | 363 | + sp:subject _:b72 |
369 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumpingFluidReturnType> ; | 364 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumpingFluidReturnType> ; |
370 | sp:predicate rdf:type ; | 365 | sp:predicate rdf:type ; |
366 | + sp:subject _:b73 | ||
367 | + ] [ sp:object _:b74 ; | ||
368 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#pumpedFluid> ; | ||
369 | + sp:subject _:b72 | ||
370 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#CementingFluid> ; | ||
371 | + sp:predicate rdf:type ; | ||
371 | sp:subject _:b74 | 372 | sp:subject _:b74 |
373 | + ] [ sp:object _:b75 ; | ||
374 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
375 | + sp:subject _:b74 | ||
376 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#CementingFluid> ; | ||
377 | + sp:predicate rdf:type ; | ||
378 | + sp:subject _:b75 | ||
372 | ] [ rdf:type sp:Optional ; | 379 | ] [ rdf:type sp:Optional ; |
373 | - sp:elements ([ sp:object _:b75 ; | 380 | + sp:elements ([ sp:object _:b76 ; |
374 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#pumpedFluid> ; | ||
375 | - sp:subject _:b73 | ||
376 | - ] [ sp:object _:b76 ; | ||
377 | sp:predicate rdf:type ; | 381 | sp:predicate rdf:type ; |
378 | sp:subject _:b75 | 382 | sp:subject _:b75 |
379 | ] [ sp:object <http://www.reportinghub.no/ep/schema/well#CementingFluidType> ; | 383 | ] [ sp:object <http://www.reportinghub.no/ep/schema/well#CementingFluidType> ; |
... | @@ -382,6 +386,7 @@ ddr-tables:CementFluidInformation | ... | @@ -382,6 +386,7 @@ ddr-tables:CementFluidInformation |
382 | ] [ sp:object _:b61 ; | 386 | ] [ sp:object _:b61 ; |
383 | sp:predicate rdfs:label ; | 387 | sp:predicate rdfs:label ; |
384 | sp:subject _:b76 | 388 | sp:subject _:b76 |
389 | + ]) | ||
385 | ] [ rdf:type sp:Optional ; | 390 | ] [ rdf:type sp:Optional ; |
386 | sp:elements ([ sp:object _:b77 ; | 391 | sp:elements ([ sp:object _:b77 ; |
387 | sp:predicate rdf:type ; | 392 | sp:predicate rdf:type ; |
... | @@ -442,28 +447,18 @@ ddr-tables:CementFluidInformation | ... | @@ -442,28 +447,18 @@ ddr-tables:CementFluidInformation |
442 | sp:predicate rdfs:comment ; | 447 | sp:predicate rdfs:comment ; |
443 | sp:subject _:b75 | 448 | sp:subject _:b75 |
444 | ]) | 449 | ]) |
445 | - ]) | ||
446 | ] [ rdf:type sp:Optional ; | 450 | ] [ rdf:type sp:Optional ; |
447 | sp:elements ([ sp:object _:b82 ; | 451 | sp:elements ([ sp:object _:b82 ; |
448 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#volumeOfPumpedCementingFluid> ; | 452 | + sp:predicate rdf:type ; |
449 | - sp:subject _:b73 | 453 | + sp:subject _:b75 |
454 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
455 | + sp:predicate rdf:type ; | ||
456 | + sp:subject _:b82 | ||
450 | ] [ sp:object _:b62 ; | 457 | ] [ sp:object _:b62 ; |
451 | sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ; | 458 | sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ; |
452 | sp:subject _:b82 | 459 | sp:subject _:b82 |
453 | ]) | 460 | ]) |
454 | ]) | 461 | ]) |
455 | - ] [ rdf:type sp:Optional ; | ||
456 | - sp:elements ([ sp:object _:b75 ; | ||
457 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onFluid> ; | ||
458 | - sp:subject _:b71 | ||
459 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#YieldPoint> ; | ||
460 | - sp:predicate rdf:type ; | ||
461 | - sp:subject _:b75 | ||
462 | - ] [ sp:object _:b64 ; | ||
463 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#foot3_sack94-1> ; | ||
464 | - sp:subject _:b75 | ||
465 | - ]) | ||
466 | - ]) | ||
467 | ] ; | 462 | ] ; |
468 | rhspin:tableHeaders ("Fluid type"^^xsd:string "Volume pumped m3"^^xsd:string "Fluid density"^^xsd:string "Yield point ft3/sack"^^xsd:string "Mix water ratio gal/sack"^^xsd:string "Free water %"^^xsd:string "Thickening time h"^^xsd:string "Fluid Description"^^xsd:string "Comments"^^xsd:string) . | 463 | rhspin:tableHeaders ("Fluid type"^^xsd:string "Volume pumped m3"^^xsd:string "Fluid density"^^xsd:string "Yield point ft3/sack"^^xsd:string "Mix water ratio gal/sack"^^xsd:string "Free water %"^^xsd:string "Thickening time h"^^xsd:string "Fluid Description"^^xsd:string "Comments"^^xsd:string) . |
469 | 464 | ||
... | @@ -2808,71 +2803,98 @@ _:b115 | ... | @@ -2808,71 +2803,98 @@ _:b115 |
2808 | _:b114 | 2803 | _:b114 |
2809 | sp:varName "coreNo"^^xsd:string . | 2804 | sp:varName "coreNo"^^xsd:string . |
2810 | 2805 | ||
2811 | -_:b82 | 2806 | +_:b113 |
2812 | - sp:varName "volPumped"^^xsd:string . | 2807 | + sp:varName "returnedFluidVolume"^^xsd:string . |
2813 | 2808 | ||
2814 | -_:b81 | 2809 | +_:b112 |
2815 | - sp:varName "tt"^^xsd:string . | 2810 | + sp:varName "returnedFluid"^^xsd:string . |
2816 | 2811 | ||
2817 | -_:b80 | 2812 | +_:b111 |
2818 | - sp:varName "fw"^^xsd:string . | 2813 | + sp:varName "wcPumpingFluidReturnType"^^xsd:string . |
2819 | 2814 | ||
2820 | -_:b79 | 2815 | +_:b110 |
2821 | - sp:varName "ratio"^^xsd:string . | 2816 | + sp:varName "wcPumping"^^xsd:string . |
2822 | 2817 | ||
2823 | -_:b78 | 2818 | +_:b109 |
2824 | - sp:varName "yp"^^xsd:string . | 2819 | + sp:varName "jobreturnno"^^xsd:string . |
2825 | 2820 | ||
2826 | -_:b77 | 2821 | +_:b108 |
2827 | - sp:varName "density"^^xsd:string . | 2822 | + sp:varName "odtub"^^xsd:string . |
2828 | 2823 | ||
2829 | -_:b76 | 2824 | +_:b107 |
2830 | - sp:varName "fType"^^xsd:string . | 2825 | + sp:varName "casing"^^xsd:string . |
2831 | 2826 | ||
2832 | -_:b75 | 2827 | +_:b106 |
2833 | - sp:varName "fluid"^^xsd:string . | 2828 | + sp:varName "wellborepart"^^xsd:string . |
2834 | 2829 | ||
2835 | -_:b74 | 2830 | +_:b105 |
2836 | - sp:varName "cementPumpingFrType"^^xsd:string . | 2831 | + sp:varName "wellbore"^^xsd:string . |
2837 | 2832 | ||
2838 | -_:b73 | 2833 | +_:b104 |
2839 | - sp:varName "cementPumpingFR"^^xsd:string . | 2834 | + sp:varName "prel"^^xsd:string . |
2840 | 2835 | ||
2841 | -_:b72 | 2836 | +_:b103 |
2842 | - sp:varName "cPumpingType"^^xsd:string . | 2837 | + sp:varName "jobpartend"^^xsd:string . |
2843 | 2838 | ||
2844 | -_:b71 | 2839 | +_:b102 |
2845 | - sp:varName "cementPumping"^^xsd:string . | 2840 | + sp:varName "jobpartstart"^^xsd:string . |
2846 | 2841 | ||
2847 | -_:b70 | 2842 | +_:b101 |
2848 | - sp:varName "dailyDrillingActivity"^^xsd:string . | 2843 | + sp:varName "bumppres"^^xsd:string . |
2849 | 2844 | ||
2850 | -_:b69 | 2845 | +_:b100 |
2846 | + sp:varName "wcjclass"^^xsd:string . | ||
2847 | + | ||
2848 | +_:b99 | ||
2849 | + sp:varName "wcj"^^xsd:string . | ||
2850 | + | ||
2851 | +_:b98 | ||
2852 | + sp:varName "reportOn"^^xsd:string . | ||
2853 | + | ||
2854 | +_:b97 | ||
2851 | sp:varName "comments"^^xsd:string . | 2855 | sp:varName "comments"^^xsd:string . |
2852 | 2856 | ||
2853 | -_:b68 | 2857 | +_:b96 |
2854 | - sp:varName "fluidDescription"^^xsd:string . | 2858 | + sp:varName "rotated"^^xsd:string . |
2855 | 2859 | ||
2856 | -_:b67 | 2860 | +_:b95 |
2857 | - sp:varName "thickeningTime"^^xsd:string . | 2861 | + sp:varName "reciprocated"^^xsd:string . |
2858 | 2862 | ||
2859 | -_:b66 | 2863 | +_:b94 |
2860 | - sp:varName "freeWater"^^xsd:string . | 2864 | + sp:varName "cementVolumeReturns"^^xsd:string . |
2861 | 2865 | ||
2862 | -_:b65 | 2866 | +_:b93 |
2863 | - sp:varName "mixWaterRatio"^^xsd:string . | 2867 | + sp:varName "fullReturns"^^xsd:string . |
2864 | 2868 | ||
2865 | -_:b64 | 2869 | +_:b92 |
2866 | - sp:varName "yieldPoint"^^xsd:string . | 2870 | + sp:varName "pressureReleaseTime"^^xsd:string . |
2867 | 2871 | ||
2868 | -_:b63 | 2872 | +_:b91 |
2869 | - sp:varName "fluidDensity"^^xsd:string . | 2873 | + sp:varName "floatHeld"^^xsd:string . |
2870 | 2874 | ||
2871 | -_:b62 | 2875 | +_:b90 |
2872 | - sp:varName "volumePumped"^^xsd:string . | 2876 | + sp:varName "plugBumpPressure"^^xsd:string . |
2873 | 2877 | ||
2874 | -_:b61 | 2878 | +_:b89 |
2875 | - sp:varName "fluidType"^^xsd:string . | 2879 | + sp:varName "plugBumped"^^xsd:string . |
2880 | + | ||
2881 | +_:b88 | ||
2882 | + sp:varName "bottomPlug"^^xsd:string . | ||
2883 | + | ||
2884 | +_:b87 | ||
2885 | + sp:varName "topPlug"^^xsd:string . | ||
2886 | + | ||
2887 | +_:b86 | ||
2888 | + sp:varName "casingStringDiameter"^^xsd:string . | ||
2889 | + | ||
2890 | +_:b85 | ||
2891 | + sp:varName "jobType"^^xsd:string . | ||
2892 | + | ||
2893 | +_:b84 | ||
2894 | + sp:varName "endTime"^^xsd:string . | ||
2895 | + | ||
2896 | +_:b83 | ||
2897 | + sp:varName "startTime"^^xsd:string . | ||
2876 | 2898 | ||
2877 | _:b60 | 2899 | _:b60 |
2878 | sp:varName "tubLen"^^xsd:string . | 2900 | sp:varName "tubLen"^^xsd:string . |
... | @@ -3045,95 +3067,68 @@ _:b2 sp:varName "runNo"^^xsd:string . | ... | @@ -3045,95 +3067,68 @@ _:b2 sp:varName "runNo"^^xsd:string . |
3045 | 3067 | ||
3046 | _:b1 sp:varName "bitSize"^^xsd:string . | 3068 | _:b1 sp:varName "bitSize"^^xsd:string . |
3047 | 3069 | ||
3048 | -_:b98 | 3070 | +_:b69 |
3049 | sp:varName "reportOn"^^xsd:string . | 3071 | sp:varName "reportOn"^^xsd:string . |
3050 | 3072 | ||
3051 | -_:b99 | 3073 | +_:b70 |
3052 | sp:varName "wcj"^^xsd:string . | 3074 | sp:varName "wcj"^^xsd:string . |
3053 | 3075 | ||
3054 | -_:b100 | 3076 | +_:b71 |
3055 | sp:varName "wcjclass"^^xsd:string . | 3077 | sp:varName "wcjclass"^^xsd:string . |
3056 | 3078 | ||
3057 | -_:b85 | 3079 | +_:b72 |
3058 | - sp:varName "jobType"^^xsd:string . | 3080 | + sp:varName "cementPumping"^^xsd:string . |
3059 | - | ||
3060 | -_:b87 | ||
3061 | - sp:varName "topPlug"^^xsd:string . | ||
3062 | - | ||
3063 | -_:b101 | ||
3064 | - sp:varName "bumppres"^^xsd:string . | ||
3065 | - | ||
3066 | -_:b90 | ||
3067 | - sp:varName "plugBumpPressure"^^xsd:string . | ||
3068 | - | ||
3069 | -_:b102 | ||
3070 | - sp:varName "jobpartstart"^^xsd:string . | ||
3071 | - | ||
3072 | -_:b83 | ||
3073 | - sp:varName "startTime"^^xsd:string . | ||
3074 | - | ||
3075 | -_:b103 | ||
3076 | - sp:varName "jobpartend"^^xsd:string . | ||
3077 | - | ||
3078 | -_:b84 | ||
3079 | - sp:varName "endTime"^^xsd:string . | ||
3080 | - | ||
3081 | -_:b104 | ||
3082 | - sp:varName "prel"^^xsd:string . | ||
3083 | - | ||
3084 | -_:b92 | ||
3085 | - sp:varName "pressureReleaseTime"^^xsd:string . | ||
3086 | 3081 | ||
3087 | -_:b105 | 3082 | +_:b73 |
3088 | - sp:varName "wellbore"^^xsd:string . | 3083 | + sp:varName "wcPumpingFluidReturnType"^^xsd:string . |
3089 | 3084 | ||
3090 | -_:b106 | 3085 | +_:b74 |
3091 | - sp:varName "wellborepart"^^xsd:string . | 3086 | + sp:varName "pumpedFluid"^^xsd:string . |
3092 | 3087 | ||
3093 | -_:b107 | 3088 | +_:b75 |
3094 | - sp:varName "casing"^^xsd:string . | 3089 | + sp:varName "fluid"^^xsd:string . |
3095 | 3090 | ||
3096 | -_:b108 | 3091 | +_:b76 |
3097 | - sp:varName "odtub"^^xsd:string . | 3092 | + sp:varName "fType"^^xsd:string . |
3098 | 3093 | ||
3099 | -_:b86 | 3094 | +_:b61 |
3100 | - sp:varName "casingStringDiameter"^^xsd:string . | 3095 | + sp:varName "fluidType"^^xsd:string . |
3101 | 3096 | ||
3102 | -_:b109 | 3097 | +_:b77 |
3103 | - sp:varName "jobreturnno"^^xsd:string . | 3098 | + sp:varName "density"^^xsd:string . |
3104 | 3099 | ||
3105 | -_:b93 | 3100 | +_:b63 |
3106 | - sp:varName "fullReturns"^^xsd:string . | 3101 | + sp:varName "fluidDensity"^^xsd:string . |
3107 | 3102 | ||
3108 | -_:b96 | 3103 | +_:b78 |
3109 | - sp:varName "rotated"^^xsd:string . | 3104 | + sp:varName "yp"^^xsd:string . |
3110 | 3105 | ||
3111 | -_:b95 | 3106 | +_:b64 |
3112 | - sp:varName "reciprocated"^^xsd:string . | 3107 | + sp:varName "yieldPoint"^^xsd:string . |
3113 | 3108 | ||
3114 | -_:b88 | 3109 | +_:b79 |
3115 | - sp:varName "bottomPlug"^^xsd:string . | 3110 | + sp:varName "ratio"^^xsd:string . |
3116 | 3111 | ||
3117 | -_:b110 | 3112 | +_:b65 |
3118 | - sp:varName "wcPumping"^^xsd:string . | 3113 | + sp:varName "mixWaterRatio"^^xsd:string . |
3119 | 3114 | ||
3120 | -_:b111 | 3115 | +_:b80 |
3121 | - sp:varName "wcPumpingFluidReturnType"^^xsd:string . | 3116 | + sp:varName "fw"^^xsd:string . |
3122 | 3117 | ||
3123 | -_:b112 | 3118 | +_:b66 |
3124 | - sp:varName "returnedFluid"^^xsd:string . | 3119 | + sp:varName "freeWater"^^xsd:string . |
3125 | 3120 | ||
3126 | -_:b113 | 3121 | +_:b81 |
3127 | - sp:varName "returnedFluidVolume"^^xsd:string . | 3122 | + sp:varName "tt"^^xsd:string . |
3128 | 3123 | ||
3129 | -_:b94 | 3124 | +_:b67 |
3130 | - sp:varName "cementVolumeReturns"^^xsd:string . | 3125 | + sp:varName "thickeningTime"^^xsd:string . |
3131 | 3126 | ||
3132 | -_:b91 | 3127 | +_:b68 |
3133 | - sp:varName "floatHeld"^^xsd:string . | 3128 | + sp:varName "fluidDescription"^^xsd:string . |
3134 | 3129 | ||
3135 | -_:b89 | 3130 | +_:b82 |
3136 | - sp:varName "plugBumped"^^xsd:string . | 3131 | + sp:varName "volPumped"^^xsd:string . |
3137 | 3132 | ||
3138 | -_:b97 | 3133 | +_:b62 |
3139 | - sp:varName "comments"^^xsd:string . | 3134 | + sp:varName "volumePumped"^^xsd:string . | ... | ... |
1 | +# Saved by TopBraid on Mon Oct 03 12:54:15 BST 2011 | ||
1 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo |
2 | -# imports: http://spinrdf.org/spin | ||
3 | # imports: http://www.reportinghub.no/ep/schema/1.0/organization | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/organization |
4 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib | 4 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib |
5 | # imports: http://www.witsml.org/schemas/1series | 5 | # imports: http://www.witsml.org/schemas/1series |
6 | +# imports: http://spinrdf.org/spin | ||
6 | 7 | ||
7 | @prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . | 8 | @prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . |
8 | @prefix arg: <http://spinrdf.org/arg#> . | 9 | @prefix arg: <http://spinrdf.org/arg#> . |
... | @@ -25,38 +26,35 @@ | ... | @@ -25,38 +26,35 @@ |
25 | 26 | ||
26 | <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> | 27 | <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> |
27 | rdf:type owl:Ontology ; | 28 | rdf:type owl:Ontology ; |
28 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; | 29 | + owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://spinrdf.org/spin> ; |
29 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 30 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
30 | 31 | ||
31 | ddr:Obj_drillReport | 32 | ddr:Obj_drillReport |
32 | spin:rule | 33 | spin:rule |
33 | [ rdf:type sp:Construct ; | 34 | [ rdf:type sp:Construct ; |
34 | - rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ; | 35 | + rdfs:comment """STEP 169a Transfer waterDepth |
36 | +This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; | ||
35 | sp:templates ([ sp:object _:b1 ; | 37 | sp:templates ([ sp:object _:b1 ; |
36 | - sp:predicate ep-activity:onRig ; | 38 | + sp:predicate ep-core:hasPart ; |
37 | sp:subject | 39 | sp:subject |
38 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 40 | + [ sp:varName "temporalPartOfARig"^^xsd:string |
39 | ] | 41 | ] |
40 | - ] [ sp:object ep-facility:TemporalPartOfARig ; | 42 | + ] [ sp:object ep-facility:SurroundingWater ; |
41 | sp:predicate rdf:type ; | 43 | sp:predicate rdf:type ; |
42 | sp:subject _:b1 | 44 | sp:subject _:b1 |
43 | - ] [ sp:object | 45 | + ] [ sp:object _:b2 ; |
44 | - [ sp:varName "rig"^^xsd:string | 46 | + sp:predicate ep-facility:depthOfSurroundingWater ; |
45 | - ] ; | ||
46 | - sp:predicate ep-core:temporalPartOf ; | ||
47 | sp:subject _:b1 | 47 | sp:subject _:b1 |
48 | - ] [ sp:object ep-facility:Rig ; | 48 | + ] [ sp:object ep-core:Length ; |
49 | sp:predicate rdf:type ; | 49 | sp:predicate rdf:type ; |
50 | - sp:subject | 50 | + sp:subject _:b2 |
51 | - [ sp:varName "rig"^^xsd:string | ||
52 | - ] | ||
53 | ] [ sp:object | 51 | ] [ sp:object |
54 | - [ sp:varName "code"^^xsd:string | 52 | + [ sp:varName "real"^^xsd:string |
55 | ] ; | 53 | ] ; |
56 | - sp:predicate ep-core:npdCode ; | 54 | + sp:predicate |
57 | - sp:subject | 55 | + [ sp:varName "lengthScale"^^xsd:string |
58 | - [ sp:varName "rig"^^xsd:string | 56 | + ] ; |
59 | - ] | 57 | + sp:subject _:b2 |
60 | ]) ; | 58 | ]) ; |
61 | sp:where ([ sp:object | 59 | sp:where ([ sp:object |
62 | [ sp:varName "nameWellBore"^^xsd:string | 60 | [ sp:varName "nameWellBore"^^xsd:string |
... | @@ -69,36 +67,38 @@ ddr:Obj_drillReport | ... | @@ -69,36 +67,38 @@ ddr:Obj_drillReport |
69 | sp:predicate ddr:dTimStart ; | 67 | sp:predicate ddr:dTimStart ; |
70 | sp:subject spin:_this | 68 | sp:subject spin:_this |
71 | ] [ sp:object | 69 | ] [ sp:object |
72 | - [ sp:varName "wellboreInfo"^^xsd:string | 70 | + [ sp:varName "statusInfo"^^xsd:string |
73 | ] ; | 71 | ] ; |
74 | - sp:predicate ddr:wellboreInfoRef ; | 72 | + sp:predicate ddr:statusInfoRef ; |
75 | sp:subject spin:_this | 73 | sp:subject spin:_this |
76 | ] [ sp:object | 74 | ] [ sp:object |
77 | - [ sp:varName "rigAlias"^^xsd:string | 75 | + [ sp:varName "temporalPartOfARig"^^xsd:string |
78 | ] ; | 76 | ] ; |
79 | - sp:predicate ddr:rigAliasRef ; | 77 | + sp:predicate ep-activity:onRig ; |
80 | sp:subject | 78 | sp:subject |
81 | - [ sp:varName "wellboreInfo"^^xsd:string | 79 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
82 | ] | 80 | ] |
83 | ] [ sp:object | 81 | ] [ sp:object |
84 | - [ sp:varName "code"^^xsd:string | 82 | + [ sp:varName "waterDepth"^^xsd:string |
85 | ] ; | 83 | ] ; |
86 | - sp:predicate ddr:name ; | 84 | + sp:predicate ddr:waterDepthRef ; |
87 | sp:subject | 85 | sp:subject |
88 | - [ sp:varName "rigAlias"^^xsd:string | 86 | + [ sp:varName "statusInfo"^^xsd:string |
89 | ] | 87 | ] |
90 | - ] [ rdf:type sp:Union ; | 88 | + ] [ sp:object |
91 | - sp:elements (([ sp:object "NPD Code"^^ddr:NameStringDatatype ; | 89 | + [ sp:varName "real"^^xsd:string |
92 | - sp:predicate ddr:namingSystem ; | 90 | + ] ; |
91 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
93 | sp:subject | 92 | sp:subject |
94 | - [ sp:varName "rigAlias"^^xsd:string | 93 | + [ sp:varName "waterDepth"^^xsd:string |
95 | ] | 94 | ] |
96 | - ]) ([ sp:object "NPD code"^^ddr:NameStringDatatype ; | 95 | + ] [ sp:object |
97 | - sp:predicate ddr:namingSystem ; | 96 | + [ sp:varName "uom"^^xsd:string |
97 | + ] ; | ||
98 | + sp:predicate ddr:uomRef ; | ||
98 | sp:subject | 99 | sp:subject |
99 | - [ sp:varName "rigAlias"^^xsd:string | 100 | + [ sp:varName "waterDepth"^^xsd:string |
100 | ] | 101 | ] |
101 | - ])) | ||
102 | ] [ rdf:type sp:Bind ; | 102 | ] [ rdf:type sp:Bind ; |
103 | sp:expression | 103 | sp:expression |
104 | [ rdf:type ep-spin-lib:normalizeString ; | 104 | [ rdf:type ep-spin-lib:normalizeString ; |
... | @@ -110,15 +110,6 @@ ddr:Obj_drillReport | ... | @@ -110,15 +110,6 @@ ddr:Obj_drillReport |
110 | ] | 110 | ] |
111 | ] [ rdf:type sp:Bind ; | 111 | ] [ rdf:type sp:Bind ; |
112 | sp:expression | 112 | sp:expression |
113 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
114 | - sp:arg1 [ sp:varName "code"^^xsd:string | ||
115 | - ] | ||
116 | - ] ; | ||
117 | - sp:variable | ||
118 | - [ sp:varName "normalizedCode"^^xsd:string | ||
119 | - ] | ||
120 | - ] [ rdf:type sp:Bind ; | ||
121 | - sp:expression | ||
122 | [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | 113 | [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; |
123 | sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | 114 | sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
124 | ] ; | 115 | ] ; |
... | @@ -130,32 +121,26 @@ ddr:Obj_drillReport | ... | @@ -130,32 +121,26 @@ ddr:Obj_drillReport |
130 | ] | 121 | ] |
131 | ] [ rdf:type sp:Bind ; | 122 | ] [ rdf:type sp:Bind ; |
132 | sp:expression | 123 | sp:expression |
133 | - [ rdf:type ep-spin-lib:buildRigURI ; | 124 | + [ rdf:type ep-spin-lib:selectLengthScale ; |
134 | - sp:arg1 [ sp:varName "normalizedCode"^^xsd:string | 125 | + sp:arg1 [ sp:varName "uom"^^xsd:string |
135 | ] | 126 | ] |
136 | ] ; | 127 | ] ; |
137 | sp:variable | 128 | sp:variable |
138 | - [ sp:varName "rig"^^xsd:string | 129 | + [ sp:varName "lengthScale"^^xsd:string |
139 | ] | 130 | ] |
140 | ]) | 131 | ]) |
141 | ] ; | 132 | ] ; |
142 | spin:rule | 133 | spin:rule |
143 | [ rdf:type sp:Construct ; | 134 | [ rdf:type sp:Construct ; |
144 | - rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ; | 135 | + rdfs:comment """STEP 168 Transfer fixedRig |
145 | - sp:templates ([ sp:object _:b2 ; | 136 | +This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; |
146 | - sp:predicate ep-activity:onRig ; | 137 | + sp:templates ([ sp:object |
138 | + [ sp:varName "fixedOrMoveableRigType"^^xsd:string | ||
139 | + ] ; | ||
140 | + sp:predicate rdf:type ; | ||
147 | sp:subject | 141 | sp:subject |
148 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 142 | + [ sp:varName "rig"^^xsd:string |
149 | ] | 143 | ] |
150 | - ] [ sp:object ep-facility:TemporalPartOfARig ; | ||
151 | - sp:predicate rdf:type ; | ||
152 | - sp:subject _:b2 | ||
153 | - ] [ sp:object _:b3 ; | ||
154 | - sp:predicate ep-core:temporalPartOf ; | ||
155 | - sp:subject _:b2 | ||
156 | - ] [ sp:object ep-facility:Rig ; | ||
157 | - sp:predicate rdf:type ; | ||
158 | - sp:subject _:b3 | ||
159 | ]) ; | 144 | ]) ; |
160 | sp:where ([ sp:object | 145 | sp:where ([ sp:object |
161 | [ sp:varName "nameWellBore"^^xsd:string | 146 | [ sp:varName "nameWellBore"^^xsd:string |
... | @@ -167,39 +152,37 @@ ddr:Obj_drillReport | ... | @@ -167,39 +152,37 @@ ddr:Obj_drillReport |
167 | ] ; | 152 | ] ; |
168 | sp:predicate ddr:dTimStart ; | 153 | sp:predicate ddr:dTimStart ; |
169 | sp:subject spin:_this | 154 | sp:subject spin:_this |
170 | - ] [ rdf:type sp:NotExists ; | ||
171 | - sp:elements ([ sp:object | ||
172 | - [ sp:varName "wellboreInfo"^^xsd:string | ||
173 | - ] ; | ||
174 | - sp:predicate ddr:wellboreInfoRef ; | ||
175 | - sp:subject spin:_this | ||
176 | ] [ sp:object | 155 | ] [ sp:object |
177 | - [ sp:varName "rigAlias"^^xsd:string | 156 | + [ sp:varName "temporalPartOfARig"^^xsd:string |
178 | ] ; | 157 | ] ; |
179 | - sp:predicate ddr:rigAliasRef ; | 158 | + sp:predicate ep-activity:onRig ; |
180 | sp:subject | 159 | sp:subject |
181 | - [ sp:varName "wellboreInfo"^^xsd:string | 160 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
182 | ] | 161 | ] |
183 | ] [ sp:object | 162 | ] [ sp:object |
184 | - [ sp:varName "code"^^xsd:string | 163 | + [ sp:varName "rig"^^xsd:string |
185 | ] ; | 164 | ] ; |
186 | - sp:predicate ddr:name ; | 165 | + sp:predicate ep-core:temporalPartOf ; |
187 | sp:subject | 166 | sp:subject |
188 | - [ sp:varName "rigAlias"^^xsd:string | 167 | + [ sp:varName "temporalPartOfARig"^^xsd:string |
189 | ] | 168 | ] |
190 | - ] [ rdf:type sp:Union ; | 169 | + ] [ sp:object ep-facility:Rig ; |
191 | - sp:elements (([ sp:object "NPD Code"^^ddr:NameStringDatatype ; | 170 | + sp:predicate rdf:type ; |
192 | - sp:predicate ddr:namingSystem ; | ||
193 | sp:subject | 171 | sp:subject |
194 | - [ sp:varName "rigAlias"^^xsd:string | 172 | + [ sp:varName "rig"^^xsd:string |
195 | ] | 173 | ] |
196 | - ]) ([ sp:object "NPD code"^^ddr:NameStringDatatype ; | 174 | + ] [ sp:object |
197 | - sp:predicate ddr:namingSystem ; | 175 | + [ sp:varName "statusInfo"^^xsd:string |
176 | + ] ; | ||
177 | + sp:predicate ddr:statusInfoRef ; | ||
178 | + sp:subject spin:_this | ||
179 | + ] [ sp:object | ||
180 | + [ sp:varName "fixedRig"^^xsd:string | ||
181 | + ] ; | ||
182 | + sp:predicate ddr:fixedRig ; | ||
198 | sp:subject | 183 | sp:subject |
199 | - [ sp:varName "rigAlias"^^xsd:string | 184 | + [ sp:varName "statusInfo"^^xsd:string |
200 | ] | 185 | ] |
201 | - ])) | ||
202 | - ]) | ||
203 | ] [ rdf:type sp:Bind ; | 186 | ] [ rdf:type sp:Bind ; |
204 | sp:expression | 187 | sp:expression |
205 | [ rdf:type ep-spin-lib:normalizeString ; | 188 | [ rdf:type ep-spin-lib:normalizeString ; |
... | @@ -220,17 +203,80 @@ ddr:Obj_drillReport | ... | @@ -220,17 +203,80 @@ ddr:Obj_drillReport |
220 | sp:variable | 203 | sp:variable |
221 | [ sp:varName "dailyDrillingActivity"^^xsd:string | 204 | [ sp:varName "dailyDrillingActivity"^^xsd:string |
222 | ] | 205 | ] |
206 | + ] [ rdf:type sp:Bind ; | ||
207 | + sp:expression | ||
208 | + [ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ; | ||
209 | + sp:arg1 [ sp:varName "fixedRig"^^xsd:string | ||
210 | + ] | ||
211 | + ] ; | ||
212 | + sp:variable | ||
213 | + [ sp:varName "fixedOrMoveableRigType"^^xsd:string | ||
214 | + ] | ||
223 | ]) | 215 | ]) |
224 | ] ; | 216 | ] ; |
225 | spin:rule | 217 | spin:rule |
226 | [ rdf:type sp:Construct ; | 218 | [ rdf:type sp:Construct ; |
227 | rdfs:comment "STEP 161 Set NPD name for Rig"^^xsd:string ; | 219 | rdfs:comment "STEP 161 Set NPD name for Rig"^^xsd:string ; |
220 | + sp:templates ([ sp:object _:b3 ; | ||
221 | + sp:predicate ep-core:npdName ; | ||
222 | + sp:subject _:b4 | ||
223 | + ]) ; | ||
224 | + sp:where ([ sp:object _:b5 ; | ||
225 | + sp:predicate ep-spin-lib:nameWellbore ; | ||
226 | + sp:subject spin:_this | ||
227 | + ] [ sp:object _:b6 ; | ||
228 | + sp:predicate ddr:dTimStart ; | ||
229 | + sp:subject spin:_this | ||
230 | + ] [ sp:object _:b7 ; | ||
231 | + sp:predicate ddr:wellboreInfoRef ; | ||
232 | + sp:subject spin:_this | ||
233 | + ] [ sp:object _:b8 ; | ||
234 | + sp:predicate ddr:rigAliasRef ; | ||
235 | + sp:subject _:b7 | ||
236 | + ] [ sp:object _:b3 ; | ||
237 | + sp:predicate ddr:name ; | ||
238 | + sp:subject _:b8 | ||
239 | + ] [ rdf:type sp:Union ; | ||
240 | + sp:elements (([ sp:object "NPD Name"^^xsd:string ; | ||
241 | + sp:predicate ddr:namingSystem ; | ||
242 | + sp:subject _:b8 | ||
243 | + ]) ([ sp:object "NPD name"^^xsd:string ; | ||
244 | + sp:predicate ddr:namingSystem ; | ||
245 | + sp:subject _:b8 | ||
246 | + ])) | ||
247 | + ] [ sp:object _:b9 ; | ||
248 | + sp:predicate ep-activity:onRig ; | ||
249 | + sp:subject _:b10 | ||
250 | + ] [ sp:object _:b4 ; | ||
251 | + sp:predicate ep-core:temporalPartOf ; | ||
252 | + sp:subject _:b9 | ||
253 | + ] [ sp:object ep-facility:Rig ; | ||
254 | + sp:predicate rdf:type ; | ||
255 | + sp:subject _:b4 | ||
256 | + ] [ rdf:type sp:Bind ; | ||
257 | + sp:expression | ||
258 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
259 | + sp:arg1 _:b5 | ||
260 | + ] ; | ||
261 | + sp:variable _:b11 | ||
262 | + ] [ rdf:type sp:Bind ; | ||
263 | + sp:expression | ||
264 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
265 | + sp:arg1 _:b11 ; | ||
266 | + sp:arg2 _:b6 | ||
267 | + ] ; | ||
268 | + sp:variable _:b10 | ||
269 | + ]) | ||
270 | + ] ; | ||
271 | + spin:rule | ||
272 | + [ rdf:type sp:Construct ; | ||
273 | + rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ; | ||
228 | sp:templates ([ sp:object | 274 | sp:templates ([ sp:object |
229 | - [ sp:varName "name"^^xsd:string | 275 | + [ sp:varName "preSpudDate"^^xsd:string |
230 | ] ; | 276 | ] ; |
231 | - sp:predicate ep-core:npdName ; | 277 | + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ; |
232 | sp:subject | 278 | sp:subject |
233 | - [ sp:varName "rig"^^xsd:string | 279 | + [ sp:varName "wellBore"^^xsd:string |
234 | ] | 280 | ] |
235 | ]) ; | 281 | ]) ; |
236 | sp:where ([ sp:object | 282 | sp:where ([ sp:object |
... | @@ -249,49 +295,30 @@ ddr:Obj_drillReport | ... | @@ -249,49 +295,30 @@ ddr:Obj_drillReport |
249 | sp:predicate ddr:wellboreInfoRef ; | 295 | sp:predicate ddr:wellboreInfoRef ; |
250 | sp:subject spin:_this | 296 | sp:subject spin:_this |
251 | ] [ sp:object | 297 | ] [ sp:object |
252 | - [ sp:varName "rigAlias"^^xsd:string | 298 | + [ sp:varName "preSpudDate"^^xsd:string |
253 | ] ; | 299 | ] ; |
254 | - sp:predicate ddr:rigAliasRef ; | 300 | + sp:predicate ddr:dTimPreSpud ; |
255 | sp:subject | 301 | sp:subject |
256 | [ sp:varName "wellboreInfo"^^xsd:string | 302 | [ sp:varName "wellboreInfo"^^xsd:string |
257 | ] | 303 | ] |
258 | ] [ sp:object | 304 | ] [ sp:object |
259 | - [ sp:varName "name"^^xsd:string | 305 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
260 | - ] ; | ||
261 | - sp:predicate ddr:name ; | ||
262 | - sp:subject | ||
263 | - [ sp:varName "rigAlias"^^xsd:string | ||
264 | - ] | ||
265 | - ] [ rdf:type sp:Union ; | ||
266 | - sp:elements (([ sp:object "NPD Name"^^ddr:NameStringDatatype ; | ||
267 | - sp:predicate ddr:namingSystem ; | ||
268 | - sp:subject | ||
269 | - [ sp:varName "rigAlias"^^xsd:string | ||
270 | - ] | ||
271 | - ]) ([ sp:object "NPD name"^^ddr:NameStringDatatype ; | ||
272 | - sp:predicate ddr:namingSystem ; | ||
273 | - sp:subject | ||
274 | - [ sp:varName "rigAlias"^^xsd:string | ||
275 | - ] | ||
276 | - ])) | ||
277 | - ] [ sp:object | ||
278 | - [ sp:varName "temporalPartOfARig"^^xsd:string | ||
279 | ] ; | 306 | ] ; |
280 | - sp:predicate ep-activity:onRig ; | 307 | + sp:predicate ep-activity:onWellBore ; |
281 | sp:subject | 308 | sp:subject |
282 | [ sp:varName "dailyDrillingActivity"^^xsd:string | 309 | [ sp:varName "dailyDrillingActivity"^^xsd:string |
283 | ] | 310 | ] |
284 | ] [ sp:object | 311 | ] [ sp:object |
285 | - [ sp:varName "rig"^^xsd:string | 312 | + [ sp:varName "wellBore"^^xsd:string |
286 | ] ; | 313 | ] ; |
287 | sp:predicate ep-core:temporalPartOf ; | 314 | sp:predicate ep-core:temporalPartOf ; |
288 | sp:subject | 315 | sp:subject |
289 | - [ sp:varName "temporalPartOfARig"^^xsd:string | 316 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
290 | ] | 317 | ] |
291 | - ] [ sp:object ep-facility:Rig ; | 318 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
292 | sp:predicate rdf:type ; | 319 | sp:predicate rdf:type ; |
293 | sp:subject | 320 | sp:subject |
294 | - [ sp:varName "rig"^^xsd:string | 321 | + [ sp:varName "wellBore"^^xsd:string |
295 | ] | 322 | ] |
296 | ] [ rdf:type sp:Bind ; | 323 | ] [ rdf:type sp:Bind ; |
297 | sp:expression | 324 | sp:expression |
... | @@ -317,99 +344,77 @@ ddr:Obj_drillReport | ... | @@ -317,99 +344,77 @@ ddr:Obj_drillReport |
317 | ] ; | 344 | ] ; |
318 | spin:rule | 345 | spin:rule |
319 | [ rdf:type sp:Construct ; | 346 | [ rdf:type sp:Construct ; |
320 | - rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ; | 347 | + rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ; |
321 | - sp:templates ([ sp:object _:b4 ; | 348 | + sp:templates ([ sp:object _:b12 ; |
322 | - sp:predicate ep-activity:drillingOperator ; | 349 | + sp:predicate ep-activity:onRig ; |
323 | - sp:subject | 350 | + sp:subject _:b13 |
324 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 351 | + ] [ sp:object ep-facility:TemporalPartOfARig ; |
325 | - ] | ||
326 | - ] [ sp:object | ||
327 | - [ sp:varName "operator"^^xsd:string | ||
328 | - ] ; | ||
329 | - sp:predicate ep-core:temporalPartOf ; | ||
330 | - sp:subject _:b4 | ||
331 | - ] [ sp:object ep-org:Organization ; | ||
332 | sp:predicate rdf:type ; | 352 | sp:predicate rdf:type ; |
333 | - sp:subject _:b4 | 353 | + sp:subject _:b12 |
334 | - ] [ sp:object | 354 | + ] [ sp:object _:b14 ; |
335 | - [ sp:varName "nameOperator"^^xsd:string | 355 | + sp:predicate ep-core:temporalPartOf ; |
336 | - ] ; | 356 | + sp:subject _:b12 |
337 | - sp:predicate ep-core:name ; | 357 | + ] [ sp:object ep-facility:Rig ; |
338 | - sp:subject | ||
339 | - [ sp:varName "operator"^^xsd:string | ||
340 | - ] | ||
341 | - ] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
342 | sp:predicate rdf:type ; | 358 | sp:predicate rdf:type ; |
343 | - sp:subject | 359 | + sp:subject _:b14 |
344 | - [ sp:varName "operator"^^xsd:string | 360 | + ] [ sp:object _:b15 ; |
345 | - ] | 361 | + sp:predicate ep-core:npdCode ; |
362 | + sp:subject _:b14 | ||
346 | ]) ; | 363 | ]) ; |
347 | - sp:where ([ sp:object | 364 | + sp:where ([ sp:object _:b16 ; |
348 | - [ sp:varName "nameWellBore"^^xsd:string | ||
349 | - ] ; | ||
350 | sp:predicate ep-spin-lib:nameWellbore ; | 365 | sp:predicate ep-spin-lib:nameWellbore ; |
351 | sp:subject spin:_this | 366 | sp:subject spin:_this |
352 | - ] [ sp:object | 367 | + ] [ sp:object _:b17 ; |
353 | - [ sp:varName "dTimStart"^^xsd:string | ||
354 | - ] ; | ||
355 | sp:predicate ddr:dTimStart ; | 368 | sp:predicate ddr:dTimStart ; |
356 | sp:subject spin:_this | 369 | sp:subject spin:_this |
357 | - ] [ sp:object | 370 | + ] [ sp:object _:b18 ; |
358 | - [ sp:varName "wellboreInfo"^^xsd:string | ||
359 | - ] ; | ||
360 | sp:predicate ddr:wellboreInfoRef ; | 371 | sp:predicate ddr:wellboreInfoRef ; |
361 | sp:subject spin:_this | 372 | sp:subject spin:_this |
362 | - ] [ sp:object | 373 | + ] [ sp:object _:b19 ; |
363 | - [ sp:varName "nameOperator"^^xsd:string | 374 | + sp:predicate ddr:rigAliasRef ; |
364 | - ] ; | 375 | + sp:subject _:b18 |
365 | - sp:predicate ddr:operator ; | 376 | + ] [ sp:object _:b15 ; |
366 | - sp:subject | 377 | + sp:predicate ddr:name ; |
367 | - [ sp:varName "wellboreInfo"^^xsd:string | 378 | + sp:subject _:b19 |
368 | - ] | 379 | + ] [ rdf:type sp:Union ; |
380 | + sp:elements (([ sp:object "NPD Code"^^xsd:string ; | ||
381 | + sp:predicate ddr:namingSystem ; | ||
382 | + sp:subject _:b19 | ||
383 | + ]) ([ sp:object "NPD code"^^xsd:string ; | ||
384 | + sp:predicate ddr:namingSystem ; | ||
385 | + sp:subject _:b19 | ||
386 | + ])) | ||
369 | ] [ rdf:type sp:Bind ; | 387 | ] [ rdf:type sp:Bind ; |
370 | sp:expression | 388 | sp:expression |
371 | [ rdf:type ep-spin-lib:normalizeString ; | 389 | [ rdf:type ep-spin-lib:normalizeString ; |
372 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | 390 | + sp:arg1 _:b16 |
373 | - ] | ||
374 | ] ; | 391 | ] ; |
375 | - sp:variable | 392 | + sp:variable _:b20 |
376 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
377 | - ] | ||
378 | ] [ rdf:type sp:Bind ; | 393 | ] [ rdf:type sp:Bind ; |
379 | sp:expression | 394 | sp:expression |
380 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | 395 | + [ rdf:type ep-spin-lib:normalizeString ; |
381 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | 396 | + sp:arg1 _:b15 |
382 | - ] ; | ||
383 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | ||
384 | - ] | ||
385 | ] ; | 397 | ] ; |
386 | - sp:variable | 398 | + sp:variable _:b21 |
387 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
388 | - ] | ||
389 | ] [ rdf:type sp:Bind ; | 399 | ] [ rdf:type sp:Bind ; |
390 | sp:expression | 400 | sp:expression |
391 | - [ rdf:type ep-spin-lib:normalizeString ; | 401 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; |
392 | - sp:arg1 [ sp:varName "nameOperator"^^xsd:string | 402 | + sp:arg1 _:b20 ; |
393 | - ] | 403 | + sp:arg2 _:b17 |
394 | ] ; | 404 | ] ; |
395 | - sp:variable | 405 | + sp:variable _:b13 |
396 | - [ sp:varName "normalizedOperatorName"^^xsd:string | ||
397 | - ] | ||
398 | ] [ rdf:type sp:Bind ; | 406 | ] [ rdf:type sp:Bind ; |
399 | sp:expression | 407 | sp:expression |
400 | - [ rdf:type rhspin:companyById ; | 408 | + [ rdf:type ep-spin-lib:buildRigURI ; |
401 | - arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | 409 | + sp:arg1 _:b21 |
402 | - ] | ||
403 | ] ; | 410 | ] ; |
404 | - sp:variable | 411 | + sp:variable _:b14 |
405 | - [ sp:varName "operator"^^xsd:string | ||
406 | - ] | ||
407 | ]) | 412 | ]) |
408 | ] ; | 413 | ] ; |
409 | spin:rule | 414 | spin:rule |
410 | [ rdf:type sp:Construct ; | 415 | [ rdf:type sp:Construct ; |
411 | rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ; | 416 | rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ; |
412 | - sp:templates ([ sp:object _:b5 ; | 417 | + sp:templates ([ sp:object _:b22 ; |
413 | sp:predicate ep-activity:drillingContractor ; | 418 | sp:predicate ep-activity:drillingContractor ; |
414 | sp:subject | 419 | sp:subject |
415 | [ sp:varName "dailyDrillingActivity"^^xsd:string | 420 | [ sp:varName "dailyDrillingActivity"^^xsd:string |
... | @@ -418,10 +423,10 @@ ddr:Obj_drillReport | ... | @@ -418,10 +423,10 @@ ddr:Obj_drillReport |
418 | [ sp:varName "contractor"^^xsd:string | 423 | [ sp:varName "contractor"^^xsd:string |
419 | ] ; | 424 | ] ; |
420 | sp:predicate ep-core:temporalPartOf ; | 425 | sp:predicate ep-core:temporalPartOf ; |
421 | - sp:subject _:b5 | 426 | + sp:subject _:b22 |
422 | ] [ sp:object ep-org:Organization ; | 427 | ] [ sp:object ep-org:Organization ; |
423 | sp:predicate rdf:type ; | 428 | sp:predicate rdf:type ; |
424 | - sp:subject _:b5 | 429 | + sp:subject _:b22 |
425 | ] [ sp:object | 430 | ] [ sp:object |
426 | [ sp:varName "nameContractor"^^xsd:string | 431 | [ sp:varName "nameContractor"^^xsd:string |
427 | ] ; | 432 | ] ; |
... | @@ -432,80 +437,7 @@ ddr:Obj_drillReport | ... | @@ -432,80 +437,7 @@ ddr:Obj_drillReport |
432 | ] [ sp:object ep-org:Company ; | 437 | ] [ sp:object ep-org:Company ; |
433 | sp:predicate rdf:type ; | 438 | sp:predicate rdf:type ; |
434 | sp:subject | 439 | sp:subject |
435 | - [ sp:varName "contractor"^^xsd:string | 440 | + [ sp:varName "contractor"^^xsd:string |
436 | - ] | ||
437 | - ]) ; | ||
438 | - sp:where ([ sp:object | ||
439 | - [ sp:varName "nameWellBore"^^xsd:string | ||
440 | - ] ; | ||
441 | - sp:predicate ep-spin-lib:nameWellbore ; | ||
442 | - sp:subject spin:_this | ||
443 | - ] [ sp:object | ||
444 | - [ sp:varName "dTimStart"^^xsd:string | ||
445 | - ] ; | ||
446 | - sp:predicate ddr:dTimStart ; | ||
447 | - sp:subject spin:_this | ||
448 | - ] [ sp:object | ||
449 | - [ sp:varName "wellboreInfo"^^xsd:string | ||
450 | - ] ; | ||
451 | - sp:predicate ddr:wellboreInfoRef ; | ||
452 | - sp:subject spin:_this | ||
453 | - ] [ sp:object | ||
454 | - [ sp:varName "nameContractor"^^xsd:string | ||
455 | - ] ; | ||
456 | - sp:predicate ddr:drillContractor ; | ||
457 | - sp:subject | ||
458 | - [ sp:varName "wellboreInfo"^^xsd:string | ||
459 | - ] | ||
460 | - ] [ rdf:type sp:Bind ; | ||
461 | - sp:expression | ||
462 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
463 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | ||
464 | - ] | ||
465 | - ] ; | ||
466 | - sp:variable | ||
467 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
468 | - ] | ||
469 | - ] [ rdf:type sp:Bind ; | ||
470 | - sp:expression | ||
471 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
472 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
473 | - ] ; | ||
474 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | ||
475 | - ] | ||
476 | - ] ; | ||
477 | - sp:variable | ||
478 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
479 | - ] | ||
480 | - ] [ rdf:type sp:Bind ; | ||
481 | - sp:expression | ||
482 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
483 | - sp:arg1 [ sp:varName "nameContractor"^^xsd:string | ||
484 | - ] | ||
485 | - ] ; | ||
486 | - sp:variable | ||
487 | - [ sp:varName "normalizedContractorName"^^xsd:string | ||
488 | - ] | ||
489 | - ] [ rdf:type sp:Bind ; | ||
490 | - sp:expression | ||
491 | - [ rdf:type rhspin:companyById ; | ||
492 | - arg:id [ sp:varName "normalizedContractorName"^^xsd:string | ||
493 | - ] | ||
494 | - ] ; | ||
495 | - sp:variable | ||
496 | - [ sp:varName "contractor"^^xsd:string | ||
497 | - ] | ||
498 | - ]) | ||
499 | - ] ; | ||
500 | - spin:rule | ||
501 | - [ rdf:type sp:Construct ; | ||
502 | - rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ; | ||
503 | - sp:templates ([ sp:object | ||
504 | - [ sp:varName "preSpudDate"^^xsd:string | ||
505 | - ] ; | ||
506 | - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ; | ||
507 | - sp:subject | ||
508 | - [ sp:varName "wellBore"^^xsd:string | ||
509 | ] | 441 | ] |
510 | ]) ; | 442 | ]) ; |
511 | sp:where ([ sp:object | 443 | sp:where ([ sp:object |
... | @@ -524,31 +456,12 @@ ddr:Obj_drillReport | ... | @@ -524,31 +456,12 @@ ddr:Obj_drillReport |
524 | sp:predicate ddr:wellboreInfoRef ; | 456 | sp:predicate ddr:wellboreInfoRef ; |
525 | sp:subject spin:_this | 457 | sp:subject spin:_this |
526 | ] [ sp:object | 458 | ] [ sp:object |
527 | - [ sp:varName "preSpudDate"^^xsd:string | 459 | + [ sp:varName "nameContractor"^^xsd:string |
528 | ] ; | 460 | ] ; |
529 | - sp:predicate ddr:dTimPreSpud ; | 461 | + sp:predicate ddr:drillContractor ; |
530 | sp:subject | 462 | sp:subject |
531 | [ sp:varName "wellboreInfo"^^xsd:string | 463 | [ sp:varName "wellboreInfo"^^xsd:string |
532 | ] | 464 | ] |
533 | - ] [ sp:object | ||
534 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | ||
535 | - ] ; | ||
536 | - sp:predicate ep-activity:onWellBore ; | ||
537 | - sp:subject | ||
538 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
539 | - ] | ||
540 | - ] [ sp:object | ||
541 | - [ sp:varName "wellBore"^^xsd:string | ||
542 | - ] ; | ||
543 | - sp:predicate ep-core:temporalPartOf ; | ||
544 | - sp:subject | ||
545 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | ||
546 | - ] | ||
547 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
548 | - sp:predicate rdf:type ; | ||
549 | - sp:subject | ||
550 | - [ sp:varName "wellBore"^^xsd:string | ||
551 | - ] | ||
552 | ] [ rdf:type sp:Bind ; | 465 | ] [ rdf:type sp:Bind ; |
553 | sp:expression | 466 | sp:expression |
554 | [ rdf:type ep-spin-lib:normalizeString ; | 467 | [ rdf:type ep-spin-lib:normalizeString ; |
... | @@ -569,15 +482,33 @@ ddr:Obj_drillReport | ... | @@ -569,15 +482,33 @@ ddr:Obj_drillReport |
569 | sp:variable | 482 | sp:variable |
570 | [ sp:varName "dailyDrillingActivity"^^xsd:string | 483 | [ sp:varName "dailyDrillingActivity"^^xsd:string |
571 | ] | 484 | ] |
485 | + ] [ rdf:type sp:Bind ; | ||
486 | + sp:expression | ||
487 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
488 | + sp:arg1 [ sp:varName "nameContractor"^^xsd:string | ||
489 | + ] | ||
490 | + ] ; | ||
491 | + sp:variable | ||
492 | + [ sp:varName "normalizedContractorName"^^xsd:string | ||
493 | + ] | ||
494 | + ] [ rdf:type sp:Bind ; | ||
495 | + sp:expression | ||
496 | + [ rdf:type rhspin:companyById ; | ||
497 | + arg:id [ sp:varName "normalizedContractorName"^^xsd:string | ||
498 | + ] | ||
499 | + ] ; | ||
500 | + sp:variable | ||
501 | + [ sp:varName "contractor"^^xsd:string | ||
502 | + ] | ||
572 | ]) | 503 | ]) |
573 | ] ; | 504 | ] ; |
574 | spin:rule | 505 | spin:rule |
575 | [ rdf:type sp:Construct ; | 506 | [ rdf:type sp:Construct ; |
576 | - rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ; | 507 | + rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ; |
577 | sp:templates ([ sp:object | 508 | sp:templates ([ sp:object |
578 | - [ sp:varName "spudDate"^^xsd:string | 509 | + [ sp:varName "dateDrillComplete"^^xsd:string |
579 | ] ; | 510 | ] ; |
580 | - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ; | 511 | + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ; |
581 | sp:subject | 512 | sp:subject |
582 | [ sp:varName "wellBore"^^xsd:string | 513 | [ sp:varName "wellBore"^^xsd:string |
583 | ] | 514 | ] |
... | @@ -598,9 +529,9 @@ ddr:Obj_drillReport | ... | @@ -598,9 +529,9 @@ ddr:Obj_drillReport |
598 | sp:predicate ddr:wellboreInfoRef ; | 529 | sp:predicate ddr:wellboreInfoRef ; |
599 | sp:subject spin:_this | 530 | sp:subject spin:_this |
600 | ] [ sp:object | 531 | ] [ sp:object |
601 | - [ sp:varName "spudDate"^^xsd:string | 532 | + [ sp:varName "dateDrillComplete"^^xsd:string |
602 | ] ; | 533 | ] ; |
603 | - sp:predicate ddr:dTimSpud ; | 534 | + sp:predicate ddr:dateDrillComplete ; |
604 | sp:subject | 535 | sp:subject |
605 | [ sp:varName "wellboreInfo"^^xsd:string | 536 | [ sp:varName "wellboreInfo"^^xsd:string |
606 | ] | 537 | ] |
... | @@ -647,11 +578,11 @@ ddr:Obj_drillReport | ... | @@ -647,11 +578,11 @@ ddr:Obj_drillReport |
647 | ] ; | 578 | ] ; |
648 | spin:rule | 579 | spin:rule |
649 | [ rdf:type sp:Construct ; | 580 | [ rdf:type sp:Construct ; |
650 | - rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ; | 581 | + rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ; |
651 | sp:templates ([ sp:object | 582 | sp:templates ([ sp:object |
652 | - [ sp:varName "dateDrillComplete"^^xsd:string | 583 | + [ sp:varName "spudDate"^^xsd:string |
653 | ] ; | 584 | ] ; |
654 | - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ; | 585 | + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ; |
655 | sp:subject | 586 | sp:subject |
656 | [ sp:varName "wellBore"^^xsd:string | 587 | [ sp:varName "wellBore"^^xsd:string |
657 | ] | 588 | ] |
... | @@ -672,9 +603,9 @@ ddr:Obj_drillReport | ... | @@ -672,9 +603,9 @@ ddr:Obj_drillReport |
672 | sp:predicate ddr:wellboreInfoRef ; | 603 | sp:predicate ddr:wellboreInfoRef ; |
673 | sp:subject spin:_this | 604 | sp:subject spin:_this |
674 | ] [ sp:object | 605 | ] [ sp:object |
675 | - [ sp:varName "dateDrillComplete"^^xsd:string | 606 | + [ sp:varName "spudDate"^^xsd:string |
676 | ] ; | 607 | ] ; |
677 | - sp:predicate ddr:dateDrillComplete ; | 608 | + sp:predicate ddr:dTimSpud ; |
678 | sp:subject | 609 | sp:subject |
679 | [ sp:varName "wellboreInfo"^^xsd:string | 610 | [ sp:varName "wellboreInfo"^^xsd:string |
680 | ] | 611 | ] |
... | @@ -721,14 +652,31 @@ ddr:Obj_drillReport | ... | @@ -721,14 +652,31 @@ ddr:Obj_drillReport |
721 | ] ; | 652 | ] ; |
722 | spin:rule | 653 | spin:rule |
723 | [ rdf:type sp:Construct ; | 654 | [ rdf:type sp:Construct ; |
724 | - rdfs:comment """STEP 168 Transfer fixedRig | 655 | + rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ; |
725 | -This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; | 656 | + sp:templates ([ sp:object _:b23 ; |
726 | - sp:templates ([ sp:object | 657 | + sp:predicate ep-activity:drillingOperator ; |
727 | - [ sp:varName "fixedOrMoveableRigType"^^xsd:string | 658 | + sp:subject |
659 | + [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
660 | + ] | ||
661 | + ] [ sp:object | ||
662 | + [ sp:varName "operator"^^xsd:string | ||
663 | + ] ; | ||
664 | + sp:predicate ep-core:temporalPartOf ; | ||
665 | + sp:subject _:b23 | ||
666 | + ] [ sp:object ep-org:Organization ; | ||
667 | + sp:predicate rdf:type ; | ||
668 | + sp:subject _:b23 | ||
669 | + ] [ sp:object | ||
670 | + [ sp:varName "nameOperator"^^xsd:string | ||
728 | ] ; | 671 | ] ; |
672 | + sp:predicate ep-core:name ; | ||
673 | + sp:subject | ||
674 | + [ sp:varName "operator"^^xsd:string | ||
675 | + ] | ||
676 | + ] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
729 | sp:predicate rdf:type ; | 677 | sp:predicate rdf:type ; |
730 | sp:subject | 678 | sp:subject |
731 | - [ sp:varName "rig"^^xsd:string | 679 | + [ sp:varName "operator"^^xsd:string |
732 | ] | 680 | ] |
733 | ]) ; | 681 | ]) ; |
734 | sp:where ([ sp:object | 682 | sp:where ([ sp:object |
... | @@ -742,35 +690,16 @@ This rule processes data from statusInfo, but is here because it must be execute | ... | @@ -742,35 +690,16 @@ This rule processes data from statusInfo, but is here because it must be execute |
742 | sp:predicate ddr:dTimStart ; | 690 | sp:predicate ddr:dTimStart ; |
743 | sp:subject spin:_this | 691 | sp:subject spin:_this |
744 | ] [ sp:object | 692 | ] [ sp:object |
745 | - [ sp:varName "temporalPartOfARig"^^xsd:string | 693 | + [ sp:varName "wellboreInfo"^^xsd:string |
746 | - ] ; | ||
747 | - sp:predicate ep-activity:onRig ; | ||
748 | - sp:subject | ||
749 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
750 | - ] | ||
751 | - ] [ sp:object | ||
752 | - [ sp:varName "rig"^^xsd:string | ||
753 | - ] ; | ||
754 | - sp:predicate ep-core:temporalPartOf ; | ||
755 | - sp:subject | ||
756 | - [ sp:varName "temporalPartOfARig"^^xsd:string | ||
757 | - ] | ||
758 | - ] [ sp:object ep-facility:Rig ; | ||
759 | - sp:predicate rdf:type ; | ||
760 | - sp:subject | ||
761 | - [ sp:varName "rig"^^xsd:string | ||
762 | - ] | ||
763 | - ] [ sp:object | ||
764 | - [ sp:varName "statusInfo"^^xsd:string | ||
765 | ] ; | 694 | ] ; |
766 | - sp:predicate ddr:statusInfoRef ; | 695 | + sp:predicate ddr:wellboreInfoRef ; |
767 | sp:subject spin:_this | 696 | sp:subject spin:_this |
768 | ] [ sp:object | 697 | ] [ sp:object |
769 | - [ sp:varName "fixedRig"^^xsd:string | 698 | + [ sp:varName "nameOperator"^^xsd:string |
770 | ] ; | 699 | ] ; |
771 | - sp:predicate ddr:fixedRig ; | 700 | + sp:predicate ddr:operator ; |
772 | sp:subject | 701 | sp:subject |
773 | - [ sp:varName "statusInfo"^^xsd:string | 702 | + [ sp:varName "wellboreInfo"^^xsd:string |
774 | ] | 703 | ] |
775 | ] [ rdf:type sp:Bind ; | 704 | ] [ rdf:type sp:Bind ; |
776 | sp:expression | 705 | sp:expression |
... | @@ -794,12 +723,21 @@ This rule processes data from statusInfo, but is here because it must be execute | ... | @@ -794,12 +723,21 @@ This rule processes data from statusInfo, but is here because it must be execute |
794 | ] | 723 | ] |
795 | ] [ rdf:type sp:Bind ; | 724 | ] [ rdf:type sp:Bind ; |
796 | sp:expression | 725 | sp:expression |
797 | - [ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ; | 726 | + [ rdf:type ep-spin-lib:normalizeString ; |
798 | - sp:arg1 [ sp:varName "fixedRig"^^xsd:string | 727 | + sp:arg1 [ sp:varName "nameOperator"^^xsd:string |
799 | ] | 728 | ] |
800 | ] ; | 729 | ] ; |
801 | sp:variable | 730 | sp:variable |
802 | - [ sp:varName "fixedOrMoveableRigType"^^xsd:string | 731 | + [ sp:varName "normalizedOperatorName"^^xsd:string |
732 | + ] | ||
733 | + ] [ rdf:type sp:Bind ; | ||
734 | + sp:expression | ||
735 | + [ rdf:type rhspin:companyById ; | ||
736 | + arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | ||
737 | + ] | ||
738 | + ] ; | ||
739 | + sp:variable | ||
740 | + [ sp:varName "operator"^^xsd:string | ||
803 | ] | 741 | ] |
804 | ]) | 742 | ]) |
805 | ] ; | 743 | ] ; |
... | @@ -807,27 +745,27 @@ This rule processes data from statusInfo, but is here because it must be execute | ... | @@ -807,27 +745,27 @@ This rule processes data from statusInfo, but is here because it must be execute |
807 | [ rdf:type sp:Construct ; | 745 | [ rdf:type sp:Construct ; |
808 | rdfs:comment """STEP 169 Transfer elevKelly | 746 | rdfs:comment """STEP 169 Transfer elevKelly |
809 | This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; | 747 | This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; |
810 | - sp:templates ([ sp:object _:b6 ; | 748 | + sp:templates ([ sp:object _:b24 ; |
811 | sp:predicate ep-core:hasPart ; | 749 | sp:predicate ep-core:hasPart ; |
812 | sp:subject | 750 | sp:subject |
813 | [ sp:varName "temporalPartOfARig"^^xsd:string | 751 | [ sp:varName "temporalPartOfARig"^^xsd:string |
814 | ] | 752 | ] |
815 | ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ; | 753 | ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ; |
816 | sp:predicate rdf:type ; | 754 | sp:predicate rdf:type ; |
817 | - sp:subject _:b6 | 755 | + sp:subject _:b24 |
818 | - ] [ sp:object _:b7 ; | 756 | + ] [ sp:object _:b25 ; |
819 | sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ; | 757 | sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ; |
820 | - sp:subject _:b6 | 758 | + sp:subject _:b24 |
821 | ] [ sp:object ep-core:Length ; | 759 | ] [ sp:object ep-core:Length ; |
822 | sp:predicate rdf:type ; | 760 | sp:predicate rdf:type ; |
823 | - sp:subject _:b7 | 761 | + sp:subject _:b25 |
824 | ] [ sp:object | 762 | ] [ sp:object |
825 | [ sp:varName "real"^^xsd:string | 763 | [ sp:varName "real"^^xsd:string |
826 | ] ; | 764 | ] ; |
827 | sp:predicate | 765 | sp:predicate |
828 | [ sp:varName "lengthScale"^^xsd:string | 766 | [ sp:varName "lengthScale"^^xsd:string |
829 | ] ; | 767 | ] ; |
830 | - sp:subject _:b7 | 768 | + sp:subject _:b25 |
831 | ]) ; | 769 | ]) ; |
832 | sp:where ([ sp:object | 770 | sp:where ([ sp:object |
833 | [ sp:varName "nameWellBore"^^xsd:string | 771 | [ sp:varName "nameWellBore"^^xsd:string |
... | @@ -905,112 +843,135 @@ This rule processes data from statusInfo, but is here because it must be execute | ... | @@ -905,112 +843,135 @@ This rule processes data from statusInfo, but is here because it must be execute |
905 | ] ; | 843 | ] ; |
906 | spin:rule | 844 | spin:rule |
907 | [ rdf:type sp:Construct ; | 845 | [ rdf:type sp:Construct ; |
908 | - rdfs:comment """STEP 169a Transfer waterDepth | 846 | + rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ; |
909 | -This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; | 847 | + sp:templates ([ sp:object _:b26 ; |
910 | - sp:templates ([ sp:object _:b8 ; | 848 | + sp:predicate ep-activity:onRig ; |
911 | - sp:predicate ep-core:hasPart ; | 849 | + sp:subject _:b27 |
912 | - sp:subject | 850 | + ] [ sp:object ep-facility:TemporalPartOfARig ; |
913 | - [ sp:varName "temporalPartOfARig"^^xsd:string | ||
914 | - ] | ||
915 | - ] [ sp:object ep-facility:SurroundingWater ; | ||
916 | sp:predicate rdf:type ; | 851 | sp:predicate rdf:type ; |
917 | - sp:subject _:b8 | 852 | + sp:subject _:b26 |
918 | - ] [ sp:object _:b9 ; | 853 | + ] [ sp:object _:b28 ; |
919 | - sp:predicate ep-facility:depthOfSurroundingWater ; | 854 | + sp:predicate ep-core:temporalPartOf ; |
920 | - sp:subject _:b8 | 855 | + sp:subject _:b26 |
921 | - ] [ sp:object ep-core:Length ; | 856 | + ] [ sp:object ep-facility:Rig ; |
922 | sp:predicate rdf:type ; | 857 | sp:predicate rdf:type ; |
923 | - sp:subject _:b9 | 858 | + sp:subject _:b28 |
924 | - ] [ sp:object | ||
925 | - [ sp:varName "real"^^xsd:string | ||
926 | - ] ; | ||
927 | - sp:predicate | ||
928 | - [ sp:varName "lengthScale"^^xsd:string | ||
929 | - ] ; | ||
930 | - sp:subject _:b9 | ||
931 | ]) ; | 859 | ]) ; |
932 | - sp:where ([ sp:object | 860 | + sp:where ([ sp:object _:b29 ; |
933 | - [ sp:varName "nameWellBore"^^xsd:string | ||
934 | - ] ; | ||
935 | sp:predicate ep-spin-lib:nameWellbore ; | 861 | sp:predicate ep-spin-lib:nameWellbore ; |
936 | sp:subject spin:_this | 862 | sp:subject spin:_this |
937 | - ] [ sp:object | 863 | + ] [ sp:object _:b30 ; |
938 | - [ sp:varName "dTimStart"^^xsd:string | ||
939 | - ] ; | ||
940 | sp:predicate ddr:dTimStart ; | 864 | sp:predicate ddr:dTimStart ; |
941 | sp:subject spin:_this | 865 | sp:subject spin:_this |
942 | - ] [ sp:object | 866 | + ] [ rdf:type sp:NotExists ; |
943 | - [ sp:varName "statusInfo"^^xsd:string | 867 | + sp:elements ([ sp:object _:b31 ; |
944 | - ] ; | 868 | + sp:predicate ddr:wellboreInfoRef ; |
945 | - sp:predicate ddr:statusInfoRef ; | ||
946 | sp:subject spin:_this | 869 | sp:subject spin:_this |
870 | + ] [ sp:object _:b32 ; | ||
871 | + sp:predicate ddr:rigAliasRef ; | ||
872 | + sp:subject _:b31 | ||
947 | ] [ sp:object | 873 | ] [ sp:object |
948 | - [ sp:varName "temporalPartOfARig"^^xsd:string | 874 | + [ sp:varName "code"^^xsd:string |
949 | - ] ; | ||
950 | - sp:predicate ep-activity:onRig ; | ||
951 | - sp:subject | ||
952 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
953 | - ] | ||
954 | - ] [ sp:object | ||
955 | - [ sp:varName "waterDepth"^^xsd:string | ||
956 | - ] ; | ||
957 | - sp:predicate ddr:waterDepthRef ; | ||
958 | - sp:subject | ||
959 | - [ sp:varName "statusInfo"^^xsd:string | ||
960 | - ] | ||
961 | - ] [ sp:object | ||
962 | - [ sp:varName "real"^^xsd:string | ||
963 | - ] ; | ||
964 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
965 | - sp:subject | ||
966 | - [ sp:varName "waterDepth"^^xsd:string | ||
967 | - ] | ||
968 | - ] [ sp:object | ||
969 | - [ sp:varName "uom"^^xsd:string | ||
970 | ] ; | 875 | ] ; |
971 | - sp:predicate ddr:uomRef ; | 876 | + sp:predicate ddr:name ; |
972 | - sp:subject | 877 | + sp:subject _:b32 |
973 | - [ sp:varName "waterDepth"^^xsd:string | 878 | + ] [ rdf:type sp:Union ; |
974 | - ] | 879 | + sp:elements (([ sp:object "NPD Code"^^xsd:string ; |
880 | + sp:predicate ddr:namingSystem ; | ||
881 | + sp:subject _:b32 | ||
882 | + ]) ([ sp:object "NPD code"^^xsd:string ; | ||
883 | + sp:predicate ddr:namingSystem ; | ||
884 | + sp:subject _:b32 | ||
885 | + ])) | ||
886 | + ]) | ||
975 | ] [ rdf:type sp:Bind ; | 887 | ] [ rdf:type sp:Bind ; |
976 | sp:expression | 888 | sp:expression |
977 | [ rdf:type ep-spin-lib:normalizeString ; | 889 | [ rdf:type ep-spin-lib:normalizeString ; |
978 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | 890 | + sp:arg1 _:b29 |
979 | - ] | ||
980 | ] ; | 891 | ] ; |
981 | - sp:variable | 892 | + sp:variable _:b33 |
982 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
983 | - ] | ||
984 | ] [ rdf:type sp:Bind ; | 893 | ] [ rdf:type sp:Bind ; |
985 | sp:expression | 894 | sp:expression |
986 | [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | 895 | [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; |
987 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | 896 | + sp:arg1 _:b33 ; |
988 | - ] ; | 897 | + sp:arg2 _:b30 |
989 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | ||
990 | - ] | ||
991 | - ] ; | ||
992 | - sp:variable | ||
993 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
994 | - ] | ||
995 | - ] [ rdf:type sp:Bind ; | ||
996 | - sp:expression | ||
997 | - [ rdf:type ep-spin-lib:selectLengthScale ; | ||
998 | - sp:arg1 [ sp:varName "uom"^^xsd:string | ||
999 | - ] | ||
1000 | ] ; | 898 | ] ; |
1001 | - sp:variable | 899 | + sp:variable _:b27 |
1002 | - [ sp:varName "lengthScale"^^xsd:string | ||
1003 | - ] | ||
1004 | ]) | 900 | ]) |
1005 | ] . | 901 | ] . |
1006 | 902 | ||
1007 | -[] rdf:type sp:Modify . | 903 | +[] rdf:type smf:regex . |
904 | + | ||
905 | +[] rdf:type smf:trim . | ||
1008 | 906 | ||
1009 | [] rdf:type fn:starts-with . | 907 | [] rdf:type fn:starts-with . |
1010 | 908 | ||
1011 | -[] rdf:type smf:trim . | 909 | +[] rdf:type sp:Modify . |
1012 | 910 | ||
1013 | -[] rdf:type smf:regex . | 911 | +_:b5 sp:varName "nameWellBore"^^xsd:string . |
912 | + | ||
913 | +_:b6 sp:varName "dTimStart"^^xsd:string . | ||
914 | + | ||
915 | +_:b7 sp:varName "wellboreInfo"^^xsd:string . | ||
916 | + | ||
917 | +_:b8 sp:varName "rigAlias"^^xsd:string . | ||
918 | + | ||
919 | +_:b3 sp:varName "name"^^xsd:string . | ||
920 | + | ||
921 | +_:b10 | ||
922 | + sp:varName "dailyDrillingActivity"^^xsd:string . | ||
923 | + | ||
924 | +_:b9 sp:varName "temporalPartOfARig"^^xsd:string . | ||
925 | + | ||
926 | +_:b4 sp:varName "rig"^^xsd:string . | ||
927 | + | ||
928 | +_:b11 | ||
929 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
930 | + | ||
931 | +_:b29 | ||
932 | + sp:varName "nameWellBore"^^xsd:string . | ||
933 | + | ||
934 | +_:b30 | ||
935 | + sp:varName "dTimStart"^^xsd:string . | ||
936 | + | ||
937 | +_:b31 | ||
938 | + sp:varName "wellboreInfo"^^xsd:string . | ||
939 | + | ||
940 | +_:b32 | ||
941 | + sp:varName "rigAlias"^^xsd:string . | ||
942 | + | ||
943 | +_:b33 | ||
944 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
945 | + | ||
946 | +_:b27 | ||
947 | + sp:varName "dailyDrillingActivity"^^xsd:string . | ||
948 | + | ||
949 | +_:b16 | ||
950 | + sp:varName "nameWellBore"^^xsd:string . | ||
951 | + | ||
952 | +_:b17 | ||
953 | + sp:varName "dTimStart"^^xsd:string . | ||
954 | + | ||
955 | +_:b18 | ||
956 | + sp:varName "wellboreInfo"^^xsd:string . | ||
957 | + | ||
958 | +_:b19 | ||
959 | + sp:varName "rigAlias"^^xsd:string . | ||
960 | + | ||
961 | +_:b15 | ||
962 | + sp:varName "code"^^xsd:string . | ||
963 | + | ||
964 | +_:b20 | ||
965 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
966 | + | ||
967 | +_:b21 | ||
968 | + sp:varName "normalizedCode"^^xsd:string . | ||
969 | + | ||
970 | +_:b13 | ||
971 | + sp:varName "dailyDrillingActivity"^^xsd:string . | ||
972 | + | ||
973 | +_:b14 | ||
974 | + sp:varName "rig"^^xsd:string . | ||
1014 | 975 | ||
1015 | ([]) . | 976 | ([]) . |
1016 | 977 | ... | ... |
-
Please register or login to post a comment