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 Price
2012-05-31 13:36:55 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
20e041e75032b3424c8087cd0b524bb757314f01
20e041e7
2 parents
c8fa00ff
c27dba59
Merge branch 'master' into mprg-swp30
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
377 additions
and
169 deletions
www.reportinghub.no/ep/transform/SCHEMA_transform-helper-schema.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
www.reportinghub.no/ep/transform/SCHEMA_transform-helper-schema.ttl
View file @
20e041e
...
...
@@ -14,19 +14,16 @@
transhelp:
derivedFrom
rdf:
type
owl:
ObjectProperty
.
transhelp:
dummyTrue
rdf:
type
owl:
DatatypeProperty
,
owl:
FunctionalProperty
.
transhelp:
hasDerivedText
rdf:
type
owl:
DatatypeProperty
.
transhelp:
intervalIdentifier
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
.
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
.
transhelp:
mapsTo
rdf:
type
rdf:
Property
.
transhelp:
materialClassMapsToMPREnumeration
rdf:
type
owl:
ObjectProperty
,
owl:
FunctionalProperty
,
owl:
InverseFunctional
Property
;
rdf:
type
owl:
InverseFunctionalProperty
,
owl:
FunctionalProperty
,
owl:
Object
Property
;
rdfs:
label
"material class maps to MPR enumeration"
^^
xsd:
string
;
rdfs:
subPropertyOf
transhelp:
mapsTo
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1.ttl
View file @
20e041e
...
...
@@ -8,6 +8,7 @@
@prefix
:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#>
.
@prefix
ep-dpr-spin-lib:
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib#>
.
@prefix
ep-mpr-spin-lib:
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib#>
.
@prefix
fn:
<http://www.w3.org/2005/xpath-functions#>
.
@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#>
.
...
...
@@ -19,58 +20,7 @@
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00001 Record the Facility that has the flows - kind is \"field\", 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
"field"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fieldName"
^^
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_field>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-part>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-group>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-area>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]))
]
[
sp:
object
[
sp:
varName
"fieldName"
^^
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#Field>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"field"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fieldName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"field"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00012 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
rdfs:
comment
"""STEP 00013 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#Facility>
;
sp:
predicate
rdf:
type
;
...
...
@@ -126,7 +76,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
7
Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany
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>
;
...
...
@@ -134,7 +84,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
[
sp:
varName
"company"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"company
Name
"
^^
xsd:
string
[
sp:
varName
"company
Label
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
...
...
@@ -165,218 +115,258 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
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 0000
6 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc.
rdfs:
comment
"""STEP 0000
5 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
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
well
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
tufName
"
^^
xsd:
string
[
sp:
varName
"
wellLabel
"
^^
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:
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:
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
"
tuf
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:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
np/schema/npd#TUF
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
ep/schema/well#Well
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
well
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
tuf
Name"
^^
xsd:
string
[
sp:
varName
"
well
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"tuf"
^^
xsd:
string
[
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 0000
9 Record the Facility that has the flows - kind is \"licence\"
rdfs:
comment
"""STEP 0000
3 Record the Facility that has the flows - kind is \"platform\" - 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
"
platform
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
licenceName
"
^^
xsd:
string
[
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_
licence
>
;
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
"
licence
Name"
^^
xsd:
string
[
sp:
varName
"
platform
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
"
platform
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
licence
Name"
^^
xsd:
string
[
sp:
varName
"
platform
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"licence"
^^
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
fn:
concat
;
sp:
arg1
"platform-"
;
sp:
arg2
[
sp:
varName
"platformId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"platformLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 000
10 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file
rdfs:
comment
"""STEP 000
02 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
"
facility
"
^^
xsd:
string
[
sp:
varName
"
wellBore
"
^^
xsd:
string
]
])
;
sp:
where
([
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"facilityKind"
^^
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
"
facility
Name"
^^
xsd:
string
[
sp:
varName
"
wellBore
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#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
something
"
^^
xsd:
string
[
sp:
varName
"
wellBore
"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"aFacilityIdentifierStructur
e"
^^
xsd:
string
[
sp:
varName
"wellBoreNam
e"
^^
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:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"aFacilityIdentifierStructu
re"
^^
xsd:
string
[
sp:
varName
"wellBo
re"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionFacilityType
"
^^
xsd:
string
[
sp:
varName
"wellBoreId
"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"facility
"
^^
xsd:
string
[
sp:
varName
"wellBore
"
^^
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
"wellbore-"
;
sp:
arg2
[
sp:
varName
"wellBoreId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
productionFacilityType
"
^^
xsd:
string
[
sp:
varName
"
wellBoreLabel
"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
5 Record the Facility that has the flows - kind is \"well\"
rdfs:
comment
"""STEP 0000
4 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
"
well
"
^^
xsd:
string
[
sp:
varName
"
platform
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
wellName
"
^^
xsd:
string
[
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_
well
>
;
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
"
well
Name"
^^
xsd:
string
[
sp:
varName
"
platform
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/
well#Well
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/
facility#MoveableFacility
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
well
"
^^
xsd:
string
[
sp:
varName
"
platform
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
well
Name"
^^
xsd:
string
[
sp:
varName
"
platform
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"well"
^^
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
fn:
concat
;
sp:
arg1
"platform-"
;
sp:
arg2
[
sp:
varName
"platformId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"platformLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
8
Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany
rdfs:
comment
"""STEP 0000
9
Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany
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>
;
...
...
@@ -384,7 +374,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
[
sp:
varName
"company"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"company
Name
"
^^
xsd:
string
[
sp:
varName
"company
Label
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
...
...
@@ -415,13 +405,30 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
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 0001
1
Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal
rdfs:
comment
"""STEP 0001
2
Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file - a terminal
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#Facility>
;
sp:
predicate
rdf:
type
;
...
...
@@ -479,122 +486,326 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 000
02 Record the Facility that has the flows - kind is \"wellbor
e\"
rdfs:
comment
"""STEP 000
10 Record the Facility that has the flows - kind is \"licenc
e\"
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
"
wellBor
e"
^^
xsd:
string
[
sp:
varName
"
licenc
e"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
wellBoreName
"
^^
xsd:
string
[
sp:
varName
"
licenceLabel
"
^^
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_
wellbor
e>
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
licenc
e>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
wellBor
eName"
^^
xsd:
string
[
sp:
varName
"
licenc
eName"
^^
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#WellBor
e>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
np/schema/npd#Licenc
e>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
wellBor
e"
^^
xsd:
string
[
sp:
varName
"
licenc
e"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
wellBor
eName"
^^
xsd:
string
[
sp:
varName
"
licenc
eName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
[
sp:
varName
"licence"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"licenceId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
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
"licence-"
;
sp:
arg2
[
sp:
varName
"licenceId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"licenceLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
4 Record the Facility that has the flows - kind is \"platform\" - assumed to be a Moveable
Facility
rdfs:
comment
"""STEP 0000
7 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixed
Facility
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
"
terminal
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platformName
"
^^
xsd:
string
[
sp:
varName
"
terminalLabel
"
^^
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_
terminal
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
platform
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/ep/schema/facility#
Moveable
Facility>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#
SurfaceFixed
Facility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
platform
"
^^
xsd:
string
[
sp:
varName
"
terminal
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platform
Name"
^^
xsd:
string
[
sp:
varName
"
terminal
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
[
sp:
varName
"terminal"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"terminalId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
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
"terminal-"
;
sp:
arg2
[
sp:
varName
"terminalId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"terminalLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
3 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility
rdfs:
comment
"""STEP 0000
1 Record the Facility that has the flows - kind is \"field\", 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
"
platform
"
^^
xsd:
string
[
sp:
varName
"
field
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platformName
"
^^
xsd:
string
[
sp:
varName
"
fieldLabel
"
^^
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
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-part>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-group>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-area>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]))
]
[
sp:
object
[
sp:
varName
"
platform
Name"
^^
xsd:
string
[
sp:
varName
"
field
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#
SurfaceFixedFacility
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#
Field
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
platform
"
^^
xsd:
string
[
sp:
varName
"
field
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platform
Name"
^^
xsd:
string
[
sp:
varName
"
field
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
[
sp:
varName
"field"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fieldId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"field"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"field-"
;
sp:
arg2
[
sp:
varName
"fieldId"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"fieldLabel"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00006 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
"tuf"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"tufLabel"
^^
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:
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/np/schema/npd#TUF>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"tuf"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"tufName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"tuf"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"tufId"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#id>
;
sp:
subject
[
sp:
varName
"tuf"
^^
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
"tufId"
^^
xsd:
string
]
]
;
sp:
variable
[
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
]
])
]
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
View file @
20e041e
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment