Showing
4 changed files
with
92 additions
and
17 deletions
| 1 | -# Saved by TopBraid on Sun Dec 18 21:34:11 GMT 2011 | ||
| 2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/geography | 1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/geography |
| 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/core | 2 | # imports: http://www.reportinghub.no/ep/schema/1.0/core |
| 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/facility | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/facility |
| 5 | -# imports: http://www.reportinghub.no/np/schema/1.0/npd | ||
| 6 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-core | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-core |
| 5 | +# imports: http://www.reportinghub.no/np/schema/1.0/npd | ||
| 7 | 6 | ||
| 8 | @prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . | 7 | @prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . |
| 9 | @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . | 8 | @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . |
| ... | @@ -15,11 +14,11 @@ | ... | @@ -15,11 +14,11 @@ |
| 15 | 14 | ||
| 16 | <http://www.reportinghub.no/ep/schema/1.0/geography> | 15 | <http://www.reportinghub.no/ep/schema/1.0/geography> |
| 17 | rdf:type owl:Ontology ; | 16 | rdf:type owl:Ontology ; |
| 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> ; | 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> ; |
| 19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 18 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 20 | 19 | ||
| 21 | ep-core:Area | 20 | ep-core:Area |
| 22 | - rdf:type rdfs:Class , ep-core:PropertySpace ; | 21 | + rdf:type ep-core:PropertySpace , rdfs:Class ; |
| 23 | rdfs:label "Compressibility"^^xsd:string ; | 22 | rdfs:label "Compressibility"^^xsd:string ; |
| 24 | rdfs:subClassOf owl:Class . | 23 | rdfs:subClassOf owl:Class . |
| 25 | 24 | ||
| ... | @@ -39,22 +38,32 @@ ep-core:licenceBlockHasNpdPolygonPart | ... | @@ -39,22 +38,32 @@ ep-core:licenceBlockHasNpdPolygonPart |
| 39 | rdfs:subPropertyOf ep-core:hasPart . | 38 | rdfs:subPropertyOf ep-core:hasPart . |
| 40 | 39 | ||
| 41 | ep-geo:AreaCoveredByBusinessArrangement | 40 | ep-geo:AreaCoveredByBusinessArrangement |
| 42 | - rdf:type owl:Class , ep-fac:ProductionFacilityType ; | 41 | + rdf:type ep-fac:ProductionFacilityType , owl:Class ; |
| 43 | rdfs:label "A part of the earth recognised in a Business Arrangement"^^xsd:string ; | 42 | rdfs:label "A part of the earth recognised in a Business Arrangement"^^xsd:string ; |
| 44 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 43 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 45 | - owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:State , ep-geo:LicenceBlock . | 44 | + owl:disjointWith ep-geo:LicenceBlock , ep-geo:State , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country . |
| 46 | 45 | ||
| 47 | ep-geo:Country | 46 | ep-geo:Country |
| 48 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 47 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 49 | rdfs:label "country"^^xsd:string ; | 48 | rdfs:label "country"^^xsd:string ; |
| 50 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 49 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 51 | - owl:disjointWith ep-geo:State , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement . | 50 | + owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:State . |
| 52 | 51 | ||
| 53 | ep-geo:County | 52 | ep-geo:County |
| 54 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 53 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 55 | rdfs:label "county"^^xsd:string ; | 54 | rdfs:label "county"^^xsd:string ; |
| 56 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 55 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 57 | - owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:State , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement . | 56 | + owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:State , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country . |
| 57 | + | ||
| 58 | +ep-geo:DestinationType | ||
| 59 | + rdf:type rdfs:Class ; | ||
| 60 | + rdfs:label "destination type"^^xsd:string ; | ||
| 61 | + rdfs:subClassOf owl:Class . | ||
| 62 | + | ||
| 63 | +ep-geo:Harbour | ||
| 64 | + rdf:type ep-geo:DestinationType , owl:Class ; | ||
| 65 | + rdfs:label "harbour"^^xsd:string ; | ||
| 66 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth . | ||
| 58 | 67 | ||
| 59 | ep-geo:LicenceBlock | 68 | ep-geo:LicenceBlock |
| 60 | rdf:type owl:Class , ep-fac:ProductionFacilityType ; | 69 | rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| ... | @@ -71,7 +80,7 @@ ep-geo:OffshoreLocation | ... | @@ -71,7 +80,7 @@ ep-geo:OffshoreLocation |
| 71 | ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon | 80 | ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon |
| 72 | rdf:type owl:Class ; | 81 | rdf:type owl:Class ; |
| 73 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 82 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 74 | - owl:disjointWith ep-geo:State , ep-geo:Country , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement . | 83 | + owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:Country , ep-geo:State . |
| 75 | 84 | ||
| 76 | ep-geo:PartOfTheSurfaceOfTheEarth | 85 | ep-geo:PartOfTheSurfaceOfTheEarth |
| 77 | rdf:type owl:Class ; | 86 | rdf:type owl:Class ; |
| ... | @@ -79,10 +88,15 @@ ep-geo:PartOfTheSurfaceOfTheEarth | ... | @@ -79,10 +88,15 @@ ep-geo:PartOfTheSurfaceOfTheEarth |
| 79 | rdfs:subClassOf ep-core:PhysicalObject . | 88 | rdfs:subClassOf ep-core:PhysicalObject . |
| 80 | 89 | ||
| 81 | ep-geo:State | 90 | ep-geo:State |
| 82 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 91 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 83 | rdfs:label "state"^^xsd:string ; | 92 | rdfs:label "state"^^xsd:string ; |
| 84 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 93 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 85 | - owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement . | 94 | + owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country . |
| 95 | + | ||
| 96 | +ep-geo:Terminal | ||
| 97 | + rdf:type ep-geo:DestinationType , owl:Class ; | ||
| 98 | + rdfs:label "terminal"^^xsd:string ; | ||
| 99 | + rdfs:subClassOf ep-fac:Facility , ep-geo:PartOfTheSurfaceOfTheEarth . | ||
| 86 | 100 | ||
| 87 | ep-geo:areaOnSurfaceOfEarth | 101 | ep-geo:areaOnSurfaceOfEarth |
| 88 | rdf:type owl:ObjectProperty ; | 102 | rdf:type owl:ObjectProperty ; |
| ... | @@ -105,12 +119,12 @@ ep-geo:hasNorthSeaAreaName | ... | @@ -105,12 +119,12 @@ ep-geo:hasNorthSeaAreaName |
| 105 | rdfs:label "has North Sea area name"^^xsd:string . | 119 | rdfs:label "has North Sea area name"^^xsd:string . |
| 106 | 120 | ||
| 107 | ep-geo:hasNorthSeaBlockSuffixId | 121 | ep-geo:hasNorthSeaBlockSuffixId |
| 108 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 122 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
| 109 | rdfs:domain ep-geo:OffshoreLocation ; | 123 | rdfs:domain ep-geo:OffshoreLocation ; |
| 110 | rdfs:label "has North Sea block suffix ID"^^xsd:string . | 124 | rdfs:label "has North Sea block suffix ID"^^xsd:string . |
| 111 | 125 | ||
| 112 | ep-geo:hasNorthSeaQuadrantId | 126 | ep-geo:hasNorthSeaQuadrantId |
| 113 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 127 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
| 114 | rdfs:domain ep-geo:OffshoreLocation ; | 128 | rdfs:domain ep-geo:OffshoreLocation ; |
| 115 | rdfs:label "has North Sea quadrant ID"^^xsd:string . | 129 | rdfs:label "has North Sea quadrant ID"^^xsd:string . |
| 116 | 130 | ... | ... |
This diff is collapsed. Click to expand it.
| ... | @@ -12,6 +12,7 @@ | ... | @@ -12,6 +12,7 @@ |
| 12 | @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | 12 | @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . |
| 13 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 13 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
| 14 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 14 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 15 | +@prefix production-geometry: <http://evn.topbraidlive.org/www.reportinghub.no/ep/schema/1.0/production-geometry#> . | ||
| 15 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 16 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 16 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 17 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 17 | @prefix sp: <http://spinrdf.org/sp#> . | 18 | @prefix sp: <http://spinrdf.org/sp#> . |
| ... | @@ -479,6 +480,37 @@ ep-mpr-spin-lib:selectDensityScale | ... | @@ -479,6 +480,37 @@ ep-mpr-spin-lib:selectDensityScale |
| 479 | ]) | 480 | ]) |
| 480 | ] . | 481 | ] . |
| 481 | 482 | ||
| 483 | +ep-mpr-spin-lib:selectDestinationType | ||
| 484 | + rdf:type spin:Function ; | ||
| 485 | + rdfs:label "select DestinationType"^^xsd:string ; | ||
| 486 | + rdfs:subClassOf ep-mpr-spin-lib:Function ; | ||
| 487 | + spin:body | ||
| 488 | + [ rdf:type sp:Select ; | ||
| 489 | + sp:resultVariables ([ sp:varName "destinationType"^^xsd:string | ||
| 490 | + ]) ; | ||
| 491 | + sp:where ([ rdf:type sp:Bind ; | ||
| 492 | + sp:expression | ||
| 493 | + [ rdf:type sp:if ; | ||
| 494 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 495 | + sp:arg1 spin:_arg1 ; | ||
| 496 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#SDT_harbour> | ||
| 497 | + ] ; | ||
| 498 | + sp:arg2 <http://www.reportinghub.no/ep/schema/geography#Harbour> ; | ||
| 499 | + sp:arg3 [ rdf:type sp:if ; | ||
| 500 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 501 | + sp:arg1 spin:_arg1 ; | ||
| 502 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#SDT_terminal> | ||
| 503 | + ] ; | ||
| 504 | + sp:arg2 <http://www.reportinghub.no/ep/schema/geography#Terminal> ; | ||
| 505 | + sp:arg3 <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> | ||
| 506 | + ] | ||
| 507 | + ] ; | ||
| 508 | + sp:variable | ||
| 509 | + [ sp:varName "destinationType"^^xsd:string | ||
| 510 | + ] | ||
| 511 | + ]) | ||
| 512 | + ] . | ||
| 513 | + | ||
| 482 | ep-mpr-spin-lib:selectDimensionlessScale | 514 | ep-mpr-spin-lib:selectDimensionlessScale |
| 483 | rdf:type spin:Function ; | 515 | rdf:type spin:Function ; |
| 484 | rdfs:subClassOf ep-mpr-spin-lib:Function ; | 516 | rdfs:subClassOf ep-mpr-spin-lib:Function ; |
| ... | @@ -4665,6 +4697,37 @@ ep-mpr-spin-lib:selectRatioScale | ... | @@ -4665,6 +4697,37 @@ ep-mpr-spin-lib:selectRatioScale |
| 4665 | ]) | 4697 | ]) |
| 4666 | ] . | 4698 | ] . |
| 4667 | 4699 | ||
| 4700 | +ep-mpr-spin-lib:selectSalesActivityType | ||
| 4701 | + rdf:type spin:Function ; | ||
| 4702 | + rdfs:label "select SalesActivityType"^^xsd:string ; | ||
| 4703 | + rdfs:subClassOf ep-mpr-spin-lib:Function ; | ||
| 4704 | + spin:body | ||
| 4705 | + [ rdf:type sp:Select ; | ||
| 4706 | + sp:resultVariables ([ sp:varName "salesActivityType"^^xsd:string | ||
| 4707 | + ]) ; | ||
| 4708 | + sp:where ([ rdf:type sp:Bind ; | ||
| 4709 | + sp:expression | ||
| 4710 | + [ rdf:type sp:if ; | ||
| 4711 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 4712 | + sp:arg1 spin:_arg1 ; | ||
| 4713 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#SEK_billoflading> | ||
| 4714 | + ] ; | ||
| 4715 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#IssueBillOfLading> ; | ||
| 4716 | + sp:arg3 [ rdf:type sp:if ; | ||
| 4717 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 4718 | + sp:arg1 spin:_arg1 ; | ||
| 4719 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#SEK_transactiondate> | ||
| 4720 | + ] ; | ||
| 4721 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-activity#MakeATransaction> ; | ||
| 4722 | + sp:arg3 <http://www.reportinghub.no/ep/schema/production-activity#SalesActivity> | ||
| 4723 | + ] | ||
| 4724 | + ] ; | ||
| 4725 | + sp:variable | ||
| 4726 | + [ sp:varName "salesActivityType"^^xsd:string | ||
| 4727 | + ] | ||
| 4728 | + ]) | ||
| 4729 | + ] . | ||
| 4730 | + | ||
| 4668 | ep-mpr-spin-lib:selectTemperatureScale | 4731 | ep-mpr-spin-lib:selectTemperatureScale |
| 4669 | rdf:type spin:Function ; | 4732 | rdf:type spin:Function ; |
| 4670 | rdfs:subClassOf ep-mpr-spin-lib:Function ; | 4733 | rdfs:subClassOf ep-mpr-spin-lib:Function ; |
| ... | @@ -6608,6 +6671,4 @@ ep-mpr-spin-lib:selectWorkScale | ... | @@ -6608,6 +6671,4 @@ ep-mpr-spin-lib:selectWorkScale |
| 6608 | ]) | 6671 | ]) |
| 6609 | ] . | 6672 | ] . |
| 6610 | 6673 | ||
| 6611 | - | ||
| 6612 | - | ||
| 6613 | _:b1 sp:varName "productVolumeReportPeriodType"^^xsd:string . | 6674 | _:b1 sp:varName "productVolumeReportPeriodType"^^xsd:string . | ... | ... |
This diff could not be displayed because it is too large.
-
Please register or login to post a comment