David Leal

Reorder product volume rules as suggested by Holger, and used map rather than IF…

… statements for volume UoM
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
15 15
16 <http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration> 16 <http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration>
17 rdf:type owl:Ontology ; 17 rdf:type owl:Ontology ;
18 - owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://spinrdf.org/spin> ; 18 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.epim.no/schemas/mprml/1> ;
19 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 19 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
20 20
21 <http://www.reportinghub.no/ep/schema/core#acre_ft> 21 <http://www.reportinghub.no/ep/schema/core#acre_ft>
22 transhelp:scaleMapsToMPREnumeration 22 transhelp:scaleMapsToMPREnumeration
23 - <http://www.epim.no/schemas/mprml/1#AU_acre.ft> . 23 + <http://www.epim.no/schemas/mprml/1#VU_acre.ft> , <http://www.epim.no/schemas/mprml/1#AU_acre.ft> .
24 24
25 <http://www.reportinghub.no/ep/schema/core#angstrom> 25 <http://www.reportinghub.no/ep/schema/core#angstrom>
26 transhelp:scaleMapsToMPREnumeration 26 transhelp:scaleMapsToMPREnumeration
...@@ -48,11 +48,11 @@ ...@@ -48,11 +48,11 @@
48 48
49 <http://www.reportinghub.no/ep/schema/core#barrel> 49 <http://www.reportinghub.no/ep/schema/core#barrel>
50 transhelp:scaleMapsToMPREnumeration 50 transhelp:scaleMapsToMPREnumeration
51 - <http://www.epim.no/schemas/mprml/1#AU_bbl> . 51 + <http://www.epim.no/schemas/mprml/1#VU_bbl> , <http://www.epim.no/schemas/mprml/1#AU_bbl> .
52 52
53 <http://www.reportinghub.no/ep/schema/core#billionFt3> 53 <http://www.reportinghub.no/ep/schema/core#billionFt3>
54 transhelp:scaleMapsToMPREnumeration 54 transhelp:scaleMapsToMPREnumeration
55 - <http://www.epim.no/schemas/mprml/1#AU_bcf> . 55 + <http://www.epim.no/schemas/mprml/1#VU_bcf> , <http://www.epim.no/schemas/mprml/1#AU_bcf> .
56 56
57 <http://www.reportinghub.no/ep/schema/core#celsius> 57 <http://www.reportinghub.no/ep/schema/core#celsius>
58 transhelp:scaleMapsToMPREnumeration 58 transhelp:scaleMapsToMPREnumeration
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
84 84
85 <http://www.reportinghub.no/ep/schema/core#cm3> 85 <http://www.reportinghub.no/ep/schema/core#cm3>
86 transhelp:scaleMapsToMPREnumeration 86 transhelp:scaleMapsToMPREnumeration
87 - <http://www.epim.no/schemas/mprml/1#AU_cm3> . 87 + <http://www.epim.no/schemas/mprml/1#VU_cm3> , <http://www.epim.no/schemas/mprml/1#AU_cm3> .
88 88
89 <http://www.reportinghub.no/ep/schema/core#cmH20at4degC> 89 <http://www.reportinghub.no/ep/schema/core#cmH20at4degC>
90 transhelp:scaleMapsToMPREnumeration 90 transhelp:scaleMapsToMPREnumeration
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
100 100
101 <http://www.reportinghub.no/ep/schema/core#dm3> 101 <http://www.reportinghub.no/ep/schema/core#dm3>
102 transhelp:scaleMapsToMPREnumeration 102 transhelp:scaleMapsToMPREnumeration
103 - <http://www.epim.no/schemas/mprml/1#AU_dm3> . 103 + <http://www.epim.no/schemas/mprml/1#VU_dm3> , <http://www.epim.no/schemas/mprml/1#AU_dm3> .
104 104
105 <http://www.reportinghub.no/ep/schema/core#dyne_cm-2> 105 <http://www.reportinghub.no/ep/schema/core#dyne_cm-2>
106 transhelp:scaleMapsToMPREnumeration 106 transhelp:scaleMapsToMPREnumeration
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
124 124
125 <http://www.reportinghub.no/ep/schema/core#foot3> 125 <http://www.reportinghub.no/ep/schema/core#foot3>
126 transhelp:scaleMapsToMPREnumeration 126 transhelp:scaleMapsToMPREnumeration
127 - <http://www.epim.no/schemas/mprml/1#AU_ft3> . 127 + <http://www.epim.no/schemas/mprml/1#VU_ft3> , <http://www.epim.no/schemas/mprml/1#AU_ft3> .
128 128
129 <http://www.reportinghub.no/ep/schema/core#footUS> 129 <http://www.reportinghub.no/ep/schema/core#footUS>
130 transhelp:scaleMapsToMPREnumeration 130 transhelp:scaleMapsToMPREnumeration
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
244 244
245 <http://www.reportinghub.no/ep/schema/core#hectare_metre> 245 <http://www.reportinghub.no/ep/schema/core#hectare_metre>
246 transhelp:scaleMapsToMPREnumeration 246 transhelp:scaleMapsToMPREnumeration
247 - <http://www.epim.no/schemas/mprml/1#AU_ha.m> . 247 + <http://www.epim.no/schemas/mprml/1#VU_ha.m> , <http://www.epim.no/schemas/mprml/1#AU_ha.m> .
248 248
249 <http://www.reportinghub.no/ep/schema/core#hectobar> 249 <http://www.reportinghub.no/ep/schema/core#hectobar>
250 transhelp:scaleMapsToMPREnumeration 250 transhelp:scaleMapsToMPREnumeration
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
252 252
253 <http://www.reportinghub.no/ep/schema/core#hectolitre> 253 <http://www.reportinghub.no/ep/schema/core#hectolitre>
254 transhelp:scaleMapsToMPREnumeration 254 transhelp:scaleMapsToMPREnumeration
255 - <http://www.epim.no/schemas/mprml/1#AU_hL> . 255 + <http://www.epim.no/schemas/mprml/1#VU_hL> , <http://www.epim.no/schemas/mprml/1#AU_hL> .
256 256
257 <http://www.reportinghub.no/ep/schema/core#hour> 257 <http://www.reportinghub.no/ep/schema/core#hour>
258 transhelp:scaleMapsToMPREnumeration 258 transhelp:scaleMapsToMPREnumeration
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
268 268
269 <http://www.reportinghub.no/ep/schema/core#in3> 269 <http://www.reportinghub.no/ep/schema/core#in3>
270 transhelp:scaleMapsToMPREnumeration 270 transhelp:scaleMapsToMPREnumeration
271 - <http://www.epim.no/schemas/mprml/1#AU_in3> . 271 + <http://www.epim.no/schemas/mprml/1#VU_in3> , <http://www.epim.no/schemas/mprml/1#AU_in3> .
272 272
273 <http://www.reportinghub.no/ep/schema/core#inH20at39.2F> 273 <http://www.reportinghub.no/ep/schema/core#inH20at39.2F>
274 transhelp:scaleMapsToMPREnumeration 274 transhelp:scaleMapsToMPREnumeration
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
340 340
341 <http://www.reportinghub.no/ep/schema/core#km3> 341 <http://www.reportinghub.no/ep/schema/core#km3>
342 transhelp:scaleMapsToMPREnumeration 342 transhelp:scaleMapsToMPREnumeration
343 - <http://www.epim.no/schemas/mprml/1#AU_km3> . 343 + <http://www.epim.no/schemas/mprml/1#VU_km3> , <http://www.epim.no/schemas/mprml/1#AU_km3> .
344 344
345 <http://www.reportinghub.no/ep/schema/core#km_cm-1> 345 <http://www.reportinghub.no/ep/schema/core#km_cm-1>
346 transhelp:scaleMapsToMPREnumeration 346 transhelp:scaleMapsToMPREnumeration
...@@ -420,7 +420,7 @@ ...@@ -420,7 +420,7 @@
420 420
421 <http://www.reportinghub.no/ep/schema/core#litre> 421 <http://www.reportinghub.no/ep/schema/core#litre>
422 transhelp:scaleMapsToMPREnumeration 422 transhelp:scaleMapsToMPREnumeration
423 - <http://www.epim.no/schemas/mprml/1#AU_L> . 423 + <http://www.epim.no/schemas/mprml/1#VU_L> , <http://www.epim.no/schemas/mprml/1#AU_L> .
424 424
425 <http://www.reportinghub.no/ep/schema/core#mBar> 425 <http://www.reportinghub.no/ep/schema/core#mBar>
426 transhelp:scaleMapsToMPREnumeration 426 transhelp:scaleMapsToMPREnumeration
...@@ -460,7 +460,7 @@ ...@@ -460,7 +460,7 @@
460 460
461 <http://www.reportinghub.no/ep/schema/core#metre3> 461 <http://www.reportinghub.no/ep/schema/core#metre3>
462 transhelp:scaleMapsToMPREnumeration 462 transhelp:scaleMapsToMPREnumeration
463 - <http://www.epim.no/schemas/mprml/1#AU_m3> . 463 + <http://www.epim.no/schemas/mprml/1#VU_m3> , <http://www.epim.no/schemas/mprml/1#AU_m3> .
464 464
465 <http://www.reportinghub.no/ep/schema/core#metre_German_Legal> 465 <http://www.reportinghub.no/ep/schema/core#metre_German_Legal>
466 transhelp:scaleMapsToMPREnumeration 466 transhelp:scaleMapsToMPREnumeration
...@@ -488,7 +488,7 @@ ...@@ -488,7 +488,7 @@
488 488
489 <http://www.reportinghub.no/ep/schema/core#micrometre2_m> 489 <http://www.reportinghub.no/ep/schema/core#micrometre2_m>
490 transhelp:scaleMapsToMPREnumeration 490 transhelp:scaleMapsToMPREnumeration
491 - <http://www.epim.no/schemas/mprml/1#AU_um2.m> . 491 + <http://www.epim.no/schemas/mprml/1#VU_um2.m> , <http://www.epim.no/schemas/mprml/1#AU_um2.m> .
492 492
493 <http://www.reportinghub.no/ep/schema/core#microsecond> 493 <http://www.reportinghub.no/ep/schema/core#microsecond>
494 transhelp:scaleMapsToMPREnumeration 494 transhelp:scaleMapsToMPREnumeration
...@@ -504,7 +504,7 @@ ...@@ -504,7 +504,7 @@
504 504
505 <http://www.reportinghub.no/ep/schema/core#mile3> 505 <http://www.reportinghub.no/ep/schema/core#mile3>
506 transhelp:scaleMapsToMPREnumeration 506 transhelp:scaleMapsToMPREnumeration
507 - <http://www.epim.no/schemas/mprml/1#AU_mi3> . 507 + <http://www.epim.no/schemas/mprml/1#VU_mi3> , <http://www.epim.no/schemas/mprml/1#AU_mi3> .
508 508
509 <http://www.reportinghub.no/ep/schema/core#mile_US> 509 <http://www.reportinghub.no/ep/schema/core#mile_US>
510 transhelp:scaleMapsToMPREnumeration 510 transhelp:scaleMapsToMPREnumeration
...@@ -532,23 +532,23 @@ ...@@ -532,23 +532,23 @@
532 532
533 <http://www.reportinghub.no/ep/schema/core#millilitre> 533 <http://www.reportinghub.no/ep/schema/core#millilitre>
534 transhelp:scaleMapsToMPREnumeration 534 transhelp:scaleMapsToMPREnumeration
535 - <http://www.epim.no/schemas/mprml/1#AU_mL> . 535 + <http://www.epim.no/schemas/mprml/1#VU_mL> , <http://www.epim.no/schemas/mprml/1#AU_mL> .
536 536
537 <http://www.reportinghub.no/ep/schema/core#millimetre> 537 <http://www.reportinghub.no/ep/schema/core#millimetre>
538 transhelp:scaleMapsToMPREnumeration 538 transhelp:scaleMapsToMPREnumeration
539 - <http://www.epim.no/schemas/mprml/1#AU_mm> , <http://www.epim.no/schemas/mprml/1#AnyUom_AU_mm> . 539 + <http://www.epim.no/schemas/mprml/1#AnyUom_AU_mm> , <http://www.epim.no/schemas/mprml/1#AU_mm> .
540 540
541 <http://www.reportinghub.no/ep/schema/core#million_barrel> 541 <http://www.reportinghub.no/ep/schema/core#million_barrel>
542 transhelp:scaleMapsToMPREnumeration 542 transhelp:scaleMapsToMPREnumeration
543 - <http://www.epim.no/schemas/mprml/1#AU_MMbbl> . 543 + <http://www.epim.no/schemas/mprml/1#VU_L> , <http://www.epim.no/schemas/mprml/1#AU_MMbbl> .
544 544
545 <http://www.reportinghub.no/ep/schema/core#million_foot3> 545 <http://www.reportinghub.no/ep/schema/core#million_foot3>
546 transhelp:scaleMapsToMPREnumeration 546 transhelp:scaleMapsToMPREnumeration
547 - <http://www.epim.no/schemas/mprml/1#AU_Mcf> , <http://www.epim.no/schemas/mprml/1#AU_Mft3> . 547 + <http://www.epim.no/schemas/mprml/1#VU_Mft3> , <http://www.epim.no/schemas/mprml/1#VU_Mcf> , <http://www.epim.no/schemas/mprml/1#AU_Mft3> , <http://www.epim.no/schemas/mprml/1#AU_Mcf> .
548 548
549 <http://www.reportinghub.no/ep/schema/core#million_metre3> 549 <http://www.reportinghub.no/ep/schema/core#million_metre3>
550 transhelp:scaleMapsToMPREnumeration 550 transhelp:scaleMapsToMPREnumeration
551 - <http://www.epim.no/schemas/mprml/1#AU_Mm3> . 551 + <http://www.epim.no/schemas/mprml/1#VU_Mm3> , <http://www.epim.no/schemas/mprml/1#AU_Mm3> .
552 552
553 <http://www.reportinghub.no/ep/schema/core#millisecond> 553 <http://www.reportinghub.no/ep/schema/core#millisecond>
554 transhelp:scaleMapsToMPREnumeration 554 transhelp:scaleMapsToMPREnumeration
...@@ -564,7 +564,7 @@ ...@@ -564,7 +564,7 @@
564 564
565 <http://www.reportinghub.no/ep/schema/core#mm3> 565 <http://www.reportinghub.no/ep/schema/core#mm3>
566 transhelp:scaleMapsToMPREnumeration 566 transhelp:scaleMapsToMPREnumeration
567 - <http://www.epim.no/schemas/mprml/1#AU_mm3> . 567 + <http://www.epim.no/schemas/mprml/1#VU_mm3> , <http://www.epim.no/schemas/mprml/1#AU_mm3> .
568 568
569 <http://www.reportinghub.no/ep/schema/core#mmHgAt0C> 569 <http://www.reportinghub.no/ep/schema/core#mmHgAt0C>
570 transhelp:scaleMapsToMPREnumeration 570 transhelp:scaleMapsToMPREnumeration
...@@ -652,11 +652,11 @@ ...@@ -652,11 +652,11 @@
652 652
653 <http://www.reportinghub.no/ep/schema/core#thousandFt3> 653 <http://www.reportinghub.no/ep/schema/core#thousandFt3>
654 transhelp:scaleMapsToMPREnumeration 654 transhelp:scaleMapsToMPREnumeration
655 - <http://www.epim.no/schemas/mprml/1#AU_1000ft3> . 655 + <http://www.epim.no/schemas/mprml/1#VU_1000ft3> , <http://www.epim.no/schemas/mprml/1#AU_1000ft3> .
656 656
657 <http://www.reportinghub.no/ep/schema/core#thousand_barrel> 657 <http://www.reportinghub.no/ep/schema/core#thousand_barrel>
658 transhelp:scaleMapsToMPREnumeration 658 transhelp:scaleMapsToMPREnumeration
659 - <http://www.epim.no/schemas/mprml/1#AU_Mbbl> . 659 + <http://www.epim.no/schemas/mprml/1#VU_Mbbl> , <http://www.epim.no/schemas/mprml/1#AU_Mbbl> .
660 660
661 <http://www.reportinghub.no/ep/schema/core#torr> 661 <http://www.reportinghub.no/ep/schema/core#torr>
662 transhelp:scaleMapsToMPREnumeration 662 transhelp:scaleMapsToMPREnumeration
...@@ -664,23 +664,23 @@ ...@@ -664,23 +664,23 @@
664 664
665 <http://www.reportinghub.no/ep/schema/core#trillionFt3> 665 <http://www.reportinghub.no/ep/schema/core#trillionFt3>
666 transhelp:scaleMapsToMPREnumeration 666 transhelp:scaleMapsToMPREnumeration
667 - <http://www.epim.no/schemas/mprml/1#AU_tcf> . 667 + <http://www.epim.no/schemas/mprml/1#VU_tcf> , <http://www.epim.no/schemas/mprml/1#AU_tcf> .
668 668
669 <http://www.reportinghub.no/ep/schema/core#ukFlOz> 669 <http://www.reportinghub.no/ep/schema/core#ukFlOz>
670 transhelp:scaleMapsToMPREnumeration 670 transhelp:scaleMapsToMPREnumeration
671 - <http://www.epim.no/schemas/mprml/1#AU_flozUK> . 671 + <http://www.epim.no/schemas/mprml/1#VU_flozUK> , <http://www.epim.no/schemas/mprml/1#AU_flozUK> .
672 672
673 <http://www.reportinghub.no/ep/schema/core#ukGallon> 673 <http://www.reportinghub.no/ep/schema/core#ukGallon>
674 transhelp:scaleMapsToMPREnumeration 674 transhelp:scaleMapsToMPREnumeration
675 - <http://www.epim.no/schemas/mprml/1#AU_galUK> . 675 + <http://www.epim.no/schemas/mprml/1#VU_galUK> , <http://www.epim.no/schemas/mprml/1#AU_galUK> .
676 676
677 <http://www.reportinghub.no/ep/schema/core#ukPint> 677 <http://www.reportinghub.no/ep/schema/core#ukPint>
678 transhelp:scaleMapsToMPREnumeration 678 transhelp:scaleMapsToMPREnumeration
679 - <http://www.epim.no/schemas/mprml/1#AU_ptUK> . 679 + <http://www.epim.no/schemas/mprml/1#VU_ptUK> , <http://www.epim.no/schemas/mprml/1#AU_ptUK> .
680 680
681 <http://www.reportinghub.no/ep/schema/core#ukQuart> 681 <http://www.reportinghub.no/ep/schema/core#ukQuart>
682 transhelp:scaleMapsToMPREnumeration 682 transhelp:scaleMapsToMPREnumeration
683 - <http://www.epim.no/schemas/mprml/1#AU_qtUK> . 683 + <http://www.epim.no/schemas/mprml/1#VU_qtUK> , <http://www.epim.no/schemas/mprml/1#AU_qtUK> .
684 684
685 <http://www.reportinghub.no/ep/schema/core#umHgAt0C> 685 <http://www.reportinghub.no/ep/schema/core#umHgAt0C>
686 transhelp:scaleMapsToMPREnumeration 686 transhelp:scaleMapsToMPREnumeration
...@@ -692,19 +692,19 @@ ...@@ -692,19 +692,19 @@
692 692
693 <http://www.reportinghub.no/ep/schema/core#usFlOz> 693 <http://www.reportinghub.no/ep/schema/core#usFlOz>
694 transhelp:scaleMapsToMPREnumeration 694 transhelp:scaleMapsToMPREnumeration
695 - <http://www.epim.no/schemas/mprml/1#AU_flozUS> . 695 + <http://www.epim.no/schemas/mprml/1#VU_flozUS> , <http://www.epim.no/schemas/mprml/1#AU_flozUS> .
696 696
697 <http://www.reportinghub.no/ep/schema/core#usGallon> 697 <http://www.reportinghub.no/ep/schema/core#usGallon>
698 transhelp:scaleMapsToMPREnumeration 698 transhelp:scaleMapsToMPREnumeration
699 - <http://www.epim.no/schemas/mprml/1#AU_galUS> . 699 + <http://www.epim.no/schemas/mprml/1#VU_galUS> , <http://www.epim.no/schemas/mprml/1#AU_galUS> .
700 700
701 <http://www.reportinghub.no/ep/schema/core#usPint> 701 <http://www.reportinghub.no/ep/schema/core#usPint>
702 transhelp:scaleMapsToMPREnumeration 702 transhelp:scaleMapsToMPREnumeration
703 - <http://www.epim.no/schemas/mprml/1#AU_ptUS> . 703 + <http://www.epim.no/schemas/mprml/1#VU_ptUS> , <http://www.epim.no/schemas/mprml/1#AU_ptUS> .
704 704
705 <http://www.reportinghub.no/ep/schema/core#usQuart> 705 <http://www.reportinghub.no/ep/schema/core#usQuart>
706 transhelp:scaleMapsToMPREnumeration 706 transhelp:scaleMapsToMPREnumeration
707 - <http://www.epim.no/schemas/mprml/1#AU_qtUS> . 707 + <http://www.epim.no/schemas/mprml/1#VU_qtUS> , <http://www.epim.no/schemas/mprml/1#AU_qtUS> .
708 708
709 <http://www.reportinghub.no/ep/schema/core#usTonF_ft-2> 709 <http://www.reportinghub.no/ep/schema/core#usTonF_ft-2>
710 transhelp:scaleMapsToMPREnumeration 710 transhelp:scaleMapsToMPREnumeration
...@@ -724,7 +724,7 @@ ...@@ -724,7 +724,7 @@
724 724
725 <http://www.reportinghub.no/ep/schema/core#yard3> 725 <http://www.reportinghub.no/ep/schema/core#yard3>
726 transhelp:scaleMapsToMPREnumeration 726 transhelp:scaleMapsToMPREnumeration
727 - <http://www.epim.no/schemas/mprml/1#AU_yd3> . 727 + <http://www.epim.no/schemas/mprml/1#VU_yd3> , <http://www.epim.no/schemas/mprml/1#AU_yd3> .
728 728
729 <http://www.reportinghub.no/ep/schema/core#yd_Benoit_A> 729 <http://www.reportinghub.no/ep/schema/core#yd_Benoit_A>
730 transhelp:scaleMapsToMPREnumeration 730 transhelp:scaleMapsToMPREnumeration
......
...@@ -390,13 +390,11 @@ ...@@ -390,13 +390,11 @@
390 [ sp:varName "workRef"^^xsd:string 390 [ sp:varName "workRef"^^xsd:string
391 ] 391 ]
392 ]) 392 ])
393 - ] [ rdf:type sp:Bind ; 393 + ] [ sp:object
394 - sp:expression 394 + [ sp:varName "uomVolume"^^xsd:string
395 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
396 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
397 - ]
398 ] ; 395 ] ;
399 - sp:variable 396 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
397 + sp:subject
400 [ sp:varName "volumeScale"^^xsd:string 398 [ sp:varName "volumeScale"^^xsd:string
401 ] 399 ]
402 ] [ rdf:type sp:Bind ; 400 ] [ rdf:type sp:Bind ;
...@@ -2275,13 +2273,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2275,13 +2273,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2275 ] ; 2273 ] ;
2276 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 2274 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
2277 sp:subject spin:_this 2275 sp:subject spin:_this
2278 - ] [ rdf:type sp:Bind ; 2276 + ] [ sp:object
2279 - sp:expression 2277 + [ sp:varName "uomVolume"^^xsd:string
2280 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
2281 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
2282 - ]
2283 ] ; 2278 ] ;
2284 - sp:variable 2279 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
2280 + sp:subject
2285 [ sp:varName "volumeScale"^^xsd:string 2281 [ sp:varName "volumeScale"^^xsd:string
2286 ] 2282 ]
2287 ]) 2283 ])
...@@ -2384,22 +2380,16 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2384,22 +2380,16 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2384 ] ; 2380 ] ;
2385 spin:rule 2381 spin:rule
2386 [ rdf:type sp:Construct ; 2382 [ rdf:type sp:Construct ;
2387 - rdfs:comment "STEP 90071a Process volume for a quantity of material - creating volume if necessary"^^xsd:string ; 2383 + rdfs:comment "STEP 90071 Process volume for a quantity of material - volume exists"^^xsd:string ;
2388 - sp:templates ([ sp:object _:b43 ; 2384 + sp:templates ([ sp:object
2389 - sp:predicate rdf:type ;
2390 - sp:subject
2391 - [ sp:varName "quantityOfMaterial"^^xsd:string
2392 - ]
2393 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
2394 - sp:predicate rdf:type ;
2395 - sp:subject _:b43
2396 - ] [ sp:object
2397 [ sp:varName "realVolume"^^xsd:string 2385 [ sp:varName "realVolume"^^xsd:string
2398 ] ; 2386 ] ;
2399 sp:predicate 2387 sp:predicate
2400 [ sp:varName "volumeScale"^^xsd:string 2388 [ sp:varName "volumeScale"^^xsd:string
2401 ] ; 2389 ] ;
2402 - sp:subject _:b43 2390 + sp:subject
2391 + [ sp:varName "volume"^^xsd:string
2392 + ]
2403 ]) ; 2393 ]) ;
2404 sp:where ([ sp:object spin:_this ; 2394 sp:where ([ sp:object spin:_this ;
2405 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; 2395 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
...@@ -2418,20 +2408,18 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2418,20 +2408,18 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2418 sp:subject 2408 sp:subject
2419 [ sp:varName "quantityOfMaterial"^^xsd:string 2409 [ sp:varName "quantityOfMaterial"^^xsd:string
2420 ] 2410 ]
2421 - ] [ rdf:type sp:NotExists ; 2411 + ] [ sp:object
2422 - sp:elements ([ sp:object 2412 + [ sp:varName "volume"^^xsd:string
2423 - [ sp:varName "volume"^^xsd:string 2413 + ] ;
2424 - ] ; 2414 + sp:predicate rdf:type ;
2425 - sp:predicate rdf:type ; 2415 + sp:subject
2426 - sp:subject 2416 + [ sp:varName "quantityOfMaterial"^^xsd:string
2427 - [ sp:varName "quantityOfMaterial"^^xsd:string 2417 + ]
2428 - ] 2418 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
2429 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 2419 + sp:predicate rdf:type ;
2430 - sp:predicate rdf:type ; 2420 + sp:subject
2431 - sp:subject 2421 + [ sp:varName "volume"^^xsd:string
2432 - [ sp:varName "volume"^^xsd:string 2422 + ]
2433 - ]
2434 - ])
2435 ] [ rdf:type sp:NotExists ; 2423 ] [ rdf:type sp:NotExists ;
2436 sp:elements ([ sp:object 2424 sp:elements ([ sp:object
2437 [ sp:varName "target"^^xsd:string 2425 [ sp:varName "target"^^xsd:string
...@@ -2456,29 +2444,33 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2456,29 +2444,33 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2456 ] ; 2444 ] ;
2457 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 2445 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
2458 sp:subject spin:_this 2446 sp:subject spin:_this
2459 - ] [ rdf:type sp:Bind ; 2447 + ] [ sp:object
2460 - sp:expression 2448 + [ sp:varName "uomVolume"^^xsd:string
2461 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
2462 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
2463 - ]
2464 ] ; 2449 ] ;
2465 - sp:variable 2450 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
2451 + sp:subject
2466 [ sp:varName "volumeScale"^^xsd:string 2452 [ sp:varName "volumeScale"^^xsd:string
2467 ] 2453 ]
2468 ]) 2454 ])
2469 ] ; 2455 ] ;
2470 spin:rule 2456 spin:rule
2471 [ rdf:type sp:Construct ; 2457 [ rdf:type sp:Construct ;
2472 - rdfs:comment "STEP 90071 Process volume for a quantity of material - volume exists"^^xsd:string ; 2458 + rdfs:comment "STEP 90071a Process volume for a quantity of material - creating volume if necessary"^^xsd:string ;
2473 - sp:templates ([ sp:object 2459 + sp:templates ([ sp:object _:b43 ;
2460 + sp:predicate rdf:type ;
2461 + sp:subject
2462 + [ sp:varName "quantityOfMaterial"^^xsd:string
2463 + ]
2464 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
2465 + sp:predicate rdf:type ;
2466 + sp:subject _:b43
2467 + ] [ sp:object
2474 [ sp:varName "realVolume"^^xsd:string 2468 [ sp:varName "realVolume"^^xsd:string
2475 ] ; 2469 ] ;
2476 sp:predicate 2470 sp:predicate
2477 [ sp:varName "volumeScale"^^xsd:string 2471 [ sp:varName "volumeScale"^^xsd:string
2478 ] ; 2472 ] ;
2479 - sp:subject 2473 + sp:subject _:b43
2480 - [ sp:varName "volume"^^xsd:string
2481 - ]
2482 ]) ; 2474 ]) ;
2483 sp:where ([ sp:object spin:_this ; 2475 sp:where ([ sp:object spin:_this ;
2484 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; 2476 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
...@@ -2497,18 +2489,20 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2497,18 +2489,20 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2497 sp:subject 2489 sp:subject
2498 [ sp:varName "quantityOfMaterial"^^xsd:string 2490 [ sp:varName "quantityOfMaterial"^^xsd:string
2499 ] 2491 ]
2500 - ] [ sp:object 2492 + ] [ rdf:type sp:NotExists ;
2501 - [ sp:varName "volume"^^xsd:string 2493 + sp:elements ([ sp:object
2502 - ] ; 2494 + [ sp:varName "volume"^^xsd:string
2503 - sp:predicate rdf:type ; 2495 + ] ;
2504 - sp:subject 2496 + sp:predicate rdf:type ;
2505 - [ sp:varName "quantityOfMaterial"^^xsd:string 2497 + sp:subject
2506 - ] 2498 + [ sp:varName "quantityOfMaterial"^^xsd:string
2507 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 2499 + ]
2508 - sp:predicate rdf:type ; 2500 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
2509 - sp:subject 2501 + sp:predicate rdf:type ;
2510 - [ sp:varName "volume"^^xsd:string 2502 + sp:subject
2511 - ] 2503 + [ sp:varName "volume"^^xsd:string
2504 + ]
2505 + ])
2512 ] [ rdf:type sp:NotExists ; 2506 ] [ rdf:type sp:NotExists ;
2513 sp:elements ([ sp:object 2507 sp:elements ([ sp:object
2514 [ sp:varName "target"^^xsd:string 2508 [ sp:varName "target"^^xsd:string
...@@ -2533,13 +2527,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2533,13 +2527,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2533 ] ; 2527 ] ;
2534 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 2528 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
2535 sp:subject spin:_this 2529 sp:subject spin:_this
2536 - ] [ rdf:type sp:Bind ; 2530 + ] [ sp:object
2537 - sp:expression 2531 + [ sp:varName "uomVolume"^^xsd:string
2538 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
2539 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
2540 - ]
2541 ] ; 2532 ] ;
2542 - sp:variable 2533 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
2534 + sp:subject
2543 [ sp:varName "volumeScale"^^xsd:string 2535 [ sp:varName "volumeScale"^^xsd:string
2544 ] 2536 ]
2545 ]) 2537 ])
...@@ -2676,106 +2668,56 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2676,106 +2668,56 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2676 <http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure> 2668 <http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure>
2677 spin:rule 2669 spin:rule
2678 [ rdf:type sp:Construct ; 2670 [ rdf:type sp:Construct ;
2679 - rdfs:comment "STEP 90170b Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
2680 - sp:templates ([ sp:object _:b45 ;
2681 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
2682 - sp:subject
2683 - [ sp:varName "flow"^^xsd:string
2684 - ]
2685 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
2686 - sp:predicate rdf:type ;
2687 - sp:subject _:b45
2688 - ] [ sp:object
2689 - [ sp:varName "target"^^xsd:string
2690 - ] ;
2691 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
2692 - sp:subject _:b45
2693 - ]) ;
2694 - sp:where ([ sp:object spin:_this ;
2695 - sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ;
2696 - sp:subject
2697 - [ sp:varName "target"^^xsd:string
2698 - ]
2699 - ] [ sp:object
2700 - [ sp:varName "target"^^xsd:string
2701 - ] ;
2702 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
2703 - sp:subject
2704 - [ sp:varName "flow"^^xsd:string
2705 - ]
2706 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
2707 - sp:predicate rdf:type ;
2708 - sp:subject
2709 - [ sp:varName "flow"^^xsd:string
2710 - ]
2711 - ] [ rdf:type sp:NotExists ;
2712 - sp:elements ([ sp:object
2713 - [ sp:varName "target"^^xsd:string
2714 - ] ;
2715 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
2716 - sp:subject
2717 - [ sp:varName "quantityOfMaterialx"^^xsd:string
2718 - ]
2719 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
2720 - sp:predicate rdf:type ;
2721 - sp:subject
2722 - [ sp:varName "quantityOfMaterialx"^^xsd:string
2723 - ]
2724 - ])
2725 - ])
2726 - ] ;
2727 - spin:rule
2728 - [ rdf:type sp:Construct ;
2729 rdfs:comment "STEP 90173b Process volume at standard conditions for a quantity of material - status specified"^^xsd:string ; 2671 rdfs:comment "STEP 90173b Process volume at standard conditions for a quantity of material - status specified"^^xsd:string ;
2730 sp:templates ([ sp:object 2672 sp:templates ([ sp:object
2731 [ sp:varName "quantityOfMaterial"^^xsd:string 2673 [ sp:varName "quantityOfMaterial"^^xsd:string
2732 ] ; 2674 ] ;
2733 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2675 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2734 - sp:subject _:b46 2676 + sp:subject _:b45
2735 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 2677 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
2736 sp:predicate rdf:type ; 2678 sp:predicate rdf:type ;
2737 - sp:subject _:b46 2679 + sp:subject _:b45
2738 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ; 2680 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ;
2739 sp:predicate rdf:type ; 2681 sp:predicate rdf:type ;
2740 - sp:subject _:b46 2682 + sp:subject _:b45
2741 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ; 2683 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ;
2742 sp:predicate rdf:type ; 2684 sp:predicate rdf:type ;
2743 - sp:subject _:b46 2685 + sp:subject _:b45
2744 ] [ sp:object 2686 ] [ sp:object
2745 [ sp:varName "standardTemperature"^^xsd:string 2687 [ sp:varName "standardTemperature"^^xsd:string
2746 ] ; 2688 ] ;
2747 sp:predicate rdf:type ; 2689 sp:predicate rdf:type ;
2748 - sp:subject _:b46 2690 + sp:subject _:b45
2749 ] [ sp:object 2691 ] [ sp:object
2750 [ sp:varName "standardPressure"^^xsd:string 2692 [ sp:varName "standardPressure"^^xsd:string
2751 ] ; 2693 ] ;
2752 sp:predicate rdf:type ; 2694 sp:predicate rdf:type ;
2753 - sp:subject _:b46 2695 + sp:subject _:b45
2754 - ] [ sp:object _:b46 ; 2696 + ] [ sp:object _:b45 ;
2755 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2697 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2756 - sp:subject _:b47 2698 + sp:subject _:b46
2757 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 2699 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
2758 sp:predicate rdf:type ; 2700 sp:predicate rdf:type ;
2759 - sp:subject _:b47 2701 + sp:subject _:b46
2760 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; 2702 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
2761 sp:predicate rdf:type ; 2703 sp:predicate rdf:type ;
2762 - sp:subject _:b47 2704 + sp:subject _:b46
2763 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; 2705 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
2764 sp:predicate rdf:type ; 2706 sp:predicate rdf:type ;
2765 - sp:subject _:b47 2707 + sp:subject _:b46
2766 - ] [ sp:object _:b48 ; 2708 + ] [ sp:object _:b47 ;
2767 sp:predicate rdf:type ; 2709 sp:predicate rdf:type ;
2768 - sp:subject _:b47 2710 + sp:subject _:b46
2769 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 2711 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
2770 sp:predicate rdf:type ; 2712 sp:predicate rdf:type ;
2771 - sp:subject _:b48 2713 + sp:subject _:b47
2772 ] [ sp:object 2714 ] [ sp:object
2773 [ sp:varName "realVolume"^^xsd:string 2715 [ sp:varName "realVolume"^^xsd:string
2774 ] ; 2716 ] ;
2775 sp:predicate 2717 sp:predicate
2776 [ sp:varName "volumeScale"^^xsd:string 2718 [ sp:varName "volumeScale"^^xsd:string
2777 ] ; 2719 ] ;
2778 - sp:subject _:b48 2720 + sp:subject _:b47
2779 ]) ; 2721 ]) ;
2780 sp:where ([ sp:object spin:_this ; 2722 sp:where ([ sp:object spin:_this ;
2781 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ; 2723 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ;
...@@ -2804,13 +2746,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2804,13 +2746,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2804 ] ; 2746 ] ;
2805 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 2747 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
2806 sp:subject spin:_this 2748 sp:subject spin:_this
2807 - ] [ rdf:type sp:Bind ; 2749 + ] [ sp:object
2808 - sp:expression 2750 + [ sp:varName "uomVolume"^^xsd:string
2809 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
2810 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
2811 - ]
2812 ] ; 2751 ] ;
2813 - sp:variable 2752 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
2753 + sp:subject
2814 [ sp:varName "volumeScale"^^xsd:string 2754 [ sp:varName "volumeScale"^^xsd:string
2815 ] 2755 ]
2816 ] [ rdf:type sp:NotExists ; 2756 ] [ rdf:type sp:NotExists ;
...@@ -2856,53 +2796,53 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2856,53 +2796,53 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2856 [ sp:varName "quantityOfMaterial"^^xsd:string 2796 [ sp:varName "quantityOfMaterial"^^xsd:string
2857 ] ; 2797 ] ;
2858 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2798 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2859 - sp:subject _:b49 2799 + sp:subject _:b48
2860 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 2800 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
2861 sp:predicate rdf:type ; 2801 sp:predicate rdf:type ;
2862 - sp:subject _:b49 2802 + sp:subject _:b48
2863 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ; 2803 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ;
2864 sp:predicate rdf:type ; 2804 sp:predicate rdf:type ;
2865 - sp:subject _:b49 2805 + sp:subject _:b48
2866 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ; 2806 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ;
2867 sp:predicate rdf:type ; 2807 sp:predicate rdf:type ;
2868 - sp:subject _:b49 2808 + sp:subject _:b48
2869 ] [ sp:object 2809 ] [ sp:object
2870 [ sp:varName "standardTemperature"^^xsd:string 2810 [ sp:varName "standardTemperature"^^xsd:string
2871 ] ; 2811 ] ;
2872 sp:predicate rdf:type ; 2812 sp:predicate rdf:type ;
2873 - sp:subject _:b49 2813 + sp:subject _:b48
2874 ] [ sp:object 2814 ] [ sp:object
2875 [ sp:varName "standardPressure"^^xsd:string 2815 [ sp:varName "standardPressure"^^xsd:string
2876 ] ; 2816 ] ;
2877 sp:predicate rdf:type ; 2817 sp:predicate rdf:type ;
2878 - sp:subject _:b49 2818 + sp:subject _:b48
2879 - ] [ sp:object _:b49 ; 2819 + ] [ sp:object _:b48 ;
2880 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2820 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2881 - sp:subject _:b50 2821 + sp:subject _:b49
2882 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 2822 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
2883 sp:predicate rdf:type ; 2823 sp:predicate rdf:type ;
2884 - sp:subject _:b50 2824 + sp:subject _:b49
2885 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; 2825 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
2886 sp:predicate rdf:type ; 2826 sp:predicate rdf:type ;
2887 - sp:subject _:b50 2827 + sp:subject _:b49
2888 ] [ sp:object 2828 ] [ sp:object
2889 [ sp:varName "measuredQualityType"^^xsd:string 2829 [ sp:varName "measuredQualityType"^^xsd:string
2890 ] ; 2830 ] ;
2891 sp:predicate rdf:type ; 2831 sp:predicate rdf:type ;
2892 - sp:subject _:b50 2832 + sp:subject _:b49
2893 - ] [ sp:object _:b51 ; 2833 + ] [ sp:object _:b50 ;
2894 sp:predicate rdf:type ; 2834 sp:predicate rdf:type ;
2895 - sp:subject _:b50 2835 + sp:subject _:b49
2896 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 2836 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
2897 sp:predicate rdf:type ; 2837 sp:predicate rdf:type ;
2898 - sp:subject _:b51 2838 + sp:subject _:b50
2899 ] [ sp:object 2839 ] [ sp:object
2900 [ sp:varName "realVolume"^^xsd:string 2840 [ sp:varName "realVolume"^^xsd:string
2901 ] ; 2841 ] ;
2902 sp:predicate 2842 sp:predicate
2903 [ sp:varName "volumeScale"^^xsd:string 2843 [ sp:varName "volumeScale"^^xsd:string
2904 ] ; 2844 ] ;
2905 - sp:subject _:b51 2845 + sp:subject _:b50
2906 ]) ; 2846 ]) ;
2907 sp:where ([ sp:object spin:_this ; 2847 sp:where ([ sp:object spin:_this ;
2908 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ; 2848 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ;
...@@ -2931,13 +2871,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2931,13 +2871,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2931 ] ; 2871 ] ;
2932 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 2872 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
2933 sp:subject spin:_this 2873 sp:subject spin:_this
2934 - ] [ rdf:type sp:Bind ; 2874 + ] [ sp:object
2935 - sp:expression 2875 + [ sp:varName "uomVolume"^^xsd:string
2936 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
2937 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
2938 - ]
2939 ] ; 2876 ] ;
2940 - sp:variable 2877 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
2878 + sp:subject
2941 [ sp:varName "volumeScale"^^xsd:string 2879 [ sp:varName "volumeScale"^^xsd:string
2942 ] 2880 ]
2943 ] [ sp:object 2881 ] [ sp:object
...@@ -2990,38 +2928,38 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -2990,38 +2928,38 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
2990 [ sp:varName "quantityOfMaterial"^^xsd:string 2928 [ sp:varName "quantityOfMaterial"^^xsd:string
2991 ] ; 2929 ] ;
2992 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2930 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2993 - sp:subject _:b52 2931 + sp:subject _:b51
2994 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 2932 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
2995 sp:predicate rdf:type ; 2933 sp:predicate rdf:type ;
2996 - sp:subject _:b52 2934 + sp:subject _:b51
2997 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#FlowState> ; 2935 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#FlowState> ;
2998 sp:predicate rdf:type ; 2936 sp:predicate rdf:type ;
2999 - sp:subject _:b52 2937 + sp:subject _:b51
3000 - ] [ sp:object _:b52 ; 2938 + ] [ sp:object _:b51 ;
3001 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2939 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
3002 - sp:subject _:b53 2940 + sp:subject _:b52
3003 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 2941 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3004 sp:predicate rdf:type ; 2942 sp:predicate rdf:type ;
3005 - sp:subject _:b53 2943 + sp:subject _:b52
3006 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; 2944 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
3007 sp:predicate rdf:type ; 2945 sp:predicate rdf:type ;
3008 - sp:subject _:b53 2946 + sp:subject _:b52
3009 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; 2947 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
3010 sp:predicate rdf:type ; 2948 sp:predicate rdf:type ;
3011 - sp:subject _:b53 2949 + sp:subject _:b52
3012 - ] [ sp:object _:b54 ; 2950 + ] [ sp:object _:b53 ;
3013 sp:predicate rdf:type ; 2951 sp:predicate rdf:type ;
3014 - sp:subject _:b53 2952 + sp:subject _:b52
3015 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 2953 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
3016 sp:predicate rdf:type ; 2954 sp:predicate rdf:type ;
3017 - sp:subject _:b54 2955 + sp:subject _:b53
3018 ] [ sp:object 2956 ] [ sp:object
3019 [ sp:varName "realVolume"^^xsd:string 2957 [ sp:varName "realVolume"^^xsd:string
3020 ] ; 2958 ] ;
3021 sp:predicate 2959 sp:predicate
3022 [ sp:varName "volumeScale"^^xsd:string 2960 [ sp:varName "volumeScale"^^xsd:string
3023 ] ; 2961 ] ;
3024 - sp:subject _:b54 2962 + sp:subject _:b53
3025 ]) ; 2963 ]) ;
3026 sp:where ([ sp:object spin:_this ; 2964 sp:where ([ sp:object spin:_this ;
3027 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; 2965 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
...@@ -3059,13 +2997,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -3059,13 +2997,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
3059 ] ; 2997 ] ;
3060 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 2998 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
3061 sp:subject spin:_this 2999 sp:subject spin:_this
3062 - ] [ rdf:type sp:Bind ; 3000 + ] [ sp:object
3063 - sp:expression 3001 + [ sp:varName "uomVolume"^^xsd:string
3064 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
3065 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
3066 - ]
3067 ] ; 3002 ] ;
3068 - sp:variable 3003 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
3004 + sp:subject
3069 [ sp:varName "volumeScale"^^xsd:string 3005 [ sp:varName "volumeScale"^^xsd:string
3070 ] 3006 ]
3071 ] [ rdf:type sp:NotExists ; 3007 ] [ rdf:type sp:NotExists ;
...@@ -3084,40 +3020,40 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -3084,40 +3020,40 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
3084 [ sp:varName "quantityOfMaterial"^^xsd:string 3020 [ sp:varName "quantityOfMaterial"^^xsd:string
3085 ] ; 3021 ] ;
3086 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 3022 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
3087 - sp:subject _:b55 3023 + sp:subject _:b54
3088 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 3024 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3089 sp:predicate rdf:type ; 3025 sp:predicate rdf:type ;
3090 - sp:subject _:b55 3026 + sp:subject _:b54
3091 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#FlowState> ; 3027 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#FlowState> ;
3092 sp:predicate rdf:type ; 3028 sp:predicate rdf:type ;
3093 - sp:subject _:b55 3029 + sp:subject _:b54
3094 - ] [ sp:object _:b55 ; 3030 + ] [ sp:object _:b54 ;
3095 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 3031 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
3096 - sp:subject _:b56 3032 + sp:subject _:b55
3097 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 3033 ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3098 sp:predicate rdf:type ; 3034 sp:predicate rdf:type ;
3099 - sp:subject _:b56 3035 + sp:subject _:b55
3100 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; 3036 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
3101 sp:predicate rdf:type ; 3037 sp:predicate rdf:type ;
3102 - sp:subject _:b56 3038 + sp:subject _:b55
3103 ] [ sp:object 3039 ] [ sp:object
3104 [ sp:varName "measuredQualityType"^^xsd:string 3040 [ sp:varName "measuredQualityType"^^xsd:string
3105 ] ; 3041 ] ;
3106 sp:predicate rdf:type ; 3042 sp:predicate rdf:type ;
3107 - sp:subject _:b56 3043 + sp:subject _:b55
3108 - ] [ sp:object _:b57 ; 3044 + ] [ sp:object _:b56 ;
3109 sp:predicate rdf:type ; 3045 sp:predicate rdf:type ;
3110 - sp:subject _:b56 3046 + sp:subject _:b55
3111 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 3047 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
3112 sp:predicate rdf:type ; 3048 sp:predicate rdf:type ;
3113 - sp:subject _:b57 3049 + sp:subject _:b56
3114 ] [ sp:object 3050 ] [ sp:object
3115 [ sp:varName "realVolume"^^xsd:string 3051 [ sp:varName "realVolume"^^xsd:string
3116 ] ; 3052 ] ;
3117 sp:predicate 3053 sp:predicate
3118 [ sp:varName "volumeScale"^^xsd:string 3054 [ sp:varName "volumeScale"^^xsd:string
3119 ] ; 3055 ] ;
3120 - sp:subject _:b57 3056 + sp:subject _:b56
3121 ]) ; 3057 ]) ;
3122 sp:where ([ sp:object spin:_this ; 3058 sp:where ([ sp:object spin:_this ;
3123 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; 3059 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
...@@ -3155,13 +3091,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -3155,13 +3091,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
3155 ] ; 3091 ] ;
3156 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 3092 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
3157 sp:subject spin:_this 3093 sp:subject spin:_this
3158 - ] [ rdf:type sp:Bind ; 3094 + ] [ sp:object
3159 - sp:expression 3095 + [ sp:varName "uomVolume"^^xsd:string
3160 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
3161 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
3162 - ]
3163 ] ; 3096 ] ;
3164 - sp:variable 3097 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
3098 + sp:subject
3165 [ sp:varName "volumeScale"^^xsd:string 3099 [ sp:varName "volumeScale"^^xsd:string
3166 ] 3100 ]
3167 ] [ sp:object 3101 ] [ sp:object
...@@ -3185,44 +3119,44 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -3185,44 +3119,44 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
3185 rdfs:comment "STEP 90171b Process volume for a quantity of material - volume for a specified state - status not specified"^^xsd:string ; 3119 rdfs:comment "STEP 90171b Process volume for a quantity of material - volume for a specified state - status not specified"^^xsd:string ;
3186 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 3120 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3187 sp:predicate rdf:type ; 3121 sp:predicate rdf:type ;
3188 - sp:subject _:b58 3122 + sp:subject _:b57
3189 ] [ sp:object 3123 ] [ sp:object
3190 [ sp:varName "quantityOfMaterial"^^xsd:string 3124 [ sp:varName "quantityOfMaterial"^^xsd:string
3191 ] ; 3125 ] ;
3192 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 3126 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
3193 - sp:subject _:b58 3127 + sp:subject _:b57
3194 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; 3128 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
3195 sp:predicate rdf:type ; 3129 sp:predicate rdf:type ;
3196 - sp:subject _:b58 3130 + sp:subject _:b57
3197 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; 3131 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
3198 sp:predicate rdf:type ; 3132 sp:predicate rdf:type ;
3199 - sp:subject _:b58 3133 + sp:subject _:b57
3200 - ] [ sp:object _:b59 ; 3134 + ] [ sp:object _:b58 ;
3201 sp:predicate rdf:type ; 3135 sp:predicate rdf:type ;
3202 - sp:subject _:b58 3136 + sp:subject _:b57
3203 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 3137 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
3204 sp:predicate rdf:type ; 3138 sp:predicate rdf:type ;
3205 - sp:subject _:b59 3139 + sp:subject _:b58
3206 ] [ sp:object 3140 ] [ sp:object
3207 [ sp:varName "realVolume"^^xsd:string 3141 [ sp:varName "realVolume"^^xsd:string
3208 ] ; 3142 ] ;
3209 sp:predicate 3143 sp:predicate
3210 [ sp:varName "volumeScale"^^xsd:string 3144 [ sp:varName "volumeScale"^^xsd:string
3211 ] ; 3145 ] ;
3212 - sp:subject _:b59 3146 + sp:subject _:b58
3213 ]) ; 3147 ]) ;
3214 - sp:where ([ sp:object 3148 + sp:where ([ sp:object spin:_this ;
3149 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
3150 + sp:subject
3151 + [ sp:varName "target"^^xsd:string
3152 + ]
3153 + ] [ sp:object
3215 [ sp:varName "target"^^xsd:string 3154 [ sp:varName "target"^^xsd:string
3216 ] ; 3155 ] ;
3217 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ; 3156 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
3218 sp:subject 3157 sp:subject
3219 [ sp:varName "somethingRef"^^xsd:string 3158 [ sp:varName "somethingRef"^^xsd:string
3220 ] 3159 ]
3221 - ] [ sp:object spin:_this ;
3222 - sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
3223 - sp:subject
3224 - [ sp:varName "target"^^xsd:string
3225 - ]
3226 ] [ sp:object 3160 ] [ sp:object
3227 [ sp:varName "target"^^xsd:string 3161 [ sp:varName "target"^^xsd:string
3228 ] ; 3162 ] ;
...@@ -3245,13 +3179,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -3245,13 +3179,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
3245 ] ; 3179 ] ;
3246 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 3180 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
3247 sp:subject spin:_this 3181 sp:subject spin:_this
3248 - ] [ rdf:type sp:Bind ; 3182 + ] [ sp:object
3249 - sp:expression 3183 + [ sp:varName "uomVolume"^^xsd:string
3250 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
3251 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
3252 - ]
3253 ] ; 3184 ] ;
3254 - sp:variable 3185 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
3186 + sp:subject
3255 [ sp:varName "volumeScale"^^xsd:string 3187 [ sp:varName "volumeScale"^^xsd:string
3256 ] 3188 ]
3257 ] [ rdf:type sp:NotExists ; 3189 ] [ rdf:type sp:NotExists ;
...@@ -3265,49 +3197,149 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -3265,49 +3197,149 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
3265 ] ; 3197 ] ;
3266 spin:rule 3198 spin:rule
3267 [ rdf:type sp:Construct ; 3199 [ rdf:type sp:Construct ;
3200 + rdfs:comment "STEP 90170b Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
3201 + sp:templates ([ sp:object _:b59 ;
3202 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
3203 + sp:subject
3204 + [ sp:varName "flow"^^xsd:string
3205 + ]
3206 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3207 + sp:predicate rdf:type ;
3208 + sp:subject _:b59
3209 + ] [ sp:object
3210 + [ sp:varName "target"^^xsd:string
3211 + ] ;
3212 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3213 + sp:subject _:b59
3214 + ]) ;
3215 + sp:where ([ sp:object spin:_this ;
3216 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ;
3217 + sp:subject
3218 + [ sp:varName "target"^^xsd:string
3219 + ]
3220 + ] [ sp:object
3221 + [ sp:varName "target"^^xsd:string
3222 + ] ;
3223 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3224 + sp:subject
3225 + [ sp:varName "flow"^^xsd:string
3226 + ]
3227 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
3228 + sp:predicate rdf:type ;
3229 + sp:subject
3230 + [ sp:varName "flow"^^xsd:string
3231 + ]
3232 + ] [ rdf:type sp:NotExists ;
3233 + sp:elements ([ sp:object
3234 + [ sp:varName "target"^^xsd:string
3235 + ] ;
3236 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3237 + sp:subject
3238 + [ sp:varName "quantityOfMaterialx"^^xsd:string
3239 + ]
3240 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3241 + sp:predicate rdf:type ;
3242 + sp:subject
3243 + [ sp:varName "quantityOfMaterialx"^^xsd:string
3244 + ]
3245 + ])
3246 + ])
3247 + ] ;
3248 + spin:rule
3249 + [ rdf:type sp:Construct ;
3250 + rdfs:comment "STEP 90170a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
3251 + sp:templates ([ sp:object _:b60 ;
3252 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
3253 + sp:subject
3254 + [ sp:varName "flow"^^xsd:string
3255 + ]
3256 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3257 + sp:predicate rdf:type ;
3258 + sp:subject _:b60
3259 + ] [ sp:object
3260 + [ sp:varName "target"^^xsd:string
3261 + ] ;
3262 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3263 + sp:subject _:b60
3264 + ]) ;
3265 + sp:where ([ sp:object spin:_this ;
3266 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
3267 + sp:subject
3268 + [ sp:varName "target"^^xsd:string
3269 + ]
3270 + ] [ sp:object
3271 + [ sp:varName "target"^^xsd:string
3272 + ] ;
3273 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3274 + sp:subject
3275 + [ sp:varName "flow"^^xsd:string
3276 + ]
3277 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
3278 + sp:predicate rdf:type ;
3279 + sp:subject
3280 + [ sp:varName "flow"^^xsd:string
3281 + ]
3282 + ] [ rdf:type sp:NotExists ;
3283 + sp:elements ([ sp:object
3284 + [ sp:varName "target"^^xsd:string
3285 + ] ;
3286 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3287 + sp:subject
3288 + [ sp:varName "quantityOfMaterialx"^^xsd:string
3289 + ]
3290 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3291 + sp:predicate rdf:type ;
3292 + sp:subject
3293 + [ sp:varName "quantityOfMaterialx"^^xsd:string
3294 + ]
3295 + ])
3296 + ])
3297 + ] ;
3298 + spin:rule
3299 + [ rdf:type sp:Construct ;
3268 rdfs:comment "STEP 90171a Process volume for a quantity of material - volume for a specified state - status specified"^^xsd:string ; 3300 rdfs:comment "STEP 90171a Process volume for a quantity of material - volume for a specified state - status specified"^^xsd:string ;
3269 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 3301 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3270 sp:predicate rdf:type ; 3302 sp:predicate rdf:type ;
3271 - sp:subject _:b60 3303 + sp:subject _:b61
3272 ] [ sp:object 3304 ] [ sp:object
3273 [ sp:varName "quantityOfMaterial"^^xsd:string 3305 [ sp:varName "quantityOfMaterial"^^xsd:string
3274 ] ; 3306 ] ;
3275 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 3307 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
3276 - sp:subject _:b60 3308 + sp:subject _:b61
3277 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; 3309 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
3278 sp:predicate rdf:type ; 3310 sp:predicate rdf:type ;
3279 - sp:subject _:b60 3311 + sp:subject _:b61
3280 ] [ sp:object 3312 ] [ sp:object
3281 [ sp:varName "measuredQualityType"^^xsd:string 3313 [ sp:varName "measuredQualityType"^^xsd:string
3282 ] ; 3314 ] ;
3283 sp:predicate rdf:type ; 3315 sp:predicate rdf:type ;
3284 - sp:subject _:b60 3316 + sp:subject _:b61
3285 - ] [ sp:object _:b61 ; 3317 + ] [ sp:object _:b62 ;
3286 sp:predicate rdf:type ; 3318 sp:predicate rdf:type ;
3287 - sp:subject _:b60 3319 + sp:subject _:b61
3288 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 3320 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
3289 sp:predicate rdf:type ; 3321 sp:predicate rdf:type ;
3290 - sp:subject _:b61 3322 + sp:subject _:b62
3291 ] [ sp:object 3323 ] [ sp:object
3292 [ sp:varName "realVolume"^^xsd:string 3324 [ sp:varName "realVolume"^^xsd:string
3293 ] ; 3325 ] ;
3294 sp:predicate 3326 sp:predicate
3295 [ sp:varName "volumeScale"^^xsd:string 3327 [ sp:varName "volumeScale"^^xsd:string
3296 ] ; 3328 ] ;
3297 - sp:subject _:b61 3329 + sp:subject _:b62
3298 ]) ; 3330 ]) ;
3299 - sp:where ([ sp:object 3331 + sp:where ([ sp:object spin:_this ;
3332 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
3333 + sp:subject
3334 + [ sp:varName "target"^^xsd:string
3335 + ]
3336 + ] [ sp:object
3300 [ sp:varName "target"^^xsd:string 3337 [ sp:varName "target"^^xsd:string
3301 ] ; 3338 ] ;
3302 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ; 3339 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
3303 sp:subject 3340 sp:subject
3304 [ sp:varName "somethingRef"^^xsd:string 3341 [ sp:varName "somethingRef"^^xsd:string
3305 ] 3342 ]
3306 - ] [ sp:object spin:_this ;
3307 - sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
3308 - sp:subject
3309 - [ sp:varName "target"^^xsd:string
3310 - ]
3311 ] [ sp:object 3343 ] [ sp:object
3312 [ sp:varName "target"^^xsd:string 3344 [ sp:varName "target"^^xsd:string
3313 ] ; 3345 ] ;
...@@ -3330,13 +3362,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -3330,13 +3362,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
3330 ] ; 3362 ] ;
3331 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; 3363 sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
3332 sp:subject spin:_this 3364 sp:subject spin:_this
3333 - ] [ rdf:type sp:Bind ; 3365 + ] [ sp:object
3334 - sp:expression 3366 + [ sp:varName "uomVolume"^^xsd:string
3335 - [ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
3336 - sp:arg1 [ sp:varName "uomVolume"^^xsd:string
3337 - ]
3338 ] ; 3367 ] ;
3339 - sp:variable 3368 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
3369 + sp:subject
3340 [ sp:varName "volumeScale"^^xsd:string 3370 [ sp:varName "volumeScale"^^xsd:string
3341 ] 3371 ]
3342 ] [ sp:object 3372 ] [ sp:object
...@@ -3354,56 +3384,6 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; ...@@ -3354,56 +3384,6 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
3354 [ sp:varName "measuredQualityType"^^xsd:string 3384 [ sp:varName "measuredQualityType"^^xsd:string
3355 ] 3385 ]
3356 ]) 3386 ])
3357 - ] ;
3358 - spin:rule
3359 - [ rdf:type sp:Construct ;
3360 - rdfs:comment "STEP 90170a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
3361 - sp:templates ([ sp:object _:b62 ;
3362 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
3363 - sp:subject
3364 - [ sp:varName "flow"^^xsd:string
3365 - ]
3366 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3367 - sp:predicate rdf:type ;
3368 - sp:subject _:b62
3369 - ] [ sp:object
3370 - [ sp:varName "target"^^xsd:string
3371 - ] ;
3372 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3373 - sp:subject _:b62
3374 - ]) ;
3375 - sp:where ([ sp:object spin:_this ;
3376 - sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
3377 - sp:subject
3378 - [ sp:varName "target"^^xsd:string
3379 - ]
3380 - ] [ sp:object
3381 - [ sp:varName "target"^^xsd:string
3382 - ] ;
3383 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3384 - sp:subject
3385 - [ sp:varName "flow"^^xsd:string
3386 - ]
3387 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
3388 - sp:predicate rdf:type ;
3389 - sp:subject
3390 - [ sp:varName "flow"^^xsd:string
3391 - ]
3392 - ] [ rdf:type sp:NotExists ;
3393 - sp:elements ([ sp:object
3394 - [ sp:varName "target"^^xsd:string
3395 - ] ;
3396 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
3397 - sp:subject
3398 - [ sp:varName "quantityOfMaterialx"^^xsd:string
3399 - ]
3400 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
3401 - sp:predicate rdf:type ;
3402 - sp:subject
3403 - [ sp:varName "quantityOfMaterialx"^^xsd:string
3404 - ]
3405 - ])
3406 - ])
3407 ] . 3387 ] .
3408 3388
3409 <http://www.epim.no/schemas/mprml/1#WorkMeasure> 3389 <http://www.epim.no/schemas/mprml/1#WorkMeasure>
......