Showing
8 changed files
with
144 additions
and
49 deletions
1 | +# Saved by TopBraid on Wed Aug 10 10:37:51 BST 2011 | ||
1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/core | 2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/core |
2 | # imports: http://www.linkedmodel.org/1.2/schema/vaem | 3 | # imports: http://www.linkedmodel.org/1.2/schema/vaem |
3 | 4 | ||
... | @@ -23,14 +24,26 @@ ep-core:PhysicalThing | ... | @@ -23,14 +24,26 @@ ep-core:PhysicalThing |
23 | rdfs:label "physical thing"^^xsd:string ; | 24 | rdfs:label "physical thing"^^xsd:string ; |
24 | rdfs:subClassOf owl:Thing . | 25 | rdfs:subClassOf owl:Thing . |
25 | 26 | ||
27 | +ep-core:apiName | ||
28 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
29 | + rdfs:label "API name"^^xsd:string ; | ||
30 | + rdfs:range xsd:string ; | ||
31 | + rdfs:subPropertyOf ep-core:name . | ||
32 | + | ||
26 | ep-core:basisFor | 33 | ep-core:basisFor |
27 | rdf:type owl:ObjectProperty ; | 34 | rdf:type owl:ObjectProperty ; |
28 | rdfs:label "basis for"^^xsd:string . | 35 | rdfs:label "basis for"^^xsd:string . |
29 | 36 | ||
30 | ep-core:derivedFrom | 37 | ep-core:derivedFrom |
31 | - rdf:type owl:TransitiveProperty , owl:ObjectProperty ; | 38 | + rdf:type owl:ObjectProperty , owl:TransitiveProperty ; |
32 | rdfs:label "derived from"^^xsd:string . | 39 | rdfs:label "derived from"^^xsd:string . |
33 | 40 | ||
41 | +ep-core:dtiName | ||
42 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | ||
43 | + rdfs:label "DTI name"^^xsd:string ; | ||
44 | + rdfs:range xsd:string ; | ||
45 | + rdfs:subPropertyOf ep-core:name . | ||
46 | + | ||
34 | ep-core:hasPart | 47 | ep-core:hasPart |
35 | rdf:type owl:TransitiveProperty ; | 48 | rdf:type owl:TransitiveProperty ; |
36 | rdfs:domain ep-core:PhysicalThing ; | 49 | rdfs:domain ep-core:PhysicalThing ; |
... | @@ -46,11 +59,29 @@ ep-core:hasTemporalPart | ... | @@ -46,11 +59,29 @@ ep-core:hasTemporalPart |
46 | rdfs:subPropertyOf ep-core:hasPart ; | 59 | rdfs:subPropertyOf ep-core:hasPart ; |
47 | owl:inverseOf ep-core:partOf . | 60 | owl:inverseOf ep-core:partOf . |
48 | 61 | ||
62 | +ep-core:localFieldName | ||
63 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
64 | + rdfs:label "local field name"^^xsd:string ; | ||
65 | + rdfs:range xsd:string ; | ||
66 | + rdfs:subPropertyOf ep-core:name . | ||
67 | + | ||
49 | ep-core:name | 68 | ep-core:name |
50 | rdf:type owl:DatatypeProperty ; | 69 | rdf:type owl:DatatypeProperty ; |
51 | rdfs:label "name"^^xsd:string ; | 70 | rdfs:label "name"^^xsd:string ; |
52 | rdfs:range xsd:string . | 71 | rdfs:range xsd:string . |
53 | 72 | ||
73 | +ep-core:npdCode | ||
74 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
75 | + rdfs:label "NPD code"^^xsd:string ; | ||
76 | + rdfs:range xsd:string ; | ||
77 | + rdfs:subPropertyOf ep-core:name . | ||
78 | + | ||
79 | +ep-core:npdNumber | ||
80 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | ||
81 | + rdfs:label "NPD number"^^xsd:string ; | ||
82 | + rdfs:range xsd:string ; | ||
83 | + rdfs:subPropertyOf ep-core:name . | ||
84 | + | ||
54 | ep-core:partOf | 85 | ep-core:partOf |
55 | rdf:type owl:TransitiveProperty ; | 86 | rdf:type owl:TransitiveProperty ; |
56 | rdfs:domain ep-core:PhysicalThing ; | 87 | rdfs:domain ep-core:PhysicalThing ; |
... | @@ -58,6 +89,12 @@ ep-core:partOf | ... | @@ -58,6 +89,12 @@ ep-core:partOf |
58 | rdfs:range ep-core:PhysicalThing ; | 89 | rdfs:range ep-core:PhysicalThing ; |
59 | owl:inverseOf ep-core:hasPart . | 90 | owl:inverseOf ep-core:hasPart . |
60 | 91 | ||
92 | +ep-core:prospectName | ||
93 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
94 | + rdfs:label "prospect name"^^xsd:string ; | ||
95 | + rdfs:range xsd:string ; | ||
96 | + rdfs:subPropertyOf ep-core:name . | ||
97 | + | ||
61 | ep-core:temporalPartOf | 98 | ep-core:temporalPartOf |
62 | rdf:type owl:TransitiveProperty ; | 99 | rdf:type owl:TransitiveProperty ; |
63 | rdfs:domain ep-core:PhysicalThing ; | 100 | rdfs:domain ep-core:PhysicalThing ; | ... | ... |
This diff is collapsed. Click to expand it.
1 | +# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011 | ||
1 | # baseURI: http://www.reportinghub.no/ep/spin/1.1/lib | 2 | # baseURI: http://www.reportinghub.no/ep/spin/1.1/lib |
2 | -# imports: http://spinrdf.org/spin | ||
3 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity | ||
4 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | ||
5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
6 | -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
7 | -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | ||
8 | # imports: http://www.reportinghub.no/ep/schema/1.0/report | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/report |
4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
9 | # imports: http://www.reportinghub.no/ep/schema/1.0/well | 5 | # imports: http://www.reportinghub.no/ep/schema/1.0/well |
6 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | ||
7 | +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | ||
8 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity | ||
9 | +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
10 | +# imports: http://spinrdf.org/spin | ||
10 | # imports: http://www.reportinghub.no/spin/rh | 11 | # imports: http://www.reportinghub.no/spin/rh |
11 | 12 | ||
12 | @prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> . | 13 | @prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> . |
... | @@ -80,7 +81,7 @@ ep-spin-lib:buildDailyDrillingReportURI | ... | @@ -80,7 +81,7 @@ ep-spin-lib:buildDailyDrillingReportURI |
80 | sp:where ([ rdf:type sp:Bind ; | 81 | sp:where ([ rdf:type sp:Bind ; |
81 | sp:expression | 82 | sp:expression |
82 | [ rdf:type ep-spin-lib:buildURI ; | 83 | [ rdf:type ep-spin-lib:buildURI ; |
83 | - sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport#" ; | 84 | + sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport/" ; |
84 | sp:arg2 [ rdf:type fn:concat ; | 85 | sp:arg2 [ rdf:type fn:concat ; |
85 | sp:arg1 spin:_arg1 ; | 86 | sp:arg1 spin:_arg1 ; |
86 | sp:arg2 "$" ; | 87 | sp:arg2 "$" ; |
... | @@ -871,13 +872,69 @@ ep-spin-lib:selectDrillingActivityPurposeType | ... | @@ -871,13 +872,69 @@ ep-spin-lib:selectDrillingActivityPurposeType |
871 | ]) | 872 | ]) |
872 | ] . | 873 | ] . |
873 | 874 | ||
875 | +ep-spin-lib:selectLabelOfSystem | ||
876 | + rdf:type spin:Function ; | ||
877 | + rdfs:label "select DailyDrillingReportType"^^xsd:string ; | ||
878 | + rdfs:subClassOf ep-spin-lib:Function ; | ||
879 | + spin:body | ||
880 | + [ rdf:type sp:Select ; | ||
881 | + sp:resultVariables (_:b18) ; | ||
882 | + sp:where ([ rdf:type sp:Bind ; | ||
883 | + sp:expression | ||
884 | + [ rdf:type sp:if ; | ||
885 | + sp:arg1 [ rdf:type sp:eq ; | ||
886 | + sp:arg1 spin:_arg1 ; | ||
887 | + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_API> | ||
888 | + ] ; | ||
889 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#apiName> ; | ||
890 | + sp:arg3 [ rdf:type sp:if ; | ||
891 | + sp:arg1 [ rdf:type sp:eq ; | ||
892 | + sp:arg1 spin:_arg1 ; | ||
893 | + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_DTI> | ||
894 | + ] ; | ||
895 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#dtiName> ; | ||
896 | + sp:arg3 [ rdf:type sp:if ; | ||
897 | + sp:arg1 [ rdf:type sp:eq ; | ||
898 | + sp:arg1 spin:_arg1 ; | ||
899 | + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDcode> | ||
900 | + ] ; | ||
901 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdCode> ; | ||
902 | + sp:arg3 [ rdf:type sp:if ; | ||
903 | + sp:arg1 [ rdf:type sp:eq ; | ||
904 | + sp:arg1 spin:_arg1 ; | ||
905 | + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDnumber> | ||
906 | + ] ; | ||
907 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdNumber> ; | ||
908 | + sp:arg3 [ rdf:type sp:if ; | ||
909 | + sp:arg1 [ rdf:type sp:eq ; | ||
910 | + sp:arg1 spin:_arg1 ; | ||
911 | + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_localfield> | ||
912 | + ] ; | ||
913 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#localFieldName> ; | ||
914 | + sp:arg3 [ rdf:type sp:if ; | ||
915 | + sp:arg1 [ rdf:type sp:eq ; | ||
916 | + sp:arg1 spin:_arg1 ; | ||
917 | + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_prospect> | ||
918 | + ] ; | ||
919 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#prospectName> ; | ||
920 | + sp:arg3 <http://www.reportinghub.no/ep/schema/core#name> | ||
921 | + ] | ||
922 | + ] | ||
923 | + ] | ||
924 | + ] | ||
925 | + ] | ||
926 | + ] ; | ||
927 | + sp:variable _:b18 | ||
928 | + ]) | ||
929 | + ] . | ||
930 | + | ||
874 | ep-spin-lib:selectPressureTestType | 931 | ep-spin-lib:selectPressureTestType |
875 | rdf:type spin:Function ; | 932 | rdf:type spin:Function ; |
876 | rdfs:label "select PressureTestType"^^xsd:string ; | 933 | rdfs:label "select PressureTestType"^^xsd:string ; |
877 | rdfs:subClassOf ep-spin-lib:Function ; | 934 | rdfs:subClassOf ep-spin-lib:Function ; |
878 | spin:body | 935 | spin:body |
879 | [ rdf:type sp:Select ; | 936 | [ rdf:type sp:Select ; |
880 | - sp:resultVariables (_:b18) ; | 937 | + sp:resultVariables (_:b19) ; |
881 | sp:where ([ rdf:type sp:Bind ; | 938 | sp:where ([ rdf:type sp:Bind ; |
882 | sp:expression | 939 | sp:expression |
883 | [ rdf:type smf:if ; | 940 | [ rdf:type smf:if ; |
... | @@ -894,7 +951,7 @@ ep-spin-lib:selectPressureTestType | ... | @@ -894,7 +951,7 @@ ep-spin-lib:selectPressureTestType |
894 | sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest> | 951 | sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest> |
895 | ] | 952 | ] |
896 | ] ; | 953 | ] ; |
897 | - sp:variable _:b18 | 954 | + sp:variable _:b19 |
898 | ]) | 955 | ]) |
899 | ] . | 956 | ] . |
900 | 957 | ||
... | @@ -904,57 +961,60 @@ ep-spin-lib:selectWellBoreDrillingType | ... | @@ -904,57 +961,60 @@ ep-spin-lib:selectWellBoreDrillingType |
904 | rdfs:subClassOf ep-spin-lib:Function ; | 961 | rdfs:subClassOf ep-spin-lib:Function ; |
905 | spin:body | 962 | spin:body |
906 | [ rdf:type sp:Select ; | 963 | [ rdf:type sp:Select ; |
907 | - sp:resultVariables (_:b19) ; | 964 | + sp:resultVariables (_:b20) ; |
908 | - sp:where ([ sp:object _:b19 ; | 965 | + sp:where ([ sp:object _:b20 ; |
909 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ; | 966 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ; |
910 | sp:subject spin:_arg1 | 967 | sp:subject spin:_arg1 |
911 | ]) | 968 | ]) |
912 | ] . | 969 | ] . |
913 | 970 | ||
914 | -_:b19 | 971 | +_:b7 sp:varName "normalizedStr"^^xsd:string . |
915 | - sp:varName "wellBoreDrillingType"^^xsd:string . | ||
916 | 972 | ||
917 | -_:b16 | 973 | +_:b8 sp:varName "s1"^^xsd:string . |
918 | - sp:varName "dailyDrillingReportType"^^xsd:string . | ||
919 | 974 | ||
920 | -_:b6 sp:varName "uri"^^xsd:string . | 975 | +_:b9 sp:varName "s2"^^xsd:string . |
921 | 976 | ||
922 | -_:b1 sp:varName "uri"^^xsd:string . | 977 | +_:b10 |
978 | + sp:varName "t0a"^^xsd:string . | ||
923 | 979 | ||
924 | -_:b18 | 980 | +_:b11 |
925 | - sp:varName "pressureTestType"^^xsd:string . | 981 | + sp:varName "t0b"^^xsd:string . |
926 | 982 | ||
927 | -_:b17 | 983 | +_:b12 |
928 | - sp:varName "drillingActivityPurposeType"^^xsd:string . | 984 | + sp:varName "t1"^^xsd:string . |
929 | 985 | ||
930 | -_:b15 | 986 | +_:b13 |
931 | - sp:varName "t4"^^xsd:string . | 987 | + sp:varName "t2"^^xsd:string . |
932 | 988 | ||
933 | _:b14 | 989 | _:b14 |
934 | sp:varName "t3"^^xsd:string . | 990 | sp:varName "t3"^^xsd:string . |
935 | 991 | ||
936 | -_:b13 | 992 | +_:b15 |
937 | - sp:varName "t2"^^xsd:string . | 993 | + sp:varName "t4"^^xsd:string . |
938 | 994 | ||
939 | -_:b12 | 995 | +_:b16 |
940 | - sp:varName "t1"^^xsd:string . | 996 | + sp:varName "dailyDrillingReportType"^^xsd:string . |
941 | 997 | ||
942 | -_:b11 | 998 | +_:b17 |
943 | - sp:varName "t0b"^^xsd:string . | 999 | + sp:varName "drillingActivityPurposeType"^^xsd:string . |
944 | 1000 | ||
945 | -_:b10 | 1001 | +_:b19 |
946 | - sp:varName "t0a"^^xsd:string . | 1002 | + sp:varName "pressureTestType"^^xsd:string . |
947 | 1003 | ||
948 | -_:b9 sp:varName "s2"^^xsd:string . | 1004 | +_:b20 |
1005 | + sp:varName "wellBoreDrillingType"^^xsd:string . | ||
949 | 1006 | ||
950 | -_:b8 sp:varName "s1"^^xsd:string . | 1007 | +_:b18 |
1008 | + sp:varName "dailyDrillingReportType"^^xsd:string . | ||
951 | 1009 | ||
952 | -_:b7 sp:varName "normalizedStr"^^xsd:string . | 1010 | +_:b1 sp:varName "uri"^^xsd:string . |
953 | 1011 | ||
954 | -_:b5 sp:varName "uri"^^xsd:string . | 1012 | +_:b2 sp:varName "uri"^^xsd:string . |
1013 | + | ||
1014 | +_:b3 sp:varName "uri"^^xsd:string . | ||
955 | 1015 | ||
956 | _:b4 sp:varName "uri"^^xsd:string . | 1016 | _:b4 sp:varName "uri"^^xsd:string . |
957 | 1017 | ||
958 | -_:b3 sp:varName "uri"^^xsd:string . | 1018 | +_:b5 sp:varName "uri"^^xsd:string . |
959 | 1019 | ||
960 | -_:b2 sp:varName "uri"^^xsd:string . | 1020 | +_:b6 sp:varName "uri"^^xsd:string . | ... | ... |
This diff is collapsed. Click to expand it.
1 | +# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011 | ||
1 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization |
2 | -# imports: http://spinrdf.org/spin | ||
3 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity | ||
4 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | ||
5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
6 | -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
7 | -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | ||
8 | -# imports: http://www.reportinghub.no/ep/schema/1.0/report | ||
9 | -# imports: http://www.reportinghub.no/ep/schema/1.0/well | ||
10 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity | 3 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity |
4 | +# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias | ||
11 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport | 5 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport |
12 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo | 6 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo |
13 | 7 | ||
... | @@ -20,11 +14,12 @@ | ... | @@ -20,11 +14,12 @@ |
20 | @prefix sp: <http://spinrdf.org/sp#> . | 14 | @prefix sp: <http://spinrdf.org/sp#> . |
21 | @prefix spin: <http://spinrdf.org/spin#> . | 15 | @prefix spin: <http://spinrdf.org/spin#> . |
22 | @prefix spl: <http://spinrdf.org/spl#> . | 16 | @prefix spl: <http://spinrdf.org/spl#> . |
17 | +@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> . | ||
23 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 18 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
24 | 19 | ||
25 | <http://www.reportinghub.no/ep/transform/1.1/normalization> | 20 | <http://www.reportinghub.no/ep/transform/1.1/normalization> |
26 | rdf:type owl:Ontology ; | 21 | rdf:type owl:Ontology ; |
27 | - owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ; | 22 | + owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ; |
28 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
29 | 24 | ||
30 | owl:Thing | 25 | owl:Thing |
... | @@ -65,8 +60,8 @@ owl:Thing | ... | @@ -65,8 +60,8 @@ owl:Thing |
65 | ]) | 60 | ]) |
66 | ] . | 61 | ] . |
67 | 62 | ||
68 | -_:b3 sp:varName "newLabel"^^xsd:string . | 63 | +_:b1 sp:varName "oldLabel"^^xsd:string . |
69 | 64 | ||
70 | _:b2 sp:varName "p"^^xsd:string . | 65 | _:b2 sp:varName "p"^^xsd:string . |
71 | 66 | ||
72 | -_:b1 sp:varName "oldLabel"^^xsd:string . | 67 | +_:b3 sp:varName "newLabel"^^xsd:string . | ... | ... |
-
Please register or login to post a comment