Holger Knublauch

NPD import of ShareOfWAA

This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -17,6 +17,8 @@
# imports: file:///www.reportinghub.no/transform/npd/facilityfixed
# imports: file:///www.reportinghub.no/transform/npd/discovery
# imports: file:///www.reportinghub.no/transform/npd/licence
# imports: file:///www.reportinghub.no/transform/npd/baalicensee
# imports: file:///www.reportinghub.no/transform/npd/baalicensee-2011-07-30
# imports: file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30
# imports: http://spinrdf.org/spin
# imports: file:///www.reportinghub.no/transform/npd/tufoperator
......@@ -24,11 +26,13 @@
@prefix : <http://www.reportinghub.no/transform/spreadsheets2npd#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix baa-2011-07-30: <file:///www.reportinghub.no/transform/npd/baa-2011-07-30#> .
@prefix baalicensee-2011-07-30: <file:///www.reportinghub.no/transform/npd/baalicensee-2011-07-30#> .
@prefix company-2011-07-30: <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30#> .
@prefix discovery-2011-07-30: <file:///www.reportinghub.no/transform/npd/discovery-2011-07-30#> .
@prefix facilityfixed-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30#> .
@prefix facilitymoveable-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30#> .
@prefix field-2011-07-30: <http://www.reportinghub.no/transform/npd/field-2011-07-30#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix license-2011-07-30: <file:///www.reportinghub.no/transform/npd/license-2011-07-30#> .
@prefix licensee-2011-07-30: <file:///www.reportinghub.no/transform/npd/licensee-2011-07-30#> .
@prefix npdi: <https://www.reportinghub.no/data/npd/> .
......@@ -48,37 +52,31 @@
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#Licence>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :License-License ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Licence> ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlLicensingActivityName> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/schema/npd#licensingActivity>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :License-License ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlDateGranted> ;
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#startDate>
<http://www.reportinghub.no/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :License-License ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlDateValidTo> ;
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlStatus> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#endDate>
<http://www.reportinghub.no/schema/npd#licenseStatus>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -92,29 +90,35 @@
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :License-License ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlStatus> ;
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlDateValidTo> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#licenseStatus>
<http://www.reportinghub.no/schema/npd#endDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :License-License ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlName> ;
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlDateGranted> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
<http://www.reportinghub.no/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :License-License ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlLicensingActivityName> ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Licence> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#licensingActivity>
rdf:type
] .
<file:///www.reportinghub.no/transform/npd/baa#BAA>
......@@ -123,22 +127,22 @@
spinmap:context :BAA-BusinessArrangementArea ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baaName> ;
<file:///www.reportinghub.no/transform/npd/baa#baaNpdidBsnsArrArea> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
<http://www.reportinghub.no/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAA-BusinessArrangementArea ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate :baaKind
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baaDateValidTo> ;
<file:///www.reportinghub.no/transform/npd/baa#baaKind> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#endDate>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -157,41 +161,109 @@
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAA-BusinessArrangementArea ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate :baaKind
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baaKind> ;
<file:///www.reportinghub.no/transform/npd/baa#baaDateValidTo> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/schema/npd#endDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAA-BusinessArrangementArea ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baaNpdidBsnsArrArea> ;
<file:///www.reportinghub.no/transform/npd/baa#baaName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
<http://www.reportinghub.no/schema/npd#name>
] .
<file:///www.reportinghub.no/transform/npd/company#Company>
<file:///www.reportinghub.no/transform/npd/baalicensee#BAALicensee>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Company-Company ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Company> ;
spinmap:context :BAALicensee-ShareOfBAA ;
spinmap:expression <http://www.reportinghub.no/schema/npd#ShareOfBAA> ;
spinmap:targetPredicate1
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAALicensee-ShareOfBAA ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#BusinessArrangementArea>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#baaShared>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAALicensee-ShareOfBAA ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidFrom> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAALicensee-ShareOfBAA ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidTo> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#endDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAALicensee-ShareOfBAA ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#cmpLongName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#shareHolder>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAALicensee-ShareOfBAA ;
spinmap:expression
[ rdf:type xsd:float ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeInterest> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#percentageOfShare>
] .
<file:///www.reportinghub.no/transform/npd/company#Company>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Company-Company ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmpLongName> ;
<file:///www.reportinghub.no/transform/npd/company#cmpNpdidCompany> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
<http://www.reportinghub.no/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -207,15 +279,31 @@
spinmap:context :Company-Company ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmpNpdidCompany> ;
<file:///www.reportinghub.no/transform/npd/company#cmpLongName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
<http://www.reportinghub.no/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Company-Company ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Company> ;
spinmap:targetPredicate1
rdf:type
] .
<file:///www.reportinghub.no/transform/npd/discovery#Discovery>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#nmaName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryMainNcsArea>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName spin:_arg1
......@@ -228,6 +316,18 @@
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression
[ rdf:type rhspin:fieldById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#fldNpdidField> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryField>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscNpdidDiscovery> ;
......@@ -251,18 +351,16 @@
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Owner>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscCurrentActivityStatus> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryCurrentActivityStatus>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Discovery> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscOwnerName> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/schema/npd#discoveryOwner>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -281,53 +379,34 @@
spinmap:context :Discovery-Discovery ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscHcType> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryHCType>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression
[ rdf:type rhspin:fieldById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#fldNpdidField> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryField>
<http://www.reportinghub.no/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Owner>
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscOwnerName> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscCurrentActivityStatus> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryOwner>
<http://www.reportinghub.no/schema/npd#discoveryCurrentActivityStatus>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscName> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscHcType> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
<http://www.reportinghub.no/schema/npd#discoveryHCType>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#nmaName> ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Discovery> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryMainNcsArea>
rdf:type
] .
<file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed>
......@@ -336,37 +415,40 @@
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclKind> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclPhase> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#facilityKind>
<http://www.reportinghub.no/schema/npd#fixedFacilityPhase>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#id> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#FixedFacilityParent>
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclBelongsToS> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclStartupDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#belongsTo>
<http://www.reportinghub.no/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Company>
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclCurrentOperatorName> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#currentOperator>
<http://www.reportinghub.no/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclNpdidFacility> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -388,67 +470,57 @@
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclNpdidFacility> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclName> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclCurrentOperatorName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
<http://www.reportinghub.no/schema/npd#currentOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#id> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#FixedFacilityParent>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclStartupDate> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclBelongsToS> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#startDate>
<http://www.reportinghub.no/schema/npd#belongsTo>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclPhase> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclKind> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#fixedFacilityPhase>
<http://www.reportinghub.no/schema/npd#facilityKind>
] .
<file:///www.reportinghub.no/transform/npd/facilitymoveable#FacilityMoveable>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :FacilityMoveable-MoveableFacility ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclCurrentRespCompanyName> ;
spinmap:expression <http://www.reportinghub.no/schema/npd#MoveableFacility> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#currentlyResponsibleCompany>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityMoveable-MoveableFacility ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclName> ;
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclNpdidFacility> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
<http://www.reportinghub.no/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -464,101 +536,106 @@
spinmap:context :FacilityMoveable-MoveableFacility ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclNpdidFacility> ;
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
<http://www.reportinghub.no/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityMoveable-MoveableFacility ;
spinmap:expression <http://www.reportinghub.no/schema/npd#MoveableFacility> ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclCurrentRespCompanyName> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/schema/npd#currentlyResponsibleCompany>
] .
<file:///www.reportinghub.no/transform/npd/field#Field>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Field-Field ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Field> ;
spinmap:targetPredicate1
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#id> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Owner>
[ rdf:type rhspin:companyById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fldNpdidOwner> ;
<file:///www.reportinghub.no/transform/npd/field#cmpNpdidCompany> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#fieldOwner>
<http://www.reportinghub.no/schema/npd#fieldOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fldCurrentActivitySatus> ;
<file:///www.reportinghub.no/transform/npd/field#fldNpdidField> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#currentActivityStatus>
<http://www.reportinghub.no/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName spin:_arg1
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#wlbName> ;
<file:///www.reportinghub.no/transform/npd/field#fldName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#fieldDiscoveryWellBore>
<http://www.reportinghub.no/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fldName> ;
<file:///www.reportinghub.no/transform/npd/field#wlbName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
<http://www.reportinghub.no/schema/npd#fieldDiscoveryWellBore>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fldNpdidField> ;
<file:///www.reportinghub.no/transform/npd/field#fldCurrentActivitySatus> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
<http://www.reportinghub.no/schema/npd#currentActivityStatus>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression
[ rdf:type rhspin:companyById ;
arg:id spin:_arg1
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/schema/npd#id> ;
spinmapl:type <http://www.reportinghub.no/schema/npd#Owner>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#cmpNpdidCompany> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#fieldOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Field-Field ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Field> ;
<file:///www.reportinghub.no/transform/npd/field#fldNpdidOwner> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/schema/npd#fieldOwner>
] .
<file:///www.reportinghub.no/transform/npd/tufoperator#TUFOperator>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :TUFOperator-TUF ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/tufoperator#tufName> ;
spinmap:expression <http://www.reportinghub.no/schema/npd#TUF> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -570,41 +647,40 @@
<http://www.reportinghub.no/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :TUFOperator-TUF ;
spinmap:expression <http://www.reportinghub.no/schema/npd#TUF> ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/tufoperator#tufName> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/schema/npd#name>
] .
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#WBID>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBID-WellBore ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ;
spinmap:expression <http://www.reportinghub.no/schema/npd#WellBore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#partOfWell>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBID-Well ;
spinmap:context :WBID-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ;
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbNpdidWellbore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
<http://www.reportinghub.no/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBID-Well ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Well> ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBID-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellType> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/schema/npd#wellBoreType>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -616,29 +692,32 @@
<http://www.reportinghub.no/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBID-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellType> ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBID-Well ;
spinmap:expression <http://www.reportinghub.no/schema/npd#Well> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#wellBoreType>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBID-WellBore ;
spinmap:context :WBID-Well ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbNpdidWellbore> ;
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
<http://www.reportinghub.no/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBID-WellBore ;
spinmap:expression <http://www.reportinghub.no/schema/npd#WellBore> ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/schema/npd#partOfWell>
] .
arg:well
......@@ -665,7 +744,7 @@ arg:wellName
<http://www.reportinghub.no/transform/spreadsheets2npd>
rdf:type owl:Ontology ;
rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ;
owl:imports <file:///www.reportinghub.no/transform/npd/tufoperator> , <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30> , <http://www.reportinghub.no/transform/npd/tufoperator-2011-07-30> , <http://www.reportinghub.no/transform/npd/field-2011-07-30> , <file:///www.reportinghub.no/transform/npd/discovery> , <http://www.reportinghub.no/1.1/schema/npd> , <file:///www.reportinghub.no/transform/npd/field> , <file:///www.reportinghub.no/transform/npd/discovery-2011-07-30> , <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> ;
owl:imports <file:///www.reportinghub.no/transform/npd/tufoperator> , <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30> , <http://www.reportinghub.no/transform/npd/tufoperator-2011-07-30> , <http://www.reportinghub.no/transform/npd/field-2011-07-30> , <file:///www.reportinghub.no/transform/npd/discovery> , <http://www.reportinghub.no/1.1/schema/npd> , <file:///www.reportinghub.no/transform/npd/field> , <file:///www.reportinghub.no/transform/npd/discovery-2011-07-30> , <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30> , <file:///www.reportinghub.no/transform/npd/baalicensee> , <http://topbraid.org/spin/spinmapl> , <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/baa> , <file:///www.reportinghub.no/transform/npd/facilitymoveable> , <file:///www.reportinghub.no/transform/npd/baalicensee-2011-07-30> , <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> ;
owl:versionInfo "0.1.0"^^xsd:string .
:BAA-BusinessArrangementArea
......@@ -677,6 +756,17 @@ arg:wellName
] ;
spinmap:targetClass <http://www.reportinghub.no/schema/npd#BusinessArrangementArea> .
:BAALicensee-ShareOfBAA
rdf:type spinmap:Context ;
spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/baalicensee#BAALicensee> ;
spinmap:target
[ rdf:type :buildShareOfBAAURI ;
spinmap:source
[ sp:varName "source"^^xsd:string
]
] ;
spinmap:targetClass <http://www.reportinghub.no/schema/npd#ShareOfBAA> .
:Company-Company
rdf:type spinmap:Context ;
spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/company#Company> ;
......@@ -866,6 +956,49 @@ arg:wellName
sp:where ()
] .
:buildShareOfBAAURI
rdf:type spinmap:TargetFunction ;
rdfs:label "build ShareOfBAA URI"^^xsd:string ;
rdfs:subClassOf spinmap:TargetFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/data/npd/ShareOfBAA-" ;
sp:arg2 _:b1 ;
sp:arg3 "_" ;
sp:arg4 _:b2 ;
sp:arg5 "_" ;
sp:arg6 [ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 _:b3
]
]
]) ;
sp:where ([ sp:object _:b3 ;
sp:predicate <file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidFrom> ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <file:///www.reportinghub.no/transform/npd/baalicensee#cmpLongName> ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <file:///www.reportinghub.no/transform/npd/company#cmpLongName> ;
sp:subject _:b6
] [ sp:object _:b1 ;
sp:predicate <file:///www.reportinghub.no/transform/npd/company#cmpNpdidCompany> ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate <file:///www.reportinghub.no/transform/npd/baalicensee#baaName> ;
sp:subject _:b4
] [ sp:object _:b7 ;
sp:predicate <file:///www.reportinghub.no/transform/npd/baa#baaName> ;
sp:subject _:b8
] [ sp:object _:b2 ;
sp:predicate <file:///www.reportinghub.no/transform/npd/baa#baaNpdidBsnsArrArea> ;
sp:subject _:b8
])
] .
:buildTUFURI
rdf:type spinmap:TargetFunction ;
rdfs:label "build TUF URI"^^xsd:string ;
......@@ -889,9 +1022,9 @@ arg:wellName
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName _:b1
arg:wellBoreName _:b9
]) ;
sp:where ([ sp:object _:b1 ;
sp:where ([ sp:object _:b9 ;
sp:predicate <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellboreName> ;
sp:subject
[ sp:varName "source"^^xsd:string
......@@ -907,9 +1040,9 @@ arg:wellName
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type rhspin:wellByName ;
arg:wellName _:b2
arg:wellName _:b10
]) ;
sp:where ([ sp:object _:b2 ;
sp:where ([ sp:object _:b10 ;
sp:predicate <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ;
sp:subject
[ sp:varName "source"^^xsd:string
......@@ -917,6 +1050,23 @@ arg:wellName
])
] .
_:b2 sp:varName "wellName"^^xsd:string .
_:b2 sp:varName "baaId"^^xsd:string .
_:b8 sp:varName "baa"^^xsd:string .
_:b7 sp:varName "baaName"^^xsd:string .
_:b1 sp:varName "companyId"^^xsd:string .
_:b6 sp:varName "company"^^xsd:string .
_:b5 sp:varName "companyName"^^xsd:string .
_:b3 sp:varName "startDate"^^xsd:string .
_:b4 sp:varName "source"^^xsd:string .
_:b10
sp:varName "wellName"^^xsd:string .
_:b1 sp:varName "wellBoreId"^^xsd:string .
_:b9 sp:varName "wellBoreId"^^xsd:string .
......
......@@ -13,4 +13,6 @@
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
] ;
inference:inferredMode
"true"^^xsd:boolean .
......
# baseURI: file:///www.reportinghub.no/transform/npd/baalicensee
# imports: http://topbraid.org/tables
@prefix baalicensee: <file:///www.reportinghub.no/transform/npd/baalicensee#> .
@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 tables: <http://topbraid.org/tables#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<file:///www.reportinghub.no/transform/npd/baalicensee>
rdf:type owl:Ontology ;
owl:imports <http://topbraid.org/tables> .
baalicensee:BAALicensee
rdf:type owl:Class ;
rdfs:label "BAA Licensee"^^xsd:string ;
tables:sheetIndex "0"^^xsd:int .
baalicensee:baaLicenseeDateValidFrom
rdf:type owl:DatatypeProperty ;
rdfs:domain baalicensee:BAALicensee ;
rdfs:label "baaLicenseeDateValidFrom" ;
rdfs:range xsd:string ;
tables:columnIndex "1"^^xsd:int .
baalicensee:baaLicenseeDateValidTo
rdf:type owl:DatatypeProperty ;
rdfs:domain baalicensee:BAALicensee ;
rdfs:label "baaLicenseeDateValidTo" ;
rdfs:range xsd:string ;
tables:columnIndex "2"^^xsd:int .
baalicensee:baaLicenseeInterest
rdf:type owl:DatatypeProperty ;
rdfs:domain baalicensee:BAALicensee ;
rdfs:label "baaLicenseeInterest" ;
rdfs:range xsd:string ;
tables:columnIndex "4"^^xsd:int .
baalicensee:baaLicenseeSdfi
rdf:type owl:DatatypeProperty ;
rdfs:domain baalicensee:BAALicensee ;
rdfs:label "baaLicenseeSdfi" ;
rdfs:range xsd:string ;
tables:columnIndex "5"^^xsd:int .
baalicensee:baaName
rdf:type owl:DatatypeProperty ;
rdfs:domain baalicensee:BAALicensee ;
rdfs:label "baaName"^^xsd:string ;
rdfs:range xsd:string ;
tables:columnIndex "0"^^xsd:int .
baalicensee:cmpLongName
rdf:type owl:DatatypeProperty ;
rdfs:domain baalicensee:BAALicensee ;
rdfs:label "cmpLongName" ;
rdfs:range xsd:string ;
tables:columnIndex "3"^^xsd:int .
baalicensee:datesyncNPD
rdf:type owl:DatatypeProperty ;
rdfs:domain baalicensee:BAALicensee ;
rdfs:label "DatesyncNPD" ;
rdfs:range xsd:string ;
tables:columnIndex "6"^^xsd:int .