Showing
9 changed files
with
298 additions
and
171 deletions
www.reportinghub.no/examples/npd.ttl
deleted
100644 → 0
1 | -# Saved by TopBraid on Thu Jul 28 15:55:54 BST 2011 | ||
2 | -# baseURI: http://www.reportinghub.no/1.1/schema/npd | ||
3 | -# imports: http://topbraid.org/spin/spinmapl | ||
4 | -# imports: http://spinrdf.org/spin | ||
5 | - | ||
6 | -@prefix npd: <http://www.reportinghub.no/schema/npd#> . | ||
7 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
8 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
9 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
10 | -@prefix sp: <http://spinrdf.org/sp#> . | ||
11 | -@prefix spin: <http://spinrdf.org/spin#> . | ||
12 | -@prefix spl: <http://spinrdf.org/spl#> . | ||
13 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
14 | - | ||
15 | -<http://www.reportinghub.no/1.1/schema/npd> | ||
16 | - rdf:type owl:Ontology ; | ||
17 | - owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> ; | ||
18 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
19 | - | ||
20 | -npd:Company | ||
21 | - rdf:type owl:Class ; | ||
22 | - rdfs:subClassOf npd:npdIndividual . | ||
23 | - | ||
24 | -npd:CompanyLicense | ||
25 | - rdf:type owl:Class ; | ||
26 | - rdfs:comment "A class that relates a Company to a License it has been granted."^^xsd:string ; | ||
27 | - rdfs:subClassOf npd:Individual . | ||
28 | - | ||
29 | -npd:Facility | ||
30 | - rdf:type owl:Class ; | ||
31 | - rdfs:subClassOf npd:npdIndividual . | ||
32 | - | ||
33 | -npd:Field | ||
34 | - rdf:type owl:Class ; | ||
35 | - rdfs:subClassOf npd:npdIndividual . | ||
36 | - | ||
37 | -npd:FixedFacility | ||
38 | - rdf:type owl:Class ; | ||
39 | - rdfs:subClassOf npd:Facility . | ||
40 | - | ||
41 | -npd:Individual | ||
42 | - rdf:type owl:Class ; | ||
43 | - rdfs:subClassOf owl:Thing . | ||
44 | - | ||
45 | -npd:License | ||
46 | - rdf:type owl:Class ; | ||
47 | - rdfs:subClassOf npd:npdIndividual . | ||
48 | - | ||
49 | -npd:MoveableFacility | ||
50 | - rdf:type owl:Class ; | ||
51 | - rdfs:subClassOf npd:Facility . | ||
52 | - | ||
53 | -npd:OperatingCompany | ||
54 | - rdf:type owl:Class ; | ||
55 | - rdfs:subClassOf npd:Company . | ||
56 | - | ||
57 | -npd:ParentCompany | ||
58 | - rdf:type owl:Class ; | ||
59 | - rdfs:subClassOf npd:Company . | ||
60 | - | ||
61 | -npd:SubSurfaceFixedFacility | ||
62 | - rdf:type owl:Class ; | ||
63 | - rdfs:subClassOf npd:FixedFacility . | ||
64 | - | ||
65 | -npd:SurfaceFixedFacility | ||
66 | - rdf:type owl:Class ; | ||
67 | - rdfs:subClassOf npd:FixedFacility . | ||
68 | - | ||
69 | -npd:Well | ||
70 | - rdf:type owl:Class ; | ||
71 | - rdfs:subClassOf npd:Individual . | ||
72 | - | ||
73 | -npd:WellBore | ||
74 | - rdf:type owl:Class ; | ||
75 | - rdfs:subClassOf npd:npdIndividual . | ||
76 | - | ||
77 | -npd:awardedTo | ||
78 | - rdf:type owl:ObjectProperty ; | ||
79 | - rdfs:domain npd:CompanyLicense ; | ||
80 | - rdfs:range npd:Company . | ||
81 | - | ||
82 | -npd:belongsTo | ||
83 | - rdf:type owl:ObjectProperty ; | ||
84 | - rdfs:domain npd:Facility ; | ||
85 | - rdfs:range npd:Field . | ||
86 | - | ||
87 | -npd:currentActivityStatus | ||
88 | - rdf:type owl:DatatypeProperty ; | ||
89 | - rdfs:domain npd:Field ; | ||
90 | - rdfs:range xsd:string . | ||
91 | - | ||
92 | -npd:currentOperator | ||
93 | - rdf:type owl:ObjectProperty ; | ||
94 | - rdfs:comment "Corresponds to Current Operator field in fixed facility tables"^^xsd:string ; | ||
95 | - rdfs:domain npd:FixedFacility ; | ||
96 | - rdfs:range npd:Company . | ||
97 | - | ||
98 | -npd:currentlyResponsibleCompany | ||
99 | - rdf:type owl:ObjectProperty ; | ||
100 | - rdfs:comment "Corresponds to Currently Reponsible Company field in moveable facility tables"^^xsd:string ; | ||
101 | - rdfs:domain npd:MoveableFacility ; | ||
102 | - rdfs:range npd:Company . | ||
103 | - | ||
104 | -npd:discoverWellBore | ||
105 | - rdf:type owl:ObjectProperty ; | ||
106 | - rdfs:domain npd:Field ; | ||
107 | - rdfs:range npd:WellBore . | ||
108 | - | ||
109 | -npd:endDate | ||
110 | - rdf:type owl:DatatypeProperty ; | ||
111 | - rdfs:domain npd:Individual ; | ||
112 | - rdfs:range xsd:date . | ||
113 | - | ||
114 | -npd:facilityKind | ||
115 | - rdf:type owl:DatatypeProperty ; | ||
116 | - rdfs:comment "corresponds to Kind field in both the fixed and moveable facility tables"^^xsd:string ; | ||
117 | - rdfs:domain npd:Facility ; | ||
118 | - rdfs:range xsd:string . | ||
119 | - | ||
120 | -npd:fieldOperator | ||
121 | - rdf:type owl:ObjectProperty ; | ||
122 | - rdfs:domain npd:Field ; | ||
123 | - rdfs:range npd:Company . | ||
124 | - | ||
125 | -npd:fixedFacilityPhase | ||
126 | - rdf:type owl:DatatypeProperty ; | ||
127 | - rdfs:comment "corresponds to Phase field in fixed facility tables"^^xsd:string ; | ||
128 | - rdfs:domain npd:FixedFacility ; | ||
129 | - rdfs:range xsd:string . | ||
130 | - | ||
131 | -npd:id | ||
132 | - rdf:type owl:DatatypeProperty ; | ||
133 | - rdfs:domain npd:npdIndividual ; | ||
134 | - rdfs:range xsd:string . | ||
135 | - | ||
136 | -npd:licenseAwarded | ||
137 | - rdf:type owl:ObjectProperty ; | ||
138 | - rdfs:domain npd:CompanyLicense ; | ||
139 | - rdfs:range npd:Company . | ||
140 | - | ||
141 | -npd:name | ||
142 | - rdf:type owl:DatatypeProperty ; | ||
143 | - rdfs:domain npd:Individual ; | ||
144 | - rdfs:range xsd:string . | ||
145 | - | ||
146 | -npd:npdIndividual | ||
147 | - rdf:type owl:Class ; | ||
148 | - rdfs:comment "An npd:Individual that has an npd:id"^^xsd:string ; | ||
149 | - rdfs:subClassOf npd:Individual . | ||
150 | - | ||
151 | -npd:parentCo | ||
152 | - rdf:type owl:ObjectProperty ; | ||
153 | - rdfs:domain npd:OperatingCompany ; | ||
154 | - rdfs:range npd:ParentCompany . | ||
155 | - | ||
156 | -npd:partOfWell | ||
157 | - rdf:type owl:ObjectProperty ; | ||
158 | - rdfs:domain npd:WellBore ; | ||
159 | - rdfs:range npd:Well . | ||
160 | - | ||
161 | -npd:percentageInterest | ||
162 | - rdf:type owl:DatatypeProperty ; | ||
163 | - rdfs:domain npd:CompanyLicense ; | ||
164 | - rdfs:range xsd:float . | ||
165 | - | ||
166 | -npd:startDate | ||
167 | - rdf:type owl:DatatypeProperty ; | ||
168 | - rdfs:domain npd:Individual ; | ||
169 | - rdfs:range xsd:date . |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 | +# baseURI: file:///www.reportinghub.no/transform/wellbore-npdid-overview | ||
2 | +# imports: http://topbraid.org/tables | ||
3 | + | ||
4 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
5 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
6 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
7 | +@prefix tables: <http://topbraid.org/tables#> . | ||
8 | +@prefix wbid: <file:///www.reportinghub.no/transform/wellbore-npdid-overview#> . | ||
9 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
10 | + | ||
11 | +<file:///www.reportinghub.no/transform/wellbore-npdid-overview> | ||
12 | + rdf:type owl:Ontology ; | ||
13 | + owl:imports <http://topbraid.org/tables> . | ||
14 | + | ||
15 | +wbid:WBID | ||
16 | + rdf:type owl:Class ; | ||
17 | + rdfs:label "wellbore-npdid-overview"^^xsd:string ; | ||
18 | + tables:sheetIndex "0"^^xsd:int . | ||
19 | + | ||
20 | +wbid:datesyncNPD | ||
21 | + rdf:type owl:DatatypeProperty ; | ||
22 | + rdfs:domain wbid:WBID ; | ||
23 | + rdfs:label "datesyncNPD" ; | ||
24 | + rdfs:range xsd:string ; | ||
25 | + tables:columnIndex "4"^^xsd:int . | ||
26 | + | ||
27 | +wbid:wlbNpdidWellbore | ||
28 | + rdf:type owl:DatatypeProperty ; | ||
29 | + rdfs:domain wbid:WBID ; | ||
30 | + rdfs:label "wlbNpdidWellbore" ; | ||
31 | + rdfs:range xsd:string ; | ||
32 | + tables:columnIndex "1"^^xsd:int . | ||
33 | + | ||
34 | +wbid:wlbWell | ||
35 | + rdf:type owl:DatatypeProperty ; | ||
36 | + rdfs:domain wbid:WBID ; | ||
37 | + rdfs:label "wlbWell" ; | ||
38 | + rdfs:range xsd:string ; | ||
39 | + tables:columnIndex "2"^^xsd:int . | ||
40 | + | ||
41 | +wbid:wlbWellType | ||
42 | + rdf:type owl:DatatypeProperty ; | ||
43 | + rdfs:domain wbid:WBID ; | ||
44 | + rdfs:label "wlbWellType" ; | ||
45 | + rdfs:range xsd:string ; | ||
46 | + tables:columnIndex "3"^^xsd:int . | ||
47 | + | ||
48 | +wbid:wlbWellboreName | ||
49 | + rdf:type owl:DatatypeProperty ; | ||
50 | + rdfs:domain wbid:WBID ; | ||
51 | + rdfs:label "ÔªøwlbWellboreName" ; | ||
52 | + rdfs:range xsd:string ; | ||
53 | + tables:columnIndex "0"^^xsd:int . |
This diff is collapsed. Click to expand it.
1 | # baseURI: http://www.reportinghub.no/spin/rh | 1 | # baseURI: http://www.reportinghub.no/spin/rh |
2 | +# imports: http://topbraid.org/spin/spinmapl | ||
2 | # imports: http://www.reportinghub.no/1.1,1/schema/ddr | 3 | # imports: http://www.reportinghub.no/1.1,1/schema/ddr |
3 | -# imports: http://spinrdf.org/spin | ||
4 | # imports: http://www.reportinghub.no/1.1/schema/npd | 4 | # imports: http://www.reportinghub.no/1.1/schema/npd |
5 | +# imports: http://spinrdf.org/spin | ||
5 | 6 | ||
7 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
6 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 8 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
7 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 9 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
8 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 10 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
9 | @prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | 11 | @prefix rhspin: <http://www.reportinghub.no/spin/rh#> . |
10 | @prefix sp: <http://spinrdf.org/sp#> . | 12 | @prefix sp: <http://spinrdf.org/sp#> . |
13 | +@prefix spif: <http://spinrdf.org/spif#> . | ||
11 | @prefix spin: <http://spinrdf.org/spin#> . | 14 | @prefix spin: <http://spinrdf.org/spin#> . |
12 | @prefix spl: <http://spinrdf.org/spl#> . | 15 | @prefix spl: <http://spinrdf.org/spl#> . |
13 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 16 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
... | @@ -16,10 +19,18 @@ | ... | @@ -16,10 +19,18 @@ |
16 | rdf:type rdf:Property ; | 19 | rdf:type rdf:Property ; |
17 | rdfs:label "well"^^xsd:string . | 20 | rdfs:label "well"^^xsd:string . |
18 | 21 | ||
22 | +<http://spinrdf.org/arg#wellBoreName> | ||
23 | + rdf:type rdf:Property ; | ||
24 | + rdfs:label "well bore name"^^xsd:string . | ||
25 | + | ||
26 | +<http://spinrdf.org/arg#wellName> | ||
27 | + rdf:type rdf:Property ; | ||
28 | + rdfs:label "well name"^^xsd:string . | ||
29 | + | ||
19 | <http://www.reportinghub.no/spin/rh> | 30 | <http://www.reportinghub.no/spin/rh> |
20 | rdf:type owl:Ontology ; | 31 | rdf:type owl:Ontology ; |
21 | rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ; | 32 | rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ; |
22 | - owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://www.reportinghub.no/1.1,1/schema/ddr> , <http://spinrdf.org/spin> ; | 33 | + owl:imports <http://topbraid.org/spin/spinmapl> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/1.1,1/schema/ddr> , <http://www.reportinghub.no/1.1/schema/npd> ; |
23 | owl:versionInfo "0.1.0"^^xsd:string . | 34 | owl:versionInfo "0.1.0"^^xsd:string . |
24 | 35 | ||
25 | rhspin:GetWellBoresOfWell | 36 | rhspin:GetWellBoresOfWell |
... | @@ -58,6 +69,66 @@ rhspin:userName | ... | @@ -58,6 +69,66 @@ rhspin:userName |
58 | rdfs:subClassOf spin:Functions ; | 69 | rdfs:subClassOf spin:Functions ; |
59 | spin:returnType xsd:string . | 70 | spin:returnType xsd:string . |
60 | 71 | ||
72 | +rhspin:wellBoreByName | ||
73 | + rdf:type spin:Function ; | ||
74 | + rdfs:comment "Gets the URI resource of a well bore based on its NPD name."^^xsd:string ; | ||
75 | + rdfs:label "well bore by name"^^xsd:string ; | ||
76 | + rdfs:subClassOf spl:URIFunctions ; | ||
77 | + spin:body | ||
78 | + [ rdf:type sp:Select ; | ||
79 | + sp:resultVariables ([ rdf:type sp:iri ; | ||
80 | + sp:arg1 [ rdf:type fn:concat ; | ||
81 | + sp:arg1 "https://www.reportinghub.no/data/npd/WellBore-" ; | ||
82 | + sp:arg2 [ rdf:type spif:replaceAll ; | ||
83 | + sp:arg1 [ rdf:type spif:replaceAll ; | ||
84 | + sp:arg1 [ sp:varName "wellBoreName"^^xsd:string | ||
85 | + ] ; | ||
86 | + sp:arg2 " " ; | ||
87 | + sp:arg3 "_" | ||
88 | + ] ; | ||
89 | + sp:arg2 "/" ; | ||
90 | + sp:arg3 "__" | ||
91 | + ] | ||
92 | + ] | ||
93 | + ]) ; | ||
94 | + sp:where () | ||
95 | + ] ; | ||
96 | + spin:constraint | ||
97 | + [ rdf:type spl:Argument ; | ||
98 | + rdfs:comment "The NPD ID of the well bore to get the URI of."^^xsd:string ; | ||
99 | + spl:predicate <http://spinrdf.org/arg#wellBoreName> ; | ||
100 | + spl:valueType xsd:string | ||
101 | + ] ; | ||
102 | + spin:returnType <http://www.reportinghub.no/schema/npd#WellBore> . | ||
103 | + | ||
104 | +rhspin:wellByName | ||
105 | + rdf:type spin:Function ; | ||
106 | + rdfs:comment "Gets the URI resource of a well based on its NPD name."^^xsd:string ; | ||
107 | + rdfs:label "well by name"^^xsd:string ; | ||
108 | + rdfs:subClassOf spl:URIFunctions ; | ||
109 | + spin:body | ||
110 | + [ rdf:type sp:Select ; | ||
111 | + sp:resultVariables ([ rdf:type sp:iri ; | ||
112 | + sp:arg1 [ rdf:type fn:concat ; | ||
113 | + sp:arg1 "https://www.reportinghub.no/data/npd/Well-" ; | ||
114 | + sp:arg2 [ rdf:type spif:replaceAll ; | ||
115 | + sp:arg1 [ sp:varName "wellName"^^xsd:string | ||
116 | + ] ; | ||
117 | + sp:arg2 "/" ; | ||
118 | + sp:arg3 "__" | ||
119 | + ] | ||
120 | + ] | ||
121 | + ]) ; | ||
122 | + sp:where () | ||
123 | + ] ; | ||
124 | + spin:constraint | ||
125 | + [ rdf:type spl:Argument ; | ||
126 | + rdfs:comment "The NPD name of the well to get the URI of."^^xsd:string ; | ||
127 | + spl:predicate <http://spinrdf.org/arg#wellName> ; | ||
128 | + spl:valueType xsd:string | ||
129 | + ] ; | ||
130 | + spin:returnType <http://www.reportinghub.no/schema/npd#WellBore> . | ||
131 | + | ||
61 | _:b2 sp:varName "wellBore"^^xsd:string . | 132 | _:b2 sp:varName "wellBore"^^xsd:string . |
62 | 133 | ||
63 | _:b1 sp:varName "wellBoreName"^^xsd:string . | 134 | _:b1 sp:varName "wellBoreName"^^xsd:string . | ... | ... |
File moved
1 | +# baseURI: http://www.reportinghub.no/transform/spreadsheets2npd | ||
2 | +# imports: http://topbraid.org/spin/spinmapl | ||
3 | +# imports: file:///www.reportinghub.no/transform/wellbore-npdid-overview-2011-07-30 | ||
4 | +# imports: file:///www.reportinghub.no/transform/wellbore-npdid-overview | ||
5 | +# imports: http://www.reportinghub.no/1.1/schema/npd | ||
6 | +# imports: http://spinrdf.org/spin | ||
7 | +# imports: http://www.reportinghub.no/spin/rh | ||
8 | + | ||
9 | +@prefix : <http://www.reportinghub.no/transform/spreadsheets2npd#> . | ||
10 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
11 | +@prefix npdi: <https://www.reportinghub.no/data/npd/> . | ||
12 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
13 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
14 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
15 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | ||
16 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
17 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
18 | +@prefix spinmap: <http://spinrdf.org/spinmap#> . | ||
19 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
20 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
21 | + | ||
22 | +<file:///www.reportinghub.no/transform/wellbore-npdid-overview#WBID> | ||
23 | + spinmap:rule | ||
24 | + [ rdf:type spinmap:Mapping-1-1 ; | ||
25 | + spinmap:context :WBID-WellBore ; | ||
26 | + spinmap:expression | ||
27 | + [ rdf:type rhspin:wellByName ; | ||
28 | + arg:wellName spin:_arg1 | ||
29 | + ] ; | ||
30 | + spinmap:sourcePredicate1 | ||
31 | + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ; | ||
32 | + spinmap:targetPredicate1 | ||
33 | + <http://www.reportinghub.no/schema/npd#partOfWell> | ||
34 | + ] ; | ||
35 | + spinmap:rule | ||
36 | + [ rdf:type spinmap:Mapping-1-1 ; | ||
37 | + spinmap:context :WBID-Well ; | ||
38 | + spinmap:expression spin:_arg1 ; | ||
39 | + spinmap:sourcePredicate1 | ||
40 | + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ; | ||
41 | + spinmap:targetPredicate1 | ||
42 | + <http://www.reportinghub.no/schema/npd#name> | ||
43 | + ] ; | ||
44 | + spinmap:rule | ||
45 | + [ rdf:type spinmap:Mapping-0-1 ; | ||
46 | + spinmap:context :WBID-Well ; | ||
47 | + spinmap:expression <http://www.reportinghub.no/schema/npd#Well> ; | ||
48 | + spinmap:targetPredicate1 | ||
49 | + rdf:type | ||
50 | + ] ; | ||
51 | + spinmap:rule | ||
52 | + [ rdf:type spinmap:Mapping-1-1 ; | ||
53 | + spinmap:context :WBID-WellBore ; | ||
54 | + spinmap:expression spin:_arg1 ; | ||
55 | + spinmap:sourcePredicate1 | ||
56 | + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellboreName> ; | ||
57 | + spinmap:targetPredicate1 | ||
58 | + <http://www.reportinghub.no/schema/npd#name> | ||
59 | + ] ; | ||
60 | + spinmap:rule | ||
61 | + [ rdf:type spinmap:Mapping-1-1 ; | ||
62 | + spinmap:context :WBID-WellBore ; | ||
63 | + spinmap:expression spin:_arg1 ; | ||
64 | + spinmap:sourcePredicate1 | ||
65 | + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellType> ; | ||
66 | + spinmap:targetPredicate1 | ||
67 | + <http://www.reportinghub.no/schema/npd#wellBoreType> | ||
68 | + ] ; | ||
69 | + spinmap:rule | ||
70 | + [ rdf:type spinmap:Mapping-1-1 ; | ||
71 | + spinmap:context :WBID-WellBore ; | ||
72 | + spinmap:expression spin:_arg1 ; | ||
73 | + spinmap:sourcePredicate1 | ||
74 | + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbNpdidWellbore> ; | ||
75 | + spinmap:targetPredicate1 | ||
76 | + <http://www.reportinghub.no/schema/npd#id> | ||
77 | + ] ; | ||
78 | + spinmap:rule | ||
79 | + [ rdf:type spinmap:Mapping-0-1 ; | ||
80 | + spinmap:context :WBID-WellBore ; | ||
81 | + spinmap:expression <http://www.reportinghub.no/schema/npd#WellBore> ; | ||
82 | + spinmap:targetPredicate1 | ||
83 | + rdf:type | ||
84 | + ] . | ||
85 | + | ||
86 | +arg:well | ||
87 | + rdfs:subPropertyOf sp:arg . | ||
88 | + | ||
89 | +arg:wellBoreName | ||
90 | + rdfs:subPropertyOf sp:arg . | ||
91 | + | ||
92 | +arg:wellName | ||
93 | + rdfs:subPropertyOf sp:arg . | ||
94 | + | ||
95 | +<http://www.reportinghub.no/transform/spreadsheets2npd> | ||
96 | + rdf:type owl:Ontology ; | ||
97 | + rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ; | ||
98 | + owl:imports <http://www.reportinghub.no/spin/rh> , <file:///www.reportinghub.no/transform/wellbore-npdid-overview> , <file:///www.reportinghub.no/transform/wellbore-npdid-overview-2011-07-30> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/1.1/schema/npd> ; | ||
99 | + owl:versionInfo "0.1.0"^^xsd:string . | ||
100 | + | ||
101 | +:WBID-Well | ||
102 | + rdf:type spinmap:Context ; | ||
103 | + spinmap:sourceClass <file:///www.reportinghub.no/transform/wellbore-npdid-overview#WBID> ; | ||
104 | + spinmap:target | ||
105 | + [ rdf:type :buildWellURI ; | ||
106 | + spinmap:source spinmap:_source | ||
107 | + ] ; | ||
108 | + spinmap:targetClass <http://www.reportinghub.no/schema/npd#Well> . | ||
109 | + | ||
110 | +:WBID-WellBore | ||
111 | + rdf:type spinmap:Context ; | ||
112 | + spinmap:sourceClass <file:///www.reportinghub.no/transform/wellbore-npdid-overview#WBID> ; | ||
113 | + spinmap:target | ||
114 | + [ rdf:type :buildWellBoreURI ; | ||
115 | + spinmap:source spinmap:_source | ||
116 | + ] ; | ||
117 | + spinmap:targetClass <http://www.reportinghub.no/schema/npd#WellBore> . | ||
118 | + | ||
119 | +:buildWellBoreURI | ||
120 | + rdf:type spinmap:TargetFunction ; | ||
121 | + rdfs:label "build well bore URI"^^xsd:string ; | ||
122 | + rdfs:subClassOf spinmap:TargetFunctions ; | ||
123 | + spin:body | ||
124 | + [ rdf:type sp:Select ; | ||
125 | + sp:resultVariables ([ rdf:type rhspin:wellBoreByName ; | ||
126 | + arg:wellBoreName _:b1 | ||
127 | + ]) ; | ||
128 | + sp:where ([ sp:object _:b1 ; | ||
129 | + sp:predicate <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellboreName> ; | ||
130 | + sp:subject | ||
131 | + [ sp:varName "source"^^xsd:string | ||
132 | + ] | ||
133 | + ]) | ||
134 | + ] ; | ||
135 | + spin:returnType rdfs:Resource . | ||
136 | + | ||
137 | +:buildWellURI | ||
138 | + rdf:type spinmap:TargetFunction ; | ||
139 | + rdfs:label "build well URI"^^xsd:string ; | ||
140 | + rdfs:subClassOf spinmap:TargetFunctions ; | ||
141 | + spin:body | ||
142 | + [ rdf:type sp:Select ; | ||
143 | + sp:resultVariables ([ rdf:type rhspin:wellByName ; | ||
144 | + arg:wellName _:b2 | ||
145 | + ]) ; | ||
146 | + sp:where ([ sp:object _:b2 ; | ||
147 | + sp:predicate <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ; | ||
148 | + sp:subject | ||
149 | + [ sp:varName "source"^^xsd:string | ||
150 | + ] | ||
151 | + ]) | ||
152 | + ] . | ||
153 | + | ||
154 | +_:b1 sp:varName "wellBoreId"^^xsd:string . | ||
155 | + | ||
156 | +_:b2 sp:varName "wellName"^^xsd:string . |
1 | +# baseURI: null | ||
2 | + | ||
3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
11 | + | ||
12 | +[] rdf:type inference:Configuration ; | ||
13 | + composite:child | ||
14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
15 | + composite:index "0"^^xsd:int | ||
16 | + ] . |
-
Please register or login to post a comment