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
2013-01-07 13:38:37 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a27ff497b829f019693d777ec7bb17a810f05e2
7a27ff49
1 parent
633eb1c3
Minor bug fixes
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
222 additions
and
272 deletions
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
View file @
7a27ff4
...
...
@@ -156,7 +156,7 @@ ep-dpr-spin-lib:buildChemicalTypeURI
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/chemical/"
;
sp:
arg1
"https://www.reportinghub.no/ep/data/chemical
Type
/"
;
sp:
arg2
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg1
]
...
...
@@ -641,30 +641,13 @@ ep-dpr-spin-lib:buildProductionFlowName
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg3
;
sp:
arg2
""
]
;
sp:
arg2
[
rdf:
type
fn:
concat
;
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"$"
;
sp:
arg3
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg2
]
]
;
sp:
arg3
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"$"
;
sp:
arg3
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg2
]
;
sp:
arg4
"$"
;
sp:
arg5
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg3
]
]
]
;
sp:
variable
[
sp:
varName
"name"
^^
xsd:
string
]
...
...
@@ -681,12 +664,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg3
;
sp:
arg2
""
]
;
sp:
arg2
[
rdf:
type
ep-spin-lib:
buildURI
;
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/productionFlow/"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
...
...
@@ -694,17 +672,6 @@ ep-dpr-spin-lib:buildProductionFlowURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
arg3
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/productionFlow/"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"$"
;
sp:
arg3
spin:
_arg2
;
sp:
arg4
"$"
;
sp:
arg5
spin:
_arg3
]
]
]
;
sp:
variable
[
sp:
varName
"uri"
^^
xsd:
string
]
...
...
@@ -765,19 +732,12 @@ ep-dpr-spin-lib:buildProductionInventoryName
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg2
;
sp:
arg2
""
]
;
sp:
arg2
spin:
_arg1
;
sp:
arg3
[
rdf:
type
fn:
concat
;
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"$"
;
sp:
arg3
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
spin:
_arg2
]
]
]
;
sp:
variable
[
sp:
varName
"name"
^^
xsd:
string
...
...
@@ -795,23 +755,13 @@ ep-dpr-spin-lib:buildProductionInventoryURI
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg2
;
sp:
arg2
""
]
;
sp:
arg2
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/productionInventory/"
;
sp:
arg2
spin:
_arg1
]
;
sp:
arg3
[
rdf:
type
ep-spin-lib:
buildURI
;
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/productionInventory/"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"$"
;
sp:
arg3
spin:
_arg2
]
]
]
;
sp:
variable
[
sp:
varName
"uri"
^^
xsd:
string
...
...
@@ -7553,59 +7503,59 @@ ep-dpr-spin-lib:selectWorkScale
])
]
.
_:
b
10
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b
22
sp:
varName
"
volumeFlowRateAtStdType
"
^^
xsd:
string
.
_:
b
1
1
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b
2
1
sp:
varName
"
specificVolumeScale
"
^^
xsd:
string
.
_:
b
12
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b
20
sp:
varName
"
safetyActivityType
"
^^
xsd:
string
.
_:
b1
3
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b1
9
sp:
varName
"
productionFlowPurposeType
"
^^
xsd:
string
.
_:
b1
4
sp:
varName
"
densityScal
e"
^^
xsd:
string
.
_:
b1
8
sp:
varName
"
productionFlowDirectionRelationshipTyp
e"
^^
xsd:
string
.
_:
b1
5
sp:
varName
"productionF
acility
Type"
^^
xsd:
string
.
_:
b1
7
sp:
varName
"productionF
lowDirectionRelationship
Type"
^^
xsd:
string
.
_:
b16
sp:
varName
"productionFlowDefinitionType"
^^
xsd:
string
.
_:
b1
7
sp:
varName
"productionF
lowDirectionRelationship
Type"
^^
xsd:
string
.
_:
b1
5
sp:
varName
"productionF
acility
Type"
^^
xsd:
string
.
_:
b1
8
sp:
varName
"
productionFlowDirectionRelationshipTyp
e"
^^
xsd:
string
.
_:
b1
4
sp:
varName
"
densityScal
e"
^^
xsd:
string
.
_:
b1
9
sp:
varName
"
productionFlowPurposeType
"
^^
xsd:
string
.
_:
b1
3
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b
20
sp:
varName
"
safetyActivityType
"
^^
xsd:
string
.
_:
b
12
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b
2
1
sp:
varName
"
specificVolumeScale
"
^^
xsd:
string
.
_:
b
1
1
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b
22
sp:
varName
"
volumeFlowRateAtStdType
"
^^
xsd:
string
.
_:
b
10
sp:
varName
"
uri
"
^^
xsd:
string
.
_:
b
1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
9
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
2
sp:
varName
"UUID
"
^^
xsd:
string
.
_:
b
8
sp:
varName
"uri
"
^^
xsd:
string
.
_:
b
3
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
7
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
4
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
6
sp:
varName
"uri"
^^
xsd:
string
.
_:
b5
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
6
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
4
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
7
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
3
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
8
sp:
varName
"uri
"
^^
xsd:
string
.
_:
b
2
sp:
varName
"UUID
"
^^
xsd:
string
.
_:
b
9
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
1
sp:
varName
"uri"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1.ttl
View file @
7a27ff4
...
...
@@ -19,46 +19,25 @@
<http://www.epim.no/schemas/mprml/1#Cs_geographicContext>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90105 Set the geographic context - offshore location"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/geography#OffshoreLocation>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"locationOfProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"quadrant"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#hasNorthSeaQuadrantId>
;
sp:
subject
[
sp:
varName
"locationOfProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"blockSuffix"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#hasNorthSeaBlockSuffixId>
;
sp:
subject
[
sp:
varName
"locationOfProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"areaName"
^^
xsd:
string
rdfs:
comment
"STEP 90103 Set the geographic context - state"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"state"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#
hasAreaName>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#
locatedWithin>
;
sp:
subject
[
sp:
varName
"
locationOfProductionFacility"
^^
xsd:
string
[
sp:
varName
"
temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"areaNameNorthSeaOffshore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#hasNorthSeaAreaName>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/geography#State>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
locationOfProductionFacility"
^^
xsd:
string
[
sp:
varName
"
state"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
commentOffshoreLocation"
^^
xsd:
string
[
sp:
varName
"
stateName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
geography#hasOffshoreLocationComment>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#name>
;
sp:
subject
[
sp:
varName
"
locationOfProductionFacility"
^^
xsd:
string
[
sp:
varName
"
state"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
...
...
@@ -67,60 +46,70 @@
[
sp:
varName
"target"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
offshoreLocationRef"
^^
xsd:
string
[
sp:
varName
"
stateName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
offshoreLocationRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
state>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
northSeaOffshoreRef"
^^
xsd:
string
[
sp:
varName
"
target"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#northSeaOffshoreRef>
;
sp:
predicate
<http://www.
reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
offshoreLocationRef"
^^
xsd:
string
[
sp:
varName
"
temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"quadrant"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#quadrant>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"northSeaOffshoreRef"
^^
xsd:
string
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"stateName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"areaNameNorthSeaOffshore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#areaName>
;
sp:
subject
[
sp:
varName
"northSeaOffshoreRef"
^^
xsd:
string
sp:
variable
[
sp:
varName
"normalizedStateName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildStateURI
;
sp:
arg1
[
sp:
varName
"normalizedStateName"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"blockSuffix"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#blockSuffix>
;
sp:
subject
[
sp:
varName
"northSeaOffshoreRef"
^^
xsd:
string
sp:
variable
[
sp:
varName
"state"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"areaName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#areaName>
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90104 Set the geographic context - field"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"field"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
subject
[
sp:
varName
"offshoreLocationRef"
^^
xsd:
string
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"commentOffshoreLocation"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#geographicContextRef>
;
sp:
subject
[
sp:
varName
"target"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fieldRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#comment>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#fieldRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"fieldName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"offshoreLocationRef"
^^
xsd:
string
[
sp:
varName
"fieldRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"target"
^^
xsd:
string
]
;
...
...
@@ -133,44 +122,56 @@
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
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
"locationOfProductionFacility"
^^
xsd:
string
[
sp:
varName
"fieldName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt>
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
[
sp:
varName
"field"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90101 Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt>
;
rdfs:
comment
"STEP 90102 Set the geographic context - country"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"country"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/geography#
PartOfTheSurfaceOfTheEarth>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/geography#
Country>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
sp:
subject
[
sp:
varName
"country"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"co
mment"
^^
xsd:
string
[
sp:
varName
"co
untryName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#description>
;
sp:
subject
_:
b1
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"country"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#geographicContextRef>
;
sp:
subject
[
sp:
varName
"target"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"comment"
^^
xsd:
string
]
[
sp:
object
[
sp:
varName
"countryName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#comment>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#country>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"target"
^^
xsd:
string
]
;
...
...
@@ -183,6 +184,24 @@
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"countryName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedCountryName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildCountryURI
;
sp:
arg1
[
sp:
varName
"normalizedCountryName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"country"
^^
xsd:
string
]
])
]
;
spin:
rule
...
...
@@ -261,37 +280,33 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90102 Set the geographic context - country"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"country"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
rdfs:
comment
"STEP 90101 Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/geography#
Country>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/geography#
PartOfTheSurfaceOfTheEarth>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"country"
^^
xsd:
string
]
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"co
untryName"
^^
xsd:
string
[
sp:
varName
"co
mment"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"country"
^^
xsd:
string
]
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#description>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#geographicContextRef>
;
sp:
subject
[
sp:
varName
"target"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"countryName"
^^
xsd:
string
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"comment"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#country>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#comment>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"target"
^^
xsd:
string
]
;
...
...
@@ -304,47 +319,50 @@
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"countryName"
^^
xsd:
string
]
])
]
;
sp:
variable
[
sp:
varName
"normalizedCountryName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildCountryURI
;
sp:
arg1
[
sp:
varName
"normalizedCountryName"
^^
xsd:
string
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90105 Set the geographic context - offshore location"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/geography#OffshoreLocation>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"locationOfProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"quadrant"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"country"
^^
xsd:
string
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#hasNorthSeaQuadrantId>
;
sp:
subject
[
sp:
varName
"locationOfProductionFacility"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"blockSuffix"
^^
xsd:
string
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90103 Set the geographic context - state"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"country"
^^
xsd:
string
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#hasNorthSeaBlockSuffixId>
;
sp:
subject
[
sp:
varName
"locationOfProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"areaName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#
locatedWithin>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#
hasAreaName>
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility"
^^
xsd:
string
[
sp:
varName
"
locationOfProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/geography#State>
;
sp:
predicate
rdf:
type
;
]
[
sp:
object
[
sp:
varName
"areaNameNorthSeaOffshore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#hasNorthSeaAreaName>
;
sp:
subject
[
sp:
varName
"
country"
^^
xsd:
string
[
sp:
varName
"
locationOfProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
stateName"
^^
xsd:
string
[
sp:
varName
"
commentOffshoreLocation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#name>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
geography#hasOffshoreLocationComment>
;
sp:
subject
[
sp:
varName
"
country"
^^
xsd:
string
[
sp:
varName
"
locationOfProductionFacility"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
...
...
@@ -353,70 +371,60 @@
[
sp:
varName
"target"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
stateName"
^^
xsd:
string
[
sp:
varName
"
offshoreLocationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
state>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
offshoreLocationRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
target"
^^
xsd:
string
[
sp:
varName
"
northSeaOffshoreRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#northSeaOffshoreRef>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"countryName"
^^
xsd:
string
[
sp:
varName
"offshoreLocationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"quadrant"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"normalizedCountryName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildCountryURI
;
sp:
arg1
[
sp:
varName
"normalizedCountryName"
^^
xsd:
string
sp:
predicate
<http://www.epim.no/schemas/mprml/1#quadrant>
;
sp:
subject
[
sp:
varName
"northSeaOffshoreRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"areaNameNorthSeaOffshore"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"country"
^^
xsd:
string
sp:
predicate
<http://www.epim.no/schemas/mprml/1#areaName>
;
sp:
subject
[
sp:
varName
"northSeaOffshoreRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"blockSuffix"
^^
xsd:
string
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90104 Set the geographic context - field"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"field"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#blockSuffix>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
[
sp:
varName
"northSeaOffshoreRef"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#geographicContextRef>
;
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"areaName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#areaName>
;
sp:
subject
[
sp:
varName
"target"
^^
xsd:
string
[
sp:
varName
"offshoreLocationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fieldRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#fieldRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"fieldName"
^^
xsd:
string
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"commentOffshoreLocation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#comment>
;
sp:
subject
[
sp:
varName
"fieldRef"
^^
xsd:
string
[
sp:
varName
"offshoreLocationRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"target"
^^
xsd:
string
]
;
...
...
@@ -429,25 +437,17 @@
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
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:
varName
"locationOfProductionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt>
;
sp:
subject
[
sp:
varName
"field"
^^
xsd:
string
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
.
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/
transform/transform-helper-schema>
,
<http://spinrdf.org/spin>
,
<http://www.epim.no/schemas/mprml/1>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/geography>
;
owl:
imports
<http://www.reportinghub.no/ep/
schema/1.0/geography>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.epim.no/schemas/mprml/1>
,
<http://spinrdf.org/spin>
,
<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