TRANSFORM_ddr-v1.1.1.ttl 42.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017
# Saved by TopBraid on Wed Aug 10 18:50:05 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml

@prefix NPD_110412124707:  <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
@prefix NPD_1104121247071:  <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix afn:     <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ddr:     <http://www.reportinghub.no/ep/schema/ddr#> .
@prefix fn:      <http://www.w3.org/2005/xpath-functions#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf:     <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp:      <http://spinrdf.org/sp#> .
@prefix spif:    <http://spinrdf.org/spif#> .
@prefix spin:    <http://spinrdf.org/spin#> .
@prefix sxml:    <http://topbraid.org/sxml#> .
@prefix wellAndWellBoreAlias:  <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

NPD_1104121247071:r-0-7
      sxml:element "witsml:wellAlias"^^xsd:string .

NPD_1104121247071:r-0-8
      sxml:element "witsml:wellboreAlias"^^xsd:string .

NPD_1104121247071:r-0-9
      sxml:element "witsml:wellboreAlias"^^xsd:string .

ddr:Cs_activity
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
                            sp:predicate rdf:type ;
                            sp:subject spin:_this
                          ]) ;
                sp:where ()
              ] ;
      sxml:element "witsml:activity"^^xsd:string .

ddr:Cs_alias
      sxml:element "witsml:rigAlias"^^xsd:string , "witsml:alias" .

ddr:Cs_bitRecord
      sxml:element "witsml:bitRecord" .

ddr:Cs_documentAudit
      sxml:element "witsml:documentAudit" .

ddr:Cs_documentEvent
      sxml:element "witsml:documentEvent" .

ddr:Cs_documentFileCreation
      sxml:element "witsml:documentFileCreation" .

ddr:Cs_documentInfo
      sxml:element "witsml:documentInfo" .

ddr:Cs_documentSecurityInfo
      sxml:element "witsml:documentSecurityInfo" .

ddr:Cs_drillReportControlIncidentInfo
      sxml:element "witsml:drillReportControlIncidentInfo" .

ddr:Cs_drillReportCoreInfo
      sxml:element "witsml:drillReportCoreInfo" .

ddr:Cs_drillReportEquipFailureInfo
      sxml:element "witsml:drillReportEquipFailureInfo" .

ddr:Cs_drillReportFormTestInfo
      sxml:element "witsml:drillReportFormTestInfo" .

ddr:Cs_drillReportGasReadingInfo
      sxml:element "witsml:drillReportGasReadingInfo" .

ddr:Cs_drillReportLithShowInfo
      sxml:element "witsml:drillReportLithShowInfo" .

ddr:Cs_drillReportLogInfo
      sxml:element "witsml:drillReportLogInfo" .

ddr:Cs_drillReportPerfInfo
      sxml:element "witsml:drillReportPerfInfo" .

ddr:Cs_drillReportPorePressure
      sxml:element "witsml:drillReportPorePressure" .

ddr:Cs_drillReportStatusInfo
      sxml:element "witsml:statusInfo"^^xsd:string , "witsml:drillReportStatusInfo" .

ddr:Cs_drillReportStratInfo
      sxml:element "witsml:drillReportStratInfo" .

ddr:Cs_drillReportSurveyStation
      sxml:element "witsml:drillReportSurveyStation" .

ddr:Cs_drillReportWellTestInfo
      sxml:element "witsml:drillReportWellTestInfo" .

ddr:Cs_drillReportWellboreInfo
      sxml:element "witsml:wellboreInfo"^^xsd:string .

ddr:Cs_fluid
      sxml:element "witsml:fluid" .

ddr:Cs_geodeticModel
      sxml:element "witsml:geodeticModel" .

ddr:Cs_localCRS
      sxml:element "witsml:localCRS" .

ddr:Cs_location
      sxml:element "witsml:location" .

ddr:Cs_projectionx
      sxml:element "witsml:projectionx" .

ddr:Cs_refWellWellbore
      sxml:element "witsml:refWellWellbore" .

ddr:Cs_refWellWellboreRig
      sxml:element "witsml:refWellWellboreRig" .

ddr:Cs_wellAlias
      sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias"^^xsd:string .

ddr:Cs_wellCRS
      sxml:element "witsml:wellCRS" .

ddr:Cs_wellDatum
      sxml:element "witsml:wellDatum" .

ddr:DrillReports
      sxml:element "witsml:drillReports"^^xsd:string .

