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-01 14:52:04 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
41e812d1774f454dd59a24d51cda8cdacd309060
41e812d1
1 parent
86e178f3
NPD import of ShareOfWAA
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
432 additions
and
213 deletions
www.reportinghub.no/examples/transform/npd/baalicensee-2011-07-30.csv
www.reportinghub.no/examples/transform/npd/baalicensee-2011-07-30.ttl
www.reportinghub.no/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl
www.reportinghub.no/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl.tbc
www.reportinghub.no/transform/npd/baalicensee.ttl
www.reportinghub.no/examples/transform/npd/baalicensee-2011-07-30.csv
0 → 100644
View file @
41e812d
This diff could not be displayed because it is too large.
www.reportinghub.no/examples/transform/npd/baalicensee-2011-07-30.ttl
0 → 100644
View file @
41e812d
This diff could not be displayed because it is too large.
www.reportinghub.no/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl
View file @
41e812d
...
...
@@ -17,6 +17,8 @@
# imports: file:///www.reportinghub.no/transform/npd/facilityfixed
# imports: file:///www.reportinghub.no/transform/npd/discovery
# imports: file:///www.reportinghub.no/transform/npd/licence
# imports: file:///www.reportinghub.no/transform/npd/baalicensee
# imports: file:///www.reportinghub.no/transform/npd/baalicensee-2011-07-30
# imports: file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30
# imports: http://spinrdf.org/spin
# imports: file:///www.reportinghub.no/transform/npd/tufoperator
...
...
@@ -24,11 +26,13 @@
@prefix
:
<http://www.reportinghub.no/transform/spreadsheets2npd#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@prefix
baa-2011-07-30:
<file:///www.reportinghub.no/transform/npd/baa-2011-07-30#>
.
@prefix
baalicensee-2011-07-30:
<file:///www.reportinghub.no/transform/npd/baalicensee-2011-07-30#>
.
@prefix
company-2011-07-30:
<http://www.reportinghub.no/examples/transform/npd/company-2011-07-30#>
.
@prefix
discovery-2011-07-30:
<file:///www.reportinghub.no/transform/npd/discovery-2011-07-30#>
.
@prefix
facilityfixed-2011-07-30:
<file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30#>
.
@prefix
facilitymoveable-2011-07-30:
<file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30#>
.
@prefix
field-2011-07-30:
<http://www.reportinghub.no/transform/npd/field-2011-07-30#>
.
@prefix
fn:
<http://www.w3.org/2005/xpath-functions#>
.
@prefix
license-2011-07-30:
<file:///www.reportinghub.no/transform/npd/license-2011-07-30#>
.
@prefix
licensee-2011-07-30:
<file:///www.reportinghub.no/transform/npd/licensee-2011-07-30#>
.
@prefix
npdi:
<https://www.reportinghub.no/data/npd/>
.
...
...
@@ -48,37 +52,31 @@
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#Licence>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
0
-1
;
[
rdf:
type
spinmap:
Mapping-
1
-1
;
spinmap:
context
:
License-License
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Licence>
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlLicensingActivityName>
;
spinmap:
targetPredicate1
rdf:
type
<http://www.reportinghub.no/schema/npd#licensingActivity>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
License-License
;
spinmap:
expression
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prl
DateGranted
>
;
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prl
Name
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
startDat
e>
<http://www.reportinghub.no/schema/npd#
nam
e>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
License-License
;
spinmap:
expression
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prl
DateValidTo
>
;
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prl
Status
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
endDate
>
<http://www.reportinghub.no/schema/npd#
licenseStatus
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -92,29 +90,35 @@
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
License-License
;
spinmap:
expression
spin:
_arg1
;
spinmap:
expression
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prl
Status
>
;
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prl
DateValidTo
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
licenseStatus
>
<http://www.reportinghub.no/schema/npd#
endDate
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
License-License
;
spinmap:
expression
spin:
_arg1
;
spinmap:
expression
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prl
Name
>
;
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prl
DateGranted
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
nam
e>
<http://www.reportinghub.no/schema/npd#
startDat
e>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
1
-1
;
[
rdf:
type
spinmap:
Mapping-
0
-1
;
spinmap:
context
:
License-License
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/examples/transform/npd/licence-2011-07-30.csv#prlLicensingActivityName>
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Licence>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#licensingActivity>
rdf:
type
]
.
<file:///www.reportinghub.no/transform/npd/baa#BAA>
...
...
@@ -123,22 +127,22 @@
spinmap:
context
:
BAA-BusinessArrangementArea
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baaN
ame
>
;
<file:///www.reportinghub.no/transform/npd/baa#baaN
pdidBsnsArrArea
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
name
>
<http://www.reportinghub.no/schema/npd#
id
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAA-BusinessArrangementArea
;
spinmap:
expression
[
rdf:
type
spi
f:
parseDat
e
;
arg:
pattern
"dd.MM.yyyy"
;
sp
:
arg1
spin:
_arg1
[
rdf:
type
spi
nmapl:
resourceWithValu
e
;
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/schema/npd#endDate>
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -157,41 +161,109 @@
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAA-BusinessArrangementArea
;
spinmap:
expression
[
rdf:
type
spi
nmapl:
resourceWithValu
e
;
sp:
arg1
spin:
_arg1
;
sp
inmapl:
predicate
:
baaKind
[
rdf:
type
spi
f:
parseDat
e
;
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/schema/npd#endDate>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAA-BusinessArrangementArea
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baa#baaN
pdidBsnsArrArea
>
;
<file:///www.reportinghub.no/transform/npd/baa#baaN
ame
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
id
>
<http://www.reportinghub.no/schema/npd#
name
>
]
.
<file:///www.reportinghub.no/transform/npd/
company#Company
>
<file:///www.reportinghub.no/transform/npd/
baalicensee#BAALicensee
>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
Company-Company
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#
Company
>
;
spinmap:
context
:
BAALicensee-ShareOfBAA
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#
ShareOfBAA
>
;
spinmap:
targetPredicate1
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAALicensee-ShareOfBAA
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#BusinessArrangementArea>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#baaShared>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAALicensee-ShareOfBAA
;
spinmap:
expression
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidFrom>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#startDate>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAALicensee-ShareOfBAA
;
spinmap:
expression
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidTo>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#endDate>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAALicensee-ShareOfBAA
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Company>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#cmpLongName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#shareHolder>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
BAALicensee-ShareOfBAA
;
spinmap:
expression
[
rdf:
type
xsd:
float
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeInterest>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#percentageOfShare>
]
.
<file:///www.reportinghub.no/transform/npd/company#Company>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Company-Company
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmp
LongName
>
;
<file:///www.reportinghub.no/transform/npd/company#cmp
NpdidCompany
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
name
>
<http://www.reportinghub.no/schema/npd#
id
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -207,15 +279,31 @@
spinmap:
context
:
Company-Company
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/company#cmp
NpdidCompany
>
;
<file:///www.reportinghub.no/transform/npd/company#cmp
LongName
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
<http://www.reportinghub.no/schema/npd#name>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
Company-Company
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Company>
;
spinmap:
targetPredicate1
rdf:
type
]
.
<file:///www.reportinghub.no/transform/npd/discovery#Discovery>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#nmaName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryMainNcsArea>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
spin:
_arg1
...
...
@@ -228,6 +316,18 @@
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
rhspin:
fieldById
;
arg:
id
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#fldNpdidField>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryField>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscNpdidDiscovery>
;
...
...
@@ -251,18 +351,16 @@
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Owner>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscCurrentActivityStatus>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryCurrentActivityStatus>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Discovery>
;
<file:///www.reportinghub.no/transform/npd/discovery#dscOwnerName>
;
spinmap:
targetPredicate1
rdf:
type
<http://www.reportinghub.no/schema/npd#discoveryOwner>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -281,53 +379,34 @@
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dscHcType>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryHCType>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
rhspin:
fieldById
;
arg:
id
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#fldNpdidField>
;
<file:///www.reportinghub.no/transform/npd/discovery#dscName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
discoveryField
>
<http://www.reportinghub.no/schema/npd#
name
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Owner>
]
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dsc
OwnerName
>
;
<file:///www.reportinghub.no/transform/npd/discovery#dsc
CurrentActivityStatus
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discovery
Owner
>
<http://www.reportinghub.no/schema/npd#discovery
CurrentActivityStatus
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#dsc
Nam
e>
;
<file:///www.reportinghub.no/transform/npd/discovery#dsc
HcTyp
e>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
nam
e>
<http://www.reportinghub.no/schema/npd#
discoveryHCTyp
e>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
1
-1
;
[
rdf:
type
spinmap:
Mapping-
0
-1
;
spinmap:
context
:
Discovery-Discovery
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/discovery#nmaName>
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Discovery>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#discoveryMainNcsArea>
rdf:
type
]
.
<file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed>
...
...
@@ -336,37 +415,40 @@
spinmap:
context
:
FacilityFixed-FixedFacility
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
Kind
>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
Phase
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#f
acilityKind
>
<http://www.reportinghub.no/schema/npd#f
ixedFacilityPhase
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
FacilityFixed-FixedFacility
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#id>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#FixedFacilityParent>
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
BelongsToS
>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
StartupDate
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
belongsTo
>
<http://www.reportinghub.no/schema/npd#
startDate
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
FacilityFixed-FixedFacility
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Company>
]
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
CurrentOperator
Name>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclName>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#currentOperator>
<http://www.reportinghub.no/schema/npd#name>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
FacilityFixed-FixedFacility
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclNpdidFacility>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -388,67 +470,57 @@
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
FacilityFixed-FixedFacility
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclNpdidFacility>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#id>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
FacilityFixed-FixedFacility
;
spinmap:
expression
spin:
_arg1
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Company>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fclName>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
CurrentOperator
Name>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
name
>
<http://www.reportinghub.no/schema/npd#
currentOperator
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
FacilityFixed-FixedFacility
;
spinmap:
expression
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
spin:
_arg1
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#id>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#FixedFacilityParent>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
StartupDate
>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
BelongsToS
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
startDate
>
<http://www.reportinghub.no/schema/npd#
belongsTo
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
FacilityFixed-FixedFacility
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
Phase
>
;
<file:///www.reportinghub.no/transform/npd/facilityfixed#fcl
Kind
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#f
ixedFacilityPhase
>
<http://www.reportinghub.no/schema/npd#f
acilityKind
>
]
.
<file:///www.reportinghub.no/transform/npd/facilitymoveable#FacilityMoveable>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
1
-1
;
[
rdf:
type
spinmap:
Mapping-
0
-1
;
spinmap:
context
:
FacilityMoveable-MoveableFacility
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Company>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclCurrentRespCompanyName>
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#MoveableFacility>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#currentlyResponsibleCompany>
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
FacilityMoveable-MoveableFacility
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclN
ame
>
;
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclN
pdidFacility
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
name
>
<http://www.reportinghub.no/schema/npd#
id
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -464,101 +536,106 @@
spinmap:
context
:
FacilityMoveable-MoveableFacility
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclN
pdidFacility
>
;
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclN
ame
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
id
>
<http://www.reportinghub.no/schema/npd#
name
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
0
-1
;
[
rdf:
type
spinmap:
Mapping-
1
-1
;
spinmap:
context
:
FacilityMoveable-MoveableFacility
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#MoveableFacility>
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#name>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Company>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/facilitymoveable#fclCurrentRespCompanyName>
;
spinmap:
targetPredicate1
rdf:
type
<http://www.reportinghub.no/schema/npd#currentlyResponsibleCompany>
]
.
<file:///www.reportinghub.no/transform/npd/field#Field>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
Field-Field
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Field>
;
spinmap:
targetPredicate1
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Field-Field
;
spinmap:
expression
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#id>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Owner>
[
rdf:
type
rhspin:
companyById
;
arg:
id
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#
fldNpdidOwner
>
;
<file:///www.reportinghub.no/transform/npd/field#
cmpNpdidCompany
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#fieldO
wne
r>
<http://www.reportinghub.no/schema/npd#fieldO
perato
r>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Field-Field
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fld
CurrentActivitySatus
>
;
<file:///www.reportinghub.no/transform/npd/field#fld
NpdidField
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
currentActivityStatus
>
<http://www.reportinghub.no/schema/npd#
id
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Field-Field
;
spinmap:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
spin:
_arg1
]
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#
wlb
Name>
;
<file:///www.reportinghub.no/transform/npd/field#
fld
Name>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
fieldDiscoveryWellBor
e>
<http://www.reportinghub.no/schema/npd#
nam
e>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Field-Field
;
spinmap:
expression
spin:
_arg1
;
spinmap:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#
fld
Name>
;
<file:///www.reportinghub.no/transform/npd/field#
wlb
Name>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
nam
e>
<http://www.reportinghub.no/schema/npd#
fieldDiscoveryWellBor
e>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Field-Field
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#fld
NpdidField
>
;
<file:///www.reportinghub.no/transform/npd/field#fld
CurrentActivitySatus
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
id
>
<http://www.reportinghub.no/schema/npd#
currentActivityStatus
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
Field-Field
;
spinmap:
expression
[
rdf:
type
rhspin:
companyById
;
arg:
id
spin:
_arg1
[
rdf:
type
spinmapl:
resourceWithValue
;
sp:
arg1
spin:
_arg1
;
spinmapl:
predicate
<http://www.reportinghub.no/schema/npd#id>
;
spinmapl:
type
<http://www.reportinghub.no/schema/npd#Owner>
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/field#cmpNpdidCompany>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#fieldOperator>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
Field-Field
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Field>
;
<file:///www.reportinghub.no/transform/npd/field#fldNpdidOwner>
;
spinmap:
targetPredicate1
rdf:
type
<http://www.reportinghub.no/schema/npd#fieldOwner>
]
.
<file:///www.reportinghub.no/transform/npd/tufoperator#TUFOperator>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
1
-1
;
[
rdf:
type
spinmap:
Mapping-
0
-1
;
spinmap:
context
:
TUFOperator-TUF
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/tufoperator#tufName>
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#TUF>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#name>
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -570,41 +647,40 @@
<http://www.reportinghub.no/schema/npd#id>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
0
-1
;
[
rdf:
type
spinmap:
Mapping-
1
-1
;
spinmap:
context
:
TUFOperator-TUF
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#TUF>
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/npd/tufoperator#tufName>
;
spinmap:
targetPredicate1
rdf:
type
<http://www.reportinghub.no/schema/npd#name>
]
.
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#WBID>
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
1
-1
;
[
rdf:
type
spinmap:
Mapping-
0
-1
;
spinmap:
context
:
WBID-WellBore
;
spinmap:
expression
[
rdf:
type
rhspin:
wellByName
;
arg:
wellName
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell>
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#WellBore>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#partOfWell>
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
WBID-Well
;
spinmap:
context
:
WBID-Well
Bore
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlb
Well
>
;
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlb
NpdidWellbore
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
name
>
<http://www.reportinghub.no/schema/npd#
id
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
WBID-Well
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Well>
;
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
WBID-WellBore
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellType>
;
spinmap:
targetPredicate1
rdf:
type
<http://www.reportinghub.no/schema/npd#wellBoreType>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
...
...
@@ -616,29 +692,32 @@
<http://www.reportinghub.no/schema/npd#name>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
WBID-WellBore
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellType>
;
[
rdf:
type
spinmap:
Mapping-0-1
;
spinmap:
context
:
WBID-Well
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#Well>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#wellBoreType>
rdf:
type
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-1-1
;
spinmap:
context
:
WBID-Well
Bore
;
spinmap:
context
:
WBID-Well
;
spinmap:
expression
spin:
_arg1
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlb
NpdidWellbore
>
;
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlb
Well
>
;
spinmap:
targetPredicate1
<http://www.reportinghub.no/schema/npd#
id
>
<http://www.reportinghub.no/schema/npd#
name
>
]
;
spinmap:
rule
[
rdf:
type
spinmap:
Mapping-
0
-1
;
[
rdf:
type
spinmap:
Mapping-
1
-1
;
spinmap:
context
:
WBID-WellBore
;
spinmap:
expression
<http://www.reportinghub.no/schema/npd#WellBore>
;
spinmap:
expression
[
rdf:
type
rhspin:
wellByName
;
arg:
wellName
spin:
_arg1
]
;
spinmap:
sourcePredicate1
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell>
;
spinmap:
targetPredicate1
rdf:
type
<http://www.reportinghub.no/schema/npd#partOfWell>
]
.
arg:
well
...
...
@@ -665,7 +744,7 @@ arg:wellName
<http://www.reportinghub.no/transform/spreadsheets2npd>
rdf:
type
owl:
Ontology
;
rdfs:
comment
"Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."
^^
xsd:
string
;
owl:
imports
<file:///www.reportinghub.no/transform/npd/tufoperator>
,
<file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30>
,
<http://www.reportinghub.no/transform/npd/tufoperator-2011-07-30>
,
<http://www.reportinghub.no/transform/npd/field-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/discovery>
,
<http://www.reportinghub.no/1.1/schema/npd>
,
<file:///www.reportinghub.no/transform/npd/field>
,
<file:///www.reportinghub.no/transform/npd/discovery-2011-07-30>
,
<
http://topbraid.org/spin/spinmapl>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/licence>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed>
,
<http://www.reportinghub.no/spin/rh>
,
<file:///www.reportinghub.no/transform/npd/baa>
,
<http://www.reportinghub.no/examples/transform/npd/company-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/facilitymoveable
>
,
<file:///www.reportinghub.no/transform/npd/license-2011-07-30>
,
<file:///www.reportinghub.no/transform/wellbore-npdid-overview>
,
<file:///www.reportinghub.no/transform/npd/company>
,
<http://spinrdf.org/spin>
,
<file:///www.reportinghub.no/transform/npd/baa-2011-07-30>
;
owl:
imports
<file:///www.reportinghub.no/transform/npd/tufoperator>
,
<file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30>
,
<http://www.reportinghub.no/transform/npd/tufoperator-2011-07-30>
,
<http://www.reportinghub.no/transform/npd/field-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/discovery>
,
<http://www.reportinghub.no/1.1/schema/npd>
,
<file:///www.reportinghub.no/transform/npd/field>
,
<file:///www.reportinghub.no/transform/npd/discovery-2011-07-30>
,
<
file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/baalicensee>
,
<http://topbraid.org/spin/spinmapl>
,
<file:///www.reportinghub.no/transform/npd/licence>
,
<file:///www.reportinghub.no/transform/npd/facilityfixed>
,
<http://www.reportinghub.no/spin/rh>
,
<http://www.reportinghub.no/examples/transform/npd/company-2011-07-30>
,
<file:///www.reportinghub.no/transform/npd/baa>
,
<file:///www.reportinghub.no/transform/npd/facilitymoveable>
,
<file:///www.reportinghub.no/transform/npd/baalicensee-2011-07-30
>
,
<file:///www.reportinghub.no/transform/npd/license-2011-07-30>
,
<file:///www.reportinghub.no/transform/wellbore-npdid-overview>
,
<file:///www.reportinghub.no/transform/npd/company>
,
<http://spinrdf.org/spin>
,
<file:///www.reportinghub.no/transform/npd/baa-2011-07-30>
;
owl:
versionInfo
"0.1.0"
^^
xsd:
string
.
:
BAA-BusinessArrangementArea
...
...
@@ -677,6 +756,17 @@ arg:wellName
]
;
spinmap:
targetClass
<http://www.reportinghub.no/schema/npd#BusinessArrangementArea>
.
:
BAALicensee-ShareOfBAA
rdf:
type
spinmap:
Context
;
spinmap:
sourceClass
<file:///www.reportinghub.no/transform/npd/baalicensee#BAALicensee>
;
spinmap:
target
[
rdf:
type
:
buildShareOfBAAURI
;
spinmap:
source
[
sp:
varName
"source"
^^
xsd:
string
]
]
;
spinmap:
targetClass
<http://www.reportinghub.no/schema/npd#ShareOfBAA>
.
:
Company-Company
rdf:
type
spinmap:
Context
;
spinmap:
sourceClass
<file:///www.reportinghub.no/transform/npd/company#Company>
;
...
...
@@ -866,6 +956,49 @@ arg:wellName
sp:
where
()
]
.
:
buildShareOfBAAURI
rdf:
type
spinmap:
TargetFunction
;
rdfs:
label
"build ShareOfBAA URI"
^^
xsd:
string
;
rdfs:
subClassOf
spinmap:
TargetFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/data/npd/ShareOfBAA-"
;
sp:
arg2
_:
b1
;
sp:
arg3
"_"
;
sp:
arg4
_:
b2
;
sp:
arg5
"_"
;
sp:
arg6
[
rdf:
type
spif:
parseDate
;
arg:
pattern
"dd.MM.yyyy"
;
sp:
arg1
_:
b3
]
]
])
;
sp:
where
([
sp:
object
_:
b3
;
sp:
predicate
<file:///www.reportinghub.no/transform/npd/baalicensee#baaLicenseeDateValidFrom>
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b5
;
sp:
predicate
<file:///www.reportinghub.no/transform/npd/baalicensee#cmpLongName>
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b5
;
sp:
predicate
<file:///www.reportinghub.no/transform/npd/company#cmpLongName>
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b1
;
sp:
predicate
<file:///www.reportinghub.no/transform/npd/company#cmpNpdidCompany>
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b7
;
sp:
predicate
<file:///www.reportinghub.no/transform/npd/baalicensee#baaName>
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b7
;
sp:
predicate
<file:///www.reportinghub.no/transform/npd/baa#baaName>
;
sp:
subject
_:
b8
]
[
sp:
object
_:
b2
;
sp:
predicate
<file:///www.reportinghub.no/transform/npd/baa#baaNpdidBsnsArrArea>
;
sp:
subject
_:
b8
])
]
.
:
buildTUFURI
rdf:
type
spinmap:
TargetFunction
;
rdfs:
label
"build TUF URI"
^^
xsd:
string
;
...
...
@@ -889,9 +1022,9 @@ arg:wellName
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
_:
b
1
arg:
wellBoreName
_:
b
9
])
;
sp:
where
([
sp:
object
_:
b
1
;
sp:
where
([
sp:
object
_:
b
9
;
sp:
predicate
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellboreName>
;
sp:
subject
[
sp:
varName
"source"
^^
xsd:
string
...
...
@@ -907,9 +1040,9 @@ arg:wellName
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
rhspin:
wellByName
;
arg:
wellName
_:
b
2
arg:
wellName
_:
b
10
])
;
sp:
where
([
sp:
object
_:
b
2
;
sp:
where
([
sp:
object
_:
b
10
;
sp:
predicate
<file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell>
;
sp:
subject
[
sp:
varName
"source"
^^
xsd:
string
...
...
@@ -917,6 +1050,23 @@ arg:wellName
])
]
.
_:
b2
sp:
varName
"wellName"
^^
xsd:
string
.
_:
b2
sp:
varName
"baaId"
^^
xsd:
string
.
_:
b8
sp:
varName
"baa"
^^
xsd:
string
.
_:
b7
sp:
varName
"baaName"
^^
xsd:
string
.
_:
b1
sp:
varName
"companyId"
^^
xsd:
string
.
_:
b6
sp:
varName
"company"
^^
xsd:
string
.
_:
b5
sp:
varName
"companyName"
^^
xsd:
string
.
_:
b3
sp:
varName
"startDate"
^^
xsd:
string
.
_:
b4
sp:
varName
"source"
^^
xsd:
string
.
_:
b10
sp:
varName
"wellName"
^^
xsd:
string
.
_:
b
1
sp:
varName
"wellBoreId"
^^
xsd:
string
.
_:
b
9
sp:
varName
"wellBoreId"
^^
xsd:
string
.
...
...
www.reportinghub.no/transform/TRANSFORM_SPREADSHEETS-to-NPD.ttl.tbc
View file @
41e812d
...
...
@@ -13,4 +13,6 @@
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
composite:
index
"0"
^^
xsd:
int
]
.
]
;
inference:
inferredMode
"true"
^^
xsd:
boolean
.
...
...
www.reportinghub.no/transform/npd/baalicensee.ttl
0 → 100644
View file @
41e812d
# baseURI: file:///www.reportinghub.no/transform/npd/baalicensee
# imports: http://topbraid.org/tables
@prefix
baalicensee:
<file:///www.reportinghub.no/transform/npd/baalicensee#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
tables:
<http://topbraid.org/tables#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<file:///www.reportinghub.no/transform/npd/baalicensee>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://topbraid.org/tables>
.
baalicensee:
BAALicensee
rdf:
type
owl:
Class
;
rdfs:
label
"BAA Licensee"
^^
xsd:
string
;
tables:
sheetIndex
"0"
^^
xsd:
int
.
baalicensee:
baaLicenseeDateValidFrom
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baalicensee:
BAALicensee
;
rdfs:
label
"baaLicenseeDateValidFrom"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"1"
^^
xsd:
int
.
baalicensee:
baaLicenseeDateValidTo
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baalicensee:
BAALicensee
;
rdfs:
label
"baaLicenseeDateValidTo"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"2"
^^
xsd:
int
.
baalicensee:
baaLicenseeInterest
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baalicensee:
BAALicensee
;
rdfs:
label
"baaLicenseeInterest"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"4"
^^
xsd:
int
.
baalicensee:
baaLicenseeSdfi
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baalicensee:
BAALicensee
;
rdfs:
label
"baaLicenseeSdfi"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"5"
^^
xsd:
int
.
baalicensee:
baaName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baalicensee:
BAALicensee
;
rdfs:
label
"baaName"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"0"
^^
xsd:
int
.
baalicensee:
cmpLongName
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baalicensee:
BAALicensee
;
rdfs:
label
"cmpLongName"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"3"
^^
xsd:
int
.
baalicensee:
datesyncNPD
rdf:
type
owl:
DatatypeProperty
;
rdfs:
domain
baalicensee:
BAALicensee
;
rdfs:
label
"DatesyncNPD"
;
rdfs:
range
xsd:
string
;
tables:
columnIndex
"6"
^^
xsd:
int
.
Please
register
or
login
to post a comment