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-27 20:18:44 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
98510305dc9e4b6d46c2623751270d800a32f765
98510305
1 parent
93076d76
Update the the processing of organization in the MPR
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
687 additions
and
129 deletions
www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector-v1.0.ttl
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-organization-v.1.1.1.ttl.tbc
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
www.reportinghub.no/test/mpr/testcase/complete_population_of_mpr_productVolume_data.xml
www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector-v1.0.ttl
View file @
9851030
...
...
@@ -6,6 +6,7 @@
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
...
...
@@ -14,6 +15,7 @@
@prefix
TRANSFORM_mpr-facility-v1:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#>
.
@prefix
TRANSFORM_mpr-facilityIdentifierStructure-v1
.1
:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#>
.
@prefix
TRANSFORM_mpr-fluidSample-v1:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#>
.
@prefix
TRANSFORM_mpr-organization-v1
.1
:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#>
.
@prefix
TRANSFORM_mpr-productVolume-v1:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#>
.
@prefix
TRANSFORM_mpr-productVolumeReport-v1:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#>
.
@prefix
TRANSFORM_mpr-productionReport-v1:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#>
.
...
...
@@ -34,5 +36,5 @@
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
,
<http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0>
,
<http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1>
;
owl:
imports
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
,
<http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-
organization-v1.1.1>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-
productVolume-v1.0>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0>
,
<http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1.ttl
View file @
9851030
...
...
@@ -17,44 +17,65 @@
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
8 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany
rdfs:
comment
"""STEP 0000
6 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc.
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"
company
"
^^
xsd:
string
[
sp:
varName
"
tuf
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
company
Name"
^^
xsd:
string
[
sp:
varName
"
tuf
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_
company
>
;
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_commercialentity>
;
])
([
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
"
company
Name"
^^
xsd:
string
[
sp:
varName
"
tuf
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#
ParentCompany
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#
TUF
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
company
"
^^
xsd:
string
[
sp:
varName
"
tuf
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
company
Name"
^^
xsd:
string
[
sp:
varName
"
tuf
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
company
"
^^
xsd:
string
[
sp:
varName
"
tuf
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
...
...
@@ -62,39 +83,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
2 Record the Facility that has the flows - kind is \"wellbore
\"
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
[
sp:
varName
"well
Bore
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellName"
^^
xsd:
string
[
sp:
varName
"well
Bore
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_well
bore
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"wellName"
^^
xsd:
string
[
sp:
varName
"well
Bore
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#Well>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#Well
Bore
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
[
sp:
varName
"well
Bore
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellName"
^^
xsd:
string
[
sp:
varName
"well
Bore
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
[
sp:
varName
"well
Bore
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
...
...
@@ -147,50 +168,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
1 Record the Facility that has the flows - kind is \"field\", 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
"
field
"
^^
xsd:
string
[
sp:
varName
"
well
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
field
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_field>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-part>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-group>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field-area>
;
sp:
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
"
field
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/ep/schema/
facility#Field
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/
well#Well
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
field
"
^^
xsd:
string
[
sp:
varName
"
well
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
field
Name"
^^
xsd:
string
[
sp:
varName
"
well
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
field
"
^^
xsd:
string
[
sp:
varName
"
well
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
...
...
@@ -238,42 +248,117 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 000
02 Record the Facility that has the flows - kind is \"wellbore\"
rdfs:
comment
"""STEP 000
11 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#Facility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b1
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"
wellBore
Name"
^^
xsd:
string
[
sp:
varName
"
facility
Name"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_wellbore>
;
sp:
where
([
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"
wellBore
Name"
^^
xsd:
string
[
sp:
varName
"
facility
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#WellBore>
;
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectProductionFacilityType
;
sp:
arg1
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 00010 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
])
;
sp:
where
([
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"aFacilityIdentifierStructure"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wellBo
re"
^^
xsd:
string
[
sp:
varName
"aFacilityIdentifierStructu
re"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreNam
e"
^^
xsd:
string
[
sp:
varName
"productionFacilityTyp
e"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
[
sp:
varName
"facility"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectProductionFacilityType
;
sp:
arg1
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
])
]
;
spin:
rule
...
...
@@ -318,95 +403,84 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 000
10 Record the Facility that has the flows - not in the NPD Fact Pages
rdfs:
comment
"""STEP 000
04 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
<http://www.reportinghub.no/ep/schema/facility#Facility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"productionFacilityType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"facilityName"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b1
]
[
sp:
object
spin:
_this
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
_:
b1
sp:
subject
[
sp:
varName
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
facility
Name"
^^
xsd:
string
[
sp:
varName
"
platform
Name"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
spin:
_this
])
;
sp:
where
([
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"facilityKind"
^^
xsd:
string
]
;
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
"
facility
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:
N
otExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
]
[
rdf:
type
sp:
N
amedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#MoveableFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectProductionFacilityType
;
sp:
arg1
[
sp:
varName
"facilityKind"
^^
xsd:
string
[
sp:
varName
"platform"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"platformName"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"productionFacilityType"
^^
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 0000
4 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacilit
y
rdfs:
comment
"""STEP 0000
8 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompan
y
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:
varName
"
company
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platform
Name"
^^
xsd:
string
[
sp:
varName
"
company
Name"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_platform>
;
sp:
where
([
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_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
"
platform
Name"
^^
xsd:
string
[
sp:
varName
"
company
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
ep/schema/facility#MoveableFacilit
y>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
np/schema/npd#ParentCompan
y>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
platform
"
^^
xsd:
string
[
sp:
varName
"
company
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
platform
Name"
^^
xsd:
string
[
sp:
varName
"
company
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
platform
"
^^
xsd:
string
[
sp:
varName
"
company
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
...
...
@@ -414,65 +488,50 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 0000
6 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation
\", etc.
rdfs:
comment
"""STEP 0000
1 Record the Facility that has the flows - kind is \"field
\", etc.
Nothing is done with the namingSystem!"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
[
sp:
varName
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
field
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
tuf
Name"
^^
xsd:
string
[
sp:
varName
"
field
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:
elements
(([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
trunkline
>
;
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
field-part
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
storage
>
;
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
field-group
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
plant-processing
>
;
])
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
field-area
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]))
]
[
sp:
object
[
sp:
varName
"
tuf
Name"
^^
xsd:
string
[
sp:
varName
"
field
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NamedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
np/schema/npd#TUF
>
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/
ep/schema/facility#Field
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
field
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
tuf
Name"
^^
xsd:
string
[
sp:
varName
"
field
Name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
[
sp:
varName
"
tuf
"
^^
xsd:
string
[
sp:
varName
"
field
"
^^
xsd:
string
]
])
;
sp:
graphNameNode
<http://www.reportinghub.no/np/data/npd>
...
...
@@ -481,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://
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-organization-v.1.1.1.ttl
0 → 100644
View file @
9851030
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@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#>
.
@prefix
rhspin:
<http://www.reportinghub.no/spin/rh#>
.
@prefix
sp:
<http://spinrdf.org/sp#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.epim.no/schemas/mprml/1#RefNameString>
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
;
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:
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
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
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#ownerRef>
;
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
npd:
ParentCompany
;
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
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00026 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:
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
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
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00027 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#ownerRef>
;
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
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00024 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
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#buyerRef>
;
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:
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 00032 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
_:
b2
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b2
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
_:
b2
])
;
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:
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 00022 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#buyerRef>
;
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
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
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00021 Set organization - parent company in NPD fact pages"
^^
xsd:
string
;
sp:
templates
()
;
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:
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
npd:
ParentCompany
;
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
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00028 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
_:
b3
]
[
sp:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b3
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#derivedFrom>
;
sp:
subject
_:
b3
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#ownerRef>
;
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:
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 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
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
])
]
;
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
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00029 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#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
npd:
ParentCompany
;
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
])
]
.
<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:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v.1.1.1.ttl.tbc
0 → 100644
View file @
9851030
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
@prefix
forms:
<http://www.topbraid.org/2007/01/forms.owl#>
.
@prefix
inference:
<http://www.topbraid.org/2007/06/inference.owl#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
visual:
<http://topbraid.org/visual#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
[]
rdf:
type
inference:
Configuration
;
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
composite:
index
"0"
^^
xsd:
int
]
.
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
View file @
9851030
This diff could not be displayed because it is too large.
www.reportinghub.no/test/mpr/testcase/complete_population_of_mpr_productVolume_data.xml
View file @
9851030
...
...
@@ -142,7 +142,9 @@
<pres
uom=
"atm"
>
1
</pres>
</densityValue>
<balanceDetail>
<owner>
Bayerngas Norge AS
</owner>
<owner>
BAYERN
</owner>
<seller>
BAYERN
</seller>
<buyer>
Bayerngas Norge AS
</buyer>
<share
uom=
"%"
>
100.0
</share>
<volumeValue>
<volume
uom=
"m3"
>
743
</volume>
...
...
Please
register
or
login
to post a comment