ddr:Obj_drillReport
      sxml:element "witsml:drillReport"^^xsd:string .

ddr:Thing
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 018 - Construct all other object properties - WIP"^^xsd:string ;
                sp:templates ([ sp:object _:b1 ;
                            sp:predicate _:b2 ;
                            sp:subject spin:_this
                          ] [ sp:object rdf:Statement ;
                            sp:predicate rdf:type ;
                            sp:subject _:b3
                          ] [ sp:object spin:_this ;
                            sp:predicate rdf:subject ;
                            sp:subject _:b3
                          ] [ sp:object _:b2 ;
                            sp:predicate rdf:predicate ;
                            sp:subject _:b3
                          ] [ sp:object _:b1 ;
                            sp:predicate rdf:object ;
                            sp:subject _:b3
                          ] [ sp:object _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
                            sp:subject _:b1
                          ]) ;
                sp:where ([ sp:object _:b4 ;
                            sp:predicate owl:allValuesFrom ;
                            sp:subject _:b5
                          ] [ sp:object _:b2 ;
                            sp:predicate owl:onProperty ;
                            sp:subject _:b5
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type afn:localname ;
                                      sp:arg1 _:b2
                                    ] ;
                            sp:variable _:b6
                          ] [ sp:object _:b4 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b1
                          ] [ sp:object _:b1 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b7 ;
                            sp:predicate sxml:instanceElement ;
                            sp:subject _:b1
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:regex ;
                                      sp:arg1 _:b7 ;
                                      sp:arg2 "(.*):(.*)" ;
                                      sp:arg3 "$2"
                                    ] ;
                            sp:variable _:b8
                          ] [ rdf:type sp:Filter ;
                            sp:expression
                                    [ rdf:type sp:eq ;
                                      sp:arg1 _:b8 ;
                                      sp:arg2 _:b6
                                    ]
                          ] [ sp:object _:b9 ;
                            sp:predicate rdf:type ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:TriplePath ;
                            sp:object _:b5 ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b9
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
                sp:templates ([ sp:object _:b10 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b11
                          ] [ sp:object _:b12 ;
                            sp:predicate ddr:uom ;
                            sp:subject _:b11
                          ] [ sp:object _:b13 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b11
                          ] [ sp:object _:b11 ;
                            sp:predicate _:b14 ;
                            sp:subject spin:_this
                          ] [ sp:object rdf:Statement ;
                            sp:predicate rdf:type ;
                            sp:subject _:b15
                          ] [ sp:object spin:_this ;
                            sp:predicate rdf:subject ;
                            sp:subject _:b15
                          ] [ sp:object _:b14 ;
                            sp:predicate rdf:predicate ;
                            sp:subject _:b15
                          ] [ sp:object _:b13 ;
                            sp:predicate rdf:object ;
                            sp:subject _:b15
                          ] [ sp:object _:b15 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
                            sp:subject _:b16
                          ]) ;
                sp:where ([ sp:object _:b16 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b17 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b16
                          ] [ sp:object _:b12 ;
                            sp:predicate ddr:uom ;
                            sp:subject _:b16
                          ] [ rdf:type sp:NotExists ;
                            sp:elements ([ sp:object
                                                [ sp:varName "aNode"^^xsd:string
                                                ] ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
                                        sp:subject _:b16
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type afn:localname ;
                                      sp:arg1 _:b17
                                    ] ;
                            sp:variable _:b18
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:buildURI ;
                                      sp:arg1 [ rdf:type fn:concat ;
                                                sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
                                                sp:arg2 _:b18
                                              ]
                                    ] ;
                            sp:variable _:b14
                          ] [ sp:object owl:ObjectProperty ;
                            sp:predicate rdf:type ;
                            sp:subject _:b14
                          ] [ sp:object _:b14 ;
                            sp:predicate owl:onProperty ;
                            sp:subject _:b19
                          ] [ sp:object _:b10 ;
                            sp:predicate owl:allValuesFrom ;
                            sp:subject _:b19
                          ] [ sp:object _:b20 ;
                            sp:predicate rdf:type ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:TriplePath ;
                            sp:object _:b19 ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b20
                          ] [ sp:object _:b21 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject _:b16
                          ] [ sp:object sxml:TextNode ;
                            sp:predicate rdf:type ;
                            sp:subject _:b21
                          ] [ sp:object _:b22 ;
                            sp:predicate sxml:text ;
                            sp:subject _:b21
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type xsd:double ;
                                      sp:arg1 _:b22
                                    ] ;
                            sp:variable _:b13
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
                sp:templates ([ sp:object _:b23 ;
                            sp:predicate _:b24 ;
                            sp:subject spin:_this
                          ] [ sp:object rdf:Statement ;
                            sp:predicate rdf:type ;
                            sp:subject _:b25
                          ] [ sp:object spin:_this ;
                            sp:predicate rdf:subject ;
                            sp:subject _:b25
                          ] [ sp:object _:b24 ;
                            sp:predicate rdf:predicate ;
                            sp:subject _:b25
                          ] [ sp:object _:b23 ;
                            sp:predicate rdf:object ;
                            sp:subject _:b25
                          ] [ sp:object _:b25 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
                            sp:subject _:b26
                          ]) ;
                sp:where ([ sp:object _:b26 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b27 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b26
                          ] [ rdf:type sp:NotExists ;
                            sp:elements ([ sp:object
                                                [ sp:varName "uom"^^xsd:string
                                                ] ;
                                        sp:predicate ddr:uom ;
                                        sp:subject _:b26
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:titleCase ;
                                      sp:arg1 [ rdf:type afn:localname ;
                                                sp:arg1 _:b27
                                              ]
                                    ] ;
                            sp:variable _:b28
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:buildURI ;
                                      sp:arg1 [ rdf:type fn:concat ;
                                                sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
                                                sp:arg2 _:b28
                                              ]
                                    ] ;
                            sp:variable _:b24
                          ] [ sp:object owl:ObjectProperty ;
                            sp:predicate rdf:type ;
                            sp:subject _:b24
                          ] [ sp:object _:b24 ;
                            sp:predicate owl:onProperty ;
                            sp:subject _:b29
                          ] [ sp:object _:b30 ;
                            sp:predicate owl:allValuesFrom ;
                            sp:subject _:b29
                          ] [ sp:object _:b31 ;
                            sp:predicate rdf:type ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:TriplePath ;
                            sp:object _:b29 ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b31
                          ] [ rdf:type sp:TriplePath ;
                            sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b30
                          ] [ sp:object _:b32 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject _:b26
                          ] [ sp:object sxml:TextNode ;
                            sp:predicate rdf:type ;
                            sp:subject _:b32
                          ] [ sp:object _:b33 ;
                            sp:predicate sxml:text ;
                            sp:subject _:b32
                          ] [ sp:object _:b30 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b23
                          ] [ sp:object _:b33 ;
                            sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
                            sp:subject _:b23
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
                sp:templates ([ sp:object _:b34 ;
                            sp:predicate _:b35 ;
                            sp:subject spin:_this
                          ] [ sp:object rdf:Statement ;
                            sp:predicate rdf:type ;
                            sp:subject _:b36
                          ] [ sp:object spin:_this ;
                            sp:predicate rdf:subject ;
                            sp:subject _:b36
                          ] [ sp:object _:b35 ;
                            sp:predicate rdf:predicate ;
                            sp:subject _:b36
                          ] [ sp:object _:b34 ;
                            sp:predicate rdf:object ;
                            sp:subject _:b36
                          ] [ sp:object _:b36 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
                            sp:subject _:b34
                          ]) ;
                sp:where ([ sp:object _:b37 ;
                            sp:predicate owl:allValuesFrom ;
                            sp:subject _:b38
                          ] [ sp:object _:b35 ;
                            sp:predicate owl:onProperty ;
                            sp:subject _:b38
                          ] [ sp:object _:b37 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b34
                          ] [ sp:object _:b34 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:NotExists ;
                            sp:elements ([ sp:object
                                                [ sp:varName "xmlTag"^^xsd:string
                                                ] ;
                                        sp:predicate sxml:instanceElement ;
                                        sp:subject _:b34
                                      ])
                          ] [ sp:object _:b39 ;
                            sp:predicate rdf:type ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:TriplePath ;
                            sp:object _:b38 ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b39
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
                sp:templates ([ sp:object _:b40 ;
                            sp:predicate _:b41 ;
                            sp:subject spin:_this
                          ] [ sp:object rdf:Statement ;
                            sp:predicate rdf:type ;
                            sp:subject _:b42
                          ] [ sp:object spin:_this ;
                            sp:predicate rdf:subject ;
                            sp:subject _:b42
                          ] [ sp:object _:b41 ;
                            sp:predicate rdf:predicate ;
                            sp:subject _:b42
                          ] [ sp:object _:b40 ;
                            sp:predicate rdf:object ;
                            sp:subject _:b42
                          ] [ sp:object _:b42 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
                            sp:subject _:b43
                          ]) ;
                sp:where ([ sp:object _:b43 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b44 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b43
                          ] [ rdf:type sp:NotExists ;
                            sp:elements ([ sp:object
                                                [ sp:varName "uom"^^xsd:string
                                                ] ;
                                        sp:predicate ddr:uom ;
                                        sp:subject _:b43
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type afn:localname ;
                                      sp:arg1 _:b44
                                    ] ;
                            sp:variable _:b45
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:buildURI ;
                                      sp:arg1 [ rdf:type fn:concat ;
                                                sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
                                                sp:arg2 _:b45
                                              ]
                                    ] ;
                            sp:variable _:b41
                          ] [ sp:object owl:DatatypeProperty ;
                            sp:predicate rdf:type ;
                            sp:subject _:b41
                          ] [ sp:object _:b41 ;
                            sp:predicate owl:onProperty ;
                            sp:subject _:b46
                          ] [ sp:object _:b47 ;
                            sp:predicate owl:allValuesFrom ;
                            sp:subject _:b46
                          ] [ rdf:type sp:TriplePath ;
                            sp:object xsd:dateTime ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b47
                          ] [ sp:object _:b48 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject _:b43
                          ] [ sp:object sxml:TextNode ;
                            sp:predicate rdf:type ;
                            sp:subject _:b48
                          ] [ sp:object _:b49 ;
                            sp:predicate sxml:text ;
                            sp:subject _:b48
                          ] [ sp:object _:b50 ;
                            sp:predicate rdf:type ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:TriplePath ;
                            sp:object _:b46 ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b50
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type xsd:dateTime ;
                                      sp:arg1 _:b49
                                    ] ;
                            sp:variable _:b40
                          ])
              ] ;
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
                sp:templates ([ sp:object _:b51 ;
                            sp:predicate _:b52 ;
                            sp:subject spin:_this
                          ] [ sp:object rdf:Statement ;
                            sp:predicate rdf:type ;
                            sp:subject _:b53
                          ] [ sp:object spin:_this ;
                            sp:predicate rdf:subject ;
                            sp:subject _:b53
                          ] [ sp:object _:b52 ;
                            sp:predicate rdf:predicate ;
                            sp:subject _:b53
                          ] [ sp:object _:b51 ;
                            sp:predicate rdf:object ;
                            sp:subject _:b53
                          ] [ sp:object _:b53 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
                            sp:subject _:b54
                          ]) ;
                sp:where ([ sp:object _:b54 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b55 ;
                            sp:predicate rdf:type ;
                            sp:subject _:b54
                          ] [ rdf:type sp:NotExists ;
                            sp:elements ([ sp:object
                                                [ sp:varName "uom"^^xsd:string
                                                ] ;
                                        sp:predicate ddr:uom ;
                                        sp:subject _:b54
                                      ])
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type afn:localname ;
                                      sp:arg1 _:b55
                                    ] ;
                            sp:variable _:b56
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:buildURI ;
                                      sp:arg1 [ rdf:type fn:concat ;
                                                sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
                                                sp:arg2 _:b56
                                              ]
                                    ] ;
                            sp:variable _:b52
                          ] [ sp:object owl:DatatypeProperty ;
                            sp:predicate rdf:type ;
                            sp:subject _:b52
                          ] [ sp:object _:b52 ;
                            sp:predicate owl:onProperty ;
                            sp:subject _:b57
                          ] [ sp:object _:b58 ;
                            sp:predicate owl:allValuesFrom ;
                            sp:subject _:b57
                          ] [ rdf:type sp:TriplePath ;
                            sp:object xsd:string ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b58
                          ] [ sp:object _:b59 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject _:b54
                          ] [ sp:object sxml:TextNode ;
                            sp:predicate rdf:type ;
                            sp:subject _:b59
                          ] [ sp:object _:b51 ;
                            sp:predicate sxml:text ;
                            sp:subject _:b59
                          ] [ sp:object _:b60 ;
                            sp:predicate rdf:type ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:TriplePath ;
                            sp:object _:b57 ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath rdfs:subClassOf
                                    ] ;
                            sp:subject _:b60
                          ])
              ] .

ddr:schemaLocation
      rdfs:domain ddr:Obj_drillReports ;
      sxml:attribute "xsi:schemaLocation"^^xsd:string .

ddr:uom
      sxml:attribute "uom"^^xsd:string .

ddr:version
      rdfs:domain ddr:DrillReports ;
      sxml:attribute "version"^^xsd:string .

<http://www.reportinghub.no/ep/transform/1.1/ddr>
      rdf:type owl:Ontology ;
      owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

owl:Thing
      spin:query
              [ rdf:type sp:Select ;
                sp:resultVariables (_:b61 _:b62 _:b63 _:b64) ;
                sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b65
                          ] [ rdf:type sp:TriplePath ;
                            sp:object _:b66 ;
                            sp:path [ rdf:type sp:ModPath ;
                                      sp:modMax -2 ;
                                      sp:modMin 0 ;
                                      sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
                                    ] ;
                            sp:subject _:b65
                          ] [ sp:object _:b67 ;
                            sp:predicate <http://topbraid.org/sxsd#name> ;
                            sp:subject _:b65
                          ] [ sp:object _:b64 ;
                            sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
                            sp:subject _:b66
                          ] [ sp:object _:b68 ;
                            sp:predicate <http://topbraid.org/sxsd#name> ;
                            sp:subject _:b66
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type spif:titleCase ;
                                      sp:arg1 _:b68
                                    ] ;
                            sp:variable _:b69
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:buildURI ;
                                      sp:arg1 [ rdf:type fn:concat ;
                                                sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
                                                sp:arg2 _:b69
                                              ]
                                    ] ;
                            sp:variable _:b63
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type spif:titleCase ;
                                      sp:arg1 _:b67 ;
                                      sp:arg2 "[a-z]s"
                                    ] ;
                            sp:variable _:b70
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:buildURI ;
                                      sp:arg1 [ rdf:type fn:concat ;
                                                sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
                                                sp:arg2 _:b70
                                              ]
                                    ] ;
                            sp:variable _:b62
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:buildURI ;
                                      sp:arg1 [ rdf:type fn:concat ;
                                                sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
                                                sp:arg2 _:b70 ;
                                                sp:arg3 "-has" ;
                                                sp:arg4 _:b69
                                              ]
                                    ] ;
                            sp:variable _:b61
                          ])
              ] ;
      spin:query
              [ rdf:type sp:Select ;
                sp:resultVariables (_:b71 _:b72 _:b73 _:b74) ;
                sp:where ([ sp:object _:b74 ;
                            sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
                            sp:subject _:b73
                          ] [ sp:object _:b73 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject _:b72
                          ] [ rdf:type sp:Union ;
                            sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
                                          sp:predicate rdf:type ;
                                          sp:subject _:b72
                                        ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
                                          sp:predicate rdf:type ;
                                          sp:subject _:b72
                                        ]))
                          ] [ sp:object _:b72 ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject _:b71
                          ])
              ] ;
      spin:query
              [ rdf:type sp:Select ;
                sp:where ([ sp:object
                                    [ sp:varName "p"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
                            sp:subject _:b75
                          ] [ rdf:type sp:NotExists ;
                            sp:elements ([ sp:object
                                                [ sp:varName "b"^^xsd:string
                                                ] ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
                                        sp:subject _:b75
                                      ])
                          ])
              ] ;
      spin:update
              [ rdf:type sp:Modify ;
                sp:deletePattern ([ sp:object _:b76 ;
                            sp:predicate rdfs:label ;
                            sp:subject _:b77
                          ]) ;
                sp:insertPattern ([ sp:object _:b78 ;
                            sp:predicate rdfs:label ;
                            sp:subject _:b77
                          ]) ;
                sp:where ([ sp:object _:b77 ;
                            sp:predicate owl:onProperty ;
                            sp:subject
                                    [ sp:varName "r"^^xsd:string
                                    ]
                          ] [ sp:object _:b76 ;
                            sp:predicate rdfs:label ;
                            sp:subject _:b77
                          ] [ rdf:type sp:Filter ;
                            sp:expression
                                    [ rdf:type fn:starts-with ;
                                      sp:arg1 _:b76 ;
                                      sp:arg2 "has"
                                    ]
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type smf:trim ;
                                      sp:arg1 [ rdf:type smf:regex ;
                                                sp:arg1 _:b76 ;
                                                sp:arg2 "has(.*)" ;
                                                sp:arg3 "$1"
                                              ]
                                    ] ;
                            sp:variable _:b78
                          ])
              ] .

