Holger Knublauch

Clean up & optimization of NPD transform

......@@ -24,6 +24,7 @@
@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 fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix npdi: <http://www.reportinghub.no/np/data/npd/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -44,22 +45,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/np/schema/npd#name>
<http://www.reportinghub.no/np/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:resourceWithValueTypeless ;
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/np/schema/npd#endDate>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -78,37 +79,32 @@
[ 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/np/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/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#name>
] .
<file:///www.reportinghub.no/transform/npd/baalicensee#BAALicensee>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-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:expression <http://www.reportinghub.no/np/schema/npd#ShareOfBAA> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#percentageOfShare>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -117,12 +113,12 @@
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
spinmapl:type <http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#cmpLongName> ;
<file:///www.reportinghub.no/transform/npd/baalicensee#baaName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#shareHolder>
<http://www.reportinghub.no/np/schema/npd#baaShared>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -133,9 +129,9 @@
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidTo> ;
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidFrom> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#endDate>
<http://www.reportinghub.no/np/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -146,9 +142,9 @@
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidFrom> ;
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidTo> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#startDate>
<http://www.reportinghub.no/np/schema/npd#endDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -157,56 +153,58 @@
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea>
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaName> ;
<file:///www.reportinghub.no/transform/npd/baalicensee#cmpLongName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#baaShared>
<http://www.reportinghub.no/np/schema/npd#shareHolder>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAALicensee-ShareOfBAA ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#ShareOfBAA> ;
spinmap:expression
[ rdf:type xsd:float ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeInterest> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#percentageOfShare>
] .
<file:///www.reportinghub.no/transform/npd/company#Company>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Company-ParentCompany ;
spinmap:context :Company-Company ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmpGroup> ;
<file:///www.reportinghub.no/transform/npd/company#cmpNpdidCompany> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Company-ParentCompany ;
spinmap:context :Company-Company ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmpGroup> ;
<file:///www.reportinghub.no/transform/npd/company#cmpShortName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#companyShortName>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Company-Company ;
spinmap:expression
[ rdf:type rhspin:parentCompanyByName ;
arg:name spin:_arg1
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmpGroup> ;
<file:///www.reportinghub.no/transform/npd/company#cmpLongName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#parentCompany>
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Company-ParentCompany ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
spinmap:context :Company-Company ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
spinmap:targetPredicate1
rdf:type
] ;
......@@ -221,37 +219,40 @@
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Company-Company ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
spinmap:context :Company-ParentCompany ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
spinmap:targetPredicate1
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Company-Company ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type rhspin:parentCompanyByName ;
arg:name spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmpLongName> ;
<file:///www.reportinghub.no/transform/npd/company#cmpGroup> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
<http://www.reportinghub.no/np/schema/npd#parentCompany>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Company-Company ;
spinmap:context :Company-ParentCompany ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmpShortName> ;
<file:///www.reportinghub.no/transform/npd/company#cmpGroup> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#companyShortName>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Company-Company ;
spinmap:context :Company-ParentCompany ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmpNpdidCompany> ;
<file:///www.reportinghub.no/transform/npd/company#cmpGroup> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#name>
] .
<file:///www.reportinghub.no/transform/npd/discovery#Discovery>
......@@ -262,61 +263,33 @@
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#MainNCSArea>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#nmaName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryMainNcsArea>
] ;
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/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
spinmapl:type <http://www.reportinghub.no/np/schema/npd#DiscoveryActivityStatus>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#cmpLongName2> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscCurrentActivityStatus> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryOperator>
<http://www.reportinghub.no/np/schema/npd#discoveryCurrentActivityStatus>
] ;
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/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#HCType>
[ rdf:type rhspin:fieldById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscHcType> ;
<file:///www.reportinghub.no/transform/npd/discovery#fldNpdidField> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryHCType>
<http://www.reportinghub.no/np/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#dscName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
] ;
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#dscNpdidDiscovery> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryField>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -324,13 +297,13 @@
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#DiscoveryActivityStatus>
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscCurrentActivityStatus> ;
<file:///www.reportinghub.no/transform/npd/discovery#cmpLongName2> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryCurrentActivityStatus>
<http://www.reportinghub.no/np/schema/npd#discoveryOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -361,11 +334,25 @@
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/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#MainNCSArea>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#nmaName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryMainNcsArea>
] ;
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> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -385,50 +372,62 @@
spinmap:expression <http://www.reportinghub.no/np/schema/npd#Discovery> ;
spinmap:targetPredicate1
rdf:type
] .
<file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :FacilityFixed-FixedFacility ;
spinmap:context :Discovery-Discovery ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#FixedFacilityPhase>
spinmapl:type <http://www.reportinghub.no/np/schema/npd#HCType>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclPhase> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscHcType> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#fixedFacilityPhase>
<http://www.reportinghub.no/np/schema/npd#discoveryHCType>
] .
<file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed>
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#fclKind> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#facilityKind>
] ;
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/np/schema/npd#id> ;
spinmapl:type <http://www.reportinghub.no/np/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/np/schema/npd#belongsTo>
<http://www.reportinghub.no/np/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/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/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#fclCurrentOperatorName> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclNpdidFacility> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#currentOperator>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -450,67 +449,62 @@
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/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclNpdidFacility> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclCurrentOperatorName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
] ;
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#fclName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
<http://www.reportinghub.no/np/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/np/schema/npd#id> ;
spinmapl:type <http://www.reportinghub.no/np/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/np/schema/npd#startDate>
<http://www.reportinghub.no/np/schema/npd#belongsTo>
] ;
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/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#FixedFacilityPhase>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclKind> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclPhase> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#facilityKind>
<http://www.reportinghub.no/np/schema/npd#fixedFacilityPhase>
] .
<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/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclCurrentRespCompanyName> ;
spinmap:expression <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/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/np/schema/npd#name>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -526,58 +520,53 @@
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/np/schema/npd#id>
<http://www.reportinghub.no/np/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/ep/schema/facility#MoveableFacility> ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclCurrentRespCompanyName> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#currentlyResponsibleCompany>
] .
<file:///www.reportinghub.no/transform/npd/field#Field>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Field-Field ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#FieldActivityStatus>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fldCurrentActivitySatus> ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#Field> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#currentActivityStatus>
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/np/schema/npd#id> ;
spinmapl:type <http://www.reportinghub.no/np/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/np/schema/npd#fieldOwner>
<http://www.reportinghub.no/np/schema/npd#fieldOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression
[ rdf:type rhspin:wellBoreById ;
arg:id spin:_arg1
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#wlbNpdidWellbore> ;
<file:///www.reportinghub.no/transform/npd/field#fldNpdidField> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#fieldDiscoveryWellBore>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -591,57 +580,84 @@
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type rhspin:wellBoreById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fldNpdidField> ;
<file:///www.reportinghub.no/transform/npd/field#wlbNpdidWellbore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#fieldDiscoveryWellBore>
] ;
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/np/schema/npd#id> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#Owner>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#cmpNpdidCompany> ;
<file:///www.reportinghub.no/transform/npd/field#fldNpdidOwner> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#fieldOperator>
<http://www.reportinghub.no/np/schema/npd#fieldOwner>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Field-Field ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#Field> ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#FieldActivityStatus>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fldCurrentActivitySatus> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#currentActivityStatus>
] .
<file:///www.reportinghub.no/transform/npd/licence#Licence>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :License-License ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#LicenceStatus>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/licence#prlLicensingActivityName> ;
<file:///www.reportinghub.no/transform/npd/licence#prlStatus> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#licensingActivity>
<http://www.reportinghub.no/np/schema/npd#licenceStatus>
] ;
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/transform/npd/licence#prlName> ;
<file:///www.reportinghub.no/transform/npd/licence#prlDateGranted> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
<http://www.reportinghub.no/np/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :License-License ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#Licence> ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/licence#prlDateValidTo> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#endDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -653,78 +669,55 @@
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :License-License ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/licence#prlDateValidTo> ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#Licence> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#endDate>
rdf:type
] ;
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/transform/npd/licence#prlDateGranted> ;
<file:///www.reportinghub.no/transform/npd/licence#prlName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#startDate>
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :License-License ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#LicenceStatus>
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/licence#prlStatus> ;
<file:///www.reportinghub.no/transform/npd/licence#prlLicensingActivityName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#licenceStatus>
<http://www.reportinghub.no/np/schema/npd#licensingActivity>
] .
<file:///www.reportinghub.no/transform/npd/licensee#Licensee>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Licensee-ShareOfLicence ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#ShareOfLicence> ;
spinmap:targetPredicate1
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Licensee-ShareOfLicence ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
[ rdf:type rhspin:licenceById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/licensee#prlLicenseeDateValidFrom> ;
<file:///www.reportinghub.no/transform/npd/licensee#prlNpdidLicence> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#startDate>
<http://www.reportinghub.no/np/schema/npd#licenceShared>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Licensee-ShareOfLicence ;
spinmap:expression
[ rdf:type rhspin:companyById ;
arg:id spin:_arg1
[ rdf:type xsd:float ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/licensee#cmpNpdidCompany> ;
<file:///www.reportinghub.no/transform/npd/licensee#prlLicenseeInterest> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#shareHolder>
<http://www.reportinghub.no/np/schema/npd#percentageOfShare>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -743,36 +736,42 @@
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Licensee-ShareOfLicence ;
spinmap:expression
[ rdf:type xsd:float ;
sp:arg1 spin:_arg1
[ rdf:type rhspin:companyById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/licensee#prlLicenseeInterest> ;
<file:///www.reportinghub.no/transform/npd/licensee#cmpNpdidCompany> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#percentageOfShare>
<http://www.reportinghub.no/np/schema/npd#shareHolder>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Licensee-ShareOfLicence ;
spinmap:expression
[ rdf:type rhspin:licenceById ;
arg:id spin:_arg1
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy" ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/licensee#prlNpdidLicence> ;
<file:///www.reportinghub.no/transform/npd/licensee#prlLicenseeDateValidFrom> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#licenceShared>
<http://www.reportinghub.no/np/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Licensee-ShareOfLicence ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#ShareOfLicence> ;
spinmap:targetPredicate1
rdf:type
] .
<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/np/schema/npd#TUF> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -784,34 +783,22 @@
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :TUFOperator-TUF ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#TUF> ;
spinmap:targetPredicate1
rdf:type
] .
<file:///www.reportinghub.no/transform/npd/wbdev#WBDev>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-Well ;
spinmap:context :TUFOperator-TUF ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWell> ;
<file:///www.reportinghub.no/transform/npd/tufoperator#tufName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
] ;
] .
<file:///www.reportinghub.no/transform/npd/wbdev#WBDev>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWell> ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#partOfWell>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -828,78 +815,81 @@
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#WellBoreContent>
] ;
spinmap:context :WBDev-Well ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbContent> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreContent>
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type rhspin:licenceById ;
arg:id spin:_arg1
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#prlNpdidProductionLicence> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbCompletionDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type rhspin:facilityById ;
arg:id spin:_arg1
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#fclNpdidFacilityProducing> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#productionFacility>
<http://www.reportinghub.no/np/schema/npd#partOfWell>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-Well ;
spinmap:expression
[ rdf:type rhspin:fieldById ;
arg:id spin:_arg1
spinmap:context :WBDev-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbDrillPermit> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#fldNpdidField> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbNpdidWellbore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellPartOfField>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#DevelopmentWellBorePurpose>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbCompletionDate> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbPurpose> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
<http://www.reportinghub.no/np/schema/npd#wellBorePurpose>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type rhspin:facilityById ;
[ rdf:type rhspin:licenceById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#fclNpdidFacilityDrilling> ;
<file:///www.reportinghub.no/transform/npd/wbdev#prlNpdidProductionLicence> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingFacility>
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -911,11 +901,18 @@
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#WellBoreContent>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbContent> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#wellBoreContent>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
......@@ -926,40 +923,39 @@
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:context :WBDev-Well ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
[ rdf:type rhspin:fieldById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbDrillingOperator> ;
<file:///www.reportinghub.no/transform/npd/wbdev#fldNpdidField> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
<http://www.reportinghub.no/np/schema/npd#wellPartOfField>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#DevelopmentWellBorePurpose>
[ rdf:type rhspin:facilityById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbPurpose> ;
<file:///www.reportinghub.no/transform/npd/wbdev#fclNpdidFacilityDrilling> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBorePurpose>
<http://www.reportinghub.no/np/schema/npd#drillingFacility>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type rhspin:facilityById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbDrillPermit> ;
<file:///www.reportinghub.no/transform/npd/wbdev#fclNpdidFacilityProducing> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
<http://www.reportinghub.no/np/schema/npd#productionFacility>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -973,73 +969,60 @@
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbNpdidWellbore> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbDrillingOperator> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
] .
<file:///www.reportinghub.no/transform/npd/wbexp#WBExp>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBExp-Well ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWell> ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression
[ rdf:type rhspin:facilityById ;
arg:id spin:_arg1
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#fclNpdidFacilityDrilling> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbCompletionDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingFacility>
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWellboreName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbDrillPermit> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBExp-Well ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbEntryDate> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbDrillingOperator> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbNpdidWellbore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1057,41 +1040,36 @@
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:context :WBExp-Well ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
[ rdf:type rhspin:fieldById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbEntryDate> ;
<file:///www.reportinghub.no/transform/npd/wbexp#fldNpdidField> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#startDate>
<http://www.reportinghub.no/np/schema/npd#wellPartOfField>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbCompletionDate> ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#WellBoreContent>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWell> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbContent> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#partOfWell>
<http://www.reportinghub.no/np/schema/npd#wellBoreContent>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1107,86 +1085,102 @@
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-Well ;
spinmap:expression
[ rdf:type rhspin:fieldById ;
arg:id spin:_arg1
spinmap:context :WBExp-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWellType> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-Well ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#fldNpdidField> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellPartOfField>
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbDrillingOperator> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWellType> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWellboreName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbNpdidWellbore> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbDrillPermit> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#WellBoreContent>
[ rdf:type rhspin:facilityById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbContent> ;
<file:///www.reportinghub.no/transform/npd/wbexp#fclNpdidFacilityDrilling> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreContent>
] .
<file:///www.reportinghub.no/transform/npd/wbid#WBId>
<http://www.reportinghub.no/np/schema/npd#drillingFacility>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBId-WellBore ;
spinmap:context :WBExp-WellBore ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbid#wlbWell> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#partOfWell>
] .
<file:///www.reportinghub.no/transform/npd/wbid#WBId>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBId-Well ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
spinmap:targetPredicate1
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/npd/wbid#wlbWellboreName> ;
<file:///www.reportinghub.no/transform/npd/wbid#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBId-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbid#wlbWellType> ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1198,27 +1192,34 @@
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBId-WellBore ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbid#wlbWellType> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
] ;
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/npd/wbid#wlbWell> ;
<file:///www.reportinghub.no/transform/npd/wbid#wlbWellboreName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBId-Well ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBId-WellBore ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbid#wlbWell> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#partOfWell>
] .
<file:///www.reportinghub.no/transform/npd/wbsha#WBSha>
......@@ -1226,39 +1227,33 @@
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-WellBore ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#Licence>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbWell> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbProductionLicence> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#partOfWell>
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-WellBore ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbCompletionDate> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbDrillPermit> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-WellBore ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbEntryDate> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbNpdidWellbore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#startDate>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
......@@ -1270,25 +1265,34 @@
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbNpdidWellbore> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#partOfWell>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBSha-Well ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
spinmap:targetPredicate1
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-WellBore ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValue ;
sp:arg1 spin:_arg1 ;
spinmapl:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#Licence>
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbProductionLicence> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbEntryDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
<http://www.reportinghub.no/np/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1304,18 +1308,22 @@
spinmap:context :WBSha-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbDrillPermit> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbWellboreName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:expression
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbWellboreName> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbCompletionDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1330,13 +1338,6 @@
<file:///www.reportinghub.no/transform/npd/wbsha#wlbDrillingOperator> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBSha-Well ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
spinmap:targetPredicate1
rdf:type
] .
arg:well
......@@ -1898,29 +1899,29 @@ arg:wellName
sp:where ()
] .
_:b1 sp:varName "companyId"^^xsd:string .
_:b2 sp:varName "baaId"^^xsd:string .
_:b12
sp:varName "source"^^xsd:string .
_:b3 sp:varName "startDate"^^xsd:string .
_:b11
sp:varName "startDate"^^xsd:string .
_:b4 sp:varName "source"^^xsd:string .
_:b10
sp:varName "licenceId"^^xsd:string .
_:b5 sp:varName "companyName"^^xsd:string .
_:b9 sp:varName "companyId"^^xsd:string .
_:b6 sp:varName "company"^^xsd:string .
_:b8 sp:varName "baa"^^xsd:string .
_:b7 sp:varName "baaName"^^xsd:string .
_:b8 sp:varName "baa"^^xsd:string .
_:b6 sp:varName "company"^^xsd:string .
_:b9 sp:varName "companyId"^^xsd:string .
_:b5 sp:varName "companyName"^^xsd:string .
_:b10
sp:varName "licenceId"^^xsd:string .
_:b4 sp:varName "source"^^xsd:string .
_:b11
sp:varName "startDate"^^xsd:string .
_:b3 sp:varName "startDate"^^xsd:string .
_:b12
sp:varName "source"^^xsd:string .
_:b2 sp:varName "baaId"^^xsd:string .
_:b1 sp:varName "companyId"^^xsd:string .
......
......@@ -12,11 +12,11 @@
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "1"^^xsd:int
composite:index "0"^^xsd:int
] ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
composite:index "1"^^xsd:int
] ;
inference:completeMode
"true"^^xsd:boolean ;
......
This diff could not be displayed because it is too large.
......@@ -60,6 +60,34 @@
rdfs:label "well name"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://topbraid.org/spin/spinmapl#resourceWithValueTypeless>
rdf:type spin:Function ;
rdfs:comment "Takes a value (?arg1) and a property (?predicate), and returns a resource that has the given value as object for the predicate. For example, this can be used to find a resource that has \"Australia\" as its label."^^xsd:string ;
rdfs:label "resource with value typeless"^^xsd:string ;
rdfs:subClassOf spl:MiscFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b1) ;
sp:where ([ sp:object spin:_arg1 ;
sp:predicate
[ sp:varName "predicate"^^xsd:string
] ;
sp:subject _:b1
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The property that must be used in the result resource."^^xsd:string ;
spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ;
spl:valueType rdf:Property
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The value to match against."^^xsd:string ;
spl:predicate sp:arg1
] ;
spin:returnType rdfs:Resource .
npdata:npd
rdf:type rdfs:Resource ;
rdfs:label "NPDI"^^xsd:string .
......@@ -89,20 +117,20 @@ rhspin:GetWellBoresOfWell
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy (_:b1) ;
sp:resultVariables (_:b2 _:b1) ;
sp:orderBy (_:b2) ;
sp:resultVariables (_:b3 _:b2) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "well"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ;
sp:subject _:b3
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b3
sp:subject _:b4
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b4
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject _:b3
sp:subject _:b4
]) ;
sp:graphNameNode npdata:npd
])
......@@ -178,7 +206,7 @@ rhspin:companyHasLicenceForWellBore
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables (_:b4) ;
sp:resultVariables (_:b5) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:date ;
......@@ -191,37 +219,37 @@ rhspin:companyHasLicenceForWellBore
sp:arg3 10
]
] ;
sp:variable _:b5
sp:variable _:b6
] [ sp:object spin:_arg1 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#shareHolder> ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceShared> ;
sp:subject _:b6
sp:subject _:b7
] [ sp:object <http://www.reportinghub.no/np/schema/npd#LS_Active> ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceStatus> ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#startDate> ;
sp:subject _:b7
sp:subject _:b8
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:le ;
sp:arg1 _:b8 ;
sp:arg2 _:b5
sp:arg1 _:b9 ;
sp:arg2 _:b6
]
] [ sp:object _:b9 ;
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#endDate> ;
sp:subject _:b7
sp:subject _:b8
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:gt ;
sp:arg1 _:b9 ;
sp:arg2 _:b5
sp:arg1 _:b10 ;
sp:arg2 _:b6
]
] [ sp:object _:b7 ;
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ;
sp:subject _:b4
sp:subject _:b5
])
] ;
spin:constraint
......@@ -268,26 +296,26 @@ rhspin:dtypeValue
rdfs:subClassOf spl:OntologyFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b10) ;
sp:where ([ sp:object _:b11 ;
sp:resultVariables (_:b11) ;
sp:where ([ sp:object _:b12 ;
sp:predicate spin:_arg2 ;
sp:subject spin:_arg1
] [ sp:object _:b10 ;
] [ sp:object _:b11 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b11
sp:subject _:b12
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
spl:predicate sp:arg2 ;
spl:valueType rdf:Property
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The subject of the value."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType rdfs:Resource
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
spl:predicate sp:arg2 ;
spl:valueType rdf:Property
] .
rhspin:facilityById
......@@ -364,7 +392,7 @@ rhspin:normalizeString
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b12) ;
sp:resultVariables (_:b13) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
......@@ -372,67 +400,67 @@ rhspin:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b13
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:trim ;
sp:arg1 _:b13
sp:arg1 _:b14
] ;
sp:variable _:b14
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:encodeURL ;
sp:arg1 _:b14
sp:arg1 _:b15
] ;
sp:variable _:b15
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b15 ;
sp:arg1 _:b16 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b16
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b16 ;
sp:arg1 _:b17 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b17
sp:variable _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b17 ;
sp:arg1 _:b18 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b18
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b18 ;
sp:arg1 _:b19 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b19
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b19 ;
sp:arg1 _:b20 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b20
sp:variable _:b21
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type spif:upperCase ;
sp:arg1 _:b20
sp:arg1 _:b21
]
] ;
sp:variable _:b12
sp:variable _:b13
])
] ;
spin:constraint
......@@ -449,9 +477,9 @@ rhspin:npdId
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b21 ;
sp:elements ([ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject
[ sp:varName "resource"^^xsd:string
......@@ -474,9 +502,9 @@ rhspin:npdName
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:resultVariables (_:b23) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b22 ;
sp:elements ([ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "resource"^^xsd:string
......@@ -588,27 +616,27 @@ rhspin:wellBoreByName
rdfs:subClassOf spl:URIFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b23) ;
sp:resultVariables (_:b24) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ rdf:type sp:Union ;
sp:elements (([ sp:object _:b24 ;
sp:elements (([ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b23
sp:subject _:b24
]) ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:replaceAll ;
sp:arg1 _:b24 ;
sp:arg1 _:b25 ;
sp:arg2 "/0" ;
sp:arg3 "/"
] ;
sp:variable _:b25
] [ sp:object _:b25 ;
sp:variable _:b26
] [ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b23
sp:subject _:b24
]))
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b23
sp:subject _:b24
]) ;
sp:graphNameNode npdata:npd
])
......@@ -647,68 +675,71 @@ rhspin:wellByName
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> .
_:b25
_:b1 sp:varName "subject"^^xsd:string .
_:b26
sp:varName "str"^^xsd:string .
_:b24
_:b25
sp:varName "wellBoreName"^^xsd:string .
_:b23
_:b24
sp:varName "wellBore"^^xsd:string .
_:b22
_:b23
sp:varName "name"^^xsd:string .
_:b21
_:b22
sp:varName "id"^^xsd:string .
_:b20
_:b21
sp:varName "t4"^^xsd:string .
_:b19
_:b20
sp:varName "t3"^^xsd:string .
_:b18
_:b19
sp:varName "t2"^^xsd:string .
_:b17
_:b18
sp:varName "t1"^^xsd:string .
_:b16
_:b17
sp:varName "t0b"^^xsd:string .
_:b15
_:b16
sp:varName "t0a"^^xsd:string .
_:b14
_:b15
sp:varName "s2"^^xsd:string .
_:b13
_:b14
sp:varName "s1"^^xsd:string .
_:b12
_:b13
sp:varName "normalizedStr"^^xsd:string .
_:b11
_:b12
sp:varName "reif"^^xsd:string .
_:b10
_:b11
sp:varName "value"^^xsd:string .
_:b9 sp:varName "endDate"^^xsd:string .
_:b10
sp:varName "endDate"^^xsd:string .
_:b8 sp:varName "startDate"^^xsd:string .
_:b9 sp:varName "startDate"^^xsd:string .
_:b7 sp:varName "licence"^^xsd:string .
_:b8 sp:varName "licence"^^xsd:string .
_:b6 sp:varName "share"^^xsd:string .
_:b7 sp:varName "share"^^xsd:string .
_:b5 sp:varName "nowDate"^^xsd:string .
_:b6 sp:varName "nowDate"^^xsd:string .
_:b4 sp:varName "wellBore"^^xsd:string .
_:b5 sp:varName "wellBore"^^xsd:string .
_:b3 sp:varName "wellBore"^^xsd:string .
_:b4 sp:varName "wellBore"^^xsd:string .
_:b2 sp:varName "wellBoreId"^^xsd:string .
_:b3 sp:varName "wellBoreId"^^xsd:string .
_:b1 sp:varName "wellBoreName"^^xsd:string .
_:b2 sp:varName "wellBoreName"^^xsd:string .
......