David Leal

Saving MPR work in progress

......@@ -14,11 +14,11 @@
<http://www.reportinghub.no/ep/schema/1.0/geography>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/production-core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-core:Area
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdfs:label "Compressibility"^^xsd:string ;
rdfs:subClassOf owl:Class .
......@@ -38,22 +38,22 @@ ep-core:licenceBlockHasNpdPolygonPart
rdfs:subPropertyOf ep-core:hasPart .
ep-geo:AreaCoveredByBusinessArrangement
rdf:type ep-fac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
rdfs:label "A part of the earth recognised in a Business Arrangement"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:LicenceBlock , ep-geo:State , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country .
owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:State , ep-geo:LicenceBlock .
ep-geo:Country
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
rdf:type ep-fac:ProductionFacilityType , owl:Class ;
rdfs:label "country"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:State .
owl:disjointWith ep-geo:State , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement .
ep-geo:County
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
rdf:type ep-fac:ProductionFacilityType , owl:Class ;
rdfs:label "county"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:State , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country .
owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:State , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement .
ep-geo:DestinationType
rdf:type rdfs:Class ;
......@@ -61,7 +61,7 @@ ep-geo:DestinationType
rdfs:subClassOf owl:Class .
ep-geo:Harbour
rdf:type ep-geo:DestinationType , owl:Class ;
rdf:type owl:Class , ep-geo:DestinationType ;
rdfs:label "harbour"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth .
......@@ -80,7 +80,7 @@ ep-geo:OffshoreLocation
ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon
rdf:type owl:Class ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:Country , ep-geo:State .
owl:disjointWith ep-geo:State , ep-geo:Country , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement .
ep-geo:PartOfTheSurfaceOfTheEarth
rdf:type owl:Class ;
......@@ -88,15 +88,15 @@ ep-geo:PartOfTheSurfaceOfTheEarth
rdfs:subClassOf ep-core:PhysicalObject .
ep-geo:State
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
rdf:type ep-fac:ProductionFacilityType , owl:Class ;
rdfs:label "state"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country .
owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement .
ep-geo:Terminal
rdf:type ep-geo:DestinationType , owl:Class ;
rdf:type owl:Class , ep-geo:DestinationType ;
rdfs:label "terminal"^^xsd:string ;
rdfs:subClassOf ep-fac:Facility , ep-geo:PartOfTheSurfaceOfTheEarth .
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth , ep-fac:Facility .
ep-geo:areaOnSurfaceOfEarth
rdf:type owl:ObjectProperty ;
......@@ -119,12 +119,12 @@ ep-geo:hasNorthSeaAreaName
rdfs:label "has North Sea area name"^^xsd:string .
ep-geo:hasNorthSeaBlockSuffixId
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-geo:OffshoreLocation ;
rdfs:label "has North Sea block suffix ID"^^xsd:string .
ep-geo:hasNorthSeaQuadrantId
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-geo:OffshoreLocation ;
rdfs:label "has North Sea quadrant ID"^^xsd:string .
......
......@@ -5,6 +5,7 @@
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@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#> .
......@@ -16,50 +17,44 @@
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc.
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 "field"^^xsd:string
[ sp:varName "company"^^xsd:string
]
] [ sp:object
[ sp:varName "fieldName"^^xsd:string
[ 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_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: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_field-area> ;
]) ([ 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 "fieldName"^^xsd:string
[ 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/ep/schema/facility#Field> ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "field"^^xsd:string
[ sp:varName "company"^^xsd:string
]
] [ sp:object
[ sp:varName "fieldName"^^xsd:string
[ sp:varName "companyName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "field"^^xsd:string
[ sp:varName "company"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
......@@ -67,39 +62,39 @@ 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
rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\"
Nothing is done with the namingSystem!"""^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "platform"^^xsd:string
[ sp:varName "well"^^xsd:string
]
] [ sp:object
[ sp:varName "platformName"^^xsd:string
[ sp:varName "wellName"^^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 ([ 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 "platformName"^^xsd:string
[ sp:varName "wellName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "platform"^^xsd:string
[ sp:varName "well"^^xsd:string
]
] [ sp:object
[ sp:varName "platformName"^^xsd:string
[ sp:varName "wellName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "platform"^^xsd:string
[ sp:varName "well"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
......@@ -107,39 +102,44 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"licence\"
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 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "licence"^^xsd:string
[ sp:varName "company"^^xsd:string
]
] [ sp:object
[ sp:varName "licenceName"^^xsd:string
[ sp:varName "companyName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject spin:_this
]) ;
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: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 "licenceName"^^xsd:string
[ 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#Licence> ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "licence"^^xsd:string
[ sp:varName "company"^^xsd:string
]
] [ sp:object
[ sp:varName "licenceName"^^xsd:string
[ sp:varName "companyName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "licence"^^xsd:string
[ sp:varName "company"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
......@@ -147,44 +147,50 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] ;
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
rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc.
Nothing is done with the namingSystem!"""^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "company"^^xsd:string
[ sp:varName "field"^^xsd:string
]
] [ sp:object
[ sp:varName "companyName"^^xsd:string
[ sp:varName "fieldName"^^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_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_commercialentity> ;
]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject spin:_this
]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject spin:_this
]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject spin:_this
]))
] [ sp:object
[ sp:varName "companyName"^^xsd:string
[ sp:varName "fieldName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "company"^^xsd:string
[ sp:varName "field"^^xsd:string
]
] [ sp:object
[ sp:varName "companyName"^^xsd:string
[ sp:varName "fieldName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "company"^^xsd:string
[ sp:varName "field"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
......@@ -192,44 +198,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany
rdfs:comment """STEP 00009 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 "company"^^xsd:string
[ sp:varName "licence"^^xsd:string
]
] [ sp:object
[ sp:varName "companyName"^^xsd:string
[ sp:varName "licenceName"^^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: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 "companyName"^^xsd:string
[ sp:varName "licenceName"^^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#Licence> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "company"^^xsd:string
[ sp:varName "licence"^^xsd:string
]
] [ sp:object
[ sp:varName "companyName"^^xsd:string
[ sp:varName "licenceName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "company"^^xsd:string
[ sp:varName "licence"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
......@@ -237,39 +238,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\"
rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\"
Nothing is done with the namingSystem!"""^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "well"^^xsd:string
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "wellName"^^xsd:string
[ sp:varName "wellBoreName"^^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_wellbore> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellName"^^xsd:string
[ sp:varName "wellBoreName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "well"^^xsd:string
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "wellName"^^xsd:string
[ sp:varName "wellBoreName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "well"^^xsd:string
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
......@@ -277,31 +278,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 00001a Record the Facility that has the flows - kind is \"field\", etc.
Nothing is done with the namingSystem!
?field ep-core:derivedFrom ?this .
?this rdfs:label ?fieldName ."""^^xsd:string ;
sp:templates () ;
sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
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 "fieldName"^^xsd:string
[ 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#Field> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "field"^^xsd:string
[ sp:varName "platform"^^xsd:string
]
] [ sp:object
[ sp:varName "fieldName"^^xsd:string
[ sp:varName "platformName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "field"^^xsd:string
[ sp:varName "platform"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
......@@ -309,39 +318,95 @@ Nothing is done with the namingSystem!
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\"
rdfs:comment """STEP 00010 Record the Facility that has the flows - not in the NPD Fact Pages
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:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "facilityName"^^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: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
]
])
] [ 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 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 "wellBore"^^xsd:string
[ sp:varName "platform"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBoreName"^^xsd:string
[ 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_wellbore> ;
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 "wellBoreName"^^xsd:string
[ 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/well#WellBore> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
[ sp:varName "platform"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBoreName"^^xsd:string
[ sp:varName "platformName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
[ sp:varName "platform"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
......@@ -412,46 +477,6 @@ Nothing is done with the namingSystem!"""^^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>
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1>
......