_:b51
      sp:varName "text"^^xsd:string .

_:b52
      sp:varName "dtpnameU"^^xsd:string .

_:b54
      sp:varName "child"^^xsd:string .

_:b55
      sp:varName "childType"^^xsd:string .

_:b56
      sp:varName "childLocalName"^^xsd:string .

_:b57
      sp:varName "valuesRestriction"^^xsd:string .

_:b58
      sp:varName "rangeType"^^xsd:string .

_:b59
      sp:varName "textNode"^^xsd:string .

_:b60
      sp:varName "instType"^^xsd:string .

_:b40
      sp:varName "dateTime"^^xsd:string .

_:b41
      sp:varName "dtpnameU"^^xsd:string .

_:b43
      sp:varName "child"^^xsd:string .

_:b44
      sp:varName "childType"^^xsd:string .

_:b45
      sp:varName "childLocalName"^^xsd:string .

_:b46
      sp:varName "valuesRestriction"^^xsd:string .

_:b47
      sp:varName "rangeType"^^xsd:string .

_:b48
      sp:varName "textNode"^^xsd:string .

_:b49
      sp:varName "text"^^xsd:string .

_:b50
      sp:varName "instType"^^xsd:string .

_:b23
      sp:varName "enumeratedValue"^^xsd:string .

_:b24
      sp:varName "opnameU"^^xsd:string .

_:b26
      sp:varName "child"^^xsd:string .

_:b27
      sp:varName "childType"^^xsd:string .

_:b28
      sp:varName "childLocalName"^^xsd:string .

_:b29
      sp:varName "valuesRestriction"^^xsd:string .

_:b30
      sp:varName "rangeU"^^xsd:string .

_:b31
      sp:varName "instType"^^xsd:string .

_:b32
      sp:varName "textNode"^^xsd:string .

_:b33
      sp:varName "text"^^xsd:string .

_:b10
      sp:varName "rangeU"^^xsd:string .

_:b12
      sp:varName "uom"^^xsd:string .

_:b13
      sp:varName "value"^^xsd:string .

_:b14
      sp:varName "opnameU"^^xsd:string .

_:b16
      sp:varName "child"^^xsd:string .

_:b17
      sp:varName "childType"^^xsd:string .

_:b18
      sp:varName "childLocalName"^^xsd:string .

_:b19
      sp:varName "allValuesRestriction"^^xsd:string .

_:b20
      sp:varName "instType"^^xsd:string .

_:b21
      sp:varName "textNode"^^xsd:string .

_:b22
      sp:varName "text"^^xsd:string .

_:b75
      sp:varName "c"^^xsd:string .

