Fixed Production facility, production flow and product flow URIs for DPR and MPR…
…. Made small addition to geography schema.
Showing
8 changed files
with
818 additions
and
572 deletions
1 | -# baseURI: http://www.reportinghub.no/ep/schema/1.0/geography | 1 | +# Saved by TopBraid on Sun Dec 18 21:34:11 GMT 2011 |
2 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 2 | +# baseURI: http://www.reportinghub.no/ep/schema/1.0/geography |
3 | -# imports: http://www.reportinghub.no/ep/schema/1.0/facility | 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core |
4 | -# imports: http://www.reportinghub.no/ep/schema/1.0/production-core | 4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/facility |
5 | -# imports: http://www.reportinghub.no/np/schema/1.0/npd | 5 | +# imports: http://www.reportinghub.no/np/schema/1.0/npd |
6 | - | 6 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production-core |
7 | -@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . | 7 | + |
8 | -@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . | 8 | +@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . |
9 | -@prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> . | 9 | +@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . |
10 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 10 | +@prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> . |
11 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 11 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
12 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 12 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
13 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 13 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
14 | - | 14 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
15 | -<http://www.reportinghub.no/ep/schema/1.0/geography> | 15 | + |
16 | - rdf:type owl:Ontology ; | 16 | +<http://www.reportinghub.no/ep/schema/1.0/geography> |
17 | - 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> ; | 17 | + rdf:type owl:Ontology ; |
18 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 18 | + 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> ; |
19 | - | 19 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
20 | -ep-core:Area | 20 | + |
21 | - rdf:type ep-core:PropertySpace , rdfs:Class ; | 21 | +ep-core:Area |
22 | - rdfs:label "Compressibility"^^xsd:string ; | 22 | + rdf:type rdfs:Class , ep-core:PropertySpace ; |
23 | - rdfs:subClassOf owl:Class . | 23 | + rdfs:label "Compressibility"^^xsd:string ; |
24 | - | 24 | + rdfs:subClassOf owl:Class . |
25 | -ep-core:areaCoveredByBusinessArrangementHasNpdPolygonPart | 25 | + |
26 | - rdf:type owl:TransitiveProperty ; | 26 | +ep-core:areaCoveredByBusinessArrangementHasNpdPolygonPart |
27 | - rdfs:domain ep-geo:AreaCoveredByBusinessArrangement ; | 27 | + rdf:type owl:TransitiveProperty ; |
28 | - rdfs:range ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon ; | 28 | + rdfs:domain ep-geo:AreaCoveredByBusinessArrangement ; |
29 | - rdfs:subPropertyOf ep-core:hasPart . | 29 | + rdfs:range ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon ; |
30 | - | 30 | + rdfs:subPropertyOf ep-core:hasPart . |
31 | -ep-core:km2 | 31 | + |
32 | - rdfs:domain ep-core:Area . | 32 | +ep-core:km2 |
33 | - | 33 | + rdfs:domain ep-core:Area . |
34 | -ep-core:licenceBlockHasNpdPolygonPart | 34 | + |
35 | - rdf:type owl:TransitiveProperty ; | 35 | +ep-core:licenceBlockHasNpdPolygonPart |
36 | - rdfs:domain ep-geo:LicenceBlock ; | 36 | + rdf:type owl:TransitiveProperty ; |
37 | - rdfs:range ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon ; | 37 | + rdfs:domain ep-geo:LicenceBlock ; |
38 | - rdfs:subPropertyOf ep-core:hasPart . | 38 | + rdfs:range ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon ; |
39 | - | 39 | + rdfs:subPropertyOf ep-core:hasPart . |
40 | -ep-geo:AreaCoveredByBusinessArrangement | 40 | + |
41 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 41 | +ep-geo:AreaCoveredByBusinessArrangement |
42 | - rdfs:label "A part of the earth recognised in a Business Arrangement"^^xsd:string ; | 42 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
43 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 43 | + rdfs:label "A part of the earth recognised in a Business Arrangement"^^xsd:string ; |
44 | - owl:disjointWith ep-geo:LicenceBlock , ep-geo:State , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country . | 44 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
45 | - | 45 | + owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:State , ep-geo:LicenceBlock . |
46 | -ep-geo:Country | 46 | + |
47 | - rdf:type owl:Class , ep-fac:ProductionFacilityType ; | 47 | +ep-geo:Country |
48 | - rdfs:label "country"^^xsd:string ; | 48 | + rdf:type ep-fac:ProductionFacilityType , owl:Class ; |
49 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 49 | + rdfs:label "country"^^xsd:string ; |
50 | - owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:State . | 50 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
51 | - | 51 | + owl:disjointWith ep-geo:State , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement . |
52 | -ep-geo:County | 52 | + |
53 | - rdf:type owl:Class , ep-fac:ProductionFacilityType ; | 53 | +ep-geo:County |
54 | - rdfs:label "county"^^xsd:string ; | 54 | + rdf:type ep-fac:ProductionFacilityType , owl:Class ; |
55 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 55 | + rdfs:label "county"^^xsd:string ; |
56 | - owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:State , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country . | 56 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
57 | - | 57 | + owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:State , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement . |
58 | -ep-geo:LicenceBlock | 58 | + |
59 | - rdf:type owl:Class , ep-fac:ProductionFacilityType ; | 59 | +ep-geo:LicenceBlock |
60 | - rdfs:comment "See RDL RDS13025226"^^xsd:string ; | 60 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
61 | - rdfs:label "Licence Block"^^xsd:string ; | 61 | + rdfs:comment "See RDL RDS13025226"^^xsd:string ; |
62 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 62 | + rdfs:label "Licence Block"^^xsd:string ; |
63 | - owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:County , ep-geo:AreaCoveredByBusinessArrangement , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon . | 63 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
64 | - | 64 | + owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:County , ep-geo:AreaCoveredByBusinessArrangement , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon . |
65 | -ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon | 65 | + |
66 | - rdf:type owl:Class ; | 66 | +ep-geo:OffshoreLocation |
67 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 67 | + rdf:type owl:Class ; |
68 | - owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:Country , ep-geo:State . | 68 | + rdfs:label "offshore location"^^xsd:string ; |
69 | - | 69 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth . |
70 | -ep-geo:PartOfTheSurfaceOfTheEarth | 70 | + |
71 | - rdf:type owl:Class ; | 71 | +ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon |
72 | - rdfs:label "part of the surface of the earth, including airspace above and earth/sea below"^^xsd:string ; | 72 | + rdf:type owl:Class ; |
73 | - rdfs:subClassOf ep-core:PhysicalObject . | 73 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
74 | - | 74 | + owl:disjointWith ep-geo:State , ep-geo:Country , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement . |
75 | -ep-geo:State | 75 | + |
76 | - rdf:type owl:Class , ep-fac:ProductionFacilityType ; | 76 | +ep-geo:PartOfTheSurfaceOfTheEarth |
77 | - rdfs:label "state"^^xsd:string ; | 77 | + rdf:type owl:Class ; |
78 | - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 78 | + rdfs:label "part of the surface of the earth, including airspace above and earth/sea below"^^xsd:string ; |
79 | - owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country . | 79 | + rdfs:subClassOf ep-core:PhysicalObject . |
80 | - | 80 | + |
81 | -ep-geo:areaOnSurfaceOfEarth | 81 | +ep-geo:State |
82 | - rdf:type owl:ObjectProperty ; | 82 | + rdf:type ep-fac:ProductionFacilityType , owl:Class ; |
83 | - rdfs:domain ep-geo:PartOfTheSurfaceOfTheEarth ; | 83 | + rdfs:label "state"^^xsd:string ; |
84 | - rdfs:range ep-core:Area . | 84 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
85 | - | 85 | + owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement . |
86 | -ep-geo:businessArrangementGoverningArea | 86 | + |
87 | - rdf:type owl:ObjectProperty ; | 87 | +ep-geo:areaOnSurfaceOfEarth |
88 | - rdfs:domain ep-geo:AreaCoveredByBusinessArrangement ; | 88 | + rdf:type owl:ObjectProperty ; |
89 | - rdfs:range <http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea> . | 89 | + rdfs:domain ep-geo:PartOfTheSurfaceOfTheEarth ; |
90 | - | 90 | + rdfs:range ep-core:Area . |
91 | -ep-geo:locatedWithin | 91 | + |
92 | - rdf:type owl:ObjectProperty ; | 92 | +ep-geo:businessArrangementGoverningArea |
93 | - rdfs:domain ep-core:PhysicalThing ; | 93 | + rdf:type owl:ObjectProperty ; |
94 | - rdfs:label "located within"^^xsd:string ; | 94 | + rdfs:domain ep-geo:AreaCoveredByBusinessArrangement ; |
95 | - rdfs:range ep-core:PhysicalObject . | 95 | + rdfs:range <http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea> . |
96 | - | 96 | + |
97 | -ep-geo:nominallyLocatedAt | 97 | +ep-geo:hasAreaName |
98 | - rdf:type owl:ObjectProperty ; | 98 | + rdf:type owl:DatatypeProperty ; |
99 | - rdfs:domain ep-core:PhysicalThing ; | 99 | + rdfs:domain ep-geo:OffshoreLocation ; |
100 | - rdfs:label "nominally located at"^^xsd:string ; | 100 | + rdfs:label "has area name"^^xsd:string . |
101 | - rdfs:range ep-core:PhysicalObject . | 101 | + |
102 | +ep-geo:hasNorthSeaAreaName | ||
103 | + rdf:type owl:DatatypeProperty ; | ||
104 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
105 | + rdfs:label "has North Sea area name"^^xsd:string . | ||
106 | + | ||
107 | +ep-geo:hasNorthSeaBlockSuffixId | ||
108 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
109 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
110 | + rdfs:label "has North Sea block suffix ID"^^xsd:string . | ||
111 | + | ||
112 | +ep-geo:hasNorthSeaQuadrantId | ||
113 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
114 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
115 | + rdfs:label "has North Sea quadrant ID"^^xsd:string . | ||
116 | + | ||
117 | +ep-geo:hasOffshoreLocationComment | ||
118 | + rdf:type owl:DatatypeProperty ; | ||
119 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
120 | + rdfs:label "has offshore location comment"^^xsd:string . | ||
121 | + | ||
122 | +ep-geo:locatedWithin | ||
123 | + rdf:type owl:ObjectProperty ; | ||
124 | + rdfs:domain ep-core:PhysicalThing ; | ||
125 | + rdfs:label "located within"^^xsd:string ; | ||
126 | + rdfs:range ep-core:PhysicalObject . | ||
127 | + | ||
128 | +ep-geo:nominallyLocatedAt | ||
129 | + rdf:type owl:ObjectProperty ; | ||
130 | + rdfs:domain ep-core:PhysicalThing ; | ||
131 | + rdfs:label "nominally located at"^^xsd:string ; | ||
132 | + rdfs:range ep-core:PhysicalObject . | ... | ... |
1 | -# Saved by TopBraid on Fri Dec 16 17:30:20 GMT 2011 | 1 | +# Saved by TopBraid on Sun Dec 18 18:59:30 GMT 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib | 2 | # baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib |
3 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib | 3 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib |
4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production |
... | @@ -49,7 +49,7 @@ sp:if | ... | @@ -49,7 +49,7 @@ sp:if |
49 | 49 | ||
50 | <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> | 50 | <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> |
51 | rdf:type owl:Ontology ; | 51 | rdf:type owl:Ontology ; |
52 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; | 52 | + owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ; |
53 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 53 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
54 | 54 | ||
55 | ep-dpr-spin-lib:BuildDailyProductionReportURI | 55 | ep-dpr-spin-lib:BuildDailyProductionReportURI |
... | @@ -362,9 +362,7 @@ ep-dpr-spin-lib:buildProductionFlowURI | ... | @@ -362,9 +362,7 @@ ep-dpr-spin-lib:buildProductionFlowURI |
362 | [ rdf:type ep-spin-lib:buildURI ; | 362 | [ rdf:type ep-spin-lib:buildURI ; |
363 | sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ; | 363 | sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ; |
364 | sp:arg2 [ rdf:type fn:concat ; | 364 | sp:arg2 [ rdf:type fn:concat ; |
365 | - sp:arg1 spin:_arg1 ; | 365 | + sp:arg1 spin:_arg1 |
366 | - sp:arg2 "$" ; | ||
367 | - sp:arg3 spin:_arg2 | ||
368 | ] | 366 | ] |
369 | ] ; | 367 | ] ; |
370 | sp:variable _:b13 | 368 | sp:variable _:b13 |
... | @@ -5518,22 +5516,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5518,22 +5516,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
5518 | rdfs:subClassOf ep-dpr-spin-lib:Function ; | 5516 | rdfs:subClassOf ep-dpr-spin-lib:Function ; |
5519 | spin:body | 5517 | spin:body |
5520 | [ rdf:type sp:Select ; | 5518 | [ rdf:type sp:Select ; |
5521 | - sp:resultVariables (_:b28) ; | ||
5522 | - sp:where ([ rdf:type sp:Bind ; | ||
5523 | - sp:expression | ||
5524 | - [ rdf:type sp:if ; | ||
5525 | - sp:arg1 [ rdf:type sp:eq ; | ||
5526 | - sp:arg1 spin:_arg1 ; | ||
5527 | - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
5528 | - ] ; | ||
5529 | - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
5530 | - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
5531 | - ] ; | ||
5532 | - sp:variable _:b28 | ||
5533 | - ]) | ||
5534 | - ] ; | ||
5535 | - spin:body | ||
5536 | - [ rdf:type sp:Select ; | ||
5537 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string | 5519 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string |
5538 | ]) ; | 5520 | ]) ; |
5539 | sp:where ([ rdf:type sp:Bind ; | 5521 | sp:where ([ rdf:type sp:Bind ; |
... | @@ -5613,6 +5595,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5613,6 +5595,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
5613 | [ sp:varName "myVar"^^xsd:string | 5595 | [ sp:varName "myVar"^^xsd:string |
5614 | ] | 5596 | ] |
5615 | ]) | 5597 | ]) |
5598 | + ] ; | ||
5599 | + spin:body | ||
5600 | + [ rdf:type sp:Select ; | ||
5601 | + sp:resultVariables (_:b28) ; | ||
5602 | + sp:where ([ rdf:type sp:Bind ; | ||
5603 | + sp:expression | ||
5604 | + [ rdf:type sp:if ; | ||
5605 | + sp:arg1 [ rdf:type sp:eq ; | ||
5606 | + sp:arg1 spin:_arg1 ; | ||
5607 | + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
5608 | + ] ; | ||
5609 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
5610 | + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
5611 | + ] ; | ||
5612 | + sp:variable _:b28 | ||
5613 | + ]) | ||
5616 | ] . | 5614 | ] . |
5617 | 5615 | ||
5618 | ep-dpr-spin-lib:selectTemperatureScale | 5616 | ep-dpr-spin-lib:selectTemperatureScale | ... | ... |
1 | -# Saved by TopBraid on Fri Dec 16 17:30:20 GMT 2011 | 1 | +# Saved by TopBraid on Sun Dec 18 18:59:31 GMT 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
1 | -# Saved by TopBraid on Fri Dec 16 17:56:20 GMT 2011 | 1 | +# Saved by TopBraid on Sun Dec 18 21:08:09 GMT 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume |
3 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib | 3 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib |
4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-facility | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-facility |
... | @@ -13,7 +13,9 @@ | ... | @@ -13,7 +13,9 @@ |
13 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | 13 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
14 | @prefix arg: <http://spinrdf.org/arg#> . | 14 | @prefix arg: <http://spinrdf.org/arg#> . |
15 | @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | 15 | @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . |
16 | +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | ||
16 | @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | 17 | @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . |
18 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
17 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 19 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
18 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 20 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
19 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 21 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
... | @@ -32,497 +34,447 @@ | ... | @@ -32,497 +34,447 @@ |
32 | <http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume> | 34 | <http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume> |
33 | spin:rule | 35 | spin:rule |
34 | [ rdf:type sp:Construct ; | 36 | [ rdf:type sp:Construct ; |
35 | - rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ; | 37 | + rdfs:comment """STEP 20104 record the product flows |
38 | +namingSystem not processed"""^^xsd:string ; | ||
36 | sp:templates ([ sp:object _:b1 ; | 39 | sp:templates ([ sp:object _:b1 ; |
37 | - sp:predicate _:b2 ; | 40 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; |
38 | - sp:subject _:b3 | 41 | + sp:subject _:b2 |
39 | - ] [ sp:object _:b4 ; | 42 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ; |
40 | sp:predicate rdf:type ; | 43 | sp:predicate rdf:type ; |
41 | sp:subject _:b1 | 44 | sp:subject _:b1 |
42 | - ]) ; | 45 | + ] [ sp:object _:b3 ; |
43 | - sp:where ([ sp:object _:b5 ; | 46 | + sp:predicate rdf:type ; |
44 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | 47 | + sp:subject _:b1 |
45 | - sp:subject spin:_this | 48 | + ] [ sp:object _:b4 ; |
46 | - ] [ sp:object _:b6 ; | 49 | + sp:predicate rdfs:label ; |
47 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | 50 | + sp:subject _:b1 |
51 | + ] [ sp:object _:b1 ; | ||
52 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
48 | sp:subject _:b5 | 53 | sp:subject _:b5 |
49 | - ] [ sp:object _:b7 ; | 54 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ; |
50 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 55 | + sp:predicate rdf:type ; |
56 | + sp:subject _:b5 | ||
57 | + ] [ sp:object _:b5 ; | ||
58 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; | ||
51 | sp:subject _:b6 | 59 | sp:subject _:b6 |
52 | - ] [ sp:object _:b8 ; | 60 | + ] [ sp:object _:b7 ; |
53 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | 61 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
54 | sp:subject _:b5 | 62 | sp:subject _:b5 |
63 | + ]) ; | ||
64 | + sp:where ([ sp:object spin:_this ; | ||
65 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
66 | + sp:subject | ||
67 | + [ sp:varName "productionFlowsToDate"^^xsd:string | ||
68 | + ] | ||
69 | + ] [ sp:object _:b8 ; | ||
70 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
71 | + sp:subject spin:_this | ||
55 | ] [ sp:object _:b9 ; | 72 | ] [ sp:object _:b9 ; |
56 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | 73 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; |
57 | sp:subject _:b8 | 74 | sp:subject _:b8 |
75 | + ] [ sp:object _:b7 ; | ||
76 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ; | ||
77 | + sp:subject _:b9 | ||
78 | + ] [ sp:object _:b9 ; | ||
79 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
80 | + sp:subject _:b6 | ||
81 | + ] [ sp:object _:b2 ; | ||
82 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
83 | + sp:subject _:b6 | ||
58 | ] [ sp:object _:b10 ; | 84 | ] [ sp:object _:b10 ; |
59 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; | ||
60 | - sp:subject _:b8 | ||
61 | - ] [ sp:object _:b11 ; | ||
62 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 85 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
63 | - sp:subject _:b10 | 86 | + sp:subject _:b7 |
64 | - ] [ rdf:type sp:Bind ; | 87 | + ] [ rdf:type sp:Optional ; |
65 | - sp:expression | 88 | + sp:elements ([ sp:object _:b11 ; |
66 | - [ rdf:type ep-spin-lib:normalizeString ; | 89 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; |
67 | - sp:arg1 _:b7 | 90 | + sp:subject _:b7 |
68 | - ] ; | 91 | + ] [ sp:object _:b4 ; |
69 | - sp:variable _:b12 | 92 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
93 | + sp:subject _:b11 | ||
94 | + ]) | ||
70 | ] [ rdf:type sp:Bind ; | 95 | ] [ rdf:type sp:Bind ; |
71 | sp:expression | 96 | sp:expression |
72 | - [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ; | 97 | + [ rdf:type ep-dpr-spin-lib:selectProductType ; |
73 | - sp:arg1 [ sp:varName "flowKind"^^xsd:string | 98 | + sp:arg1 _:b10 |
74 | - ] | ||
75 | ] ; | 99 | ] ; |
76 | - sp:variable _:b13 | 100 | + sp:variable _:b3 |
77 | ] [ rdf:type sp:Bind ; | 101 | ] [ rdf:type sp:Bind ; |
78 | sp:expression | 102 | sp:expression |
79 | [ rdf:type spl:object ; | 103 | [ rdf:type spl:object ; |
80 | - sp:arg1 _:b13 ; | 104 | + sp:arg1 _:b3 ; |
81 | sp:arg2 rdfs:label | 105 | sp:arg2 rdfs:label |
82 | ] ; | 106 | ] ; |
83 | - sp:variable _:b14 | 107 | + sp:variable _:b12 |
84 | ] [ rdf:type sp:Bind ; | 108 | ] [ rdf:type sp:Bind ; |
85 | sp:expression | 109 | sp:expression |
86 | - [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; | 110 | + [ rdf:type ep-spin-lib:normalizeString ; |
87 | - sp:arg1 _:b12 ; | 111 | + sp:arg1 _:b12 |
88 | - sp:arg2 _:b14 | ||
89 | ] ; | 112 | ] ; |
90 | - sp:variable _:b3 | 113 | + sp:variable _:b13 |
91 | ] [ rdf:type sp:Bind ; | 114 | ] [ rdf:type sp:Bind ; |
92 | sp:expression | 115 | sp:expression |
93 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 116 | + [ rdf:type spl:object ; |
94 | - sp:arg1 _:b11 | 117 | + sp:arg1 _:b9 ; |
118 | + sp:arg2 rdfs:label | ||
95 | ] ; | 119 | ] ; |
96 | - sp:variable _:b4 | 120 | + sp:variable _:b14 |
97 | ] [ rdf:type sp:Bind ; | 121 | ] [ rdf:type sp:Bind ; |
98 | sp:expression | 122 | sp:expression |
99 | - [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; | 123 | + [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ; |
100 | - sp:arg1 _:b9 | 124 | + sp:arg1 _:b14 ; |
125 | + sp:arg2 _:b13 | ||
101 | ] ; | 126 | ] ; |
102 | - sp:variable _:b2 | 127 | + sp:variable _:b1 |
103 | ]) | 128 | ]) |
104 | ] ; | 129 | ] ; |
105 | spin:rule | 130 | spin:rule |
106 | [ rdf:type sp:Construct ; | 131 | [ rdf:type sp:Construct ; |
107 | - rdfs:comment """STEP 20103b record the related facility | 132 | + rdfs:comment """STEP 20102c Record the Facility that has the flows - kind is not \"well\", facilityParent1 is supplied, but not facilityParent2. |
108 | -nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ; | 133 | +Nothing is done with the namingSystem!"""^^xsd:string ; |
109 | - sp:templates ([ sp:object _:b15 ; | 134 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
110 | - sp:predicate _:b16 ; | 135 | + sp:predicate rdf:type ; |
111 | - sp:subject _:b17 | 136 | + sp:subject _:b15 |
112 | - ] [ sp:object _:b18 ; | 137 | + ] [ sp:object _:b16 ; |
138 | + sp:predicate rdfs:label ; | ||
139 | + sp:subject _:b15 | ||
140 | + ] [ sp:object _:b17 ; | ||
113 | sp:predicate rdf:type ; | 141 | sp:predicate rdf:type ; |
114 | sp:subject _:b15 | 142 | sp:subject _:b15 |
143 | + ] [ sp:object _:b18 ; | ||
144 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
145 | + sp:subject _:b15 | ||
146 | + ] [ sp:object _:b16 ; | ||
147 | + sp:predicate rdfs:label ; | ||
148 | + sp:subject _:b18 | ||
115 | ]) ; | 149 | ]) ; |
116 | - sp:where ([ sp:object _:b19 ; | 150 | + sp:where ([ sp:object _:b18 ; |
117 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | 151 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; |
118 | sp:subject spin:_this | 152 | sp:subject spin:_this |
119 | - ] [ sp:object _:b20 ; | 153 | + ] [ sp:object _:b19 ; |
120 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | 154 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; |
155 | + sp:subject _:b18 | ||
156 | + ] [ sp:object _:b20 ; | ||
157 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
121 | sp:subject _:b19 | 158 | sp:subject _:b19 |
122 | ] [ sp:object _:b21 ; | 159 | ] [ sp:object _:b21 ; |
123 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 160 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
124 | - sp:subject _:b20 | ||
125 | - ] [ sp:object _:b22 ; | ||
126 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | ||
127 | sp:subject _:b19 | 161 | sp:subject _:b19 |
162 | + ] [ rdf:type sp:NotExists ; | ||
163 | + sp:elements ([ sp:object <http://www.witsml.org/schemas/131/addendum/combo#RF_well> ; | ||
164 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
165 | + sp:subject _:b19 | ||
166 | + ]) | ||
167 | + ] [ sp:object _:b22 ; | ||
168 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent1Ref> ; | ||
169 | + sp:subject _:b18 | ||
128 | ] [ sp:object _:b23 ; | 170 | ] [ sp:object _:b23 ; |
129 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
130 | - sp:subject _:b22 | ||
131 | - ] [ sp:object _:b24 ; | ||
132 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | ||
133 | - sp:subject _:b22 | ||
134 | - ] [ sp:object _:b25 ; | ||
135 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; | ||
136 | - sp:subject _:b22 | ||
137 | - ] [ sp:object _:b26 ; | ||
138 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 171 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
139 | - sp:subject _:b25 | 172 | + sp:subject _:b22 |
140 | - ] [ rdf:type sp:Optional ; | 173 | + ] [ rdf:type sp:NotExists ; |
141 | - sp:elements ([ sp:object _:b27 ; | 174 | + sp:elements ([ sp:object |
142 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 175 | + [ sp:varName "facilityParent2Ref"^^xsd:string |
143 | - sp:subject _:b25 | 176 | + ] ; |
177 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent2Ref> ; | ||
178 | + sp:subject _:b18 | ||
144 | ]) | 179 | ]) |
145 | ] [ rdf:type sp:Bind ; | 180 | ] [ rdf:type sp:Bind ; |
146 | sp:expression | 181 | sp:expression |
147 | [ rdf:type ep-spin-lib:normalizeString ; | 182 | [ rdf:type ep-spin-lib:normalizeString ; |
148 | - sp:arg1 _:b21 | 183 | + sp:arg1 _:b20 |
149 | ] ; | 184 | ] ; |
150 | - sp:variable _:b28 | 185 | + sp:variable _:b24 |
151 | ] [ rdf:type sp:Bind ; | 186 | ] [ rdf:type sp:Bind ; |
152 | sp:expression | 187 | sp:expression |
153 | - [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ; | 188 | + [ rdf:type ep-spin-lib:normalizeString ; |
154 | sp:arg1 _:b23 | 189 | sp:arg1 _:b23 |
155 | ] ; | 190 | ] ; |
156 | - sp:variable _:b29 | 191 | + sp:variable _:b25 |
157 | - ] [ rdf:type sp:Bind ; | ||
158 | - sp:expression | ||
159 | - [ rdf:type spl:object ; | ||
160 | - sp:arg1 _:b29 ; | ||
161 | - sp:arg2 rdfs:label | ||
162 | - ] ; | ||
163 | - sp:variable _:b30 | ||
164 | ] [ rdf:type sp:Bind ; | 192 | ] [ rdf:type sp:Bind ; |
165 | sp:expression | 193 | sp:expression |
166 | - [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; | 194 | + [ rdf:type fn:concat ; |
167 | - sp:arg1 _:b28 ; | 195 | + sp:arg1 _:b25 ; |
168 | - sp:arg2 _:b30 | 196 | + sp:arg2 "$" ; |
169 | - ] ; | 197 | + sp:arg3 _:b24 |
170 | - sp:variable _:b17 | ||
171 | - ] [ rdf:type sp:Bind ; | ||
172 | - sp:expression | ||
173 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
174 | - sp:arg1 _:b26 | ||
175 | ] ; | 198 | ] ; |
176 | - sp:variable _:b31 | 199 | + sp:variable _:b16 |
177 | ] [ rdf:type sp:Bind ; | 200 | ] [ rdf:type sp:Bind ; |
178 | sp:expression | 201 | sp:expression |
179 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | 202 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
180 | - sp:arg1 _:b31 | 203 | + sp:arg1 _:b16 |
181 | ] ; | 204 | ] ; |
182 | sp:variable _:b15 | 205 | sp:variable _:b15 |
183 | ] [ rdf:type sp:Bind ; | 206 | ] [ rdf:type sp:Bind ; |
184 | sp:expression | 207 | sp:expression |
185 | [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 208 | [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; |
186 | - sp:arg1 _:b27 | 209 | + sp:arg1 _:b21 |
187 | - ] ; | ||
188 | - sp:variable _:b18 | ||
189 | - ] [ rdf:type sp:Bind ; | ||
190 | - sp:expression | ||
191 | - [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; | ||
192 | - sp:arg1 _:b24 | ||
193 | ] ; | 210 | ] ; |
194 | - sp:variable _:b16 | 211 | + sp:variable _:b17 |
195 | ]) | 212 | ]) |
196 | ] ; | 213 | ] ; |
197 | spin:rule | 214 | spin:rule |
198 | [ rdf:type sp:Construct ; | 215 | [ rdf:type sp:Construct ; |
199 | - rdfs:comment """STEP 20104 record the product flows | 216 | + rdfs:comment """STEP 20102b Record the Facility that has the flows - kind is not \"well\" and facilityParent1 is not supplied |
200 | -namingSystem not processed"""^^xsd:string ; | 217 | +Nothing is done with the namingSystem!"""^^xsd:string ; |
201 | - sp:templates ([ sp:object | 218 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
202 | - [ sp:varName "productFlow"^^xsd:string | ||
203 | - ] ; | ||
204 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; | ||
205 | - sp:subject | ||
206 | - [ sp:varName "productionFlow"^^xsd:string | ||
207 | - ] | ||
208 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ; | ||
209 | - sp:predicate rdf:type ; | ||
210 | - sp:subject | ||
211 | - [ sp:varName "productFlow"^^xsd:string | ||
212 | - ] | ||
213 | - ] [ sp:object | ||
214 | - [ sp:varName "productType"^^xsd:string | ||
215 | - ] ; | ||
216 | sp:predicate rdf:type ; | 219 | sp:predicate rdf:type ; |
217 | - sp:subject | 220 | + sp:subject _:b26 |
218 | - [ sp:varName "productFlow"^^xsd:string | 221 | + ] [ sp:object _:b27 ; |
219 | - ] | ||
220 | - ] [ sp:object | ||
221 | - [ sp:varName "productFlowName"^^xsd:string | ||
222 | - ] ; | ||
223 | sp:predicate rdfs:label ; | 222 | sp:predicate rdfs:label ; |
224 | - sp:subject | 223 | + sp:subject _:b26 |
225 | - [ sp:varName "productFlow"^^xsd:string | 224 | + ] [ sp:object _:b28 ; |
226 | - ] | ||
227 | - ] [ sp:object | ||
228 | - [ sp:varName "productFlow"^^xsd:string | ||
229 | - ] ; | ||
230 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
231 | - sp:subject _:b32 | ||
232 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ; | ||
233 | sp:predicate rdf:type ; | 225 | sp:predicate rdf:type ; |
234 | - sp:subject _:b32 | 226 | + sp:subject _:b26 |
235 | - ] [ sp:object _:b32 ; | 227 | + ] [ sp:object _:b29 ; |
236 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; | ||
237 | - sp:subject | ||
238 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
239 | - ] | ||
240 | - ] [ sp:object | ||
241 | - [ sp:varName "productRef"^^xsd:string | ||
242 | - ] ; | ||
243 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 228 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
244 | - sp:subject _:b32 | 229 | + sp:subject _:b26 |
230 | + ] [ sp:object _:b27 ; | ||
231 | + sp:predicate rdfs:label ; | ||
232 | + sp:subject _:b29 | ||
245 | ]) ; | 233 | ]) ; |
246 | - sp:where ([ sp:object spin:_this ; | 234 | + sp:where ([ sp:object _:b29 ; |
247 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
248 | - sp:subject | ||
249 | - [ sp:varName "productionFlowsToDate"^^xsd:string | ||
250 | - ] | ||
251 | - ] [ sp:object | ||
252 | - [ sp:varName "facilityRef"^^xsd:string | ||
253 | - ] ; | ||
254 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | 235 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; |
255 | sp:subject spin:_this | 236 | sp:subject spin:_this |
256 | - ] [ sp:object | 237 | + ] [ sp:object _:b30 ; |
257 | - [ sp:varName "flowRef"^^xsd:string | 238 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; |
258 | - ] ; | 239 | + sp:subject _:b29 |
259 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | 240 | + ] [ sp:object _:b31 ; |
260 | - sp:subject | 241 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
261 | - [ sp:varName "facilityRef"^^xsd:string | 242 | + sp:subject _:b30 |
262 | - ] | 243 | + ] [ sp:object _:b32 ; |
263 | - ] [ sp:object | ||
264 | - [ sp:varName "flowName"^^xsd:string | ||
265 | - ] ; | ||
266 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
267 | - sp:subject | ||
268 | - [ sp:varName "flowRef"^^xsd:string | ||
269 | - ] | ||
270 | - ] [ sp:object | ||
271 | - [ sp:varName "productRef"^^xsd:string | ||
272 | - ] ; | ||
273 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ; | ||
274 | - sp:subject | ||
275 | - [ sp:varName "flowRef"^^xsd:string | ||
276 | - ] | ||
277 | - ] [ sp:object | ||
278 | - [ sp:varName "flowRef"^^xsd:string | ||
279 | - ] ; | ||
280 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
281 | - sp:subject | ||
282 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
283 | - ] | ||
284 | - ] [ sp:object | ||
285 | - [ sp:varName "productionFlow"^^xsd:string | ||
286 | - ] ; | ||
287 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
288 | - sp:subject | ||
289 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
290 | - ] | ||
291 | - ] [ sp:object | ||
292 | - [ sp:varName "productKind"^^xsd:string | ||
293 | - ] ; | ||
294 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 244 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
295 | - sp:subject | 245 | + sp:subject _:b30 |
296 | - [ sp:varName "productRef"^^xsd:string | 246 | + ] [ rdf:type sp:NotExists ; |
297 | - ] | 247 | + sp:elements ([ sp:object <http://www.witsml.org/schemas/131/addendum/combo#RF_well> ; |
298 | - ] [ rdf:type sp:Optional ; | 248 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
249 | + sp:subject _:b30 | ||
250 | + ]) | ||
251 | + ] [ rdf:type sp:NotExists ; | ||
299 | sp:elements ([ sp:object | 252 | sp:elements ([ sp:object |
300 | - [ sp:varName "productNameRef"^^xsd:string | 253 | + [ sp:varName "facilityParent1Ref"^^xsd:string |
301 | ] ; | 254 | ] ; |
302 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | 255 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent1Ref> ; |
303 | - sp:subject | 256 | + sp:subject _:b29 |
304 | - [ sp:varName "productRef"^^xsd:string | ||
305 | - ] | ||
306 | - ] [ sp:object | ||
307 | - [ sp:varName "productFlowName"^^xsd:string | ||
308 | - ] ; | ||
309 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
310 | - sp:subject | ||
311 | - [ sp:varName "productNameRef"^^xsd:string | ||
312 | - ] | ||
313 | ]) | 257 | ]) |
314 | ] [ rdf:type sp:Bind ; | 258 | ] [ rdf:type sp:Bind ; |
315 | sp:expression | 259 | sp:expression |
316 | - [ rdf:type ep-dpr-spin-lib:selectProductType ; | 260 | + [ rdf:type ep-spin-lib:normalizeString ; |
317 | - sp:arg1 [ sp:varName "productKind"^^xsd:string | 261 | + sp:arg1 _:b31 |
318 | - ] | ||
319 | ] ; | 262 | ] ; |
320 | - sp:variable | 263 | + sp:variable _:b27 |
321 | - [ sp:varName "productType"^^xsd:string | ||
322 | - ] | ||
323 | ] [ rdf:type sp:Bind ; | 264 | ] [ rdf:type sp:Bind ; |
324 | sp:expression | 265 | sp:expression |
325 | - [ rdf:type spl:object ; | 266 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
326 | - sp:arg1 [ sp:varName "productType"^^xsd:string | 267 | + sp:arg1 _:b27 |
327 | - ] ; | ||
328 | - sp:arg2 rdfs:label | ||
329 | ] ; | 268 | ] ; |
330 | - sp:variable | 269 | + sp:variable _:b26 |
331 | - [ sp:varName "productTypeName"^^xsd:string | ||
332 | - ] | ||
333 | ] [ rdf:type sp:Bind ; | 270 | ] [ rdf:type sp:Bind ; |
334 | sp:expression | 271 | sp:expression |
335 | - [ rdf:type ep-spin-lib:normalizeString ; | 272 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; |
336 | - sp:arg1 [ sp:varName "productTypeName"^^xsd:string | 273 | + sp:arg1 _:b32 |
337 | - ] | ||
338 | ] ; | 274 | ] ; |
339 | - sp:variable | 275 | + sp:variable _:b28 |
340 | - [ sp:varName "normalizedProductTypeName"^^xsd:string | 276 | + ]) |
341 | - ] | 277 | + ] ; |
278 | + spin:rule | ||
279 | + [ rdf:type sp:Construct ; | ||
280 | + rdfs:comment """STEP 20102a Record the Facility that has the flows - kind is \"well\" | ||
281 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
282 | + sp:templates ([ sp:object _:b33 ; | ||
283 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
284 | + sp:subject _:b34 | ||
285 | + ] [ sp:object _:b35 ; | ||
286 | + sp:predicate rdfs:label ; | ||
287 | + sp:subject _:b33 | ||
288 | + ]) ; | ||
289 | + sp:where ([ sp:object _:b33 ; | ||
290 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
291 | + sp:subject spin:_this | ||
292 | + ] [ sp:object _:b36 ; | ||
293 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | ||
294 | + sp:subject _:b33 | ||
295 | + ] [ sp:object _:b37 ; | ||
296 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
297 | + sp:subject _:b36 | ||
298 | + ] [ sp:object <http://www.witsml.org/schemas/131/addendum/combo#RF_well> ; | ||
299 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
300 | + sp:subject _:b36 | ||
342 | ] [ rdf:type sp:Bind ; | 301 | ] [ rdf:type sp:Bind ; |
343 | sp:expression | 302 | sp:expression |
344 | [ rdf:type ep-spin-lib:normalizeString ; | 303 | [ rdf:type ep-spin-lib:normalizeString ; |
345 | - sp:arg1 [ sp:varName "flowName"^^xsd:string | 304 | + sp:arg1 _:b37 |
346 | - ] | ||
347 | ] ; | 305 | ] ; |
348 | - sp:variable | 306 | + sp:variable _:b35 |
349 | - [ sp:varName "normalizedFlowName"^^xsd:string | ||
350 | - ] | ||
351 | ] [ rdf:type sp:Bind ; | 307 | ] [ rdf:type sp:Bind ; |
352 | sp:expression | 308 | sp:expression |
353 | - [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ; | 309 | + [ rdf:type rhspin:wellByName ; |
354 | - sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string | 310 | + arg:wellName _:b37 |
355 | - ] ; | ||
356 | - sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string | ||
357 | - ] | ||
358 | ] ; | 311 | ] ; |
359 | - sp:variable | 312 | + sp:variable _:b34 |
360 | - [ sp:varName "productFlow"^^xsd:string | ||
361 | - ] | ||
362 | ]) | 313 | ]) |
363 | ] ; | 314 | ] ; |
364 | spin:rule | 315 | spin:rule |
365 | [ rdf:type sp:Construct ; | 316 | [ rdf:type sp:Construct ; |
366 | rdfs:comment "STEP 20103a record the flows"^^xsd:string ; | 317 | rdfs:comment "STEP 20103a record the flows"^^xsd:string ; |
367 | - sp:templates ([ sp:object _:b33 ; | 318 | + sp:templates ([ sp:object _:b38 ; |
368 | - sp:predicate _:b34 ; | 319 | + sp:predicate _:b39 ; |
369 | - sp:subject _:b35 | 320 | + sp:subject _:b40 |
370 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | 321 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
371 | sp:predicate rdf:type ; | 322 | sp:predicate rdf:type ; |
372 | - sp:subject _:b35 | 323 | + sp:subject _:b40 |
373 | - ] [ sp:object _:b36 ; | 324 | + ] [ sp:object _:b41 ; |
374 | sp:predicate rdf:type ; | 325 | sp:predicate rdf:type ; |
375 | - sp:subject _:b35 | 326 | + sp:subject _:b40 |
376 | - ] [ sp:object _:b37 ; | 327 | + ] [ sp:object _:b42 ; |
377 | sp:predicate rdf:type ; | 328 | sp:predicate rdf:type ; |
378 | - sp:subject _:b35 | 329 | + sp:subject _:b40 |
379 | - ] [ sp:object _:b38 ; | 330 | + ] [ sp:object _:b43 ; |
380 | sp:predicate rdfs:label ; | 331 | sp:predicate rdfs:label ; |
381 | - sp:subject _:b35 | 332 | + sp:subject _:b40 |
382 | - ] [ sp:object _:b35 ; | 333 | + ] [ sp:object _:b40 ; |
383 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 334 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
384 | - sp:subject _:b39 | 335 | + sp:subject _:b44 |
385 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | 336 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
386 | sp:predicate rdf:type ; | 337 | sp:predicate rdf:type ; |
387 | - sp:subject _:b39 | 338 | + sp:subject _:b44 |
388 | - ] [ sp:object _:b39 ; | 339 | + ] [ sp:object _:b44 ; |
389 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ; | 340 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ; |
390 | - sp:subject _:b40 | 341 | + sp:subject _:b45 |
391 | - ] [ sp:object _:b41 ; | 342 | + ] [ sp:object _:b46 ; |
392 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 343 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
393 | - sp:subject _:b39 | 344 | + sp:subject _:b44 |
345 | + ] [ sp:object _:b47 ; | ||
346 | + sp:predicate rdfs:label ; | ||
347 | + sp:subject _:b46 | ||
394 | ]) ; | 348 | ]) ; |
395 | sp:where ([ sp:object spin:_this ; | 349 | sp:where ([ sp:object spin:_this ; |
396 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 350 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
397 | - sp:subject _:b42 | 351 | + sp:subject _:b48 |
398 | - ] [ sp:object _:b40 ; | 352 | + ] [ sp:object _:b45 ; |
399 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 353 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
400 | - sp:subject _:b42 | 354 | + sp:subject _:b48 |
401 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | 355 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
402 | sp:predicate rdf:type ; | 356 | sp:predicate rdf:type ; |
403 | - sp:subject _:b40 | 357 | + sp:subject _:b45 |
404 | - ] [ sp:object _:b43 ; | 358 | + ] [ sp:object _:b49 ; |
405 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | 359 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; |
406 | sp:subject spin:_this | 360 | sp:subject spin:_this |
407 | - ] [ sp:object _:b44 ; | 361 | + ] [ sp:object _:b49 ; |
408 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | 362 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
409 | - sp:subject _:b43 | 363 | + sp:subject _:b38 |
410 | - ] [ sp:object _:b45 ; | 364 | + ] [ sp:object _:b46 ; |
411 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
412 | - sp:subject _:b44 | ||
413 | - ] [ sp:object _:b41 ; | ||
414 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | 365 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; |
415 | - sp:subject _:b43 | 366 | + sp:subject _:b49 |
416 | - ] [ sp:object _:b38 ; | 367 | + ] [ sp:object _:b43 ; |
417 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | 368 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; |
418 | - sp:subject _:b41 | 369 | + sp:subject _:b46 |
419 | - ] [ sp:object _:b46 ; | 370 | + ] [ sp:object _:b50 ; |
420 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 371 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
421 | - sp:subject _:b41 | 372 | + sp:subject _:b46 |
422 | - ] [ sp:object _:b47 ; | 373 | + ] [ sp:object _:b51 ; |
423 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | 374 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; |
424 | - sp:subject _:b41 | 375 | + sp:subject _:b46 |
425 | ] [ rdf:type sp:Optional ; | 376 | ] [ rdf:type sp:Optional ; |
426 | - sp:elements ([ sp:object _:b48 ; | 377 | + sp:elements ([ sp:object _:b52 ; |
427 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ; | 378 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ; |
428 | - sp:subject _:b41 | 379 | + sp:subject _:b46 |
429 | ]) | 380 | ]) |
430 | ] [ rdf:type sp:Bind ; | 381 | ] [ rdf:type sp:Bind ; |
431 | sp:expression | 382 | sp:expression |
432 | - [ rdf:type ep-spin-lib:normalizeString ; | 383 | + [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ; |
433 | - sp:arg1 _:b45 | 384 | + sp:arg1 _:b50 |
434 | ] ; | 385 | ] ; |
435 | - sp:variable _:b49 | 386 | + sp:variable _:b41 |
436 | ] [ rdf:type sp:Bind ; | 387 | ] [ rdf:type sp:Bind ; |
437 | sp:expression | 388 | sp:expression |
438 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | 389 | + [ rdf:type spl:object ; |
439 | - sp:arg1 _:b49 | 390 | + sp:arg1 _:b41 ; |
391 | + sp:arg2 rdfs:label | ||
440 | ] ; | 392 | ] ; |
441 | - sp:variable _:b33 | 393 | + sp:variable _:b53 |
442 | ] [ rdf:type sp:Bind ; | 394 | ] [ rdf:type sp:Bind ; |
443 | sp:expression | 395 | sp:expression |
444 | - [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ; | 396 | + [ rdf:type ep-spin-lib:normalizeString ; |
445 | - sp:arg1 _:b46 | 397 | + sp:arg1 _:b53 |
446 | ] ; | 398 | ] ; |
447 | - sp:variable _:b36 | 399 | + sp:variable _:b54 |
448 | ] [ rdf:type sp:Bind ; | 400 | ] [ rdf:type sp:Bind ; |
449 | sp:expression | 401 | sp:expression |
450 | [ rdf:type spl:object ; | 402 | [ rdf:type spl:object ; |
451 | - sp:arg1 _:b36 ; | 403 | + sp:arg1 _:b49 ; |
452 | sp:arg2 rdfs:label | 404 | sp:arg2 rdfs:label |
453 | ] ; | 405 | ] ; |
454 | - sp:variable _:b50 | 406 | + sp:variable _:b55 |
407 | + ] [ rdf:type sp:Bind ; | ||
408 | + sp:expression | ||
409 | + [ rdf:type fn:concat ; | ||
410 | + sp:arg1 _:b55 ; | ||
411 | + sp:arg2 "$" ; | ||
412 | + sp:arg3 _:b54 | ||
413 | + ] ; | ||
414 | + sp:variable _:b47 | ||
455 | ] [ rdf:type sp:Bind ; | 415 | ] [ rdf:type sp:Bind ; |
456 | sp:expression | 416 | sp:expression |
457 | [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; | 417 | [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; |
458 | - sp:arg1 _:b49 ; | 418 | + sp:arg1 _:b47 |
459 | - sp:arg2 _:b50 | ||
460 | ] ; | 419 | ] ; |
461 | - sp:variable _:b35 | 420 | + sp:variable _:b40 |
462 | ] [ rdf:type sp:Bind ; | 421 | ] [ rdf:type sp:Bind ; |
463 | sp:expression | 422 | sp:expression |
464 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ; | 423 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ; |
465 | - sp:arg1 _:b48 | 424 | + sp:arg1 _:b52 |
466 | ] ; | 425 | ] ; |
467 | - sp:variable _:b37 | 426 | + sp:variable _:b42 |
468 | ] [ rdf:type sp:Bind ; | 427 | ] [ rdf:type sp:Bind ; |
469 | sp:expression | 428 | sp:expression |
470 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ; | 429 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ; |
471 | - sp:arg1 _:b47 | 430 | + sp:arg1 _:b51 |
472 | ] ; | 431 | ] ; |
473 | - sp:variable _:b34 | 432 | + sp:variable _:b39 |
474 | ]) | 433 | ]) |
475 | ] ; | 434 | ] ; |
476 | spin:rule | 435 | spin:rule |
477 | [ rdf:type sp:Construct ; | 436 | [ rdf:type sp:Construct ; |
478 | - rdfs:comment """STEP 20102 Record the Facility that has the flows | 437 | + rdfs:comment "STEP 20103c record the related facility - only its kind is specified"^^xsd:string ; |
479 | -Nothing is done with the namingSystem!"""^^xsd:string ; | 438 | + sp:templates ([ sp:object _:b56 ; |
480 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 439 | + sp:predicate _:b57 ; |
481 | - sp:predicate rdf:type ; | 440 | + sp:subject _:b58 |
482 | - sp:subject _:b51 | 441 | + ] [ sp:object _:b59 ; |
483 | - ] [ sp:object _:b52 ; | ||
484 | sp:predicate rdf:type ; | 442 | sp:predicate rdf:type ; |
485 | - sp:subject _:b51 | 443 | + sp:subject _:b56 |
486 | ]) ; | 444 | ]) ; |
487 | - sp:where ([ sp:object _:b53 ; | 445 | + sp:where ([ sp:object _:b60 ; |
488 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | 446 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; |
489 | sp:subject spin:_this | 447 | sp:subject spin:_this |
490 | - ] [ sp:object _:b54 ; | 448 | + ] [ sp:object _:b61 ; |
491 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | 449 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; |
492 | - sp:subject _:b53 | 450 | + sp:subject _:b60 |
493 | - ] [ sp:object _:b55 ; | 451 | + ] [ sp:object _:b61 ; |
494 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 452 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
495 | - sp:subject _:b54 | 453 | + sp:subject _:b62 |
496 | - ] [ rdf:type sp:Optional ; | 454 | + ] [ sp:object _:b58 ; |
497 | - sp:elements ([ sp:object | 455 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
498 | - [ sp:varName "facilityNamingSystem"^^xsd:string | 456 | + sp:subject _:b62 |
499 | - ] ; | 457 | + ] [ sp:object _:b63 ; |
500 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ; | 458 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; |
501 | - sp:subject _:b54 | 459 | + sp:subject _:b61 |
502 | - ]) | 460 | + ] [ sp:object _:b64 ; |
503 | - ] [ rdf:type sp:Optional ; | 461 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; |
504 | - sp:elements ([ sp:object _:b56 ; | 462 | + sp:subject _:b61 |
505 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 463 | + ] [ sp:object _:b65 ; |
506 | - sp:subject _:b54 | 464 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
507 | - ]) | 465 | + sp:subject _:b64 |
508 | - ] [ rdf:type sp:Bind ; | ||
509 | - sp:expression | ||
510 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
511 | - sp:arg1 _:b55 | ||
512 | - ] ; | ||
513 | - sp:variable _:b57 | ||
514 | ] [ rdf:type sp:Bind ; | 466 | ] [ rdf:type sp:Bind ; |
515 | sp:expression | 467 | sp:expression |
516 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | 468 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; |
517 | - sp:arg1 _:b57 | 469 | + sp:arg1 _:b65 |
518 | ] ; | 470 | ] ; |
519 | - sp:variable _:b51 | 471 | + sp:variable _:b59 |
520 | ] [ rdf:type sp:Bind ; | 472 | ] [ rdf:type sp:Bind ; |
521 | sp:expression | 473 | sp:expression |
522 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 474 | + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; |
523 | - sp:arg1 _:b56 | 475 | + sp:arg1 _:b63 |
524 | ] ; | 476 | ] ; |
525 | - sp:variable _:b52 | 477 | + sp:variable _:b57 |
526 | ]) | 478 | ]) |
527 | ] ; | 479 | ] ; |
528 | spin:rule | 480 | spin:rule |
... | @@ -530,54 +482,54 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -530,54 +482,54 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
530 | rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ; | 482 | rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ; |
531 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ; | 483 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ; |
532 | sp:predicate rdf:type ; | 484 | sp:predicate rdf:type ; |
533 | - sp:subject _:b58 | 485 | + sp:subject _:b66 |
534 | ] [ sp:object | 486 | ] [ sp:object |
535 | [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string | 487 | [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string |
536 | ] ; | 488 | ] ; |
537 | sp:predicate rdf:type ; | 489 | sp:predicate rdf:type ; |
538 | - sp:subject _:b58 | 490 | + sp:subject _:b66 |
539 | ] [ sp:object | 491 | ] [ sp:object |
540 | [ sp:varName "productFlowToDate"^^xsd:string | 492 | [ sp:varName "productFlowToDate"^^xsd:string |
541 | ] ; | 493 | ] ; |
542 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 494 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
543 | - sp:subject _:b58 | 495 | + sp:subject _:b66 |
544 | ] [ sp:object | 496 | ] [ sp:object |
545 | [ sp:varName "endTime"^^xsd:string | 497 | [ sp:varName "endTime"^^xsd:string |
546 | ] ; | 498 | ] ; |
547 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 499 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
548 | - sp:subject _:b58 | 500 | + sp:subject _:b66 |
549 | - ] [ sp:object _:b59 ; | 501 | + ] [ sp:object _:b67 ; |
550 | sp:predicate | 502 | sp:predicate |
551 | [ sp:varName "relationshipToMeasure"^^xsd:string | 503 | [ sp:varName "relationshipToMeasure"^^xsd:string |
552 | ] ; | 504 | ] ; |
553 | - sp:subject _:b58 | 505 | + sp:subject _:b66 |
554 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | 506 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; |
555 | sp:predicate rdf:type ; | 507 | sp:predicate rdf:type ; |
556 | - sp:subject _:b59 | 508 | + sp:subject _:b67 |
557 | ] [ sp:object | 509 | ] [ sp:object |
558 | [ sp:varName "realVolume"^^xsd:string | 510 | [ sp:varName "realVolume"^^xsd:string |
559 | ] ; | 511 | ] ; |
560 | sp:predicate | 512 | sp:predicate |
561 | [ sp:varName "volumeScale"^^xsd:string | 513 | [ sp:varName "volumeScale"^^xsd:string |
562 | ] ; | 514 | ] ; |
563 | - sp:subject _:b59 | 515 | + sp:subject _:b67 |
564 | - ] [ sp:object _:b60 ; | 516 | + ] [ sp:object _:b68 ; |
565 | sp:predicate | 517 | sp:predicate |
566 | [ sp:varName "relationshipToMeasure"^^xsd:string | 518 | [ sp:varName "relationshipToMeasure"^^xsd:string |
567 | ] ; | 519 | ] ; |
568 | - sp:subject _:b58 | 520 | + sp:subject _:b66 |
569 | ] [ sp:object | 521 | ] [ sp:object |
570 | [ sp:varName "volumeStdType"^^xsd:string | 522 | [ sp:varName "volumeStdType"^^xsd:string |
571 | ] ; | 523 | ] ; |
572 | sp:predicate rdf:type ; | 524 | sp:predicate rdf:type ; |
573 | - sp:subject _:b60 | 525 | + sp:subject _:b68 |
574 | ] [ sp:object | 526 | ] [ sp:object |
575 | [ sp:varName "realVolumeStd"^^xsd:string | 527 | [ sp:varName "realVolumeStd"^^xsd:string |
576 | ] ; | 528 | ] ; |
577 | sp:predicate | 529 | sp:predicate |
578 | [ sp:varName "volumeStdScale"^^xsd:string | 530 | [ sp:varName "volumeStdScale"^^xsd:string |
579 | ] ; | 531 | ] ; |
580 | - sp:subject _:b60 | 532 | + sp:subject _:b68 |
581 | ]) ; | 533 | ]) ; |
582 | sp:where ([ sp:object | 534 | sp:where ([ sp:object |
583 | [ sp:varName "standardTempPres"^^xsd:string | 535 | [ sp:varName "standardTempPres"^^xsd:string |
... | @@ -679,202 +631,466 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -679,202 +631,466 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
679 | ]) | 631 | ]) |
680 | ] [ rdf:type sp:Bind ; | 632 | ] [ rdf:type sp:Bind ; |
681 | sp:expression | 633 | sp:expression |
682 | - [ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ; | 634 | + [ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ; |
683 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | 635 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string |
684 | - ] | 636 | + ] |
637 | + ] ; | ||
638 | + sp:variable | ||
639 | + [ sp:varName "relationshipToMeasure"^^xsd:string | ||
640 | + ] | ||
641 | + ] [ rdf:type sp:Bind ; | ||
642 | + sp:expression | ||
643 | + [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ; | ||
644 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
645 | + ] | ||
646 | + ] ; | ||
647 | + sp:variable | ||
648 | + [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string | ||
649 | + ] | ||
650 | + ] [ rdf:type sp:Bind ; | ||
651 | + sp:expression | ||
652 | + [ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ; | ||
653 | + sp:arg1 [ sp:varName "standardTempPres"^^xsd:string | ||
654 | + ] | ||
655 | + ] ; | ||
656 | + sp:variable | ||
657 | + [ sp:varName "volumeStdType"^^xsd:string | ||
658 | + ] | ||
659 | + ] [ rdf:type sp:Bind ; | ||
660 | + sp:expression | ||
661 | + [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; | ||
662 | + sp:arg1 [ sp:varName "uomVolume"^^xsd:string | ||
663 | + ] | ||
664 | + ] ; | ||
665 | + sp:variable | ||
666 | + [ sp:varName "volumeScale"^^xsd:string | ||
667 | + ] | ||
668 | + ] [ rdf:type sp:Bind ; | ||
669 | + sp:expression | ||
670 | + [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; | ||
671 | + sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string | ||
672 | + ] | ||
673 | + ] ; | ||
674 | + sp:variable | ||
675 | + [ sp:varName "volumeStdScale"^^xsd:string | ||
676 | + ] | ||
677 | + ]) | ||
678 | + ] ; | ||
679 | + spin:rule | ||
680 | + [ rdf:type sp:Construct ; | ||
681 | + rdfs:comment """STEP 20102d Record the Facility that has the flows - kind is not \"well\", facilityParent1 and facilityParent2 are supplied. | ||
682 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
683 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
684 | + sp:predicate rdf:type ; | ||
685 | + sp:subject _:b69 | ||
686 | + ] [ sp:object _:b70 ; | ||
687 | + sp:predicate rdfs:label ; | ||
688 | + sp:subject _:b69 | ||
689 | + ] [ sp:object _:b71 ; | ||
690 | + sp:predicate rdf:type ; | ||
691 | + sp:subject _:b69 | ||
692 | + ] [ sp:object _:b72 ; | ||
693 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
694 | + sp:subject _:b69 | ||
695 | + ] [ sp:object _:b70 ; | ||
696 | + sp:predicate rdfs:label ; | ||
697 | + sp:subject _:b72 | ||
698 | + ]) ; | ||
699 | + sp:where ([ sp:object _:b72 ; | ||
700 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
701 | + sp:subject spin:_this | ||
702 | + ] [ sp:object _:b73 ; | ||
703 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | ||
704 | + sp:subject _:b72 | ||
705 | + ] [ sp:object _:b74 ; | ||
706 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
707 | + sp:subject _:b73 | ||
708 | + ] [ sp:object _:b75 ; | ||
709 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
710 | + sp:subject _:b73 | ||
711 | + ] [ rdf:type sp:NotExists ; | ||
712 | + sp:elements ([ sp:object <http://www.witsml.org/schemas/131/addendum/combo#RF_well> ; | ||
713 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
714 | + sp:subject _:b73 | ||
715 | + ]) | ||
716 | + ] [ sp:object _:b76 ; | ||
717 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent1Ref> ; | ||
718 | + sp:subject _:b72 | ||
719 | + ] [ sp:object _:b77 ; | ||
720 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
721 | + sp:subject _:b76 | ||
722 | + ] [ sp:object _:b78 ; | ||
723 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent2Ref> ; | ||
724 | + sp:subject _:b72 | ||
725 | + ] [ sp:object _:b79 ; | ||
726 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
727 | + sp:subject _:b78 | ||
728 | + ] [ rdf:type sp:Bind ; | ||
729 | + sp:expression | ||
730 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
731 | + sp:arg1 _:b74 | ||
732 | + ] ; | ||
733 | + sp:variable _:b80 | ||
734 | + ] [ rdf:type sp:Bind ; | ||
735 | + sp:expression | ||
736 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
737 | + sp:arg1 _:b77 | ||
685 | ] ; | 738 | ] ; |
686 | - sp:variable | 739 | + sp:variable _:b81 |
687 | - [ sp:varName "relationshipToMeasure"^^xsd:string | ||
688 | - ] | ||
689 | ] [ rdf:type sp:Bind ; | 740 | ] [ rdf:type sp:Bind ; |
690 | sp:expression | 741 | sp:expression |
691 | - [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ; | 742 | + [ rdf:type ep-spin-lib:normalizeString ; |
692 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | 743 | + sp:arg1 _:b79 |
693 | - ] | ||
694 | ] ; | 744 | ] ; |
695 | sp:variable | 745 | sp:variable |
696 | - [ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string | 746 | + [ sp:varName "normalizedFacilityParent2Name"^^xsd:string |
697 | ] | 747 | ] |
698 | ] [ rdf:type sp:Bind ; | 748 | ] [ rdf:type sp:Bind ; |
699 | sp:expression | 749 | sp:expression |
700 | - [ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ; | 750 | + [ rdf:type fn:concat ; |
701 | - sp:arg1 [ sp:varName "standardTempPres"^^xsd:string | 751 | + sp:arg1 _:b81 ; |
702 | - ] | 752 | + sp:arg2 "$" ; |
753 | + sp:arg3 _:b81 ; | ||
754 | + sp:arg4 "$" ; | ||
755 | + sp:arg5 _:b80 | ||
756 | + ] ; | ||
757 | + sp:variable _:b70 | ||
758 | + ] [ rdf:type sp:Bind ; | ||
759 | + sp:expression | ||
760 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
761 | + sp:arg1 _:b70 | ||
703 | ] ; | 762 | ] ; |
704 | - sp:variable | 763 | + sp:variable _:b69 |
705 | - [ sp:varName "volumeStdType"^^xsd:string | ||
706 | - ] | ||
707 | ] [ rdf:type sp:Bind ; | 764 | ] [ rdf:type sp:Bind ; |
708 | sp:expression | 765 | sp:expression |
709 | - [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; | 766 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; |
710 | - sp:arg1 [ sp:varName "uomVolume"^^xsd:string | 767 | + sp:arg1 _:b75 |
711 | - ] | ||
712 | ] ; | 768 | ] ; |
713 | - sp:variable | 769 | + sp:variable _:b71 |
714 | - [ sp:varName "volumeScale"^^xsd:string | 770 | + ]) |
715 | - ] | 771 | + ] ; |
772 | + spin:rule | ||
773 | + [ rdf:type sp:Construct ; | ||
774 | + rdfs:comment """STEP 20103b record the related facility | ||
775 | +nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ; | ||
776 | + sp:templates ([ sp:object _:b82 ; | ||
777 | + sp:predicate _:b83 ; | ||
778 | + sp:subject _:b84 | ||
779 | + ] [ sp:object _:b85 ; | ||
780 | + sp:predicate rdf:type ; | ||
781 | + sp:subject _:b82 | ||
782 | + ]) ; | ||
783 | + sp:where ([ sp:object _:b86 ; | ||
784 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
785 | + sp:subject spin:_this | ||
786 | + ] [ sp:object _:b87 ; | ||
787 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | ||
788 | + sp:subject _:b86 | ||
789 | + ] [ sp:object _:b87 ; | ||
790 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
791 | + sp:subject _:b88 | ||
792 | + ] [ sp:object _:b84 ; | ||
793 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
794 | + sp:subject _:b88 | ||
795 | + ] [ sp:object _:b89 ; | ||
796 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | ||
797 | + sp:subject _:b87 | ||
798 | + ] [ sp:object _:b90 ; | ||
799 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; | ||
800 | + sp:subject _:b87 | ||
801 | + ] [ sp:object _:b91 ; | ||
802 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
803 | + sp:subject _:b90 | ||
804 | + ] [ rdf:type sp:Optional ; | ||
805 | + sp:elements ([ sp:object _:b92 ; | ||
806 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
807 | + sp:subject _:b90 | ||
808 | + ]) | ||
716 | ] [ rdf:type sp:Bind ; | 809 | ] [ rdf:type sp:Bind ; |
717 | sp:expression | 810 | sp:expression |
718 | - [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; | 811 | + [ rdf:type ep-spin-lib:normalizeString ; |
719 | - sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string | 812 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string |
720 | ] | 813 | ] |
721 | ] ; | 814 | ] ; |
722 | sp:variable | 815 | sp:variable |
723 | - [ sp:varName "volumeStdScale"^^xsd:string | 816 | + [ sp:varName "normalizedFacilityName"^^xsd:string |
724 | ] | 817 | ] |
818 | + ] [ rdf:type sp:Bind ; | ||
819 | + sp:expression | ||
820 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
821 | + sp:arg1 _:b91 | ||
822 | + ] ; | ||
823 | + sp:variable _:b93 | ||
824 | + ] [ rdf:type sp:Bind ; | ||
825 | + sp:expression | ||
826 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
827 | + sp:arg1 _:b93 | ||
828 | + ] ; | ||
829 | + sp:variable _:b82 | ||
830 | + ] [ rdf:type sp:Bind ; | ||
831 | + sp:expression | ||
832 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
833 | + sp:arg1 _:b92 | ||
834 | + ] ; | ||
835 | + sp:variable _:b85 | ||
836 | + ] [ rdf:type sp:Bind ; | ||
837 | + sp:expression | ||
838 | + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; | ||
839 | + sp:arg1 _:b89 | ||
840 | + ] ; | ||
841 | + sp:variable _:b83 | ||
725 | ]) | 842 | ]) |
726 | ] . | 843 | ] . |
727 | 844 | ||
728 | -_:b51 | 845 | +_:b82 |
729 | - sp:varName "productionFacility"^^xsd:string . | 846 | + sp:varName "relatedFacility"^^xsd:string . |
730 | 847 | ||
731 | -_:b52 | 848 | +_:b83 |
732 | - sp:varName "productionFacilityType"^^xsd:string . | 849 | + sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . |
733 | 850 | ||
734 | -_:b53 | 851 | +_:b84 |
852 | + sp:varName "productionFlow"^^xsd:string . | ||
853 | + | ||
854 | +_:b85 | ||
855 | + sp:varName "relatedFacilityType"^^xsd:string . | ||
856 | + | ||
857 | +_:b86 | ||
735 | sp:varName "facilityRef"^^xsd:string . | 858 | sp:varName "facilityRef"^^xsd:string . |
736 | 859 | ||
737 | -_:b54 | 860 | +_:b87 |
738 | - sp:varName "facilityNameRef"^^xsd:string . | 861 | + sp:varName "flowRef"^^xsd:string . |
739 | 862 | ||
740 | -_:b55 | 863 | +_:b88 |
741 | - sp:varName "facilityName"^^xsd:string . | 864 | + sp:varName "productionFlowToDate"^^xsd:string . |
742 | 865 | ||
743 | -_:b56 | 866 | +_:b89 |
744 | - sp:varName "facilityKind"^^xsd:string . | 867 | + sp:varName "flowDirection"^^xsd:string . |
745 | 868 | ||
746 | -_:b57 | 869 | +_:b90 |
747 | - sp:varName "normalizedFacilityName"^^xsd:string . | 870 | + sp:varName "relatedFacilityRef"^^xsd:string . |
748 | 871 | ||
749 | -_:b42 | 872 | +_:b91 |
750 | - sp:varName "dailyProductionFlows"^^xsd:string . | 873 | + sp:varName "relatedFacilityName"^^xsd:string . |
751 | 874 | ||
752 | -_:b40 | 875 | +_:b92 |
753 | - sp:varName "productionFlowsToDate"^^xsd:string . | 876 | + sp:varName "relatedFacilityKind"^^xsd:string . |
754 | 877 | ||
755 | -_:b43 | 878 | +_:b93 |
879 | + sp:varName "normalizedRelatedFacilityName"^^xsd:string . | ||
880 | + | ||
881 | +_:b33 | ||
756 | sp:varName "facilityRef"^^xsd:string . | 882 | sp:varName "facilityRef"^^xsd:string . |
757 | 883 | ||
758 | -_:b44 | 884 | +_:b36 |
759 | sp:varName "facilityNameRef"^^xsd:string . | 885 | sp:varName "facilityNameRef"^^xsd:string . |
760 | 886 | ||
761 | -_:b45 | 887 | +_:b37 |
762 | sp:varName "facilityName"^^xsd:string . | 888 | sp:varName "facilityName"^^xsd:string . |
763 | 889 | ||
764 | -_:b41 | 890 | +_:b35 |
765 | - sp:varName "flowRef"^^xsd:string . | 891 | + sp:varName "normalizedFacilityName"^^xsd:string . |
766 | 892 | ||
767 | -_:b38 | 893 | +_:b34 |
768 | - sp:varName "flowName"^^xsd:string . | 894 | + sp:varName "productionFacility"^^xsd:string . |
769 | 895 | ||
770 | -_:b46 | 896 | +_:b29 |
771 | - sp:varName "flowKind"^^xsd:string . | 897 | + sp:varName "facilityRef"^^xsd:string . |
772 | 898 | ||
773 | -_:b47 | 899 | +_:b30 |
774 | - sp:varName "flowDirection"^^xsd:string . | 900 | + sp:varName "facilityNameRef"^^xsd:string . |
775 | 901 | ||
776 | -_:b48 | 902 | +_:b31 |
777 | - sp:varName "flowQualifier"^^xsd:string . | 903 | + sp:varName "facilityName"^^xsd:string . |
778 | 904 | ||
779 | -_:b49 | 905 | +_:b32 |
906 | + sp:varName "facilityKind"^^xsd:string . | ||
907 | + | ||
908 | +_:b27 | ||
780 | sp:varName "normalizedFacilityName"^^xsd:string . | 909 | sp:varName "normalizedFacilityName"^^xsd:string . |
781 | 910 | ||
782 | -_:b33 | 911 | +_:b26 |
783 | sp:varName "productionFacility"^^xsd:string . | 912 | sp:varName "productionFacility"^^xsd:string . |
784 | 913 | ||
785 | -_:b36 | 914 | +_:b28 |
786 | - sp:varName "productionFlowPurposeType"^^xsd:string . | 915 | + sp:varName "productionFacilityType"^^xsd:string . |
787 | - | ||
788 | -_:b50 | ||
789 | - sp:varName "productionFlowPurposeTypeName"^^xsd:string . | ||
790 | - | ||
791 | -_:b35 | ||
792 | - sp:varName "productionFlow"^^xsd:string . | ||
793 | - | ||
794 | -_:b37 | ||
795 | - sp:varName "productionFlowDefinitionType"^^xsd:string . | ||
796 | 916 | ||
797 | -_:b34 | 917 | +_:b18 |
798 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | 918 | + sp:varName "facilityRef"^^xsd:string . |
799 | 919 | ||
800 | _:b19 | 920 | _:b19 |
801 | - sp:varName "facilityRef"^^xsd:string . | 921 | + sp:varName "facilityNameRef"^^xsd:string . |
802 | 922 | ||
803 | _:b20 | 923 | _:b20 |
804 | - sp:varName "facilityNameRef"^^xsd:string . | 924 | + sp:varName "facilityChildName"^^xsd:string . |
805 | 925 | ||
806 | _:b21 | 926 | _:b21 |
807 | - sp:varName "facilityName"^^xsd:string . | 927 | + sp:varName "facilityKind"^^xsd:string . |
808 | 928 | ||
809 | _:b22 | 929 | _:b22 |
810 | - sp:varName "flowRef"^^xsd:string . | 930 | + sp:varName "facilityParent1Ref"^^xsd:string . |
811 | 931 | ||
812 | _:b23 | 932 | _:b23 |
813 | - sp:varName "flowKind"^^xsd:string . | 933 | + sp:varName "facilityParent1Name"^^xsd:string . |
814 | 934 | ||
815 | _:b24 | 935 | _:b24 |
816 | - sp:varName "flowDirection"^^xsd:string . | 936 | + sp:varName "normalizedFacilityChildName"^^xsd:string . |
817 | 937 | ||
818 | _:b25 | 938 | _:b25 |
819 | - sp:varName "relatedFacilityRef"^^xsd:string . | 939 | + sp:varName "normalizedFacilityParent1Name"^^xsd:string . |
820 | 940 | ||
821 | -_:b26 | 941 | +_:b16 |
822 | - sp:varName "relatedFacilityName"^^xsd:string . | 942 | + sp:varName "normalizedFacilityName"^^xsd:string . |
823 | 943 | ||
824 | -_:b27 | 944 | +_:b15 |
825 | - sp:varName "relatedFacilityKind"^^xsd:string . | 945 | + sp:varName "productionFacility"^^xsd:string . |
826 | 946 | ||
827 | -_:b28 | 947 | +_:b17 |
948 | + sp:varName "productionFacilityType"^^xsd:string . | ||
949 | + | ||
950 | +_:b72 | ||
951 | + sp:varName "facilityRef"^^xsd:string . | ||
952 | + | ||
953 | +_:b73 | ||
954 | + sp:varName "facilityNameRef"^^xsd:string . | ||
955 | + | ||
956 | +_:b74 | ||
957 | + sp:varName "facilityChildName"^^xsd:string . | ||
958 | + | ||
959 | +_:b75 | ||
960 | + sp:varName "facilityKind"^^xsd:string . | ||
961 | + | ||
962 | +_:b76 | ||
963 | + sp:varName "facilityParent1Ref"^^xsd:string . | ||
964 | + | ||
965 | +_:b77 | ||
966 | + sp:varName "facilityParent1Name"^^xsd:string . | ||
967 | + | ||
968 | +_:b78 | ||
969 | + sp:varName "facilityParent2Ref"^^xsd:string . | ||
970 | + | ||
971 | +_:b79 | ||
972 | + sp:varName "facilityParent2Name"^^xsd:string . | ||
973 | + | ||
974 | +_:b80 | ||
975 | + sp:varName "normalizedFacilityChildName"^^xsd:string . | ||
976 | + | ||
977 | +_:b81 | ||
978 | + sp:varName "normalizedFacilityParent1Name"^^xsd:string . | ||
979 | + | ||
980 | +_:b70 | ||
828 | sp:varName "normalizedFacilityName"^^xsd:string . | 981 | sp:varName "normalizedFacilityName"^^xsd:string . |
829 | 982 | ||
830 | -_:b29 | 983 | +_:b69 |
984 | + sp:varName "productionFacility"^^xsd:string . | ||
985 | + | ||
986 | +_:b71 | ||
987 | + sp:varName "productionFacilityType"^^xsd:string . | ||
988 | + | ||
989 | +_:b48 | ||
990 | + sp:varName "dailyProductionFlows"^^xsd:string . | ||
991 | + | ||
992 | +_:b45 | ||
993 | + sp:varName "productionFlowsToDate"^^xsd:string . | ||
994 | + | ||
995 | +_:b49 | ||
996 | + sp:varName "facilityRef"^^xsd:string . | ||
997 | + | ||
998 | +_:b38 | ||
999 | + sp:varName "productionFacility"^^xsd:string . | ||
1000 | + | ||
1001 | +_:b46 | ||
1002 | + sp:varName "flowRef"^^xsd:string . | ||
1003 | + | ||
1004 | +_:b43 | ||
1005 | + sp:varName "flowName"^^xsd:string . | ||
1006 | + | ||
1007 | +_:b50 | ||
1008 | + sp:varName "flowKind"^^xsd:string . | ||
1009 | + | ||
1010 | +_:b51 | ||
1011 | + sp:varName "flowDirection"^^xsd:string . | ||
1012 | + | ||
1013 | +_:b52 | ||
1014 | + sp:varName "flowQualifier"^^xsd:string . | ||
1015 | + | ||
1016 | +_:b41 | ||
831 | sp:varName "productionFlowPurposeType"^^xsd:string . | 1017 | sp:varName "productionFlowPurposeType"^^xsd:string . |
832 | 1018 | ||
833 | -_:b30 | 1019 | +_:b53 |
834 | sp:varName "productionFlowPurposeTypeName"^^xsd:string . | 1020 | sp:varName "productionFlowPurposeTypeName"^^xsd:string . |
835 | 1021 | ||
836 | -_:b17 | 1022 | +_:b54 |
1023 | + sp:varName "normalizedProductionFlowPurposeTypeName"^^xsd:string . | ||
1024 | + | ||
1025 | +_:b55 | ||
1026 | + sp:varName "normalizedFacilityName"^^xsd:string . | ||
1027 | + | ||
1028 | +_:b47 | ||
1029 | + sp:varName "normalizedProductionFlowName"^^xsd:string . | ||
1030 | + | ||
1031 | +_:b40 | ||
837 | sp:varName "productionFlow"^^xsd:string . | 1032 | sp:varName "productionFlow"^^xsd:string . |
838 | 1033 | ||
839 | -_:b31 | 1034 | +_:b42 |
840 | - sp:varName "normalizedRelatedFacilityName"^^xsd:string . | 1035 | + sp:varName "productionFlowDefinitionType"^^xsd:string . |
841 | 1036 | ||
842 | -_:b15 | 1037 | +_:b39 |
843 | - sp:varName "relatedFacility"^^xsd:string . | 1038 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . |
844 | 1039 | ||
845 | -_:b18 | 1040 | +_:b60 |
1041 | + sp:varName "facilityRef"^^xsd:string . | ||
1042 | + | ||
1043 | +_:b61 | ||
1044 | + sp:varName "flowRef"^^xsd:string . | ||
1045 | + | ||
1046 | +_:b62 | ||
1047 | + sp:varName "productionFlowToDate"^^xsd:string . | ||
1048 | + | ||
1049 | +_:b58 | ||
1050 | + sp:varName "productionFlow"^^xsd:string . | ||
1051 | + | ||
1052 | +_:b63 | ||
1053 | + sp:varName "flowDirection"^^xsd:string . | ||
1054 | + | ||
1055 | +_:b64 | ||
1056 | + sp:varName "relatedFacilityRef"^^xsd:string . | ||
1057 | + | ||
1058 | +_:b65 | ||
1059 | + sp:varName "relatedFacilityKind"^^xsd:string . | ||
1060 | + | ||
1061 | +_:b59 | ||
846 | sp:varName "relatedFacilityType"^^xsd:string . | 1062 | sp:varName "relatedFacilityType"^^xsd:string . |
847 | 1063 | ||
848 | -_:b16 | 1064 | +_:b57 |
849 | sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . | 1065 | sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . |
850 | 1066 | ||
851 | -_:b5 sp:varName "facilityRef"^^xsd:string . | 1067 | +_:b8 sp:varName "facilityRef"^^xsd:string . |
852 | 1068 | ||
853 | -_:b6 sp:varName "facilityNameRef"^^xsd:string . | 1069 | +_:b9 sp:varName "flowRef"^^xsd:string . |
854 | 1070 | ||
855 | -_:b7 sp:varName "facilityName"^^xsd:string . | 1071 | +_:b7 sp:varName "productRef"^^xsd:string . |
856 | 1072 | ||
857 | -_:b8 sp:varName "flowRef"^^xsd:string . | 1073 | +_:b6 sp:varName "productionFlowToDate"^^xsd:string . |
858 | 1074 | ||
859 | -_:b9 sp:varName "flowDirection"^^xsd:string . | 1075 | +_:b2 sp:varName "productionFlow"^^xsd:string . |
860 | 1076 | ||
861 | _:b10 | 1077 | _:b10 |
862 | - sp:varName "relatedFacilityRef"^^xsd:string . | 1078 | + sp:varName "productKind"^^xsd:string . |
863 | 1079 | ||
864 | _:b11 | 1080 | _:b11 |
865 | - sp:varName "relatedFacilityKind"^^xsd:string . | 1081 | + sp:varName "productNameRef"^^xsd:string . |
1082 | + | ||
1083 | +_:b4 sp:varName "productFlowName"^^xsd:string . | ||
1084 | + | ||
1085 | +_:b3 sp:varName "productType"^^xsd:string . | ||
866 | 1086 | ||
867 | _:b12 | 1087 | _:b12 |
868 | - sp:varName "normalizedFacilityName"^^xsd:string . | 1088 | + sp:varName "productTypeName"^^xsd:string . |
869 | 1089 | ||
870 | _:b13 | 1090 | _:b13 |
871 | - sp:varName "productionFlowPurposeType"^^xsd:string . | 1091 | + sp:varName "normalizedProductTypeName"^^xsd:string . |
872 | 1092 | ||
873 | _:b14 | 1093 | _:b14 |
874 | - sp:varName "productionFlowPurposeTypeName"^^xsd:string . | 1094 | + sp:varName "normalizedProductionFlowName"^^xsd:string . |
875 | - | ||
876 | -_:b3 sp:varName "productionFlow"^^xsd:string . | ||
877 | - | ||
878 | -_:b4 sp:varName "relatedFacilityType"^^xsd:string . | ||
879 | 1095 | ||
880 | -_:b2 sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . | 1096 | +_:b1 sp:varName "productFlow"^^xsd:string . | ... | ... |
This diff could not be displayed because it is too large.
1 | -# Saved by TopBraid on Fri Dec 16 17:53:47 GMT 2011 | 1 | +# Saved by TopBraid on Sun Dec 18 21:07:10 GMT 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
1 | -# Saved by TopBraid on Tue Oct 25 15:26:03 BST 2011 | 1 | +# Saved by TopBraid on Sun Dec 18 21:17:35 GMT 2011 |
2 | # baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest | 2 | # baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest |
3 | # imports: http://www.reportinghub.no/np/data/npd | 3 | # imports: http://www.reportinghub.no/np/data/npd |
4 | # imports: http://www.reportinghub.no/np/data/npd-alias-identifiers | 4 | # imports: http://www.reportinghub.no/np/data/npd-alias-identifiers |
... | @@ -11,6 +11,7 @@ | ... | @@ -11,6 +11,7 @@ |
11 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 11 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
12 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 12 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
13 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 13 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
14 | +@prefix small_amount_of_product_volume_data: <file:///EPIM-Ontologies/www.reportinghub.no/test/dpr/testcase/small_amount_of_product_volume_data.xml#> . | ||
14 | @prefix sp: <http://spinrdf.org/sp#> . | 15 | @prefix sp: <http://spinrdf.org/sp#> . |
15 | @prefix spin: <http://spinrdf.org/spin#> . | 16 | @prefix spin: <http://spinrdf.org/spin#> . |
16 | @prefix spl: <http://spinrdf.org/spl#> . | 17 | @prefix spl: <http://spinrdf.org/spl#> . | ... | ... |
1 | -# Saved by TopBraid on Tue Oct 25 15:26:03 BST 2011 | 1 | +# Saved by TopBraid on Sun Dec 18 21:17:35 GMT 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
-
Please register or login to post a comment