Holger Knublauch

Further SPIN template to drive UI

Mapping now also creates ep-core:name for Well/Bore
......@@ -45,22 +45,22 @@
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>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :BAA-BusinessArrangementArea ;
spinmap:expression
[ rdf:type spinmapl:resourceWithValueTypeless ;
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 ;
......@@ -79,32 +79,37 @@
[ 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 ;
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>
] .
<file:///www.reportinghub.no/transform/npd/baalicensee#BAALicensee>
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>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -113,12 +118,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/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-1-1 ;
......@@ -129,9 +134,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 ;
......@@ -142,9 +147,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 ;
......@@ -153,58 +158,56 @@
[ 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 ;
[ 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
] .
<file:///www.reportinghub.no/transform/npd/company#Company>
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>
] ;
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: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-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
] ;
......@@ -219,40 +222,37 @@
] ;
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
] ;
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-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-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>
] .
<file:///www.reportinghub.no/transform/npd/discovery#Discovery>
......@@ -287,35 +287,30 @@
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 ;
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>
[ rdf:type rhspin:wellBoreById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#cmpLongName2> ;
<file:///www.reportinghub.no/transform/npd/discovery#wlbNpdidWellbore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryOperator>
<http://www.reportinghub.no/np/schema/npd#discoveryWellBore>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression
[ rdf:type rhspin:wellBoreById ;
arg:id spin:_arg1
] ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#wlbNpdidWellbore> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscNpdidDiscovery> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryWellBore>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -332,6 +327,13 @@
<http://www.reportinghub.no/np/schema/npd#discoveryOwner>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#Discovery> ;
spinmap:targetPredicate1
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression
......@@ -348,11 +350,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/np/schema/npd#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#HCType>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscName> ;
<file:///www.reportinghub.no/transform/npd/discovery#dscHcType> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
<http://www.reportinghub.no/np/schema/npd#discoveryHCType>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -367,67 +374,62 @@
<http://www.reportinghub.no/np/schema/npd#discoveryYear>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :Discovery-Discovery ;
spinmap:expression <http://www.reportinghub.no/np/schema/npd#Discovery> ;
spinmap:targetPredicate1
rdf:type
] ;
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>
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#dscHcType> ;
<file:///www.reportinghub.no/transform/npd/discovery#cmpLongName2> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#discoveryHCType>
<http://www.reportinghub.no/np/schema/npd#discoveryOperator>
] .
<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: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>
] ;
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:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
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: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> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclCurrentOperatorName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#currentOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -449,62 +451,67 @@
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#fclNpdidFacility> ;
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#fclCurrentOperatorName> ;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#currentOperator>
<http://www.reportinghub.no/np/schema/npd#name>
] ;
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#code> ;
spinmapl:type <http://www.reportinghub.no/np/schema/npd#FixedFacilityPhase>
] ;
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/np/schema/npd#fixedFacilityPhase>
<http://www.reportinghub.no/np/schema/npd#facilityKind>
] .
<file:///www.reportinghub.no/transform/npd/facilitymoveable#FacilityMoveable>
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:targetPredicate1
rdf:type
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
<http://www.reportinghub.no/np/schema/npd#currentlyResponsibleCompany>
] ;
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#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-1-1 ;
......@@ -520,53 +527,58 @@
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 ;
[ 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
] .
<file:///www.reportinghub.no/transform/npd/field#Field>
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>
] ;
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-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 ;
......@@ -580,84 +592,57 @@
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 ;
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 ;
[ 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
] .
<file:///www.reportinghub.no/transform/npd/licence#Licence>
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>
] ;
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 ;
[ 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 ;
......@@ -669,55 +654,78 @@
<http://www.reportinghub.no/np/schema/npd#id>
] ;
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 ;
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-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>
] .
<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 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-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 ;
......@@ -736,42 +744,36 @@
[ 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 ;
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> ;
spinmap:targetPredicate1
<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> ;
<file:///www.reportinghub.no/transform/npd/licensee#prlNpdidLicence> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#licenceShared>
] .
<file:///www.reportinghub.no/transform/npd/tufoperator#TUFOperator>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :TUFOperator-TUF ;
spinmap:expression <http://www.reportinghub.no/np/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/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -783,69 +785,44 @@
<http://www.reportinghub.no/np/schema/npd#id>
] ;
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
] .
<file:///www.reportinghub.no/transform/npd/wbdev#WBDev>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:targetPredicate1
rdf:type
] ;
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 rhspin:facilityById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbEntryDate> ;
<file:///www.reportinghub.no/transform/npd/wbdev#fclNpdidFacilityProducing> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#startDate>
<http://www.reportinghub.no/np/schema/npd#productionFacility>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBDev-Well ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
] ;
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
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbCompletionDate> ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
[ rdf:type rhspin:licenceById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWell> ;
<file:///www.reportinghub.no/transform/npd/wbdev#prlNpdidProductionLicence> ;
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 ;
......@@ -859,11 +836,14 @@
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#wlbNpdidWellbore> ;
<file:///www.reportinghub.no/transform/npd/wbdev#fclNpdidFacilityDrilling> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#id>
<http://www.reportinghub.no/np/schema/npd#drillingFacility>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -883,22 +863,13 @@
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type rhspin:licenceById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#prlNpdidProductionLicence> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
[ rdf:type rhspin:wellByName ;
arg:wellName spin:_arg1
] ;
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#wlbWellType> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
<http://www.reportinghub.no/np/schema/npd#partOfWell>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -915,11 +886,13 @@
<http://www.reportinghub.no/np/schema/npd#wellBoreContent>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-Well ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWell> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -934,37 +907,51 @@
<http://www.reportinghub.no/np/schema/npd#wellPartOfField>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:targetPredicate1
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBDev-WellBore ;
spinmap:expression
[ rdf:type rhspin:facilityById ;
arg:id spin:_arg1
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWellType> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
] ;
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#fclNpdidFacilityDrilling> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbWellboreName> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingFacility>
<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: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/wbdev#fclNpdidFacilityProducing> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbEntryDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#productionFacility>
<http://www.reportinghub.no/np/schema/npd#startDate>
] ;
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#wlbWellboreName> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbNpdidWellbore> ;
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 ;
......@@ -973,56 +960,50 @@
[ 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#wlbDrillingOperator> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
] .
<file:///www.reportinghub.no/transform/npd/wbexp#WBExp>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBExp-Well ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
spinmapl:type <http://www.reportinghub.no/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#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:context :WBDev-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> ;
<file:///www.reportinghub.no/transform/npd/wbdev#wlbCompletionDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
] ;
] .
<file:///www.reportinghub.no/transform/npd/wbexp#WBExp>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-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#ExplorationWellBorePurpose>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbEntryDate> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbPurpose> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#startDate>
<http://www.reportinghub.no/np/schema/npd#wellBorePurpose>
] ;
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 ;
......@@ -1030,32 +1011,25 @@
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#ExplorationWellBorePurpose>
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#wlbPurpose> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbDrillingOperator> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBorePurpose>
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-Well ;
spinmap:context :WBExp-WellBore ;
spinmap:expression
[ rdf:type rhspin:fieldById ;
[ rdf:type rhspin:facilityById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#fldNpdidField> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellPartOfField>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
<file:///www.reportinghub.no/transform/npd/wbexp#fclNpdidFacilityDrilling> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#drillingFacility>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1075,22 +1049,32 @@
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-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/wbexp#prlNpdidProductionLicence> ;
<file:///www.reportinghub.no/transform/npd/wbexp#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 :WBExp-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWellType> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbNpdidWellbore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
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:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1105,45 +1089,61 @@
[ 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>
[ rdf:type spif:parseDate ;
arg:pattern "dd.MM.yyyy"^^xsd:string ;
sp:arg1 spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbDrillingOperator> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbEntryDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
<http://www.reportinghub.no/np/schema/npd#startDate>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:targetPredicate1
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
spinmap:context :WBExp-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 :WBExp-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWellboreName> ;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWellType> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
<http://www.reportinghub.no/np/schema/npd#wellBoreType>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:context :WBExp-Well ;
spinmap:expression
[ rdf:type rhspin:fieldById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlbDrillPermit> ;
<file:///www.reportinghub.no/transform/npd/wbexp#fldNpdidField> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
<http://www.reportinghub.no/np/schema/npd#wellPartOfField>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBExp-WellBore ;
spinmap:expression
[ rdf:type rhspin:facilityById ;
[ rdf:type rhspin:licenceById ;
arg:id spin:_arg1
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#fclNpdidFacilityDrilling> ;
<file:///www.reportinghub.no/transform/npd/wbexp#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 ;
......@@ -1160,36 +1160,43 @@
<file:///www.reportinghub.no/transform/npd/wbid#WBId>
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBId-Well ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#Well> ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbid#wlbWell> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/ep/schema/core#name>
] ;
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>
<http://www.reportinghub.no/ep/schema/core#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/ep/schema/well#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>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBId-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbid#wlbNpdidWellbore> ;
<file:///www.reportinghub.no/transform/npd/wbid#wlbWellboreName> ;
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 ;
......@@ -1205,55 +1212,43 @@
spinmap:context :WBId-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbid#wlbWellboreName> ;
<file:///www.reportinghub.no/transform/npd/wbid#wlbNpdidWellbore> ;
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 ;
[ 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/npd/wbid#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#partOfWell>
] .
<file:///www.reportinghub.no/transform/npd/wbsha#WBSha>
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>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbProductionLicence> ;
spinmap:expression <http://www.reportinghub.no/ep/schema/well#WellBore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
rdf:type
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-WellBore ;
spinmap:context :WBId-Well ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbDrillPermit> ;
<file:///www.reportinghub.no/transform/npd/wbid#wlbWell> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
<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> ;
spinmap:targetPredicate1
rdf:type
] .
<file:///www.reportinghub.no/transform/npd/wbsha#WBSha>
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-WellBore ;
spinmap:context :WBSha-Well ;
spinmap:expression 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#name>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-0-1 ;
......@@ -1275,11 +1270,18 @@
<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> ;
[ 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/ep/schema/organization#Company>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbDrillingOperator> ;
spinmap:targetPredicate1
rdf:type
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1296,12 +1298,12 @@
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
spinmap:context :WBSha-Well ;
spinmap:context :WBSha-WellBore ;
spinmap:expression spin:_arg1 ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbWell> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbDrillPermit> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#name>
<http://www.reportinghub.no/np/schema/npd#wellBoreDrillPermit>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1315,15 +1317,11 @@
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#wlbNpdidWellbore> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
<http://www.reportinghub.no/np/schema/npd#id>
] ;
spinmap:rule
[ rdf:type spinmap:Mapping-1-1 ;
......@@ -1332,12 +1330,32 @@
[ 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#Licence>
] ;
spinmap:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbDrillingOperator> ;
<file:///www.reportinghub.no/transform/npd/wbsha#wlbProductionLicence> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingOperator>
<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:sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlbCompletionDate> ;
spinmap:targetPredicate1
<http://www.reportinghub.no/np/schema/npd#wellBoreCompletionDate>
] ;
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
......
......@@ -12,11 +12,11 @@
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
composite:index "1"^^xsd:int
] ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "1"^^xsd:int
composite:index "0"^^xsd:int
] ;
inference:completeMode
"true"^^xsd:boolean ;
......
......@@ -25,6 +25,11 @@
rdfs:label "company"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://spinrdf.org/arg#companyName>
rdf:type rdf:Property ;
rdfs:label "company name"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://spinrdf.org/arg#id>
rdf:type rdf:Property ;
rdfs:label "id"^^xsd:string ;
......@@ -82,15 +87,15 @@
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The value to match against."^^xsd:string ;
spl:predicate sp:arg1
] ;
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
......@@ -147,6 +152,48 @@ rhspin:GetWellBoresOfWell
spl:valueType <http://www.reportinghub.no/ep/schema/well#Well>
] .
rhspin:GetWellsOfCompanyName
rdf:type spin:SelectTemplate ;
rdfs:comment "Gets the wells that a company with a given name has access to. Result variables are ?well and ?wellName."^^xsd:string ;
rdfs:label "Get wells of company name"^^xsd:string ;
rdfs:subClassOf spin:SelectTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:orderBy (_:b5) ;
sp:resultVariables (_:b6 _:b5) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "companyName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b7
] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate rhspin:companyHasLicenceForWellBore ;
sp:subject _:b7
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b6
]) ;
sp:graphNameNode npdata:npd
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The name of a company."^^xsd:string ;
spl:predicate <http://spinrdf.org/arg#companyName> ;
spl:valueType xsd:string
] .
rhspin:TableTemplate
rdf:type rdfs:Class ;
rdfs:comment "A spin:Template for SELECT queries that are meant to be displayed as a table. The added feature compared to normal templates is the ability to specify headers for the result variables."^^xsd:string ;
......@@ -211,14 +258,14 @@ rhspin:companyHasLicence
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables (_:b5) ;
sp:resultVariables (_:b9) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object spin:_arg1 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#shareHolder> ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:subject _:b10
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceShared> ;
sp:subject _:b6
sp:subject _:b10
]) ;
sp:graphNameNode npdata:npd
])
......@@ -239,20 +286,20 @@ rhspin:companyHasLicenceForWellBore
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables (_:b7) ;
sp:resultVariables (_:b11) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object spin:_arg1 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#shareHolder> ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceShared> ;
sp:subject _:b8
sp:subject _:b12
] [ sp:object <http://www.reportinghub.no/np/schema/npd#LS_Active> ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceStatus> ;
sp:subject _:b9
] [ sp:object _:b9 ;
sp:subject _:b13
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ;
sp:subject _:b7
sp:subject _:b11
]) ;
sp:graphNameNode npdata:npd
])
......@@ -280,16 +327,16 @@ rhspin:companyWithName
rdfs:subClassOf spin:Functions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b10) ;
sp:resultVariables (_:b14) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b10
sp:subject _:b14
] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject _:b10
sp:subject _:b14
]) ;
sp:graphNameNode npdata:npd
])
......@@ -331,26 +378,26 @@ rhspin:dtypeValue
rdfs:subClassOf spl:OntologyFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b11) ;
sp:where ([ sp:object _:b12 ;
sp:resultVariables (_:b15) ;
sp:where ([ sp:object _:b16 ;
sp:predicate spin:_arg2 ;
sp:subject spin:_arg1
] [ sp:object _:b11 ;
] [ sp:object _:b15 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b12
sp:subject _:b16
])
] ;
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
......@@ -427,9 +474,9 @@ rhspin:licenceForWellBore
rdfs:subClassOf spin:Functions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b13) ;
sp:resultVariables (_:b17) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b13 ;
sp:elements ([ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
......@@ -453,7 +500,7 @@ rhspin:normalizeString
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b14) ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
......@@ -461,67 +508,67 @@ rhspin:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b15
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:trim ;
sp:arg1 _:b15
sp:arg1 _:b19
] ;
sp:variable _:b16
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:encodeURL ;
sp:arg1 _:b16
sp:arg1 _:b20
] ;
sp:variable _:b17
sp:variable _:b21
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b17 ;
sp:arg1 _:b21 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b18
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b18 ;
sp:arg1 _:b22 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b19
sp:variable _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b19 ;
sp:arg1 _:b23 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b20
sp:variable _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b20 ;
sp:arg1 _:b24 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b21
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b21 ;
sp:arg1 _:b25 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b22
sp:variable _:b26
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type spif:upperCase ;
sp:arg1 _:b22
sp:arg1 _:b26
]
] ;
sp:variable _:b14
sp:variable _:b18
])
] ;
spin:constraint
......@@ -538,9 +585,9 @@ rhspin:npdId
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b23) ;
sp:resultVariables (_:b27) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b23 ;
sp:elements ([ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject
[ sp:varName "resource"^^xsd:string
......@@ -563,9 +610,9 @@ rhspin:npdName
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b24) ;
sp:resultVariables (_:b28) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b24 ;
sp:elements ([ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "resource"^^xsd:string
......@@ -677,27 +724,27 @@ rhspin:wellBoreByName
rdfs:subClassOf spl:URIFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b25) ;
sp:resultVariables (_:b29) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ rdf:type sp:Union ;
sp:elements (([ sp:object _:b26 ;
sp:elements (([ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b25
sp:subject _:b29
]) ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:replaceAll ;
sp:arg1 _:b26 ;
sp:arg1 _:b30 ;
sp:arg2 "/0" ;
sp:arg3 "/"
] ;
sp:variable _:b27
] [ sp:object _:b27 ;
sp:variable _:b31
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b25
sp:subject _:b29
]))
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b25
sp:subject _:b29
]) ;
sp:graphNameNode npdata:npd
])
......@@ -736,69 +783,81 @@ rhspin:wellByName
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> .
_:b13
sp:varName "licence"^^xsd:string .
_:b5 sp:varName "wellName"^^xsd:string .
_:b27
_:b6 sp:varName "well"^^xsd:string .
_:b8 sp:varName "wellBore"^^xsd:string .
_:b7 sp:varName "company"^^xsd:string .
_:b31
sp:varName "str"^^xsd:string .
_:b26
_:b30
sp:varName "wellBoreName"^^xsd:string .
_:b25
_:b29
sp:varName "wellBore"^^xsd:string .
_:b24
_:b28
sp:varName "name"^^xsd:string .
_:b23
_:b27
sp:varName "id"^^xsd:string .
_:b22
_:b26
sp:varName "t4"^^xsd:string .
_:b21
_:b25
sp:varName "t3"^^xsd:string .
_:b20
_:b24
sp:varName "t2"^^xsd:string .
_:b19
_:b23
sp:varName "t1"^^xsd:string .
_:b18
_:b22
sp:varName "t0b"^^xsd:string .
_:b17
_:b21
sp:varName "t0a"^^xsd:string .
_:b16
_:b20
sp:varName "s2"^^xsd:string .
_:b15
_:b19
sp:varName "s1"^^xsd:string .
_:b14
_:b18
sp:varName "normalizedStr"^^xsd:string .
_:b12
_:b17
sp:varName "licence"^^xsd:string .
_:b16
sp:varName "reif"^^xsd:string .
_:b11
_:b15
sp:varName "value"^^xsd:string .
_:b10
_:b14
sp:varName "company"^^xsd:string .
_:b9 sp:varName "licence"^^xsd:string .
_:b13
sp:varName "licence"^^xsd:string .
_:b8 sp:varName "share"^^xsd:string .
_:b12
sp:varName "share"^^xsd:string .
_:b7 sp:varName "wellBore"^^xsd:string .
_:b11
sp:varName "wellBore"^^xsd:string .
_:b6 sp:varName "share"^^xsd:string .
_:b10
sp:varName "share"^^xsd:string .
_:b5 sp:varName "licence"^^xsd:string .
_:b9 sp:varName "licence"^^xsd:string .
_:b4 sp:varName "wellBore"^^xsd:string .
......