_:b71
      sp:varName "pp"^^xsd:string .

_:b72
      sp:varName "p"^^xsd:string .

_:b73
      sp:varName "s"^^xsd:string .

_:b74
      sp:varName "e"^^xsd:string .

_:b61
      sp:varName "ddrCPU"^^xsd:string .

_:b62
      sp:varName "ddrCU"^^xsd:string .

_:b63
      sp:varName "ddrPU"^^xsd:string .

_:b64
      sp:varName "mre"^^xsd:string .

_:b65
      sp:varName "s"^^xsd:string .

_:b66
      sp:varName "c"^^xsd:string .

_:b67
      sp:varName "name"^^xsd:string .

_:b68
      sp:varName "pname"^^xsd:string .

_:b69
      sp:varName "tcpname"^^xsd:string .

_:b70
      sp:varName "tcname"^^xsd:string .

_:b76
      sp:varName "oldLabel"^^xsd:string .

_:b77
      sp:varName "p"^^xsd:string .

_:b78
      sp:varName "newLabel"^^xsd:string .

_:b38
      sp:varName "valuesRestriction"^^xsd:string .

_:b37
      sp:varName "childType"^^xsd:string .

_:b35
      sp:varName "formalProperty"^^xsd:string .

_:b34
      sp:varName "child"^^xsd:string .

_:b39
      sp:varName "instType"^^xsd:string .

_:b5  sp:varName "valuesRestriction"^^xsd:string .

_:b4  sp:varName "childType"^^xsd:string .

_:b2  sp:varName "formalProperty"^^xsd:string .

_:b6  sp:varName "propertyName"^^xsd:string .

_:b1  sp:varName "child"^^xsd:string .

_:b7  sp:varName "xmlTag"^^xsd:string .

_:b8  sp:varName "tagName"^^xsd:string .

_:b9  sp:varName "instType"^^xsd:string .