David Leal

Duplicate triples removed

......@@ -42,24 +42,7 @@
sp:predicate <http://www.reportinghub.no/ep/schema/organization#numberInCrew> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -122,7 +105,7 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40100 Create the ProductionOperationInstallationReport; the ProductionOperationActivity; and set the facility and number of beds"^^xsd:string ;
rdfs:comment "STEP 40100b Create the ProductionOperationInstallationReport; the ProductionOperationActivity; and set the facility - not the same as the ProductionOperationReportFacility"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
sp:predicate rdf:type ;
sp:subject _:b2
......@@ -170,16 +153,23 @@
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject _:b6
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "bedsAvailable"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-facility#numberOfBedsAvailable> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
sp:predicate rdf:type ;
......@@ -187,95 +177,109 @@
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Optional ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "installationRefx"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "installationRefx"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40100c Set the number of beds"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "bedsAvailable"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#bedsAvailable> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-facility#numberOfBedsAvailable> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "workRef"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "realWork"^^xsd:string
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "workRef"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWork"^^xsd:string
[ sp:varName "bedsAvailable"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#bedsAvailable> ;
sp:subject
[ sp:varName "workRef"^^xsd:string
[ sp:varName "installationReportRef"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40103 Set the hours worked year to date"^^xsd:string ;
rdfs:comment "STEP 40102 Set the hours worked month to date"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#timeWorked> ;
sp:subject
[ sp:varName "annualProductionOperationToDate"^^xsd:string
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
[ sp:varName "realWorkYearToDate"^^xsd:string
[ sp:varName "realWorkMonthToDate"^^xsd:string
] ;
sp:predicate
[ sp:varName "workYearToDateScale"^^xsd:string
[ sp:varName "workMonthToDateScale"^^xsd:string
] ;
sp:subject _:b7
]) ;
......@@ -338,65 +342,65 @@
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "annualProductionOperationToDate"^^xsd:string
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "annualProductionOperationToDate"^^xsd:string
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "workYearToDateRef"^^xsd:string
[ sp:varName "workMonthToDateRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workYearToDateRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workMonthToDateRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realWorkYearToDate"^^xsd:string
[ sp:varName "realWorkMonthToDate"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "workYearToDateRef"^^xsd:string
[ sp:varName "workMonthToDateRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWorkYearToDate"^^xsd:string
[ sp:varName "uomWorkMonthToDate"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "workYearToDateRef"^^xsd:string
[ sp:varName "workMonthToDateRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomWorkYearToDate"^^xsd:string
sp:arg1 [ sp:varName "uomWorkMonthToDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "workYearToDateScale"^^xsd:string
[ sp:varName "workMonthToDateScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40102 Set the hours worked month to date"^^xsd:string ;
rdfs:comment "STEP 40103 Set the hours worked year to date"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#timeWorked> ;
sp:subject
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
[ sp:varName "annualProductionOperationToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "realWorkMonthToDate"^^xsd:string
[ sp:varName "realWorkYearToDate"^^xsd:string
] ;
sp:predicate
[ sp:varName "workMonthToDateScale"^^xsd:string
[ sp:varName "workYearToDateScale"^^xsd:string
] ;
sp:subject _:b8
]) ;
......@@ -459,46 +463,46 @@
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
[ sp:varName "annualProductionOperationToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionOperationToDate> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "monthlyProductionOperationToDate"^^xsd:string
[ sp:varName "annualProductionOperationToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "workMonthToDateRef"^^xsd:string
[ sp:varName "workYearToDateRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workMonthToDateRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workYearToDateRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realWorkMonthToDate"^^xsd:string
[ sp:varName "realWorkYearToDate"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "workMonthToDateRef"^^xsd:string
[ sp:varName "workYearToDateRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWorkMonthToDate"^^xsd:string
[ sp:varName "uomWorkYearToDate"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "workMonthToDateRef"^^xsd:string
[ sp:varName "workYearToDateRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomWorkMonthToDate"^^xsd:string
sp:arg1 [ sp:varName "uomWorkYearToDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "workMonthToDateScale"^^xsd:string
[ sp:varName "workYearToDateScale"^^xsd:string
]
])
] ;
......@@ -610,9 +614,129 @@
[ sp:varName "workScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40100a Create the ProductionOperationInstallationReport; the ProductionOperationActivity; and set the facility - same as the ProductionOperationReportFacility"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object
[ sp:varName "productionOperationReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b10
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b10
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b10
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MonthlyProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject _:b13
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRefx"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRefx"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......