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
David Leal
2012-08-29 19:56:54 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7478feb1751ce70f0b0eeeab3660d49ecf1efc2f
7478feb1
1 parent
1fb1f7fa
URIs assigned to small facilities
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
435 additions
and
289 deletions
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
View file @
7478feb
...
...
@@ -881,6 +881,47 @@ ep-dpr-spin-lib:buildShipURI
])
]
.
ep-dpr-spin-lib:
buildSmallFacilityURI
rdf:
type
spin:
Function
;
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
rdfs:
comment
"""ar1 is the naming system
arg2 is name of facility"""
^^
xsd:
string
;
sp:
resultVariables
([
sp:
varName
"uri"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
""
]
;
sp:
arg2
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/smallFacility/"
;
sp:
arg2
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg1
]
]
;
sp:
arg3
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/smallFacility/"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg1
]
;
sp:
arg2
"$"
;
sp:
arg3
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg2
]
]
]
]
;
sp:
variable
[
sp:
varName
"uri"
^^
xsd:
string
]
])
]
.
ep-dpr-spin-lib:
buildStateURI
rdf:
type
spin:
Function
;
rdfs:
label
"build State URI"
^^
xsd:
string
;
...
...
@@ -7532,15 +7573,6 @@ ep-dpr-spin-lib:selectWorkScale
])
]
.
_:
b22
sp:
varName
"volumeFlowRateAtStdType"
^^
xsd:
string
.
_:
b21
sp:
varName
"specificVolumeScale"
^^
xsd:
string
.
_:
b20
sp:
varName
"safetyActivityType"
^^
xsd:
string
.
_:
b19
sp:
varName
"productionFlowPurposeType"
^^
xsd:
string
.
...
...
@@ -7588,3 +7620,12 @@ _:b3 sp:varName "uri"^^xsd:string .
_:
b2
sp:
varName
"UUID"
^^
xsd:
string
.
_:
b1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b22
sp:
varName
"volumeFlowRateAtStdType"
^^
xsd:
string
.
_:
b21
sp:
varName
"specificVolumeScale"
^^
xsd:
string
.
_:
b20
sp:
varName
"safetyActivityType"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1.ttl
View file @
7478feb
...
...
@@ -21,23 +21,31 @@
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00013 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
N
othing is done with the namingSystem!
"""
^^
xsd:
string
;
N
aming system supplied
"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#Facility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b1
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
_:
b1
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
...
...
@@ -56,6 +64,11 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"namingSystem"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#namingSystem>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
...
...
@@ -72,124 +85,16 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
sp:
variable
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"company"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"companyLabel"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_company>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_commercialentity>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]))
]
[
sp:
object
[
sp:
varName
"companyName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"company"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"companyName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"company"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"companyId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"company"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"company-"
;
sp:
arg2
[
sp:
varName
"companyId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"companyLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00005 Record the Facility that has the flows - kind is \"well\"
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellLabel"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_well>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"wellName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#Well>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellId"
^^
xsd:
string
[
rdf:
type
ep-dpr-spin-lib:
buildSmallFacilityURI
;
sp:
arg1
[
sp:
varName
"namingSystem"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"well-"
;
sp:
arg2
[
sp:
varName
"wellId"
^^
xsd:
string
sp:
arg2
[
sp:
varName
"facilityName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
wellLabel
"
^^
xsd:
string
[
sp:
varName
"
facility
"
^^
xsd:
string
]
])
]
;
...
...
@@ -252,115 +157,58 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00002 Record the Facility that has the flows - kind is \"wellbore\"
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreLabel"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_wellbore>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"wellBoreName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"wellbore-"
;
sp:
arg2
[
sp:
varName
"wellBoreId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"wellBoreLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility
rdfs:
comment
"""STEP 00010 Record the Facility that has the flows - kind is \"licence\"
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
platform
"
^^
xsd:
string
[
sp:
varName
"
licence
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platform
Label"
^^
xsd:
string
[
sp:
varName
"
licence
Label"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
platform
>
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
licence
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
platform
Name"
^^
xsd:
string
[
sp:
varName
"
licence
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
ep/schema/facility#MoveableFacility
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
np/schema/npd#Licence
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
platform
"
^^
xsd:
string
[
sp:
varName
"
licence
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platform
Name"
^^
xsd:
string
[
sp:
varName
"
licence
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
platform
"
^^
xsd:
string
[
sp:
varName
"
licence
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platform
Id"
^^
xsd:
string
[
sp:
varName
"
licence
Id"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"
platform
"
^^
xsd:
string
[
sp:
varName
"
livence
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"
platform
-"
;
sp:
arg2
[
sp:
varName
"
platform
Id"
^^
xsd:
string
sp:
arg1
"
licence
-"
;
sp:
arg2
[
sp:
varName
"
licence
Id"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
platform
Label"
^^
xsd:
string
[
sp:
varName
"
licence
Label"
^^
xsd:
string
]
])
]
;
...
...
@@ -486,115 +334,338 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 000
10 Record the Facility that has the flows - kind is \"licence\"
rdfs:
comment
"""STEP 000
07 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
licence
"
^^
xsd:
string
[
sp:
varName
"
terminal
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
licence
Label"
^^
xsd:
string
[
sp:
varName
"
terminal
Label"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
licence
>
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
terminal
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
licence
Name"
^^
xsd:
string
[
sp:
varName
"
terminal
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
np/schema/npd#Licence
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
ep/schema/facility#SurfaceFixedFacility
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
licence
"
^^
xsd:
string
[
sp:
varName
"
terminal
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
licence
Name"
^^
xsd:
string
[
sp:
varName
"
terminal
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
licence
"
^^
xsd:
string
[
sp:
varName
"
terminal
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
licence
Id"
^^
xsd:
string
[
sp:
varName
"
terminal
Id"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"
livence
"
^^
xsd:
string
[
sp:
varName
"
terminal
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"
licence
-"
;
sp:
arg2
[
sp:
varName
"
licence
Id"
^^
xsd:
string
sp:
arg1
"
terminal
-"
;
sp:
arg2
[
sp:
varName
"
terminal
Id"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
licence
Label"
^^
xsd:
string
[
sp:
varName
"
terminal
Label"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
7 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility
rdfs:
comment
"""STEP 0000
6 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc.
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"t
erminal
"
^^
xsd:
string
[
sp:
varName
"t
uf
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"t
erminal
Label"
^^
xsd:
string
[
sp:
varName
"t
uf
Label"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_terminal>
;
sp:
where
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_terminal>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"terminalName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_pipeline>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_flowline>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_installation>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_plant>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_processingfacility>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_trunkline>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_storage>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_plant-processing>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]))
]
[
sp:
object
[
sp:
varName
"tufName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
ep/schema/facility#SurfaceFixedFacility
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
np/schema/npd#TUF
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"t
erminal
"
^^
xsd:
string
[
sp:
varName
"t
uf
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"t
erminal
Name"
^^
xsd:
string
[
sp:
varName
"t
uf
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"t
erminal
"
^^
xsd:
string
[
sp:
varName
"t
uf
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"t
erminal
Id"
^^
xsd:
string
[
sp:
varName
"t
uf
Id"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"t
erminal
"
^^
xsd:
string
[
sp:
varName
"t
uf
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"t
erminal
-"
;
sp:
arg2
[
sp:
varName
"t
erminal
Id"
^^
xsd:
string
sp:
arg1
"t
uf
-"
;
sp:
arg2
[
sp:
varName
"t
uf
Id"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"terminalLabel"
^^
xsd:
string
[
sp:
varName
"tufLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
])
;
sp:
where
([
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"aFacilityIdentifierStructure"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"aFacilityIdentifierStructure"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectProductionFacilityType
;
sp:
arg1
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00014 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
Naming system not supplied"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#Facility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"namingSystem"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#namingSystem>
;
sp:
subject
spin:
_this
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectProductionFacilityType
;
sp:
arg1
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildSmallFacilityURI
;
sp:
arg1
""
;
sp:
arg2
[
sp:
varName
"facilityName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"facility"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00002 Record the Facility that has the flows - kind is \"wellbore\"
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreLabel"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_wellbore>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"wellBoreName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"wellbore-"
;
sp:
arg2
[
sp:
varName
"wellBoreId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"wellBoreLabel"
^^
xsd:
string
]
])
]
;
...
...
@@ -668,148 +739,182 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
6 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc.
rdfs:
comment
"""STEP 0000
8 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
company
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
tuf
Label"
^^
xsd:
string
[
sp:
varName
"
company
Label"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_terminal>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_pipeline>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_flowline>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_installation>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_plant>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_processingfacility>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_trunkline>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_storage>
;
sp:
elements
(([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_company>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
plant-processing
>
;
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
commercialentity
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]))
]
[
sp:
object
[
sp:
varName
"
tuf
Name"
^^
xsd:
string
[
sp:
varName
"
company
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#
TUF
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#
OperatingCompany
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
company
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
tuf
Name"
^^
xsd:
string
[
sp:
varName
"
company
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
company
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
tuf
Id"
^^
xsd:
string
[
sp:
varName
"
company
Id"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
company
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"
tuf
-"
;
sp:
arg2
[
sp:
varName
"
tuf
Id"
^^
xsd:
string
sp:
arg1
"
company
-"
;
sp:
arg2
[
sp:
varName
"
company
Id"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
tuf
Label"
^^
xsd:
string
[
sp:
varName
"
company
Label"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 000
11 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file
rdfs:
comment
"""STEP 000
05 Record the Facility that has the flows - kind is \"well\"
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
facility
"
^^
xsd:
string
[
sp:
varName
"
well
"
^^
xsd:
string
]
])
;
sp:
where
([
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
[
sp:
object
[
sp:
varName
"wellLabel"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_well>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"
facility
Name"
^^
xsd:
string
[
sp:
varName
"
well
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
N
otExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
]
[
rdf:
type
sp:
N
amedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#Well>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
something
"
^^
xsd:
string
[
sp:
varName
"
well
"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"aFacilityIdentifierStructure"
^^
xsd:
string
[
sp:
varName
"wellName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"well-"
;
sp:
arg2
[
sp:
varName
"wellId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"wellLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
facility
"
^^
xsd:
string
[
sp:
varName
"
platform
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
;
]
[
sp:
object
[
sp:
varName
"platformLabel"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_platform>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"platformName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#MoveableFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"aFacilityIdentifierStructure
"
^^
xsd:
string
[
sp:
varName
"platform
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionFacilityTyp
e"
^^
xsd:
string
[
sp:
varName
"platformNam
e"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
[
sp:
varName
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"platformId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectProductionFacilityType
;
sp:
arg1
[
sp:
varName
"facilityKind"
^^
xsd:
string
[
rdf:
type
fn:
concat
;
sp:
arg1
"platform-"
;
sp:
arg2
[
sp:
varName
"platformId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"p
roductionFacilityType
"
^^
xsd:
string
[
sp:
varName
"p
latformLabel
"
^^
xsd:
string
]
])
]
.
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
www.reportinghub.no/ep/transform/transform-helper-schema>
,
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
,
<http://www.epim.no/schemas/mprml/1>
,
<http://spinrdf.org/spin
>
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://www.epim.no/schemas/mprml/1>
,
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/transform/transform-helper-schema
>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment