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-03-28 12:19:04 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d37c1031d645a681dbccfda93c2e6c78ed77cedb
d37c1031
1 parent
feae291f
Better processing of MPR organizations and facilities
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1407 additions
and
1287 deletions
www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v.1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1.ttl
View file @
d37c103
...
...
@@ -17,65 +17,39 @@
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
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/schema/core#derivedFrom>
;
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
rdfs:
label
;
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:
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:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
...
...
@@ -123,6 +97,46 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00003 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/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"platformName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
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#SurfaceFixedFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"platformName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00007 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
;
...
...
@@ -168,39 +182,39 @@ Nothing is done with the namingSystem!"""^^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
9 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/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"
well
"
^^
xsd:
string
[
sp:
varName
"
licence
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
well
Name"
^^
xsd:
string
[
sp:
varName
"
licence
Name"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
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_
licence
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
well
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/well#Well
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
np/schema/npd#Licence
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
well
"
^^
xsd:
string
[
sp:
varName
"
licence
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
well
Name"
^^
xsd:
string
[
sp:
varName
"
licence
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
well
"
^^
xsd:
string
[
sp:
varName
"
licence
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
...
...
@@ -208,39 +222,150 @@ Nothing is done with the namingSystem!"""^^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
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/schema/core#derivedFrom>
;
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
rdfs:
label
;
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#MoveableFacility
>
;
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:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
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/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"tuf"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"tufName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
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:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
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 ParentCompany
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"company"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"companyName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
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#ParentCompany>
;
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:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
...
...
@@ -261,7 +386,7 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b1
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
...
...
@@ -363,131 +488,6 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00003 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/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"platformName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
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#SurfaceFixedFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"platformName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
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/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"platformName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
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
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"platformName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
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 ParentCompany
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"company"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"companyName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
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#ParentCompany>
;
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:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
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
;
...
...
@@ -540,5 +540,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1>
rdf:
type
owl:
Ontology
;
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
>
;
owl:
imports
<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:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v.1.1.1.ttl
View file @
d37c103
...
...
@@ -6,8 +6,6 @@
@prefix
:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@prefix
npd:
<http://www.reportinghub.no/ep/schema/npd#>
.
@prefix
npdata:
<http://www.reportinghub.no/ep/data/>
.
@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#>
.
...
...
@@ -17,25 +15,63 @@
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.epim.no/schemas/mprml/1#
RefNameString
>
<http://www.epim.no/schemas/mprml/1#
Cs_businessAssociate
>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00023 Set organization - not in NPD fact pages but already defined in the file"
^^
xsd:
string
;
rdfs:
comment
"STEP 00044 Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b1
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#name>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"somethingElse"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00043 Set organization - not in NPD fact pages but already defined in the file"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#buyerRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
]
[
sp:
object
sp:
where
([
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#valu
e>
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#nam
e>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
...
...
@@ -53,25 +89,51 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 000
25 Set organization - parent
company in NPD fact pages"
^^
xsd:
string
;
rdfs:
comment
"STEP 000
42 Set organization - operating
company in NPD fact pages"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#ownerRef>
;
sp:
where
([
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#name>
;
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
"organization"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00041 Set organization - parent company in NPD fact pages"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"
something
"
^^
xsd:
string
[
sp:
varName
"
organization
"
^^
xsd:
string
]
]
[
sp:
object
])
;
sp:
where
([
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#valu
e>
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#nam
e>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
npd:
ParentCompany
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#ParentCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -79,14 +141,16 @@
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
npd:
name
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
npdata:
npd
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
]
.
<http://www.epim.no/schemas/mprml/1#RefNameString>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00026 Set organization - operating company in NPD fact pages"
^^
xsd:
string
;
...
...
@@ -107,7 +171,7 @@
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
npd:
OperatingCompany
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -115,17 +179,17 @@
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
npd:
name
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
npdata:
npd
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0002
7 Set organization - not in NPD fact pages but already defined in the file
"
^^
xsd:
string
;
rdfs:
comment
"STEP 0002
2 Set organization - operating company in NPD fact pages
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
...
...
@@ -133,7 +197,7 @@
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
own
erRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
buy
erRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -142,37 +206,40 @@
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 000
24
Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
rdfs:
comment
"STEP 000
32
Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
1
sp:
subject
_:
b
2
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b
1
sp:
subject
_:
b
2
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
_:
b
1
sp:
subject
_:
b
2
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
buy
erRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
sell
erRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -206,21 +273,21 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 000
32
Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
rdfs:
comment
"STEP 000
28
Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
2
sp:
subject
_:
b
3
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b
2
sp:
subject
_:
b
3
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
_:
b
2
sp:
subject
_:
b
3
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
sell
erRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
own
erRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -254,7 +321,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0002
2 Set organization - operating
company in NPD fact pages"
^^
xsd:
string
;
rdfs:
comment
"STEP 0002
1 Set organization - parent
company in NPD fact pages"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
...
...
@@ -272,7 +339,7 @@
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
npd:
OperatingCompany
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#ParentCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -280,20 +347,25 @@
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
npd:
name
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
npdata:
npd
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00021 Set organization - parent company in NPD fact pages"
^^
xsd:
string
;
sp:
templates
()
;
rdfs:
comment
"STEP 00025 Set organization - parent company in NPD fact pages"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
buy
erRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
own
erRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -303,7 +375,7 @@
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
npd:
ParentCompany
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#ParentCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -311,31 +383,31 @@
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
npd:
name
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
npdata:
npd
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0002
8
Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
rdfs:
comment
"STEP 0002
4
Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
3
sp:
subject
_:
b
4
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b
3
sp:
subject
_:
b
4
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
_:
b
3
sp:
subject
_:
b
4
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
own
erRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
buy
erRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -369,7 +441,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 000
30 Set organization - operating company in NPD fact pages
"
^^
xsd:
string
;
rdfs:
comment
"STEP 000
23 Set organization - not in NPD fact pages but already defined in the file
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
...
...
@@ -377,7 +449,7 @@
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
sell
erRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
buy
erRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -386,26 +458,23 @@
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
npd:
OperatingCompany
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
npd:
name
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
npdata:
npd
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 000
31
Set organization - not in NPD fact pages but already defined in the file"
^^
xsd:
string
;
rdfs:
comment
"STEP 000
27
Set organization - not in NPD fact pages but already defined in the file"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
...
...
@@ -413,7 +482,7 @@
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
sell
erRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
own
erRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -456,7 +525,7 @@
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
npd:
ParentCompany
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#ParentCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -464,16 +533,85 @@
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
npd:
name
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
npdata:
npd
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00030 Set organization - operating company in NPD fact pages"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#sellerRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
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
"organization"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00031 Set organization - not in NPD fact pages but already defined in the file"
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#sellerRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
]
])
]
.
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1>
rdf:
type
owl:
Ontology
;
owl:
imports
<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
>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0.ttl
View file @
d37c103
This diff could not be displayed because it is too large.
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0.ttl
View file @
d37c103
...
...
@@ -19,6 +19,67 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10010 Add the contextFacility"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"contextFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"contectFacilityRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextFacilityRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"contextFacilityRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"contextFacility"
^^
xsd:
string
]
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001c Create the interval identifier - date from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
...
...
@@ -65,10 +126,8 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001d Create the interval identifier - dateEnd from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
rdfs:
comment
"STEP 10001e Create the interval identifier - no date"
^^
xsd:
string
;
sp:
templates
([
sp:
object
"noDate"
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier>
;
sp:
subject
spin:
_this
])
;
...
...
@@ -82,13 +141,15 @@
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
...
...
@@ -111,120 +172,108 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001p Create the ProductionReport - no installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
;
rdfs:
comment
"STEP 10001d Create the interval identifier - dateEnd from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
productionReport
"
^^
xsd:
string
[
sp:
varName
"
contextRef
"
^^
xsd:
string
]
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"
productionReport
"
^^
xsd:
string
[
sp:
varName
"
contextRef
"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productionOperation>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#valu
e>
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#dat
e>
;
sp:
subject
[
sp:
varName
"
installation
Ref"
^^
xsd:
string
[
sp:
varName
"
context
Ref"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
installationRef
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
dateStart
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
"noInstallation"
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10020 Add the operator"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/facility#facilityOperator>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"operator"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"normalizedName"
^^
xsd:
string
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildProductionReportURI
;
sp:
arg1
[
sp:
varName
"normalizedName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"operatorRef"
^^
xsd:
string
]
;
sp:
variable
sp:
predicate
<http://www.epim.no/schemas/mprml/1#operatorRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"operatorRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"operator"
^^
xsd:
string
]
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
])
]
;
spin:
rule
...
...
@@ -275,12 +324,25 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001
m Create the ProductionReport - extract the name from context
/installation"
^^
xsd:
string
;
rdfs:
comment
"STEP 10001
o Create the ProductionReport - extract the name from productVolume
/installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
[
sp:
varName
"installation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b2
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
...
...
@@ -293,40 +355,85 @@
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
context
Ref"
^^
xsd:
string
[
sp:
varName
"
productVolume
Ref"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
contex
tRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
objec
tRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_
report
>
;
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_
productVolume
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
context
Ref"
^^
xsd:
string
[
sp:
varName
"
productVolume
Ref"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"
context
Ref"
^^
xsd:
string
[
sp:
varName
"
productVolume
Ref"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spl:
object
;
sp:
arg1
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
arg2
rdfs:
label
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"installation"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildProductionReportURI
;
sp:
arg1
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
]
;
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productionOperation>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spl:
object
;
sp:
arg1
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
arg2
rdfs:
label
]
;
sp:
variable
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildProductionReportURI
;
sp:
arg1
[
sp:
varName
"normalizedInstallationName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionReport"
^^
xsd:
string
]
...
...
@@ -334,8 +441,10 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001e Create the interval identifier - no date"
^^
xsd:
string
;
sp:
templates
([
sp:
object
"noDate"
;
rdfs:
comment
"STEP 10001b Create the interval identifier - date and dateEnd from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier>
;
sp:
subject
spin:
_this
])
;
...
...
@@ -349,24 +458,13 @@
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
...
...
@@ -376,16 +474,47 @@
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildIntervalIdentifier
;
sp:
arg1
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001
o Create the ProductionReport - extract the name from productVolume
/installation"
^^
xsd:
string
;
rdfs:
comment
"STEP 10001
n Create the ProductionReport - extract the name from productionOperation
/installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
_:
b3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
[
sp:
varName
"installation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b3
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
...
...
@@ -398,57 +527,31 @@
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"product
Volume
Ref"
^^
xsd:
string
[
sp:
varName
"product
ionOperation
Ref"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_product
Volume
>
;
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_product
ionOperation
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"product
Volume
Ref"
^^
xsd:
string
[
sp:
varName
"product
ionOperation
Ref"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"product
Volume
Ref"
^^
xsd:
string
[
sp:
varName
"product
ionOperation
Ref"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
name
"
^^
xsd:
string
[
sp:
varName
"
installationRef
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#value
>
;
sp:
predicate
<http://www.
reportinghub.no/ep/schema/core#derivedFrom
>
;
sp:
subject
[
sp:
varName
"installation
Ref
"
^^
xsd:
string
[
sp:
varName
"installation"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productionOperation>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
...
...
@@ -459,19 +562,12 @@
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
installationRef
"
^^
xsd:
string
[
sp:
varName
"
something
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
...
...
@@ -498,123 +594,130 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001z Add the report kind, issue date and title"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"reportKind"
^^
xsd:
string
]
;
rdfs:
comment
"STEP 10001p Create the ProductionReport - no installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"kind"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"issueDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-report#issuedAt>
;
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"
contextRef
"
^^
xsd:
string
[
sp:
varName
"
intervalIdentifier
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#contextRef
>
;
sp:
predicate
<http://www.
reportinghub.no/ep/schema/production-core#intervalIdentifier
>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"
kind
"
^^
xsd:
string
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kind>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"
issueDate
"
^^
xsd:
string
[
sp:
varName
"
productionOperationRef
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#issueDate>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productionOperation>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"
title
Ref"
^^
xsd:
string
[
sp:
varName
"
context
Ref"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#titleRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
title
"
^^
xsd:
string
[
sp:
varName
"
installationRef
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#value
>
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#installationRef
>
;
sp:
subject
[
sp:
varName
"
title
Ref"
^^
xsd:
string
[
sp:
varName
"
context
Ref"
^^
xsd:
string
]
])
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"kind"
^^
xsd:
string
]
sp:
arg1
"noInstallation"
]
;
sp:
variable
[
sp:
varName
"normalized
Kind
"
^^
xsd:
string
[
sp:
varName
"normalized
Name
"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildProductionReportKindURI
;
sp:
arg1
[
sp:
varName
"normalizedKind"
^^
xsd:
string
[
rdf:
type
ep-mpr-spin-lib:
buildProductionReportURI
;
sp:
arg1
[
sp:
varName
"normalizedName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
reportKind
"
^^
xsd:
string
[
sp:
varName
"
productionReport
"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001
n Create the ProductionReport - extract the name from productionOperation
/installation"
^^
xsd:
string
;
rdfs:
comment
"STEP 10001
m Create the ProductionReport - extract the name from context
/installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
]
[
sp:
object
[
sp:
varName
"installation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b5
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
...
...
@@ -627,48 +730,29 @@
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
productionOperation
Ref"
^^
xsd:
string
[
sp:
varName
"
context
Ref"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
objec
tRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
contex
tRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_
productionOperation
>
;
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_
report
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
productionOperation
Ref"
^^
xsd:
string
[
sp:
varName
"
context
Ref"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"installation"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"installationRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spl:
object
;
...
...
@@ -694,12 +778,45 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001
b Create the interval identifier - date and dateEnd from context
"
^^
xsd:
string
;
rdfs:
comment
"STEP 10001
z Add the report kind, issue date and title
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"
intervalIdentifier
"
^^
xsd:
string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier>
;
sp:
subject
spin:
_this
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"kind"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"issueDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-report#issuedAt>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
...
...
@@ -711,44 +828,67 @@
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"
dateStart
"
^^
xsd:
string
[
sp:
varName
"
kind
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
dateStart
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
kind
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"issueDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#issueDate>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"titleRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#titleRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"titleRef"
^^
xsd:
string
]
])
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"
contextRef
"
^^
xsd:
string
[
sp:
varName
"
productionReport
"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildIntervalIdentifier
;
sp:
arg1
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dateEnd"
^^
xsd:
string
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"kind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
[
sp:
varName
"normalizedKind"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildProductionReportKindURI
;
sp:
arg1
[
sp:
varName
"normalizedKind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"reportKind"
^^
xsd:
string
]
])
]
.
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/
mpr/spin/1.1/lib>
,
<http://www.epim.no/schemas/mprml/1>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/d
pr/spin/1.1/lib>
;
owl:
imports
<http://www.reportinghub.no/ep/
dpr/spin/1.1/lib>
,
<http://spinrdf.org/spin>
,
<http://www.epim.no/schemas/mprml/1>
,
<http://www.reportinghub.no/ep/m
pr/spin/1.1/lib>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment