Holger Knublauch

BAA import

1 +baaName,baaKind,baaDateApproved,baaDateValidFrom,baaDateValidTo,baaFactPageUrl,baaFactMapUrl,baaNpdidBsnsArrArea,dateSyncNPD
2 +BLANE UNIT,UNITIZED,01.07.2005,01.07.2005,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=3437667,http://www.npd.no/FactMapSearch?NPDID_business_area=3437667,3437667,31.07.2011
3 +BRAGE UNIT,UNITIZED,27.12.1993,27.12.1993,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40432,http://www.npd.no/FactMapSearch?NPDID_business_area=40432,40432,31.07.2011
4 +ENOCH UNIT,UNITIZED,01.07.2005,01.07.2005,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=3437805,http://www.npd.no/FactMapSearch?NPDID_business_area=3437805,3437805,31.07.2011
5 +FRIGG UNIT,UNITIZED,12.12.1977,12.12.1977,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=45634,http://www.npd.no/FactMapSearch?NPDID_business_area=45634,45634,31.07.2011
6 +FRØY UNIT,UNITIZED,19.08.1992,19.08.1992,31.12.2002,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41175,,41175,31.07.2011
7 +GIMLE UNIT,UNITIZED,16.10.2006,22.06.2006,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=4007192,http://www.npd.no/FactMapSearch?NPDID_business_area=4007192,4007192,31.07.2011
8 +GRANE SLIDING SCALE,SLIDING SCALE,13.01.1995,01.01.1995,13.04.2000,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40885,,40885,31.07.2011
9 +GRANE UNIT,UNITIZED,13.04.2000,13.04.2000,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1031365,http://www.npd.no/FactMapSearch?NPDID_business_area=1031365,1031365,31.07.2011
10 +HALTENBANKEN VEST UNIT,UNITIZED,18.12.2001,18.12.2001,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1854695,http://www.npd.no/FactMapSearch?NPDID_business_area=1854695,1854695,31.07.2011
11 +HEIDRUN UNIT,UNITIZED,13.12.1991,27.11.1991,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40490,http://www.npd.no/FactMapSearch?NPDID_business_area=40490,40490,31.07.2011
12 +HEIMDAL UNIT,PARCELL,11.04.1975,02.05.1975,12.10.2003,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41470,,41470,31.07.2011
13 +HILD UNIT,UNITIZED,19.12.2005,07.09.2005,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=3812119,http://www.npd.no/FactMapSearch?NPDID_business_area=3812119,3812119,31.07.2011
14 +HULDRA UNIT,UNITIZED,01.09.1998,05.12.1997,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41189,http://www.npd.no/FactMapSearch?NPDID_business_area=41189,41189,31.07.2011
15 +JOTUN UNIT,UNITIZED,23.12.1997,01.01.1998,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40655,http://www.npd.no/FactMapSearch?NPDID_business_area=40655,40655,31.07.2011
16 +MIKKEL UNIT,UNITIZED,06.06.2001,06.06.2001,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1629477,http://www.npd.no/FactMapSearch?NPDID_business_area=1629477,1629477,31.07.2011
17 +MURCHISON UNIT,UNITIZED,09.12.1980,01.04.1979,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=42302,http://www.npd.no/FactMapSearch?NPDID_business_area=42302,42302,31.07.2011
18 +NJORD UNIT,UNITIZED,27.03.1995,23.02.1995,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40585,http://www.npd.no/FactMapSearch?NPDID_business_area=40585,40585,31.07.2011
19 +NORDØST FRIGG UNIT,UNITIZED,25.11.1980,01.07.1980,31.12.1995,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=42225,,42225,31.07.2011
20 +NORNE INSIDE,SLIDING SCALE,09.03.1995,09.03.1995,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40672,http://www.npd.no/FactMapSearch?NPDID_business_area=40672,40672,31.07.2011
21 +ORMEN LANGE UNIT,UNITIZED,02.04.2004,03.12.2003,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=2588637,http://www.npd.no/FactMapSearch?NPDID_business_area=2588637,2588637,31.07.2011
22 +OSEBERG AREA UNIT,UNITIZED,14.09.2004,16.06.2004,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=3500071,http://www.npd.no/FactMapSearch?NPDID_business_area=3500071,3500071,31.07.2011
23 +OSEBERG SØR UNIT,UNITIZED,30.06.1997,20.12.1996,16.06.2004,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40638,,40638,31.07.2011
24 +OSEBERG UNIT,UNITIZED,10.08.1987,28.03.1985,16.06.2004,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41040,,41040,31.07.2011
25 +RINGHORNE ØST UNIT,UNITIZED,25.11.2005,17.11.2005,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=3505593,http://www.npd.no/FactMapSearch?NPDID_business_area=3505593,3505593,31.07.2011
26 +SA-A,SEISMIC AREA,30.05.1997,30.05.1997,30.04.2002,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1630961,,1630961,31.07.2011
27 +SA-C,SEISMIC AREA,30.05.1997,30.05.1997,30.05.2010,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1631138,,1631138,31.07.2011
28 +SA-F,SEISMIC AREA,30.05.1997,30.05.1997,10.09.2008,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1631341,,1631341,31.07.2011
29 +SA-G,SEISMIC AREA,30.05.1997,30.05.1997,15.05.2007,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1631599,,1631599,31.07.2011
30 +SA-SB,SEISMIC AREA,27.04.2001,27.04.2001,22.12.2006,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1631767,,1631767,31.07.2011
31 +SKARV UNIT,UNITIZED,20.12.2007,28.06.2007,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=4468539,http://www.npd.no/FactMapSearch?NPDID_business_area=4468539,4468539,31.07.2011
32 +SLEIPNER VEST UNIT,UNITIZED,20.01.1994,01.07.1994,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40848,http://www.npd.no/FactMapSearch?NPDID_business_area=40848,40848,31.07.2011
33 +SLEIPNER ØST UNIT,PARCELL,23.12.1992,15.01.1993,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41211,http://www.npd.no/FactMapSearch?NPDID_business_area=41211,41211,31.07.2011
34 +SNORRE UNIT,UNITIZED,30.05.1988,11.05.1988,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40906,http://www.npd.no/FactMapSearch?NPDID_business_area=40906,40906,31.07.2011
35 +SNØHVIT UNIT,UNITIZED,21.07.2000,21.07.2000,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=1333943,http://www.npd.no/FactMapSearch?NPDID_business_area=1333943,1333943,31.07.2011
36 +STATFJORD UNIT,UNITIZED,09.12.1980,01.06.1979,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41686,http://www.npd.no/FactMapSearch?NPDID_business_area=41686,41686,31.07.2011
37 +STATFJORD ØST UNIT,UNITIZED,19.11.1991,26.06.1991,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41233,http://www.npd.no/FactMapSearch?NPDID_business_area=41233,41233,31.07.2011
38 +SYGNA UNIT,UNITIZED,05.07.1999,16.12.1998,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=96205,http://www.npd.no/FactMapSearch?NPDID_business_area=96205,96205,31.07.2011
39 +TAMBAR ØST UNIT,UNITIZED,04.02.2009,01.01.2006,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=4999504,http://www.npd.no/FactMapSearch?NPDID_business_area=4999504,4999504,31.07.2011
40 +TOMMELITEN UNIT,PARCELL,12.06.1986,12.06.1986,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41411,http://www.npd.no/FactMapSearch?NPDID_business_area=41411,41411,31.07.2011
41 +TOR UNIT,UNITIZED,01.01.1976,10.12.1975,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=45891,http://www.npd.no/FactMapSearch?NPDID_business_area=45891,45891,31.07.2011
42 +TROLL UNIT,UNITIZED,24.12.1986,01.01.1987,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41105,http://www.npd.no/FactMapSearch?NPDID_business_area=41105,41105,31.07.2011
43 +TYRIHANS UNIT,UNITIZED,20.02.2006,23.06.2005,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=3488806,http://www.npd.no/FactMapSearch?NPDID_business_area=3488806,3488806,31.07.2011
44 +VALEMON UNIT,UNITIZED,23.06.2011,27.09.2010,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=18403644,http://www.npd.no/FactMapSearch?NPDID_business_area=18403644,18403644,31.07.2011
45 +VALHALL UNIT,UNITIZED,01.01.1983,28.09.1982,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41657,http://www.npd.no/FactMapSearch?NPDID_business_area=41657,41657,31.07.2011
46 +VEGA UNIT,UNITIZED,16.06.2011,01.03.2011,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=20459640,http://www.npd.no/FactMapSearch?NPDID_business_area=20459640,20459640,31.07.2011
47 +VISUND INSIDE,SLIDING SCALE,19.12.1994,01.01.1995,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40726,http://www.npd.no/FactMapSearch?NPDID_business_area=40726,40726,31.07.2011
48 +ØST FRIGG UNIT,UNITIZED,24.09.1987,01.12.1987,31.12.2000,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=41313,,41313,31.07.2011
49 +ÅSGARD UNIT,UNITIZED,10.04.1995,01.01.1995,,http://factpages.npd.no/FactPages/default.aspx?nav1=bsns_arr_area&nav2=PageView|All&nav3=40564,http://www.npd.no/FactMapSearch?NPDID_business_area=40564,40564,31.07.2011
50 +
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://topbraid.org/spin/spinmapl
3 # imports: http://www.reportinghub.no/1.1,1/schema/ddr 3 # imports: http://www.reportinghub.no/1.1,1/schema/ddr
4 -# imports: http://www.reportinghub.no/1.1/schema/npd
5 # imports: http://spinrdf.org/spin 4 # imports: http://spinrdf.org/spin
5 +# imports: http://www.reportinghub.no/1.1/schema/npd
6 6
7 @prefix fn: <http://www.w3.org/2005/xpath-functions#> . 7 @prefix fn: <http://www.w3.org/2005/xpath-functions#> .
8 @prefix owl: <http://www.w3.org/2002/07/owl#> . 8 @prefix owl: <http://www.w3.org/2002/07/owl#> .
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
38 <http://www.reportinghub.no/spin/rh> 38 <http://www.reportinghub.no/spin/rh>
39 rdf:type owl:Ontology ; 39 rdf:type owl:Ontology ;
40 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ; 40 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
41 - 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> ; 41 + owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://www.reportinghub.no/1.1,1/schema/ddr> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> ;
42 owl:versionInfo "0.1.0"^^xsd:string . 42 owl:versionInfo "0.1.0"^^xsd:string .
43 43
44 rhspin:GetWellBoresOfWell 44 rhspin:GetWellBoresOfWell
...@@ -70,6 +70,28 @@ rhspin:GetWellBoresOfWell ...@@ -70,6 +70,28 @@ rhspin:GetWellBoresOfWell
70 spl:valueType <http://www.reportinghub.no/schema/npd#Well> 70 spl:valueType <http://www.reportinghub.no/schema/npd#Well>
71 ] . 71 ] .
72 72
73 +rhspin:baaById
74 + rdf:type spin:Function ;
75 + rdfs:label "baa by id"^^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/BAA-" ;
82 + sp:arg2 [ sp:varName "id"^^xsd:string
83 + ]
84 + ]
85 + ]) ;
86 + sp:where ()
87 + ] ;
88 + spin:constraint
89 + [ rdf:type spl:Argument ;
90 + rdfs:comment "The NPD id of the BAA."^^xsd:string ;
91 + spl:predicate <http://spinrdf.org/arg#id> ;
92 + spl:valueType xsd:string
93 + ] .
94 +
73 rhspin:companyById 95 rhspin:companyById
74 rdf:type spin:Function ; 96 rdf:type spin:Function ;
75 rdfs:label "company by id"^^xsd:string ; 97 rdfs:label "company by id"^^xsd:string ;
...@@ -226,6 +248,6 @@ rhspin:wellByName ...@@ -226,6 +248,6 @@ rhspin:wellByName
226 ] ; 248 ] ;
227 spin:returnType <http://www.reportinghub.no/schema/npd#Well> . 249 spin:returnType <http://www.reportinghub.no/schema/npd#Well> .
228 250
229 -_:b1 sp:varName "wellBoreName"^^xsd:string .
230 -
231 _:b2 sp:varName "wellBore"^^xsd:string . 251 _:b2 sp:varName "wellBore"^^xsd:string .
252 +
253 +_:b1 sp:varName "wellBoreName"^^xsd:string .
......
...@@ -2,21 +2,24 @@ ...@@ -2,21 +2,24 @@
2 # imports: http://topbraid.org/spin/spinmapl 2 # imports: http://topbraid.org/spin/spinmapl
3 # imports: file:///www.reportinghub.no/transform/npd/company 3 # imports: file:///www.reportinghub.no/transform/npd/company
4 # imports: http://www.reportinghub.no/examples/transform/npd/company-2011-07-30 4 # imports: http://www.reportinghub.no/examples/transform/npd/company-2011-07-30
5 +# imports: file:///www.reportinghub.no/transform/npd/baa-2011-07-30
5 # imports: http://www.reportinghub.no/transform/npd/field-2011-07-30 6 # imports: http://www.reportinghub.no/transform/npd/field-2011-07-30
6 # imports: http://www.reportinghub.no/1.1/schema/npd 7 # imports: http://www.reportinghub.no/1.1/schema/npd
7 # imports: file:///www.reportinghub.no/transform/npd/field 8 # imports: file:///www.reportinghub.no/transform/npd/field
8 # imports: http://www.reportinghub.no/spin/rh 9 # imports: http://www.reportinghub.no/spin/rh
9 # imports: file:///www.reportinghub.no/transform/npd/facilitymoveable 10 # imports: file:///www.reportinghub.no/transform/npd/facilitymoveable
10 # imports: file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30 11 # imports: file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30
11 -# imports: file:///www.reportinghub.no/transform/npd/license-2011-07-30
12 # imports: file:///www.reportinghub.no/transform/wellbore-npdid-overview 12 # imports: file:///www.reportinghub.no/transform/wellbore-npdid-overview
13 +# imports: file:///www.reportinghub.no/transform/npd/license-2011-07-30
13 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed 14 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed
15 +# imports: file:///www.reportinghub.no/transform/npd/baa
14 # imports: file:///www.reportinghub.no/transform/npd/licence 16 # imports: file:///www.reportinghub.no/transform/npd/licence
15 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30 17 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30
16 # imports: http://spinrdf.org/spin 18 # imports: http://spinrdf.org/spin
17 19
18 @prefix : <http://www.reportinghub.no/transform/spreadsheets2npd#> . 20 @prefix : <http://www.reportinghub.no/transform/spreadsheets2npd#> .
19 @prefix arg: <http://spinrdf.org/arg#> . 21 @prefix arg: <http://spinrdf.org/arg#> .
22 +@prefix baa-2011-07-30: <file:///www.reportinghub.no/transform/npd/baa-2011-07-30#> .
20 @prefix company-2011-07-30: <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30#> . 23 @prefix company-2011-07-30: <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30#> .
21 @prefix facilityfixed-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30#> . 24 @prefix facilityfixed-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30#> .
22 @prefix facilitymoveable-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30#> . 25 @prefix facilitymoveable-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30#> .
...@@ -108,6 +111,65 @@ ...@@ -108,6 +111,65 @@
108 <http://www.reportinghub.no/schema/npd#licensingActivity> 111 <http://www.reportinghub.no/schema/npd#licensingActivity>
109 ] . 112 ] .
110 113
114 +<file:///www.reportinghub.no/transform/npd/baa#BAA>
115 + spinmap:rule
116 + [ rdf:type spinmap:Mapping-1-1 ;
117 + spinmap:context :BAA-BusinessArrangementArea ;
118 + spinmap:expression spin:_arg1 ;
119 + spinmap:sourcePredicate1
120 + <file:///www.reportinghub.no/transform/npd/baa#baaName> ;
121 + spinmap:targetPredicate1
122 + <http://www.reportinghub.no/schema/npd#name>
123 + ] ;
124 + spinmap:rule
125 + [ rdf:type spinmap:Mapping-1-1 ;
126 + spinmap:context :BAA-BusinessArrangementArea ;
127 + spinmap:expression
128 + [ rdf:type spif:parseDate ;
129 + arg:pattern "dd.MM.yyyy" ;
130 + sp:arg1 spin:_arg1
131 + ] ;
132 + spinmap:sourcePredicate1
133 + <file:///www.reportinghub.no/transform/npd/baa#baaDateValidTo> ;
134 + spinmap:targetPredicate1
135 + <http://www.reportinghub.no/schema/npd#endDate>
136 + ] ;
137 + spinmap:rule
138 + [ rdf:type spinmap:Mapping-1-1 ;
139 + spinmap:context :BAA-BusinessArrangementArea ;
140 + spinmap:expression
141 + [ rdf:type spif:parseDate ;
142 + arg:pattern "dd.MM.yyyy" ;
143 + sp:arg1 spin:_arg1
144 + ] ;
145 + spinmap:sourcePredicate1
146 + <file:///www.reportinghub.no/transform/npd/baa#baaDateValidFrom> ;
147 + spinmap:targetPredicate1
148 + <http://www.reportinghub.no/schema/npd#startDate>
149 + ] ;
150 + spinmap:rule
151 + [ rdf:type spinmap:Mapping-1-1 ;
152 + spinmap:context :BAA-BusinessArrangementArea ;
153 + spinmap:expression
154 + [ rdf:type spinmapl:resourceWithValue ;
155 + sp:arg1 spin:_arg1 ;
156 + spinmapl:predicate :baaKind
157 + ] ;
158 + spinmap:sourcePredicate1
159 + <file:///www.reportinghub.no/transform/npd/baa#baaKind> ;
160 + spinmap:targetPredicate1
161 + rdf:type
162 + ] ;
163 + spinmap:rule
164 + [ rdf:type spinmap:Mapping-1-1 ;
165 + spinmap:context :BAA-BusinessArrangementArea ;
166 + spinmap:expression spin:_arg1 ;
167 + spinmap:sourcePredicate1
168 + <file:///www.reportinghub.no/transform/npd/baa#baaNpdidBsnsArrArea> ;
169 + spinmap:targetPredicate1
170 + <http://www.reportinghub.no/schema/npd#id>
171 + ] .
172 +
111 <file:///www.reportinghub.no/transform/npd/company#Company> 173 <file:///www.reportinghub.no/transform/npd/company#Company>
112 spinmap:rule 174 spinmap:rule
113 [ rdf:type spinmap:Mapping-0-1 ; 175 [ rdf:type spinmap:Mapping-0-1 ;
...@@ -294,6 +356,20 @@ ...@@ -294,6 +356,20 @@
294 spinmap:rule 356 spinmap:rule
295 [ rdf:type spinmap:Mapping-1-1 ; 357 [ rdf:type spinmap:Mapping-1-1 ;
296 spinmap:context :Field-Field ; 358 spinmap:context :Field-Field ;
359 + spinmap:expression
360 + [ rdf:type spinmapl:resourceWithValue ;
361 + sp:arg1 spin:_arg1 ;
362 + spinmapl:predicate <http://www.reportinghub.no/schema/npd#id> ;
363 + spinmapl:type <http://www.reportinghub.no/schema/npd#Owner>
364 + ] ;
365 + spinmap:sourcePredicate1
366 + <file:///www.reportinghub.no/transform/npd/field#fldNpdidOwner> ;
367 + spinmap:targetPredicate1
368 + <http://www.reportinghub.no/schema/npd#fieldOwner>
369 + ] ;
370 + spinmap:rule
371 + [ rdf:type spinmap:Mapping-1-1 ;
372 + spinmap:context :Field-Field ;
297 spinmap:expression spin:_arg1 ; 373 spinmap:expression spin:_arg1 ;
298 spinmap:sourcePredicate1 374 spinmap:sourcePredicate1
299 <file:///www.reportinghub.no/transform/npd/field#fldCurrentActivitySatus> ; 375 <file:///www.reportinghub.no/transform/npd/field#fldCurrentActivitySatus> ;
...@@ -423,12 +499,33 @@ arg:wellBoreName ...@@ -423,12 +499,33 @@ arg:wellBoreName
423 arg:wellName 499 arg:wellName
424 rdfs:subPropertyOf sp:arg . 500 rdfs:subPropertyOf sp:arg .
425 501
502 +<http://www.reportinghub.no/schema/npd#ParcellBAA>
503 + :baaKind "PARCELL"^^xsd:string .
504 +
505 +<http://www.reportinghub.no/schema/npd#SeismicAreaBAA>
506 + :baaKind "SEISMIC AREA"^^xsd:string .
507 +
508 +<http://www.reportinghub.no/schema/npd#SlidingScaleBAA>
509 + :baaKind "SLIDING SCALE"^^xsd:string .
510 +
511 +<http://www.reportinghub.no/schema/npd#UnitizedBAA>
512 + :baaKind "UNITIZED"^^xsd:string .
513 +
426 <http://www.reportinghub.no/transform/spreadsheets2npd> 514 <http://www.reportinghub.no/transform/spreadsheets2npd>
427 rdf:type owl:Ontology ; 515 rdf:type owl:Ontology ;
428 rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ; 516 rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ;
429 - owl:imports <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30> , <http://www.reportinghub.no/transform/npd/field-2011-07-30> , <http://www.reportinghub.no/1.1/schema/npd> , <file:///www.reportinghub.no/transform/npd/field> , <http://topbraid.org/spin/spinmapl> , <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30> , <file:///www.reportinghub.no/transform/npd/licence> , <file:///www.reportinghub.no/transform/npd/facilityfixed> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30> , <file:///www.reportinghub.no/transform/npd/facilitymoveable> , <file:///www.reportinghub.no/transform/npd/license-2011-07-30> , <file:///www.reportinghub.no/transform/wellbore-npdid-overview> , <file:///www.reportinghub.no/transform/npd/company> , <http://spinrdf.org/spin> ; 517 + owl:imports <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30> , <http://www.reportinghub.no/transform/npd/field-2011-07-30> , <http://www.reportinghub.no/1.1/schema/npd> , <file:///www.reportinghub.no/transform/npd/field> , <http://topbraid.org/spin/spinmapl> , <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30> , <file:///www.reportinghub.no/transform/npd/licence> , <file:///www.reportinghub.no/transform/npd/facilityfixed> , <http://www.reportinghub.no/spin/rh> , <file:///www.reportinghub.no/transform/npd/baa> , <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30> , <file:///www.reportinghub.no/transform/npd/facilitymoveable> , <file:///www.reportinghub.no/transform/npd/license-2011-07-30> , <file:///www.reportinghub.no/transform/wellbore-npdid-overview> , <file:///www.reportinghub.no/transform/npd/company> , <http://spinrdf.org/spin> , <file:///www.reportinghub.no/transform/npd/baa-2011-07-30> ;
430 owl:versionInfo "0.1.0"^^xsd:string . 518 owl:versionInfo "0.1.0"^^xsd:string .
431 519
520 +:BAA-BusinessArrangementArea
521 + rdf:type spinmap:Context ;
522 + spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/baa#BAA> ;
523 + spinmap:target
524 + [ rdf:type :buildBAAURI ;
525 + spinmap:source spinmap:_source
526 + ] ;
527 + spinmap:targetClass <http://www.reportinghub.no/schema/npd#BusinessArrangementArea> .
528 +
432 :Company-Company 529 :Company-Company
433 rdf:type spinmap:Context ; 530 rdf:type spinmap:Context ;
434 spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/company#Company> ; 531 spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/company#Company> ;
...@@ -494,6 +591,26 @@ arg:wellName ...@@ -494,6 +591,26 @@ arg:wellName
494 ] ; 591 ] ;
495 spinmap:targetClass <http://www.reportinghub.no/schema/npd#WellBore> . 592 spinmap:targetClass <http://www.reportinghub.no/schema/npd#WellBore> .
496 593
594 +:baaKind
595 + rdf:type rdf:Property ;
596 + rdfs:label "baa kind"^^xsd:string .
597 +
598 +:buildBAAURI
599 + rdf:type spinmap:TargetFunction ;
600 + rdfs:label "build BAA URI"^^xsd:string ;
601 + rdfs:subClassOf spinmap:TargetFunctions ;
602 + spin:body
603 + [ rdf:type sp:Select ;
604 + sp:resultVariables ([ rdf:type rhspin:baaById ;
605 + arg:id [ rdf:type spl:object ;
606 + sp:arg1 [ sp:varName "source"^^xsd:string
607 + ] ;
608 + sp:arg2 <file:///www.reportinghub.no/transform/npd/baa#baaNpdidBsnsArrArea>
609 + ]
610 + ]) ;
611 + sp:where ()
612 + ] .
613 +
497 :buildCompanyURI 614 :buildCompanyURI
498 rdf:type spinmap:TargetFunction ; 615 rdf:type spinmap:TargetFunction ;
499 rdfs:label "build company URI"^^xsd:string ; 616 rdfs:label "build company URI"^^xsd:string ;
......
1 +# baseURI: file:///www.reportinghub.no/transform/npd/baa
2 +# imports: http://topbraid.org/tables
3 +
4 +@prefix baa: <file:///www.reportinghub.no/transform/npd/baa#> .
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/baa>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://topbraid.org/tables> .
14 +
15 +baa:BAA
16 + rdf:type owl:Class ;
17 + rdfs:label "BAA"^^xsd:string ;
18 + tables:sheetIndex "0"^^xsd:int .
19 +
20 +baa:baaDateApproved
21 + rdf:type owl:DatatypeProperty ;
22 + rdfs:domain baa:BAA ;
23 + rdfs:label "baaDateApproved" ;
24 + rdfs:range xsd:string ;
25 + tables:columnIndex "2"^^xsd:int .
26 +
27 +baa:baaDateValidFrom
28 + rdf:type owl:DatatypeProperty ;
29 + rdfs:domain baa:BAA ;
30 + rdfs:label "baaDateValidFrom" ;
31 + rdfs:range xsd:string ;
32 + tables:columnIndex "3"^^xsd:int .
33 +
34 +baa:baaDateValidTo
35 + rdf:type owl:DatatypeProperty ;
36 + rdfs:domain baa:BAA ;
37 + rdfs:label "baaDateValidTo" ;
38 + rdfs:range xsd:string ;
39 + tables:columnIndex "4"^^xsd:int .
40 +
41 +baa:baaFactMapUrl
42 + rdf:type owl:DatatypeProperty ;
43 + rdfs:domain baa:BAA ;
44 + rdfs:label "baaFactMapUrl" ;
45 + rdfs:range xsd:string ;
46 + tables:columnIndex "6"^^xsd:int .
47 +
48 +baa:baaFactPageUrl
49 + rdf:type owl:DatatypeProperty ;
50 + rdfs:domain baa:BAA ;
51 + rdfs:label "baaFactPageUrl" ;
52 + rdfs:range xsd:string ;
53 + tables:columnIndex "5"^^xsd:int .
54 +
55 +baa:baaKind
56 + rdf:type owl:DatatypeProperty ;
57 + rdfs:domain baa:BAA ;
58 + rdfs:label "baaKind" ;
59 + rdfs:range xsd:string ;
60 + tables:columnIndex "1"^^xsd:int .
61 +
62 +baa:baaName
63 + rdf:type owl:DatatypeProperty ;
64 + rdfs:domain baa:BAA ;
65 + rdfs:label "baaName"^^xsd:string ;
66 + rdfs:range xsd:string ;
67 + tables:columnIndex "0"^^xsd:int .
68 +
69 +baa:baaNpdidBsnsArrArea
70 + rdf:type owl:DatatypeProperty ;
71 + rdfs:domain baa:BAA ;
72 + rdfs:label "baaNpdidBsnsArrArea" ;
73 + rdfs:range xsd:string ;
74 + tables:columnIndex "7"^^xsd:int .
75 +
76 +baa:dateSyncNPD
77 + rdf:type owl:DatatypeProperty ;
78 + rdfs:domain baa:BAA ;
79 + rdfs:label "dateSyncNPD" ;
80 + rdfs:range xsd:string ;
81 + tables:columnIndex "8"^^xsd:int .