Holger Knublauch

Added BAA operator import

...@@ -314,6 +314,13 @@ npd:WellBorePurpose ...@@ -314,6 +314,13 @@ npd:WellBorePurpose
314 rdfs:label "Well bore purpose"^^xsd:string ; 314 rdfs:label "Well bore purpose"^^xsd:string ;
315 rdfs:subClassOf npd:Enumeration . 315 rdfs:subClassOf npd:Enumeration .
316 316
317 +npd:baaOperator
318 + rdf:type owl:ObjectProperty ;
319 + rdfs:comment "The current operator of a BAA."^^xsd:string ;
320 + rdfs:domain npd:BusinessArrangementArea ;
321 + rdfs:label "BAA operator"^^xsd:string ;
322 + rdfs:range <http://www.reportinghub.no/ep/schema/organization#Company> .
323 +
317 npd:baaShared 324 npd:baaShared
318 rdf:type owl:ObjectProperty ; 325 rdf:type owl:ObjectProperty ;
319 rdfs:domain npd:ShareOfBAA ; 326 rdfs:domain npd:ShareOfBAA ;
......
1 # baseURI: http://www.reportinghub.no/transform/spreadsheets2npd 1 # baseURI: http://www.reportinghub.no/transform/spreadsheets2npd
2 # imports: file:///www.reportinghub.no/transform/npd/baa 2 # imports: file:///www.reportinghub.no/transform/npd/baa
3 # imports: file:///www.reportinghub.no/transform/npd/baalicensee 3 # imports: file:///www.reportinghub.no/transform/npd/baalicensee
4 +# imports: file:///www.reportinghub.no/transform/npd/baaoperator
4 # imports: file:///www.reportinghub.no/transform/npd/company 5 # imports: file:///www.reportinghub.no/transform/npd/company
5 # imports: file:///www.reportinghub.no/transform/npd/discovery 6 # imports: file:///www.reportinghub.no/transform/npd/discovery
6 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed 7 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed
...@@ -174,6 +175,27 @@ ...@@ -174,6 +175,27 @@
174 <http://www.reportinghub.no/np/schema/npd#percentageOfShare> 175 <http://www.reportinghub.no/np/schema/npd#percentageOfShare>
175 ] . 176 ] .
176 177
178 +<file:///www.reportinghub.no/transform/npd/baaoperator#BAAOperator>
179 + spinmap:rule
180 + [ rdf:type spinmap:Mapping-0-1 ;
181 + spinmap:context :BAAOperator-BusinessArrangementArea ;
182 + spinmap:expression <http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea> ;
183 + spinmap:targetPredicate1
184 + rdf:type
185 + ] ;
186 + spinmap:rule
187 + [ rdf:type spinmap:Mapping-1-1 ;
188 + spinmap:context :BAAOperator-BusinessArrangementArea ;
189 + spinmap:expression
190 + [ rdf:type rhspin:companyById ;
191 + arg:id spin:_arg1
192 + ] ;
193 + spinmap:sourcePredicate1
194 + <file:///www.reportinghub.no/transform/npd/baaoperator#cmpNpdidCompany> ;
195 + spinmap:targetPredicate1
196 + <http://www.reportinghub.no/np/schema/npd#baaOperator>
197 + ] .
198 +
177 <file:///www.reportinghub.no/transform/npd/company#Company> 199 <file:///www.reportinghub.no/transform/npd/company#Company>
178 spinmap:rule 200 spinmap:rule
179 [ rdf:type spinmap:Mapping-1-1 ; 201 [ rdf:type spinmap:Mapping-1-1 ;
...@@ -1410,7 +1432,7 @@ arg:wellName ...@@ -1410,7 +1432,7 @@ arg:wellName
1410 <http://www.reportinghub.no/transform/spreadsheets2npd> 1432 <http://www.reportinghub.no/transform/spreadsheets2npd>
1411 rdf:type owl:Ontology ; 1433 rdf:type owl:Ontology ;
1412 rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ; 1434 rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ;
1413 - owl:imports <file:///www.reportinghub.no/transform/npd/baa> , <file:///www.reportinghub.no/transform/npd/baalicensee> , <file:///www.reportinghub.no/transform/npd/company> , <file:///www.reportinghub.no/transform/npd/discovery> , <file:///www.reportinghub.no/transform/npd/facilityfixed> , <file:///www.reportinghub.no/transform/npd/facilitymoveable> , <file:///www.reportinghub.no/transform/npd/field> , <file:///www.reportinghub.no/transform/npd/licence> , <file:///www.reportinghub.no/transform/npd/licenceop> , <file:///www.reportinghub.no/transform/npd/licensee> , <file:///www.reportinghub.no/transform/npd/tufoperator> , <file:///www.reportinghub.no/transform/npd/wbdev> , <file:///www.reportinghub.no/transform/npd/wbexp> , <file:///www.reportinghub.no/transform/npd/wbid> , <file:///www.reportinghub.no/transform/npd/wbsha> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/spin/rh> ; 1435 + owl:imports <file:///www.reportinghub.no/transform/npd/baa> , <file:///www.reportinghub.no/transform/npd/baalicensee> , <file:///www.reportinghub.no/transform/npd/baaoperator> , <file:///www.reportinghub.no/transform/npd/company> , <file:///www.reportinghub.no/transform/npd/discovery> , <file:///www.reportinghub.no/transform/npd/facilityfixed> , <file:///www.reportinghub.no/transform/npd/facilitymoveable> , <file:///www.reportinghub.no/transform/npd/field> , <file:///www.reportinghub.no/transform/npd/licence> , <file:///www.reportinghub.no/transform/npd/licenceop> , <file:///www.reportinghub.no/transform/npd/licensee> , <file:///www.reportinghub.no/transform/npd/tufoperator> , <file:///www.reportinghub.no/transform/npd/wbdev> , <file:///www.reportinghub.no/transform/npd/wbexp> , <file:///www.reportinghub.no/transform/npd/wbid> , <file:///www.reportinghub.no/transform/npd/wbsha> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/spin/rh> ;
1414 owl:versionInfo "0.1.0"^^xsd:string . 1436 owl:versionInfo "0.1.0"^^xsd:string .
1415 1437
1416 :BAA-BusinessArrangementArea 1438 :BAA-BusinessArrangementArea
...@@ -1433,6 +1455,15 @@ arg:wellName ...@@ -1433,6 +1455,15 @@ arg:wellName
1433 ] ; 1455 ] ;
1434 spinmap:targetClass <http://www.reportinghub.no/np/schema/npd#ShareOfBAA> . 1456 spinmap:targetClass <http://www.reportinghub.no/np/schema/npd#ShareOfBAA> .
1435 1457
1458 +:BAAOperator-BusinessArrangementArea
1459 + rdf:type spinmap:Context ;
1460 + spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/baaoperator#BAAOperator> ;
1461 + spinmap:target
1462 + [ rdf:type :buildBAAOperatorURI ;
1463 + spinmap:source spinmap:_source
1464 + ] ;
1465 + spinmap:targetClass <http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea> .
1466 +
1436 :Company-Company 1467 :Company-Company
1437 rdf:type spinmap:Context ; 1468 rdf:type spinmap:Context ;
1438 spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/company#Company> ; 1469 spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/company#Company> ;
...@@ -1605,6 +1636,22 @@ arg:wellName ...@@ -1605,6 +1636,22 @@ arg:wellName
1605 rdf:type rdf:Property ; 1636 rdf:type rdf:Property ;
1606 rdfs:label "baa kind"^^xsd:string . 1637 rdfs:label "baa kind"^^xsd:string .
1607 1638
1639 +:buildBAAOperatorURI
1640 + rdf:type spinmap:TargetFunction ;
1641 + rdfs:label "build BAA operator URI"^^xsd:string ;
1642 + rdfs:subClassOf spinmap:TargetFunctions ;
1643 + spin:body
1644 + [ rdf:type sp:Select ;
1645 + sp:resultVariables ([ rdf:type rhspin:baaById ;
1646 + arg:id [ rdf:type spl:object ;
1647 + sp:arg1 [ sp:varName "source"^^xsd:string
1648 + ] ;
1649 + sp:arg2 <file:///www.reportinghub.no/transform/npd/baaoperator#baaNpdidBsnsArrArea>
1650 + ]
1651 + ]) ;
1652 + sp:where ()
1653 + ] .
1654 +
1608 :buildBAAURI 1655 :buildBAAURI
1609 rdf:type spinmap:TargetFunction ; 1656 rdf:type spinmap:TargetFunction ;
1610 rdfs:label "build BAA URI"^^xsd:string ; 1657 rdfs:label "build BAA URI"^^xsd:string ;
......
1 +# baseURI: file:///www.reportinghub.no/transform/npd/baaoperator
2 +# imports: http://topbraid.org/tables
3 +
4 +@prefix baaoperator: <file:///www.reportinghub.no/transform/npd/baaoperator#> .
5 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
6 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8 +@prefix tables: <http://topbraid.org/tables#> .
9 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10 +
11 +<file:///www.reportinghub.no/transform/npd/baaoperator>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://topbraid.org/tables> .
14 +
15 +baaoperator:BAAOperator
16 + rdf:type owl:Class ;
17 + rdfs:label "baaoperator" ;
18 + tables:sheetIndex "0"^^xsd:int .
19 +
20 +baaoperator:baaName
21 + rdf:type owl:DatatypeProperty ;
22 + rdfs:domain baaoperator:BAAOperator ;
23 + rdfs:label "baaName"^^xsd:string ;
24 + rdfs:range xsd:string ;
25 + tables:columnIndex "0"^^xsd:int .
26 +
27 +baaoperator:baaNpdidBsnsArrArea
28 + rdf:type owl:DatatypeProperty ;
29 + rdfs:domain baaoperator:BAAOperator ;
30 + rdfs:label "baaNpdidBsnsArrArea" ;
31 + rdfs:range xsd:string ;
32 + tables:columnIndex "2"^^xsd:int .
33 +
34 +baaoperator:cmpLongName
35 + rdf:type owl:DatatypeProperty ;
36 + rdfs:domain baaoperator:BAAOperator ;
37 + rdfs:label "cmpLongName" ;
38 + rdfs:range xsd:string ;
39 + tables:columnIndex "1"^^xsd:int .
40 +
41 +baaoperator:cmpNpdidCompany
42 + rdf:type owl:DatatypeProperty ;
43 + rdfs:domain baaoperator:BAAOperator ;
44 + rdfs:label "cmpNpdidCompany" ;
45 + rdfs:range xsd:string ;
46 + tables:columnIndex "3"^^xsd:int .
47 +
48 +baaoperator:datesyncNPD
49 + rdf:type owl:DatatypeProperty ;
50 + rdfs:domain baaoperator:BAAOperator ;
51 + rdfs:label "datesyncNPD" ;
52 + rdfs:range xsd:string ;
53 + tables:columnIndex "4"^^xsd:int .