Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2011-08-13 19:32:14 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
05897c898e3c572550e236d56a099762e5643028
05897c89
1 parent
eac8911d
Further SPIN template to drive UI
Mapping now also creates ep-core:name for Well/Bore
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
591 additions
and
514 deletions
www.reportinghub.no/np/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl
www.reportinghub.no/np/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl.tbc
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
www.reportinghub.no/np/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl
View file @
05897c8
...
...
@@ -45,22 +45,22 @@
spinmap:
context
:
BAA-BusinessArrangementArea
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baaN
pdidBsnsArrArea
>
;
<file:///www.reportinghub.no/transform/npd/baa#baaN
ame
>
;
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
spi
nmapl:
resourceWithValueTypeless
;
sp:
arg1
spin:
_arg1
;
sp
inmapl:
predicate
:
baaKind
[
rdf:
type
spi
f:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp
:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baa
Kind
>
;
<file:///www.reportinghub.no/transform/npd/baa#baa
DateValidTo
>
;
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
spi
f:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp
:
arg1
spin:
_arg1
[
rdf:
type
spi
nmapl:
resourceWithValueTypeless
;
sp:
arg1
spin:
_arg1
;
sp
inmapl:
predicate
:
baaKind
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baa
DateValidTo
>
;
<file:///www.reportinghub.no/transform/npd/baa#baa
Kind
>
;
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#baaN
ame
>
;
<file:///www.reportinghub.no/transform/npd/baa#baaN
pdidBsnsArrArea
>
;
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#
baa
Name>
;
<file:///www.reportinghub.no/transform/npd/baalicensee#
cmpLong
Name>
;
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#baaLicenseeDateValid
From
>
;
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValid
To
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
start
Date>
<http://www.reportinghub.no/np/schema/npd#
end
Date>
]
;
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#baaLicenseeDateValid
To
>
;
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValid
From
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
end
Date>
<http://www.reportinghub.no/np/schema/npd#
start
Date>
]
;
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#
cmpLong
Name>
;
<file:///www.reportinghub.no/transform/npd/baalicensee#
baa
Name>
;
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-
Parent
Company
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmp
NpdidCompany
>
;
<file:///www.reportinghub.no/transform/npd/company#cmp
Group
>
;
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-
Parent
Company
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmp
ShortName
>
;
<file:///www.reportinghub.no/transform/npd/company#cmp
Group
>
;
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#cmp
LongName
>
;
<file:///www.reportinghub.no/transform/npd/company#cmp
Group
>
;
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#
Operating
Company>
;
spinmap:
context
:
Company-
Parent
Company
;
spinmap:
expression
<http://www.reportinghub.no/np/schema/npd#
Parent
Company>
;
spinmap:
targetPredicate1
rdf:
type
]
;
...
...
@@ -219,40 +222,37 @@
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
Company-
Parent
Company
;
spinmap:
expression
<http://www.reportinghub.no/np/schema/npd#
Parent
Company>
;
spinmap:
context
:
Company-Company
;
spinmap:
expression
<http://www.reportinghub.no/np/schema/npd#
Operating
Company>
;
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#cmp
Group
>
;
<file:///www.reportinghub.no/transform/npd/company#cmp
LongName
>
;
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-
Parent
Company
;
spinmap:
context
:
Company-Company
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmp
Group
>
;
<file:///www.reportinghub.no/transform/npd/company#cmp
ShortName
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#companyShortName>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Company-
Parent
Company
;
spinmap:
context
:
Company-Company
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmp
Group
>
;
<file:///www.reportinghub.no/transform/npd/company#cmp
NpdidCompany
>
;
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#dscN
pdidDiscovery
>
;
<file:///www.reportinghub.no/transform/npd/discovery#dscN
ame
>
;
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#discovery
Operator
>
<http://www.reportinghub.no/np/schema/npd#discovery
WellBore
>
]
;
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#dsc
Nam
e>
;
<file:///www.reportinghub.no/transform/npd/discovery#dsc
HcTyp
e>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
nam
e>
<http://www.reportinghub.no/np/schema/npd#
discoveryHCTyp
e>
]
;
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#
cod
e>
;
spinmapl:
type
<http://www.reportinghub.no/
np/schema/npd#HCType
>
spinmapl:
predicate
<http://www.reportinghub.no/np/schema/npd#
nam
e>
;
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#discovery
HCType
>
<http://www.reportinghub.no/np/schema/npd#discovery
Operator
>
]
.
<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
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#code>
;
spinmapl:
type
<http://www.reportinghub.no/np/schema/npd#FixedFacilityPhase>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
StartupDat
e>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
Phas
e>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
startDat
e>
<http://www.reportinghub.no/np/schema/npd#
fixedFacilityPhas
e>
]
;
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#id>
;
spinmapl:
type
<http://www.reportinghub.no/np/schema/npd#FixedFacilityParent>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
Name
>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
BelongsToS
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
name
>
<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#name>
;
spinmapl:
type
<http://www.reportinghub.no/ep/schema/organization#Company>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
NpdidFacility
>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
CurrentOperatorName
>
;
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#fcl
CurrentOperatorName
>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
NpdidFacility
>
;
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
;
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>
]
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
BelongsToS
>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
Name
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
belongsTo
>
<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#code>
;
spinmapl:
type
<http://www.reportinghub.no/np/schema/npd#FixedFacilityPhase>
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
Phas
e>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
StartupDat
e>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#fixedFacilityPhase>
<http://www.reportinghub.no/np/schema/npd#startDate>
]
;
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>
]
.
<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:
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>
]
;
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#fclN
pdidFacility
>
;
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclN
ame
>
;
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#fclN
ame
>
;
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclN
pdidFacility
>
;
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#fieldO
perato
r>
<http://www.reportinghub.no/np/schema/npd#fieldO
wne
r>
]
;
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#fieldO
wne
r>
<http://www.reportinghub.no/np/schema/npd#fieldO
perato
r>
]
;
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#prl
Status
>
;
<file:///www.reportinghub.no/transform/npd/licence#prl
LicensingActivityName
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#licen
ceStatus
>
<http://www.reportinghub.no/np/schema/npd#licen
singActivity
>
]
;
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#prl
DateGranted
>
;
<file:///www.reportinghub.no/transform/npd/licence#prl
Name
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
startDat
e>
<http://www.reportinghub.no/np/schema/npd#
nam
e>
]
;
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#prl
Name
>
;
<file:///www.reportinghub.no/transform/npd/licence#prl
DateGranted
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
nam
e>
<http://www.reportinghub.no/np/schema/npd#
startDat
e>
]
;
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#prl
LicensingActivityName
>
;
<file:///www.reportinghub.no/transform/npd/licence#prl
Status
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#licen
singActivity
>
<http://www.reportinghub.no/np/schema/npd#licen
ceStatus
>
]
.
<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#prl
NpdidLicence
>
;
<file:///www.reportinghub.no/transform/npd/licensee#prl
LicenseeDateValidFrom
>
;
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
[
rdf:
type
rhspin:
wellByName
;
arg:
wellName
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbdev#prlNpdidProductionLicence>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
]
;
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#
fclNpdidFacilityDrilling
>
;
<file:///www.reportinghub.no/transform/npd/wbdev#
wlbWellType
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#drillingFacility>
<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#wlbWellboreName>
;
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
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#wlb
WellboreNam
e>
;
<file:///www.reportinghub.no/transform/npd/wbdev#wlb
NpdidWellbor
e>
;
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
:
WB
Exp
-WellBore
;
spinmap:
context
:
WB
Dev
-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/wb
exp
#wlbCompletionDate>
;
<file:///www.reportinghub.no/transform/npd/wb
dev
#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#wlb
EntryDat
e>
;
<file:///www.reportinghub.no/transform/npd/wbexp#wlb
Purpos
e>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
startDat
e>
<http://www.reportinghub.no/np/schema/npd#
wellBorePurpos
e>
]
;
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#wlb
NpdidWellbore
>
;
<file:///www.reportinghub.no/transform/npd/wbexp#wlb
DrillPermit
>
;
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#
cod
e>
;
spinmapl:
type
<http://www.reportinghub.no/
np/schema/npd#ExplorationWellBorePurpose
>
spinmapl:
predicate
<http://www.reportinghub.no/np/schema/npd#
nam
e>
;
spinmapl:
type
<http://www.reportinghub.no/
ep/schema/organization#Company
>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbexp#wlb
Purpose
>
;
<file:///www.reportinghub.no/transform/npd/wbexp#wlb
DrillingOperator
>
;
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-Well
Bore
;
spinmap:
expression
[
rdf:
type
rhspin:
f
ield
ById
;
[
rdf:
type
rhspin:
f
acility
ById
;
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#
prlNpdidProductionLicenc
e>
;
<file:///www.reportinghub.no/transform/npd/wbexp#
wlbCompletionDat
e>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
drilledInProductionLicenc
e>
<http://www.reportinghub.no/np/schema/npd#
wellBoreCompletionDat
e>
]
;
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#wlb
WellTyp
e>
;
<file:///www.reportinghub.no/transform/npd/wbexp#wlb
NpdidWellbor
e>
;
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#wlb
DrillingOperator
>
;
<file:///www.reportinghub.no/transform/npd/wbexp#wlb
EntryDate
>
;
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#wlbWell
boreNam
e>
;
<file:///www.reportinghub.no/transform/npd/wbexp#wlbWell
Typ
e>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/np/schema/npd#
nam
e>
<http://www.reportinghub.no/np/schema/npd#
wellBoreTyp
e>
]
;
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#well
BoreDrillPermit
>
<http://www.reportinghub.no/np/schema/npd#well
PartOfField
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
WBExp-WellBore
;
spinmap:
expression
[
rdf:
type
rhspin:
facility
ById
;
[
rdf:
type
rhspin:
licence
ById
;
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#drill
ingFacility
>
<http://www.reportinghub.no/np/schema/npd#drill
edInProductionLicence
>
]
;
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-Well
Bore
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbid#wlbWell>
;
<file:///www.reportinghub.no/transform/npd/wbid#wlbWell
boreName
>
;
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#wlb
NpdidWellbor
e>
;
<file:///www.reportinghub.no/transform/npd/wbid#wlb
WellboreNam
e>
;
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#wlb
WellboreNam
e>
;
<file:///www.reportinghub.no/transform/npd/wbid#wlb
NpdidWellbor
e>
;
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
:
WB
Sha-WellBore
;
spinmap:
context
:
WB
Id-Well
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wb
sha#wlbDrillPermit
>
;
<file:///www.reportinghub.no/transform/npd/wb
id#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-Well
Bore
;
spinmap:
context
:
WBSha-Well
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlb
NpdidWellbore
>
;
<file:///www.reportinghub.no/transform/npd/wbsha#wlb
Well
>
;
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-Well
Bore
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/wbsha#wlb
Well
>
;
<file:///www.reportinghub.no/transform/npd/wbsha#wlb
DrillPermit
>
;
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#wlb
CompletionDat
e>
;
<file:///www.reportinghub.no/transform/npd/wbsha#wlb
NpdidWellbor
e>
;
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#wlb
DrillingOperator
>
;
<file:///www.reportinghub.no/transform/npd/wbsha#wlb
ProductionLicence
>
;
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
...
...
www.reportinghub.no/np/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl.tbc
View file @
05897c8
...
...
@@ -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
;
...
...
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
View file @
05897c8
...
...
@@ -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
(
_:
b
5
)
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
spin:
_arg1
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#shareHolder>
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
5
;
sp:
subject
_:
b
10
]
[
sp:
object
_:
b
9
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#licenceShared>
;
sp:
subject
_:
b
6
sp:
subject
_:
b
10
])
;
sp:
graphNameNode
npdata:
npd
])
...
...
@@ -239,20 +286,20 @@ rhspin:companyHasLicenceForWellBore
spin:
body
[
rdf:
type
sp:
Select
;
sp:
distinct
"true"
^^
xsd:
boolean
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
resultVariables
(
_:
b
11
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
spin:
_arg1
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#shareHolder>
;
sp:
subject
_:
b
8
]
[
sp:
object
_:
b
9
;
sp:
subject
_:
b
12
]
[
sp:
object
_:
b
13
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#licenceShared>
;
sp:
subject
_:
b
8
sp:
subject
_:
b
12
]
[
sp:
object
<http://www.reportinghub.no/np/schema/npd#LS_Active>
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#licenceStatus>
;
sp:
subject
_:
b
9
]
[
sp:
object
_:
b
9
;
sp:
subject
_:
b
13
]
[
sp:
object
_:
b
13
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence>
;
sp:
subject
_:
b
7
sp:
subject
_:
b
11
])
;
sp:
graphNameNode
npdata:
npd
])
...
...
@@ -280,16 +327,16 @@ rhspin:companyWithName
rdfs:
subClassOf
spin:
Functions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
0
)
;
sp:
resultVariables
(
_:
b1
4
)
;
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
_:
b1
0
sp:
subject
_:
b1
4
]
[
sp:
object
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
0
sp:
subject
_:
b1
4
])
;
sp:
graphNameNode
npdata:
npd
])
...
...
@@ -331,26 +378,26 @@ rhspin:dtypeValue
rdfs:
subClassOf
spl:
OntologyFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
1
)
;
sp:
where
([
sp:
object
_:
b1
2
;
sp:
resultVariables
(
_:
b1
5
)
;
sp:
where
([
sp:
object
_:
b1
6
;
sp:
predicate
spin:
_arg2
;
sp:
subject
spin:
_arg1
]
[
sp:
object
_:
b1
1
;
]
[
sp:
object
_:
b1
5
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b1
2
sp:
subject
_:
b1
6
])
]
;
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
(
_:
b1
3
)
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b1
3
;
sp:
elements
([
sp:
object
_:
b1
7
;
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
(
_:
b1
4
)
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
...
...
@@ -461,67 +508,67 @@ rhspin:normalizeString
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b1
5
sp:
variable
_:
b1
9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
trim
;
sp:
arg1
_:
b1
5
sp:
arg1
_:
b1
9
]
;
sp:
variable
_:
b
16
sp:
variable
_:
b
20
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
encodeURL
;
sp:
arg1
_:
b
16
sp:
arg1
_:
b
20
]
;
sp:
variable
_:
b
17
sp:
variable
_:
b
21
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b
17
;
sp:
arg1
_:
b
21
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b
18
sp:
variable
_:
b
22
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b
18
;
sp:
arg1
_:
b
22
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b
19
sp:
variable
_:
b
23
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b
19
;
sp:
arg1
_:
b
23
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b2
0
sp:
variable
_:
b2
4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
0
;
sp:
arg1
_:
b2
4
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b2
1
sp:
variable
_:
b2
5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b2
1
;
sp:
arg1
_:
b2
5
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b2
2
sp:
variable
_:
b2
6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
spif:
upperCase
;
sp:
arg1
_:
b2
2
sp:
arg1
_:
b2
6
]
]
;
sp:
variable
_:
b1
4
sp:
variable
_:
b1
8
])
]
;
spin:
constraint
...
...
@@ -538,9 +585,9 @@ rhspin:npdId
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
3
)
;
sp:
resultVariables
(
_:
b2
7
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b2
3
;
sp:
elements
([
sp:
object
_:
b2
7
;
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
(
_:
b2
4
)
;
sp:
resultVariables
(
_:
b2
8
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
_:
b2
4
;
sp:
elements
([
sp:
object
_:
b2
8
;
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
(
_:
b2
5
)
;
sp:
resultVariables
(
_:
b2
9
)
;
sp:
where
([
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
_:
b
26
;
sp:
elements
(([
sp:
object
_:
b
30
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b2
5
sp:
subject
_:
b2
9
])
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
replaceAll
;
sp:
arg1
_:
b
26
;
sp:
arg1
_:
b
30
;
sp:
arg2
"/0"
;
sp:
arg3
"/"
]
;
sp:
variable
_:
b
27
]
[
sp:
object
_:
b
27
;
sp:
variable
_:
b
31
]
[
sp:
object
_:
b
31
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
_:
b2
5
sp:
subject
_:
b2
9
]))
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
5
sp:
subject
_:
b2
9
])
;
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
.
_:
b
26
_:
b
30
sp:
varName
"wellBoreName"
^^
xsd:
string
.
_:
b2
5
_:
b2
9
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b2
4
_:
b2
8
sp:
varName
"name"
^^
xsd:
string
.
_:
b2
3
_:
b2
7
sp:
varName
"id"
^^
xsd:
string
.
_:
b2
2
_:
b2
6
sp:
varName
"t4"
^^
xsd:
string
.
_:
b2
1
_:
b2
5
sp:
varName
"t3"
^^
xsd:
string
.
_:
b2
0
_:
b2
4
sp:
varName
"t2"
^^
xsd:
string
.
_:
b
19
_:
b
23
sp:
varName
"t1"
^^
xsd:
string
.
_:
b
18
_:
b
22
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b
17
_:
b
21
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b
16
_:
b
20
sp:
varName
"s2"
^^
xsd:
string
.
_:
b1
5
_:
b1
9
sp:
varName
"s1"
^^
xsd:
string
.
_:
b1
4
_:
b1
8
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b12
_:
b17
sp:
varName
"licence"
^^
xsd:
string
.
_:
b16
sp:
varName
"reif"
^^
xsd:
string
.
_:
b1
1
_:
b1
5
sp:
varName
"value"
^^
xsd:
string
.
_:
b1
0
_:
b1
4
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
.
_:
b
5
sp:
varName
"licence"
^^
xsd:
string
.
_:
b
9
sp:
varName
"licence"
^^
xsd:
string
.
_:
b4
sp:
varName
"wellBore"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment