David Leal

missing volume bug fixed.

...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
25 sp:subject 25 sp:subject
26 [ sp:varName "flow"^^xsd:string 26 [ sp:varName "flow"^^xsd:string
27 ] 27 ]
28 - ] [ sp:object 28 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
29 - [ sp:varName "quantityOfMaterial"^^xsd:string
30 - ] ;
31 sp:predicate rdf:type ; 29 sp:predicate rdf:type ;
32 sp:subject _:b1 30 sp:subject _:b1
33 ] [ sp:object 31 ] [ sp:object
...@@ -193,9 +191,7 @@ ...@@ -193,9 +191,7 @@
193 sp:subject 191 sp:subject
194 [ sp:varName "flow"^^xsd:string 192 [ sp:varName "flow"^^xsd:string
195 ] 193 ]
196 - ] [ sp:object 194 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
197 - [ sp:varName "quantityOfMaterial"^^xsd:string
198 - ] ;
199 sp:predicate rdf:type ; 195 sp:predicate rdf:type ;
200 sp:subject _:b5 196 sp:subject _:b5
201 ] [ sp:object 197 ] [ sp:object
...@@ -230,7 +226,7 @@ ...@@ -230,7 +226,7 @@
230 sp:subject _:b6 226 sp:subject _:b6
231 ]) ; 227 ]) ;
232 sp:where ([ sp:object spin:_this ; 228 sp:where ([ sp:object spin:_this ;
233 - sp:predicate <http://www.epim.no/schemas/mprml/1#densityValueRef> ; 229 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
234 sp:subject 230 sp:subject
235 [ sp:varName "target"^^xsd:string 231 [ sp:varName "target"^^xsd:string
236 ] 232 ]
...@@ -308,169 +304,89 @@ ...@@ -308,169 +304,89 @@
308 ] ; 304 ] ;
309 spin:rule 305 spin:rule
310 [ rdf:type sp:Construct ; 306 [ rdf:type sp:Construct ;
311 - rdfs:comment "STEP 90002 Process volumeValue for a productInventory"^^xsd:string ;
312 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
313 - sp:predicate rdf:type ;
314 - sp:subject _:b8
315 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
316 - sp:predicate rdf:type ;
317 - sp:subject _:b8
318 - ] [ sp:object
319 - [ sp:varName "productInventory"^^xsd:string
320 - ] ;
321 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
322 - sp:subject _:b8
323 - ] [ sp:object _:b9 ;
324 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
325 - sp:subject _:b8
326 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
327 - sp:predicate rdf:type ;
328 - sp:subject _:b9
329 - ] [ sp:object
330 - [ sp:varName "realGrossCalorificValue"^^xsd:string
331 - ] ;
332 - sp:predicate
333 - [ sp:varName "grossCalorificValueScale"^^xsd:string
334 - ] ;
335 - sp:subject _:b9
336 - ] [ sp:object spin:_this ;
337 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
338 - sp:subject _:b8
339 - ]) ;
340 - sp:where ([ sp:object spin:_this ;
341 - sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
342 - sp:subject
343 - [ sp:varName "target"^^xsd:string
344 - ]
345 - ] [ sp:object
346 - [ sp:varName "target"^^xsd:string
347 - ] ;
348 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
349 - sp:subject
350 - [ sp:varName "productInventory"^^xsd:string
351 - ]
352 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
353 - sp:predicate rdf:type ;
354 - sp:subject
355 - [ sp:varName "productInventory"^^xsd:string
356 - ]
357 - ] [ rdf:type sp:Optional ;
358 - sp:elements ([ sp:object
359 - [ sp:varName "grossCalorificValueRef"^^xsd:string
360 - ] ;
361 - sp:predicate <http://www.epim.no/schemas/mprml/1#grossCalorificValueRef> ;
362 - sp:subject spin:_this
363 - ] [ sp:object
364 - [ sp:varName "realGrossCalorificValue"^^xsd:string
365 - ] ;
366 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
367 - sp:subject
368 - [ sp:varName "grossCalorificValueRef"^^xsd:string
369 - ]
370 - ] [ sp:object
371 - [ sp:varName "uomGrossCalorificValue"^^xsd:string
372 - ] ;
373 - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
374 - sp:subject
375 - [ sp:varName "grossCalorificValueRef"^^xsd:string
376 - ]
377 - ])
378 - ] [ rdf:type sp:Bind ;
379 - sp:expression
380 - [ rdf:type ep-mpr-spin-lib:selectEnergyPerVolumeScale ;
381 - sp:arg1 [ sp:varName "uomGrossCalorificValue"^^xsd:string
382 - ]
383 - ] ;
384 - sp:variable
385 - [ sp:varName "grossCalorificValueScale"^^xsd:string
386 - ]
387 - ])
388 - ] ;
389 - spin:rule
390 - [ rdf:type sp:Construct ;
391 rdfs:comment "STEP 90003 Process volumeValue for a quantityOfMaterial average amount of material"^^xsd:string ; 307 rdfs:comment "STEP 90003 Process volumeValue for a quantityOfMaterial average amount of material"^^xsd:string ;
392 sp:templates ([ sp:object 308 sp:templates ([ sp:object
393 [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 309 [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
394 ] ; 310 ] ;
395 sp:predicate rdfs:subClassOf ; 311 sp:predicate rdfs:subClassOf ;
396 - sp:subject _:b10 312 + sp:subject _:b8
397 - ] [ sp:object _:b11 ; 313 + ] [ sp:object _:b9 ;
398 sp:predicate rdfs:subClassOf ; 314 sp:predicate rdfs:subClassOf ;
399 - sp:subject _:b10 315 + sp:subject _:b8
400 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 316 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
401 sp:predicate rdf:type ; 317 sp:predicate rdf:type ;
402 - sp:subject _:b11 318 + sp:subject _:b9
403 ] [ sp:object 319 ] [ sp:object
404 [ sp:varName "realVolume"^^xsd:string 320 [ sp:varName "realVolume"^^xsd:string
405 ] ; 321 ] ;
406 sp:predicate 322 sp:predicate
407 [ sp:varName "volumeScale"^^xsd:string 323 [ sp:varName "volumeScale"^^xsd:string
408 ] ; 324 ] ;
409 - sp:subject _:b11 325 + sp:subject _:b9
410 - ] [ sp:object _:b12 ; 326 + ] [ sp:object _:b10 ;
411 sp:predicate rdfs:subClassOf ; 327 sp:predicate rdfs:subClassOf ;
412 - sp:subject _:b10 328 + sp:subject _:b8
413 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ; 329 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
414 sp:predicate rdf:type ; 330 sp:predicate rdf:type ;
415 - sp:subject _:b12 331 + sp:subject _:b10
416 ] [ sp:object 332 ] [ sp:object
417 [ sp:varName "realTemp"^^xsd:string 333 [ sp:varName "realTemp"^^xsd:string
418 ] ; 334 ] ;
419 sp:predicate 335 sp:predicate
420 [ sp:varName "temperatureScale"^^xsd:string 336 [ sp:varName "temperatureScale"^^xsd:string
421 ] ; 337 ] ;
422 - sp:subject _:b12
423 - ] [ sp:object _:b13 ;
424 - sp:predicate rdfs:subClassOf ;
425 sp:subject _:b10 338 sp:subject _:b10
339 + ] [ sp:object _:b11 ;
340 + sp:predicate rdfs:subClassOf ;
341 + sp:subject _:b8
426 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ; 342 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
427 sp:predicate rdf:type ; 343 sp:predicate rdf:type ;
428 - sp:subject _:b13 344 + sp:subject _:b11
429 ] [ sp:object 345 ] [ sp:object
430 [ sp:varName "realPres"^^xsd:string 346 [ sp:varName "realPres"^^xsd:string
431 ] ; 347 ] ;
432 sp:predicate 348 sp:predicate
433 [ sp:varName "pressureScale"^^xsd:string 349 [ sp:varName "pressureScale"^^xsd:string
434 ] ; 350 ] ;
435 - sp:subject _:b13 351 + sp:subject _:b11
436 - ] [ sp:object _:b14 ; 352 + ] [ sp:object _:b12 ;
437 sp:predicate rdfs:subClassOf ; 353 sp:predicate rdfs:subClassOf ;
438 - sp:subject _:b10 354 + sp:subject _:b8
439 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ; 355 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
440 sp:predicate owl:onProperty ; 356 sp:predicate owl:onProperty ;
441 - sp:subject _:b14 357 + sp:subject _:b12
442 - ] [ sp:object _:b15 ; 358 + ] [ sp:object _:b13 ;
443 sp:predicate owl:allValuesFrom ; 359 sp:predicate owl:allValuesFrom ;
444 - sp:subject _:b14 360 + sp:subject _:b12
445 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ; 361 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
446 sp:predicate rdf:type ; 362 sp:predicate rdf:type ;
447 - sp:subject _:b15 363 + sp:subject _:b13
448 ] [ sp:object 364 ] [ sp:object
449 [ sp:varName "realGrossCalorificValue"^^xsd:string 365 [ sp:varName "realGrossCalorificValue"^^xsd:string
450 ] ; 366 ] ;
451 sp:predicate 367 sp:predicate
452 [ sp:varName "grossCalorificValueScale"^^xsd:string 368 [ sp:varName "grossCalorificValueScale"^^xsd:string
453 ] ; 369 ] ;
454 - sp:subject _:b15 370 + sp:subject _:b13
455 - ] [ sp:object _:b16 ; 371 + ] [ sp:object _:b14 ;
456 sp:predicate rdfs:subClassOf ; 372 sp:predicate rdfs:subClassOf ;
457 - sp:subject _:b10 373 + sp:subject _:b8
458 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#energyContent> ; 374 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#energyContent> ;
459 sp:predicate owl:onProperty ; 375 sp:predicate owl:onProperty ;
460 - sp:subject _:b16 376 + sp:subject _:b14
461 - ] [ sp:object _:b17 ; 377 + ] [ sp:object _:b15 ;
462 sp:predicate owl:allValuesFrom ; 378 sp:predicate owl:allValuesFrom ;
463 - sp:subject _:b16 379 + sp:subject _:b14
464 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ; 380 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
465 sp:predicate rdf:type ; 381 sp:predicate rdf:type ;
466 - sp:subject _:b17 382 + sp:subject _:b15
467 ] [ sp:object 383 ] [ sp:object
468 [ sp:varName "realWork"^^xsd:string 384 [ sp:varName "realWork"^^xsd:string
469 ] ; 385 ] ;
470 sp:predicate 386 sp:predicate
471 [ sp:varName "workScale"^^xsd:string 387 [ sp:varName "workScale"^^xsd:string
472 ] ; 388 ] ;
473 - sp:subject _:b17 389 + sp:subject _:b15
474 ]) ; 390 ]) ;
475 sp:where ([ sp:object spin:_this ; 391 sp:where ([ sp:object spin:_this ;
476 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ; 392 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
...@@ -641,6 +557,86 @@ ...@@ -641,6 +557,86 @@
641 ] ; 557 ] ;
642 spin:rule 558 spin:rule
643 [ rdf:type sp:Construct ; 559 [ rdf:type sp:Construct ;
560 + rdfs:comment "STEP 90002 Process volumeValue for a productInventory"^^xsd:string ;
561 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
562 + sp:predicate rdf:type ;
563 + sp:subject _:b16
564 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
565 + sp:predicate rdf:type ;
566 + sp:subject _:b16
567 + ] [ sp:object
568 + [ sp:varName "productInventory"^^xsd:string
569 + ] ;
570 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
571 + sp:subject _:b16
572 + ] [ sp:object _:b17 ;
573 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
574 + sp:subject _:b16
575 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
576 + sp:predicate rdf:type ;
577 + sp:subject _:b17
578 + ] [ sp:object
579 + [ sp:varName "realGrossCalorificValue"^^xsd:string
580 + ] ;
581 + sp:predicate
582 + [ sp:varName "grossCalorificValueScale"^^xsd:string
583 + ] ;
584 + sp:subject _:b17
585 + ] [ sp:object spin:_this ;
586 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
587 + sp:subject _:b16
588 + ]) ;
589 + sp:where ([ sp:object spin:_this ;
590 + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
591 + sp:subject
592 + [ sp:varName "target"^^xsd:string
593 + ]
594 + ] [ sp:object
595 + [ sp:varName "target"^^xsd:string
596 + ] ;
597 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
598 + sp:subject
599 + [ sp:varName "productInventory"^^xsd:string
600 + ]
601 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
602 + sp:predicate rdf:type ;
603 + sp:subject
604 + [ sp:varName "productInventory"^^xsd:string
605 + ]
606 + ] [ rdf:type sp:Optional ;
607 + sp:elements ([ sp:object
608 + [ sp:varName "grossCalorificValueRef"^^xsd:string
609 + ] ;
610 + sp:predicate <http://www.epim.no/schemas/mprml/1#grossCalorificValueRef> ;
611 + sp:subject spin:_this
612 + ] [ sp:object
613 + [ sp:varName "realGrossCalorificValue"^^xsd:string
614 + ] ;
615 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
616 + sp:subject
617 + [ sp:varName "grossCalorificValueRef"^^xsd:string
618 + ]
619 + ] [ sp:object
620 + [ sp:varName "uomGrossCalorificValue"^^xsd:string
621 + ] ;
622 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
623 + sp:subject
624 + [ sp:varName "grossCalorificValueRef"^^xsd:string
625 + ]
626 + ])
627 + ] [ rdf:type sp:Bind ;
628 + sp:expression
629 + [ rdf:type ep-mpr-spin-lib:selectEnergyPerVolumeScale ;
630 + sp:arg1 [ sp:varName "uomGrossCalorificValue"^^xsd:string
631 + ]
632 + ] ;
633 + sp:variable
634 + [ sp:varName "grossCalorificValueScale"^^xsd:string
635 + ]
636 + ])
637 + ] ;
638 + spin:rule
639 + [ rdf:type sp:Construct ;
644 rdfs:comment "STEP 90000 Process volumeValue for a quantityOfMaterial"^^xsd:string ; 640 rdfs:comment "STEP 90000 Process volumeValue for a quantityOfMaterial"^^xsd:string ;
645 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 641 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
646 sp:predicate rdf:type ; 642 sp:predicate rdf:type ;
...@@ -737,11 +733,11 @@ ...@@ -737,11 +733,11 @@
737 <http://www.epim.no/schemas/mprml/1#DensityMeasure> 733 <http://www.epim.no/schemas/mprml/1#DensityMeasure>
738 spin:rule 734 spin:rule
739 [ rdf:type sp:Construct ; 735 [ rdf:type sp:Construct ;
740 - rdfs:comment "STEP 90061 Process density for a flow"^^xsd:string ; 736 + rdfs:comment "STEP 90060 Process density for a quantity of material"^^xsd:string ;
741 sp:templates ([ sp:object _:b20 ; 737 sp:templates ([ sp:object _:b20 ;
742 sp:predicate rdf:type ; 738 sp:predicate rdf:type ;
743 sp:subject 739 sp:subject
744 - [ sp:varName "flow"^^xsd:string 740 + [ sp:varName "quantityOfMaterial"^^xsd:string
745 ] 741 ]
746 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ; 742 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
747 sp:predicate rdf:type ; 743 sp:predicate rdf:type ;
...@@ -764,13 +760,27 @@ ...@@ -764,13 +760,27 @@
764 ] ; 760 ] ;
765 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 761 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
766 sp:subject 762 sp:subject
767 - [ sp:varName "flow"^^xsd:string 763 + [ sp:varName "quantityOfMaterial"^^xsd:string
768 ] 764 ]
769 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; 765 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
770 sp:predicate rdf:type ; 766 sp:predicate rdf:type ;
771 sp:subject 767 sp:subject
772 - [ sp:varName "flow"^^xsd:string 768 + [ sp:varName "quantityOfMaterial"^^xsd:string
773 ] 769 ]
770 + ] [ rdf:type sp:NotExists ;
771 + sp:elements ([ sp:object
772 + [ sp:varName "target"^^xsd:string
773 + ] ;
774 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
775 + sp:subject
776 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
777 + ]
778 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
779 + sp:predicate rdf:type ;
780 + sp:subject
781 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
782 + ]
783 + ])
774 ] [ sp:object 784 ] [ sp:object
775 [ sp:varName "realDensity"^^xsd:string 785 [ sp:varName "realDensity"^^xsd:string
776 ] ; 786 ] ;
...@@ -794,11 +804,11 @@ ...@@ -794,11 +804,11 @@
794 ] ; 804 ] ;
795 spin:rule 805 spin:rule
796 [ rdf:type sp:Construct ; 806 [ rdf:type sp:Construct ;
797 - rdfs:comment "STEP 90060 Process density for a quantity of material"^^xsd:string ; 807 + rdfs:comment "STEP 90061 Process density for a flow"^^xsd:string ;
798 sp:templates ([ sp:object _:b21 ; 808 sp:templates ([ sp:object _:b21 ;
799 sp:predicate rdf:type ; 809 sp:predicate rdf:type ;
800 sp:subject 810 sp:subject
801 - [ sp:varName "quantityOfMaterial"^^xsd:string 811 + [ sp:varName "flow"^^xsd:string
802 ] 812 ]
803 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ; 813 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
804 sp:predicate rdf:type ; 814 sp:predicate rdf:type ;
...@@ -821,27 +831,13 @@ ...@@ -821,27 +831,13 @@
821 ] ; 831 ] ;
822 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 832 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
823 sp:subject 833 sp:subject
824 - [ sp:varName "quantityOfMaterial"^^xsd:string 834 + [ sp:varName "flow"^^xsd:string
825 ] 835 ]
826 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 836 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
827 sp:predicate rdf:type ; 837 sp:predicate rdf:type ;
828 sp:subject 838 sp:subject
829 - [ sp:varName "quantityOfMaterial"^^xsd:string 839 + [ sp:varName "flow"^^xsd:string
830 ] 840 ]
831 - ] [ rdf:type sp:NotExists ;
832 - sp:elements ([ sp:object
833 - [ sp:varName "target"^^xsd:string
834 - ] ;
835 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
836 - sp:subject
837 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
838 - ]
839 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
840 - sp:predicate rdf:type ;
841 - sp:subject
842 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
843 - ]
844 - ])
845 ] [ sp:object 841 ] [ sp:object
846 [ sp:varName "realDensity"^^xsd:string 842 [ sp:varName "realDensity"^^xsd:string
847 ] ; 843 ] ;
...@@ -867,33 +863,22 @@ ...@@ -867,33 +863,22 @@
867 <http://www.epim.no/schemas/mprml/1#MassMeasure> 863 <http://www.epim.no/schemas/mprml/1#MassMeasure>
868 spin:rule 864 spin:rule
869 [ rdf:type sp:Construct ; 865 [ rdf:type sp:Construct ;
870 - rdfs:comment "STEP 90011 Process mass for a flow - create a quantity of material if necessary"^^xsd:string ; 866 + rdfs:comment "STEP 90010 Process mass for a quantity of material"^^xsd:string ;
871 sp:templates ([ sp:object _:b22 ; 867 sp:templates ([ sp:object _:b22 ;
872 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; 868 + sp:predicate rdf:type ;
873 sp:subject 869 sp:subject
874 - [ sp:varName "flow"^^xsd:string 870 + [ sp:varName "quantityOfMaterial"^^xsd:string
875 ] 871 ]
876 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
877 - sp:predicate rdf:type ;
878 - sp:subject _:b22
879 - ] [ sp:object
880 - [ sp:varName "target"^^xsd:string
881 - ] ;
882 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
883 - sp:subject _:b22
884 - ] [ sp:object _:b23 ;
885 - sp:predicate rdf:type ;
886 - sp:subject _:b22
887 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; 872 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
888 sp:predicate rdf:type ; 873 sp:predicate rdf:type ;
889 - sp:subject _:b23 874 + sp:subject _:b22
890 ] [ sp:object 875 ] [ sp:object
891 [ sp:varName "realMass"^^xsd:string 876 [ sp:varName "realMass"^^xsd:string
892 ] ; 877 ] ;
893 sp:predicate 878 sp:predicate
894 [ sp:varName "massScale"^^xsd:string 879 [ sp:varName "massScale"^^xsd:string
895 ] ; 880 ] ;
896 - sp:subject _:b23 881 + sp:subject _:b22
897 ]) ; 882 ]) ;
898 sp:where ([ sp:object spin:_this ; 883 sp:where ([ sp:object spin:_this ;
899 sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ; 884 sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ;
...@@ -905,12 +890,12 @@ ...@@ -905,12 +890,12 @@
905 ] ; 890 ] ;
906 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 891 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
907 sp:subject 892 sp:subject
908 - [ sp:varName "flow"^^xsd:string 893 + [ sp:varName "quantityOfMaterial"^^xsd:string
909 ] 894 ]
910 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; 895 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
911 sp:predicate rdf:type ; 896 sp:predicate rdf:type ;
912 sp:subject 897 sp:subject
913 - [ sp:varName "flow"^^xsd:string 898 + [ sp:varName "quantityOfMaterial"^^xsd:string
914 ] 899 ]
915 ] [ rdf:type sp:NotExists ; 900 ] [ rdf:type sp:NotExists ;
916 sp:elements ([ sp:object 901 sp:elements ([ sp:object
...@@ -926,20 +911,6 @@ ...@@ -926,20 +911,6 @@
926 [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 911 [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
927 ] 912 ]
928 ]) 913 ])
929 - ] [ rdf:type sp:NotExists ;
930 - sp:elements ([ sp:object
931 - [ sp:varName "target"^^xsd:string
932 - ] ;
933 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
934 - sp:subject
935 - [ sp:varName "quantityOfMaterialx"^^xsd:string
936 - ]
937 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
938 - sp:predicate rdf:type ;
939 - sp:subject
940 - [ sp:varName "quantityOfMaterialx"^^xsd:string
941 - ]
942 - ])
943 ] [ sp:object 914 ] [ sp:object
944 [ sp:varName "realMass"^^xsd:string 915 [ sp:varName "realMass"^^xsd:string
945 ] ; 916 ] ;
...@@ -964,21 +935,21 @@ ...@@ -964,21 +935,21 @@
964 spin:rule 935 spin:rule
965 [ rdf:type sp:Construct ; 936 [ rdf:type sp:Construct ;
966 rdfs:comment "STEP 90012 Process mass for a product inventory"^^xsd:string ; 937 rdfs:comment "STEP 90012 Process mass for a product inventory"^^xsd:string ;
967 - sp:templates ([ sp:object _:b24 ; 938 + sp:templates ([ sp:object _:b23 ;
968 sp:predicate <http://www.reportinghub.no/ep/schema/flow#summedDailyMass> ; 939 sp:predicate <http://www.reportinghub.no/ep/schema/flow#summedDailyMass> ;
969 sp:subject 940 sp:subject
970 [ sp:varName "productInventory"^^xsd:string 941 [ sp:varName "productInventory"^^xsd:string
971 ] 942 ]
972 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; 943 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
973 sp:predicate rdf:type ; 944 sp:predicate rdf:type ;
974 - sp:subject _:b24 945 + sp:subject _:b23
975 ] [ sp:object 946 ] [ sp:object
976 [ sp:varName "realMass"^^xsd:string 947 [ sp:varName "realMass"^^xsd:string
977 ] ; 948 ] ;
978 sp:predicate 949 sp:predicate
979 [ sp:varName "massScale"^^xsd:string 950 [ sp:varName "massScale"^^xsd:string
980 ] ; 951 ] ;
981 - sp:subject _:b24 952 + sp:subject _:b23
982 ]) ; 953 ]) ;
983 sp:where ([ sp:object spin:_this ; 954 sp:where ([ sp:object spin:_this ;
984 sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ; 955 sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ;
...@@ -1020,12 +991,23 @@ ...@@ -1020,12 +991,23 @@
1020 ] ; 991 ] ;
1021 spin:rule 992 spin:rule
1022 [ rdf:type sp:Construct ; 993 [ rdf:type sp:Construct ;
1023 - rdfs:comment "STEP 90010 Process mass for a quantity of material"^^xsd:string ; 994 + rdfs:comment "STEP 90011 Process mass for a flow - create a quantity of material if necessary"^^xsd:string ;
1024 - sp:templates ([ sp:object _:b25 ; 995 + sp:templates ([ sp:object _:b24 ;
1025 - sp:predicate rdf:type ; 996 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
1026 sp:subject 997 sp:subject
1027 - [ sp:varName "quantityOfMaterial"^^xsd:string 998 + [ sp:varName "flow"^^xsd:string
1028 ] 999 ]
1000 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1001 + sp:predicate rdf:type ;
1002 + sp:subject _:b24
1003 + ] [ sp:object
1004 + [ sp:varName "target"^^xsd:string
1005 + ] ;
1006 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1007 + sp:subject _:b24
1008 + ] [ sp:object _:b25 ;
1009 + sp:predicate rdf:type ;
1010 + sp:subject _:b24
1029 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; 1011 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
1030 sp:predicate rdf:type ; 1012 sp:predicate rdf:type ;
1031 sp:subject _:b25 1013 sp:subject _:b25
...@@ -1047,12 +1029,12 @@ ...@@ -1047,12 +1029,12 @@
1047 ] ; 1029 ] ;
1048 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1030 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1049 sp:subject 1031 sp:subject
1050 - [ sp:varName "quantityOfMaterial"^^xsd:string 1032 + [ sp:varName "flow"^^xsd:string
1051 ] 1033 ]
1052 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1034 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
1053 sp:predicate rdf:type ; 1035 sp:predicate rdf:type ;
1054 sp:subject 1036 sp:subject
1055 - [ sp:varName "quantityOfMaterial"^^xsd:string 1037 + [ sp:varName "flow"^^xsd:string
1056 ] 1038 ]
1057 ] [ rdf:type sp:NotExists ; 1039 ] [ rdf:type sp:NotExists ;
1058 sp:elements ([ sp:object 1040 sp:elements ([ sp:object
...@@ -1068,6 +1050,20 @@ ...@@ -1068,6 +1050,20 @@
1068 [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 1050 [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1069 ] 1051 ]
1070 ]) 1052 ])
1053 + ] [ rdf:type sp:NotExists ;
1054 + sp:elements ([ sp:object
1055 + [ sp:varName "target"^^xsd:string
1056 + ] ;
1057 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1058 + sp:subject
1059 + [ sp:varName "quantityOfMaterialx"^^xsd:string
1060 + ]
1061 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1062 + sp:predicate rdf:type ;
1063 + sp:subject
1064 + [ sp:varName "quantityOfMaterialx"^^xsd:string
1065 + ]
1066 + ])
1071 ] [ sp:object 1067 ] [ sp:object
1072 [ sp:varName "realMass"^^xsd:string 1068 [ sp:varName "realMass"^^xsd:string
1073 ] ; 1069 ] ;
...@@ -1093,11 +1089,11 @@ ...@@ -1093,11 +1089,11 @@
1093 <http://www.epim.no/schemas/mprml/1#PressureMeasure> 1089 <http://www.epim.no/schemas/mprml/1#PressureMeasure>
1094 spin:rule 1090 spin:rule
1095 [ rdf:type sp:Construct ; 1091 [ rdf:type sp:Construct ;
1096 - rdfs:comment "STEP 90041 Process pressure for a flow"^^xsd:string ; 1092 + rdfs:comment "STEP 90040 Process pressure for a quantity of material"^^xsd:string ;
1097 sp:templates ([ sp:object _:b26 ; 1093 sp:templates ([ sp:object _:b26 ;
1098 sp:predicate rdf:type ; 1094 sp:predicate rdf:type ;
1099 sp:subject 1095 sp:subject
1100 - [ sp:varName "flow"^^xsd:string 1096 + [ sp:varName "quantityOfMaterial"^^xsd:string
1101 ] 1097 ]
1102 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ; 1098 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
1103 sp:predicate rdf:type ; 1099 sp:predicate rdf:type ;
...@@ -1120,13 +1116,27 @@ ...@@ -1120,13 +1116,27 @@
1120 ] ; 1116 ] ;
1121 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1117 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1122 sp:subject 1118 sp:subject
1123 - [ sp:varName "flow"^^xsd:string 1119 + [ sp:varName "quantityOfMaterial"^^xsd:string
1124 ] 1120 ]
1125 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; 1121 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1126 sp:predicate rdf:type ; 1122 sp:predicate rdf:type ;
1127 sp:subject 1123 sp:subject
1128 - [ sp:varName "flow"^^xsd:string 1124 + [ sp:varName "quantityOfMaterial"^^xsd:string
1129 ] 1125 ]
1126 + ] [ rdf:type sp:NotExists ;
1127 + sp:elements ([ sp:object
1128 + [ sp:varName "target"^^xsd:string
1129 + ] ;
1130 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1131 + sp:subject
1132 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1133 + ]
1134 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
1135 + sp:predicate rdf:type ;
1136 + sp:subject
1137 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1138 + ]
1139 + ])
1130 ] [ sp:object 1140 ] [ sp:object
1131 [ sp:varName "realPressure"^^xsd:string 1141 [ sp:varName "realPressure"^^xsd:string
1132 ] ; 1142 ] ;
...@@ -1150,11 +1160,11 @@ ...@@ -1150,11 +1160,11 @@
1150 ] ; 1160 ] ;
1151 spin:rule 1161 spin:rule
1152 [ rdf:type sp:Construct ; 1162 [ rdf:type sp:Construct ;
1153 - rdfs:comment "STEP 90040 Process pressure for a quantity of material"^^xsd:string ; 1163 + rdfs:comment "STEP 90041 Process pressure for a flow"^^xsd:string ;
1154 sp:templates ([ sp:object _:b27 ; 1164 sp:templates ([ sp:object _:b27 ;
1155 sp:predicate rdf:type ; 1165 sp:predicate rdf:type ;
1156 sp:subject 1166 sp:subject
1157 - [ sp:varName "quantityOfMaterial"^^xsd:string 1167 + [ sp:varName "flow"^^xsd:string
1158 ] 1168 ]
1159 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ; 1169 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
1160 sp:predicate rdf:type ; 1170 sp:predicate rdf:type ;
...@@ -1177,27 +1187,13 @@ ...@@ -1177,27 +1187,13 @@
1177 ] ; 1187 ] ;
1178 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1188 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1179 sp:subject 1189 sp:subject
1180 - [ sp:varName "quantityOfMaterial"^^xsd:string 1190 + [ sp:varName "flow"^^xsd:string
1181 ] 1191 ]
1182 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1192 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
1183 sp:predicate rdf:type ; 1193 sp:predicate rdf:type ;
1184 sp:subject 1194 sp:subject
1185 - [ sp:varName "quantityOfMaterial"^^xsd:string 1195 + [ sp:varName "flow"^^xsd:string
1186 ] 1196 ]
1187 - ] [ rdf:type sp:NotExists ;
1188 - sp:elements ([ sp:object
1189 - [ sp:varName "target"^^xsd:string
1190 - ] ;
1191 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1192 - sp:subject
1193 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1194 - ]
1195 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
1196 - sp:predicate rdf:type ;
1197 - sp:subject
1198 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1199 - ]
1200 - ])
1201 ] [ sp:object 1197 ] [ sp:object
1202 [ sp:varName "realPressure"^^xsd:string 1198 [ sp:varName "realPressure"^^xsd:string
1203 ] ; 1199 ] ;
...@@ -1223,11 +1219,11 @@ ...@@ -1223,11 +1219,11 @@
1223 <http://www.epim.no/schemas/mprml/1#ThermodynamicTemperatureMeasure> 1219 <http://www.epim.no/schemas/mprml/1#ThermodynamicTemperatureMeasure>
1224 spin:rule 1220 spin:rule
1225 [ rdf:type sp:Construct ; 1221 [ rdf:type sp:Construct ;
1226 - rdfs:comment "STEP 90051 Process temperature for a flow"^^xsd:string ; 1222 + rdfs:comment "STEP 90050 Process temperature for a quantity of material"^^xsd:string ;
1227 sp:templates ([ sp:object _:b28 ; 1223 sp:templates ([ sp:object _:b28 ;
1228 sp:predicate rdf:type ; 1224 sp:predicate rdf:type ;
1229 sp:subject 1225 sp:subject
1230 - [ sp:varName "flow"^^xsd:string 1226 + [ sp:varName "quantityOfMaterial"^^xsd:string
1231 ] 1227 ]
1232 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ; 1228 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
1233 sp:predicate rdf:type ; 1229 sp:predicate rdf:type ;
...@@ -1250,13 +1246,27 @@ ...@@ -1250,13 +1246,27 @@
1250 ] ; 1246 ] ;
1251 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1247 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1252 sp:subject 1248 sp:subject
1253 - [ sp:varName "flow"^^xsd:string 1249 + [ sp:varName "quantityOfMaterial"^^xsd:string
1254 ] 1250 ]
1255 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; 1251 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1256 sp:predicate rdf:type ; 1252 sp:predicate rdf:type ;
1257 sp:subject 1253 sp:subject
1258 - [ sp:varName "flow"^^xsd:string 1254 + [ sp:varName "quantityOfMaterial"^^xsd:string
1259 ] 1255 ]
1256 + ] [ rdf:type sp:NotExists ;
1257 + sp:elements ([ sp:object
1258 + [ sp:varName "target"^^xsd:string
1259 + ] ;
1260 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1261 + sp:subject
1262 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1263 + ]
1264 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
1265 + sp:predicate rdf:type ;
1266 + sp:subject
1267 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1268 + ]
1269 + ])
1260 ] [ sp:object 1270 ] [ sp:object
1261 [ sp:varName "realTemperature"^^xsd:string 1271 [ sp:varName "realTemperature"^^xsd:string
1262 ] ; 1272 ] ;
...@@ -1280,11 +1290,11 @@ ...@@ -1280,11 +1290,11 @@
1280 ] ; 1290 ] ;
1281 spin:rule 1291 spin:rule
1282 [ rdf:type sp:Construct ; 1292 [ rdf:type sp:Construct ;
1283 - rdfs:comment "STEP 90050 Process temperature for a quantity of material"^^xsd:string ; 1293 + rdfs:comment "STEP 90051 Process temperature for a flow"^^xsd:string ;
1284 sp:templates ([ sp:object _:b29 ; 1294 sp:templates ([ sp:object _:b29 ;
1285 sp:predicate rdf:type ; 1295 sp:predicate rdf:type ;
1286 sp:subject 1296 sp:subject
1287 - [ sp:varName "quantityOfMaterial"^^xsd:string 1297 + [ sp:varName "flow"^^xsd:string
1288 ] 1298 ]
1289 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ; 1299 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
1290 sp:predicate rdf:type ; 1300 sp:predicate rdf:type ;
...@@ -1307,27 +1317,13 @@ ...@@ -1307,27 +1317,13 @@
1307 ] ; 1317 ] ;
1308 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1318 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1309 sp:subject 1319 sp:subject
1310 - [ sp:varName "quantityOfMaterial"^^xsd:string 1320 + [ sp:varName "flow"^^xsd:string
1311 ] 1321 ]
1312 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1322 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
1313 sp:predicate rdf:type ; 1323 sp:predicate rdf:type ;
1314 sp:subject 1324 sp:subject
1315 - [ sp:varName "quantityOfMaterial"^^xsd:string 1325 + [ sp:varName "flow"^^xsd:string
1316 ] 1326 ]
1317 - ] [ rdf:type sp:NotExists ;
1318 - sp:elements ([ sp:object
1319 - [ sp:varName "target"^^xsd:string
1320 - ] ;
1321 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1322 - sp:subject
1323 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1324 - ]
1325 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
1326 - sp:predicate rdf:type ;
1327 - sp:subject
1328 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1329 - ]
1330 - ])
1331 ] [ sp:object 1327 ] [ sp:object
1332 [ sp:varName "realTemperature"^^xsd:string 1328 [ sp:varName "realTemperature"^^xsd:string
1333 ] ; 1329 ] ;
...@@ -1353,33 +1349,22 @@ ...@@ -1353,33 +1349,22 @@
1353 <http://www.epim.no/schemas/mprml/1#VolumeMeasure> 1349 <http://www.epim.no/schemas/mprml/1#VolumeMeasure>
1354 spin:rule 1350 spin:rule
1355 [ rdf:type sp:Construct ; 1351 [ rdf:type sp:Construct ;
1356 - rdfs:comment "STEP 90071 Process volume for a flow - creating a quantityOfMaterial if necessary"^^xsd:string ; 1352 + rdfs:comment "STEP 90070 Process volume for a quantity of material"^^xsd:string ;
1357 sp:templates ([ sp:object _:b30 ; 1353 sp:templates ([ sp:object _:b30 ;
1358 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; 1354 + sp:predicate rdf:type ;
1359 sp:subject 1355 sp:subject
1360 - [ sp:varName "flow"^^xsd:string 1356 + [ sp:varName "quantityOfMaterial"^^xsd:string
1361 ] 1357 ]
1362 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1363 - sp:predicate rdf:type ;
1364 - sp:subject _:b30
1365 - ] [ sp:object
1366 - [ sp:varName "target"^^xsd:string
1367 - ] ;
1368 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1369 - sp:subject _:b30
1370 - ] [ sp:object _:b31 ;
1371 - sp:predicate rdf:type ;
1372 - sp:subject _:b30
1373 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 1358 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
1374 sp:predicate rdf:type ; 1359 sp:predicate rdf:type ;
1375 - sp:subject _:b31 1360 + sp:subject _:b30
1376 ] [ sp:object 1361 ] [ sp:object
1377 [ sp:varName "realVolume"^^xsd:string 1362 [ sp:varName "realVolume"^^xsd:string
1378 ] ; 1363 ] ;
1379 sp:predicate 1364 sp:predicate
1380 [ sp:varName "volumeScale"^^xsd:string 1365 [ sp:varName "volumeScale"^^xsd:string
1381 ] ; 1366 ] ;
1382 - sp:subject _:b31 1367 + sp:subject _:b30
1383 ]) ; 1368 ]) ;
1384 sp:where ([ sp:object spin:_this ; 1369 sp:where ([ sp:object spin:_this ;
1385 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; 1370 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
...@@ -1391,12 +1376,12 @@ ...@@ -1391,12 +1376,12 @@
1391 ] ; 1376 ] ;
1392 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1377 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1393 sp:subject 1378 sp:subject
1394 - [ sp:varName "flow"^^xsd:string 1379 + [ sp:varName "quantityOfMaterial"^^xsd:string
1395 ] 1380 ]
1396 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; 1381 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1397 sp:predicate rdf:type ; 1382 sp:predicate rdf:type ;
1398 sp:subject 1383 sp:subject
1399 - [ sp:varName "flow"^^xsd:string 1384 + [ sp:varName "quantityOfMaterial"^^xsd:string
1400 ] 1385 ]
1401 ] [ rdf:type sp:NotExists ; 1386 ] [ rdf:type sp:NotExists ;
1402 sp:elements ([ sp:object 1387 sp:elements ([ sp:object
...@@ -1404,12 +1389,12 @@ ...@@ -1404,12 +1389,12 @@
1404 ] ; 1389 ] ;
1405 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1390 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1406 sp:subject 1391 sp:subject
1407 - [ sp:varName "quantityOfMaterialx"^^xsd:string 1392 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1408 ] 1393 ]
1409 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1394 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
1410 sp:predicate rdf:type ; 1395 sp:predicate rdf:type ;
1411 sp:subject 1396 sp:subject
1412 - [ sp:varName "quantityOfMaterialx"^^xsd:string 1397 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1413 ] 1398 ]
1414 ]) 1399 ])
1415 ] [ sp:object 1400 ] [ sp:object
...@@ -1435,12 +1420,23 @@ ...@@ -1435,12 +1420,23 @@
1435 ] ; 1420 ] ;
1436 spin:rule 1421 spin:rule
1437 [ rdf:type sp:Construct ; 1422 [ rdf:type sp:Construct ;
1438 - rdfs:comment "STEP 90070 Process volume for a quantity of material"^^xsd:string ; 1423 + rdfs:comment "STEP 90071 Process volume for a flow - creating a quantityOfMaterial if necessary"^^xsd:string ;
1439 - sp:templates ([ sp:object _:b32 ; 1424 + sp:templates ([ sp:object _:b31 ;
1440 - sp:predicate rdf:type ; 1425 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
1441 sp:subject 1426 sp:subject
1442 - [ sp:varName "quantityOfMaterial"^^xsd:string 1427 + [ sp:varName "flow"^^xsd:string
1443 ] 1428 ]
1429 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1430 + sp:predicate rdf:type ;
1431 + sp:subject _:b31
1432 + ] [ sp:object
1433 + [ sp:varName "target"^^xsd:string
1434 + ] ;
1435 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1436 + sp:subject _:b31
1437 + ] [ sp:object _:b32 ;
1438 + sp:predicate rdf:type ;
1439 + sp:subject _:b31
1444 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 1440 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
1445 sp:predicate rdf:type ; 1441 sp:predicate rdf:type ;
1446 sp:subject _:b32 1442 sp:subject _:b32
...@@ -1462,12 +1458,12 @@ ...@@ -1462,12 +1458,12 @@
1462 ] ; 1458 ] ;
1463 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1459 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1464 sp:subject 1460 sp:subject
1465 - [ sp:varName "quantityOfMaterial"^^xsd:string 1461 + [ sp:varName "flow"^^xsd:string
1466 ] 1462 ]
1467 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1463 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
1468 sp:predicate rdf:type ; 1464 sp:predicate rdf:type ;
1469 sp:subject 1465 sp:subject
1470 - [ sp:varName "quantityOfMaterial"^^xsd:string 1466 + [ sp:varName "flow"^^xsd:string
1471 ] 1467 ]
1472 ] [ rdf:type sp:NotExists ; 1468 ] [ rdf:type sp:NotExists ;
1473 sp:elements ([ sp:object 1469 sp:elements ([ sp:object
...@@ -1475,12 +1471,12 @@ ...@@ -1475,12 +1471,12 @@
1475 ] ; 1471 ] ;
1476 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1472 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1477 sp:subject 1473 sp:subject
1478 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 1474 + [ sp:varName "quantityOfMaterialx"^^xsd:string
1479 ] 1475 ]
1480 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ; 1476 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1481 sp:predicate rdf:type ; 1477 sp:predicate rdf:type ;
1482 sp:subject 1478 sp:subject
1483 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 1479 + [ sp:varName "quantityOfMaterialx"^^xsd:string
1484 ] 1480 ]
1485 ]) 1481 ])
1486 ] [ sp:object 1482 ] [ sp:object
...@@ -1508,33 +1504,22 @@ ...@@ -1508,33 +1504,22 @@
1508 <http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure> 1504 <http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure>
1509 spin:rule 1505 spin:rule
1510 [ rdf:type sp:Construct ; 1506 [ rdf:type sp:Construct ;
1511 - rdfs:comment "STEP 90071a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ; 1507 + rdfs:comment "STEP 90070a Process volume for a quantity of material"^^xsd:string ;
1512 sp:templates ([ sp:object _:b33 ; 1508 sp:templates ([ sp:object _:b33 ;
1513 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; 1509 + sp:predicate rdf:type ;
1514 sp:subject 1510 sp:subject
1515 - [ sp:varName "flow"^^xsd:string 1511 + [ sp:varName "quantityOfMaterial"^^xsd:string
1516 ] 1512 ]
1517 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1518 - sp:predicate rdf:type ;
1519 - sp:subject _:b33
1520 - ] [ sp:object
1521 - [ sp:varName "target"^^xsd:string
1522 - ] ;
1523 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1524 - sp:subject _:b33
1525 - ] [ sp:object _:b34 ;
1526 - sp:predicate rdf:type ;
1527 - sp:subject _:b33
1528 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 1513 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
1529 sp:predicate rdf:type ; 1514 sp:predicate rdf:type ;
1530 - sp:subject _:b34 1515 + sp:subject _:b33
1531 ] [ sp:object 1516 ] [ sp:object
1532 [ sp:varName "realVolume"^^xsd:string 1517 [ sp:varName "realVolume"^^xsd:string
1533 ] ; 1518 ] ;
1534 sp:predicate 1519 sp:predicate
1535 [ sp:varName "volumeScale"^^xsd:string 1520 [ sp:varName "volumeScale"^^xsd:string
1536 ] ; 1521 ] ;
1537 - sp:subject _:b34 1522 + sp:subject _:b33
1538 ]) ; 1523 ]) ;
1539 sp:where ([ sp:object spin:_this ; 1524 sp:where ([ sp:object spin:_this ;
1540 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; 1525 sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
...@@ -1546,12 +1531,12 @@ ...@@ -1546,12 +1531,12 @@
1546 ] ; 1531 ] ;
1547 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1532 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1548 sp:subject 1533 sp:subject
1549 - [ sp:varName "flow"^^xsd:string 1534 + [ sp:varName "quantityOfMaterial"^^xsd:string
1550 ] 1535 ]
1551 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; 1536 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1552 sp:predicate rdf:type ; 1537 sp:predicate rdf:type ;
1553 sp:subject 1538 sp:subject
1554 - [ sp:varName "flow"^^xsd:string 1539 + [ sp:varName "quantityOfMaterial"^^xsd:string
1555 ] 1540 ]
1556 ] [ rdf:type sp:NotExists ; 1541 ] [ rdf:type sp:NotExists ;
1557 sp:elements ([ sp:object 1542 sp:elements ([ sp:object
...@@ -1559,12 +1544,12 @@ ...@@ -1559,12 +1544,12 @@
1559 ] ; 1544 ] ;
1560 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1545 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1561 sp:subject 1546 sp:subject
1562 - [ sp:varName "quantityOfMaterialx"^^xsd:string 1547 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1563 ] 1548 ]
1564 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1549 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
1565 sp:predicate rdf:type ; 1550 sp:predicate rdf:type ;
1566 sp:subject 1551 sp:subject
1567 - [ sp:varName "quantityOfMaterialx"^^xsd:string 1552 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1568 ] 1553 ]
1569 ]) 1554 ])
1570 ] [ sp:object 1555 ] [ sp:object
...@@ -1590,12 +1575,23 @@ ...@@ -1590,12 +1575,23 @@
1590 ] ; 1575 ] ;
1591 spin:rule 1576 spin:rule
1592 [ rdf:type sp:Construct ; 1577 [ rdf:type sp:Construct ;
1593 - rdfs:comment "STEP 90070a Process volume for a quantity of material"^^xsd:string ; 1578 + rdfs:comment "STEP 90071a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
1594 - sp:templates ([ sp:object _:b35 ; 1579 + sp:templates ([ sp:object _:b34 ;
1595 - sp:predicate rdf:type ; 1580 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
1596 sp:subject 1581 sp:subject
1597 - [ sp:varName "quantityOfMaterial"^^xsd:string 1582 + [ sp:varName "flow"^^xsd:string
1598 ] 1583 ]
1584 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1585 + sp:predicate rdf:type ;
1586 + sp:subject _:b34
1587 + ] [ sp:object
1588 + [ sp:varName "target"^^xsd:string
1589 + ] ;
1590 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1591 + sp:subject _:b34
1592 + ] [ sp:object _:b35 ;
1593 + sp:predicate rdf:type ;
1594 + sp:subject _:b34
1599 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; 1595 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
1600 sp:predicate rdf:type ; 1596 sp:predicate rdf:type ;
1601 sp:subject _:b35 1597 sp:subject _:b35
...@@ -1617,12 +1613,12 @@ ...@@ -1617,12 +1613,12 @@
1617 ] ; 1613 ] ;
1618 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1614 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1619 sp:subject 1615 sp:subject
1620 - [ sp:varName "quantityOfMaterial"^^xsd:string 1616 + [ sp:varName "flow"^^xsd:string
1621 ] 1617 ]
1622 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1618 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
1623 sp:predicate rdf:type ; 1619 sp:predicate rdf:type ;
1624 sp:subject 1620 sp:subject
1625 - [ sp:varName "quantityOfMaterial"^^xsd:string 1621 + [ sp:varName "flow"^^xsd:string
1626 ] 1622 ]
1627 ] [ rdf:type sp:NotExists ; 1623 ] [ rdf:type sp:NotExists ;
1628 sp:elements ([ sp:object 1624 sp:elements ([ sp:object
...@@ -1630,12 +1626,12 @@ ...@@ -1630,12 +1626,12 @@
1630 ] ; 1626 ] ;
1631 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1627 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1632 sp:subject 1628 sp:subject
1633 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 1629 + [ sp:varName "quantityOfMaterialx"^^xsd:string
1634 ] 1630 ]
1635 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ; 1631 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1636 sp:predicate rdf:type ; 1632 sp:predicate rdf:type ;
1637 sp:subject 1633 sp:subject
1638 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 1634 + [ sp:varName "quantityOfMaterialx"^^xsd:string
1639 ] 1635 ]
1640 ]) 1636 ])
1641 ] [ sp:object 1637 ] [ sp:object
...@@ -1663,33 +1659,22 @@ ...@@ -1663,33 +1659,22 @@
1663 <http://www.epim.no/schemas/mprml/1#WorkMeasure> 1659 <http://www.epim.no/schemas/mprml/1#WorkMeasure>
1664 spin:rule 1660 spin:rule
1665 [ rdf:type sp:Construct ; 1661 [ rdf:type sp:Construct ;
1666 - rdfs:comment "STEP 90031 Process work for a flow - creating a quantity of material if necessary"^^xsd:string ; 1662 + rdfs:comment "STEP 90030 Process work for a quantity of material"^^xsd:string ;
1667 sp:templates ([ sp:object _:b36 ; 1663 sp:templates ([ sp:object _:b36 ;
1668 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; 1664 + sp:predicate rdf:type ;
1669 sp:subject 1665 sp:subject
1670 - [ sp:varName "flow"^^xsd:string 1666 + [ sp:varName "quantityOfMaterial"^^xsd:string
1671 ] 1667 ]
1672 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1673 - sp:predicate rdf:type ;
1674 - sp:subject _:b36
1675 - ] [ sp:object
1676 - [ sp:varName "target"^^xsd:string
1677 - ] ;
1678 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1679 - sp:subject _:b36
1680 - ] [ sp:object _:b37 ;
1681 - sp:predicate rdf:type ;
1682 - sp:subject _:b36
1683 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ; 1668 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
1684 sp:predicate rdf:type ; 1669 sp:predicate rdf:type ;
1685 - sp:subject _:b37 1670 + sp:subject _:b36
1686 ] [ sp:object 1671 ] [ sp:object
1687 [ sp:varName "realWork"^^xsd:string 1672 [ sp:varName "realWork"^^xsd:string
1688 ] ; 1673 ] ;
1689 sp:predicate 1674 sp:predicate
1690 [ sp:varName "workScale"^^xsd:string 1675 [ sp:varName "workScale"^^xsd:string
1691 ] ; 1676 ] ;
1692 - sp:subject _:b37 1677 + sp:subject _:b36
1693 ]) ; 1678 ]) ;
1694 sp:where ([ sp:object spin:_this ; 1679 sp:where ([ sp:object spin:_this ;
1695 sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ; 1680 sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
...@@ -1701,12 +1686,12 @@ ...@@ -1701,12 +1686,12 @@
1701 ] ; 1686 ] ;
1702 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1687 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1703 sp:subject 1688 sp:subject
1704 - [ sp:varName "flow"^^xsd:string 1689 + [ sp:varName "quantityOfMaterial"^^xsd:string
1705 ] 1690 ]
1706 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; 1691 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1707 sp:predicate rdf:type ; 1692 sp:predicate rdf:type ;
1708 sp:subject 1693 sp:subject
1709 - [ sp:varName "flow"^^xsd:string 1694 + [ sp:varName "quantityOfMaterial"^^xsd:string
1710 ] 1695 ]
1711 ] [ rdf:type sp:NotExists ; 1696 ] [ rdf:type sp:NotExists ;
1712 sp:elements ([ sp:object 1697 sp:elements ([ sp:object
...@@ -1714,12 +1699,12 @@ ...@@ -1714,12 +1699,12 @@
1714 ] ; 1699 ] ;
1715 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1700 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1716 sp:subject 1701 sp:subject
1717 - [ sp:varName "quantityOfMaterialx"^^xsd:string 1702 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1718 ] 1703 ]
1719 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1704 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
1720 sp:predicate rdf:type ; 1705 sp:predicate rdf:type ;
1721 sp:subject 1706 sp:subject
1722 - [ sp:varName "quantityOfMaterialx"^^xsd:string 1707 + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
1723 ] 1708 ]
1724 ]) 1709 ])
1725 ] [ sp:object 1710 ] [ sp:object
...@@ -1745,12 +1730,23 @@ ...@@ -1745,12 +1730,23 @@
1745 ] ; 1730 ] ;
1746 spin:rule 1731 spin:rule
1747 [ rdf:type sp:Construct ; 1732 [ rdf:type sp:Construct ;
1748 - rdfs:comment "STEP 90030 Process work for a quantity of material"^^xsd:string ; 1733 + rdfs:comment "STEP 90031 Process work for a flow - creating a quantity of material if necessary"^^xsd:string ;
1749 - sp:templates ([ sp:object _:b38 ; 1734 + sp:templates ([ sp:object _:b37 ;
1750 - sp:predicate rdf:type ; 1735 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
1751 sp:subject 1736 sp:subject
1752 - [ sp:varName "quantityOfMaterial"^^xsd:string 1737 + [ sp:varName "flow"^^xsd:string
1753 ] 1738 ]
1739 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1740 + sp:predicate rdf:type ;
1741 + sp:subject _:b37
1742 + ] [ sp:object
1743 + [ sp:varName "target"^^xsd:string
1744 + ] ;
1745 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1746 + sp:subject _:b37
1747 + ] [ sp:object _:b38 ;
1748 + sp:predicate rdf:type ;
1749 + sp:subject _:b37
1754 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ; 1750 ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
1755 sp:predicate rdf:type ; 1751 sp:predicate rdf:type ;
1756 sp:subject _:b38 1752 sp:subject _:b38
...@@ -1772,12 +1768,12 @@ ...@@ -1772,12 +1768,12 @@
1772 ] ; 1768 ] ;
1773 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1769 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1774 sp:subject 1770 sp:subject
1775 - [ sp:varName "quantityOfMaterial"^^xsd:string 1771 + [ sp:varName "flow"^^xsd:string
1776 ] 1772 ]
1777 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 1773 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
1778 sp:predicate rdf:type ; 1774 sp:predicate rdf:type ;
1779 sp:subject 1775 sp:subject
1780 - [ sp:varName "quantityOfMaterial"^^xsd:string 1776 + [ sp:varName "flow"^^xsd:string
1781 ] 1777 ]
1782 ] [ rdf:type sp:NotExists ; 1778 ] [ rdf:type sp:NotExists ;
1783 sp:elements ([ sp:object 1779 sp:elements ([ sp:object
...@@ -1785,12 +1781,12 @@ ...@@ -1785,12 +1781,12 @@
1785 ] ; 1781 ] ;
1786 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 1782 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
1787 sp:subject 1783 sp:subject
1788 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 1784 + [ sp:varName "quantityOfMaterialx"^^xsd:string
1789 ] 1785 ]
1790 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ; 1786 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1791 sp:predicate rdf:type ; 1787 sp:predicate rdf:type ;
1792 sp:subject 1788 sp:subject
1793 - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string 1789 + [ sp:varName "quantityOfMaterialx"^^xsd:string
1794 ] 1790 ]
1795 ]) 1791 ])
1796 ] [ sp:object 1792 ] [ sp:object
...@@ -1817,5 +1813,5 @@ ...@@ -1817,5 +1813,5 @@
1817 1813
1818 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> 1814 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1>
1819 rdf:type owl:Ontology ; 1815 rdf:type owl:Ontology ;
1820 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; 1816 + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/flow> ;
1821 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 1817 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 -# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1 1 +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1
2 -# imports: http://spinrdf.org/spin 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.epim.no/schemas/mprml/1 3 +# imports: http://www.epim.no/schemas/mprml/1
4 -# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 4 +# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
5 -# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib 5 +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
6 -# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema 6 +# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
7 - 7 +
8 -@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . 8 +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> .
9 -@prefix arg: <http://spinrdf.org/arg#> . 9 +@prefix arg: <http://spinrdf.org/arg#> .
10 -@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . 10 +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
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 rhspin: <http://www.reportinghub.no/spin/rh#> . 14 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
15 -@prefix sp: <http://spinrdf.org/sp#> . 15 +@prefix sp: <http://spinrdf.org/sp#> .
16 -@prefix spin: <http://spinrdf.org/spin#> . 16 +@prefix spin: <http://spinrdf.org/spin#> .
17 -@prefix spl: <http://spinrdf.org/spl#> . 17 +@prefix spl: <http://spinrdf.org/spl#> .
18 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 18 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
19 - 19 +
20 -<http://www.epim.no/schemas/mprml/1#Cs_businessAssociate> 20 +<http://www.epim.no/schemas/mprml/1#Cs_businessAssociate>
21 - spin:rule 21 + spin:rule
22 - [ rdf:type sp:Construct ; 22 + [ rdf:type sp:Construct ;
23 - rdfs:comment "STEP 00041 Set organization - parent company in NPD fact pages"^^xsd:string ; 23 + rdfs:comment "STEP 00043 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
24 - sp:templates ([ sp:object spin:_this ; 24 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
25 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 25 + sp:predicate rdf:type ;
26 - sp:subject 26 + sp:subject
27 - [ sp:varName "organization"^^xsd:string 27 + [ sp:varName "organization"^^xsd:string
28 - ] 28 + ]
29 - ]) ; 29 + ] [ sp:object
30 - sp:where ([ sp:object 30 + [ sp:varName "organizationName"^^xsd:string
31 - [ sp:varName "organizationName"^^xsd:string 31 + ] ;
32 - ] ; 32 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
33 - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; 33 + sp:subject
34 - sp:subject spin:_this 34 + [ sp:varName "organization"^^xsd:string
35 - ] [ rdf:type sp:NamedGraph ; 35 + ]
36 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; 36 + ] [ sp:object spin:_this ;
37 - sp:predicate rdf:type ; 37 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
38 - sp:subject 38 + sp:subject
39 - [ sp:varName "organization"^^xsd:string 39 + [ sp:varName "organization"^^xsd:string
40 - ] 40 + ]
41 - ] [ sp:object 41 + ]) ;
42 - [ sp:varName "organizationName"^^xsd:string 42 + sp:where ([ sp:object
43 - ] ; 43 + [ sp:varName "organizationName"^^xsd:string
44 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 44 + ] ;
45 - sp:subject 45 + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
46 - [ sp:varName "organization"^^xsd:string 46 + sp:subject spin:_this
47 - ] 47 + ] [ rdf:type sp:NotExists ;
48 - ]) ; 48 + sp:elements ([ sp:object spin:_this ;
49 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 49 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
50 - ]) 50 + sp:subject
51 - ] ; 51 + [ sp:varName "somethingElse"^^xsd:string
52 - spin:rule 52 + ]
53 - [ rdf:type sp:Construct ; 53 + ])
54 - rdfs:comment "STEP 00042 Set organization - operating company in NPD fact pages"^^xsd:string ; 54 + ] [ rdf:type sp:Bind ;
55 - sp:templates ([ sp:object spin:_this ; 55 + sp:expression
56 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 56 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
57 - sp:subject 57 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
58 - [ sp:varName "organization"^^xsd:string 58 + ]
59 - ] 59 + ] ;
60 - ]) ; 60 + sp:variable
61 - sp:where ([ sp:object 61 + [ sp:varName "organization"^^xsd:string
62 - [ sp:varName "organizationName"^^xsd:string 62 + ]
63 - ] ; 63 + ])
64 - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; 64 + ] ;
65 - sp:subject spin:_this 65 + spin:rule
66 - ] [ rdf:type sp:NamedGraph ; 66 + [ rdf:type sp:Construct ;
67 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; 67 + rdfs:comment "STEP 00042 Set organization - operating company in NPD fact pages"^^xsd:string ;
68 - sp:predicate rdf:type ; 68 + sp:templates ([ sp:object spin:_this ;
69 - sp:subject 69 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
70 - [ sp:varName "organization"^^xsd:string 70 + sp:subject
71 - ] 71 + [ sp:varName "organization"^^xsd:string
72 - ] [ sp:object 72 + ]
73 - [ sp:varName "organizationName"^^xsd:string 73 + ]) ;
74 - ] ; 74 + sp:where ([ sp:object
75 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 75 + [ sp:varName "organizationName"^^xsd:string
76 - sp:subject 76 + ] ;
77 - [ sp:varName "organization"^^xsd:string 77 + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
78 - ] 78 + sp:subject spin:_this
79 - ]) ; 79 + ] [ rdf:type sp:NamedGraph ;
80 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 80 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
81 - ]) 81 + sp:predicate rdf:type ;
82 - ] ; 82 + sp:subject
83 - spin:rule 83 + [ sp:varName "organization"^^xsd:string
84 - [ rdf:type sp:Construct ; 84 + ]
85 - rdfs:comment "STEP 00043 Set organization - define organization not in the NPD fact pages."^^xsd:string ; 85 + ] [ sp:object
86 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 86 + [ sp:varName "organizationName"^^xsd:string
87 - sp:predicate rdf:type ; 87 + ] ;
88 - sp:subject 88 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
89 - [ sp:varName "organization"^^xsd:string 89 + sp:subject
90 - ] 90 + [ sp:varName "organization"^^xsd:string
91 - ] [ sp:object 91 + ]
92 - [ sp:varName "organizationName"^^xsd:string 92 + ]) ;
93 - ] ; 93 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
94 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 94 + ])
95 - sp:subject 95 + ] ;
96 - [ sp:varName "organization"^^xsd:string 96 + spin:rule
97 - ] 97 + [ rdf:type sp:Construct ;
98 - ] [ sp:object spin:_this ; 98 + rdfs:comment "STEP 00041 Set organization - parent company in NPD fact pages"^^xsd:string ;
99 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 99 + sp:templates ([ sp:object spin:_this ;
100 - sp:subject 100 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
101 - [ sp:varName "organization"^^xsd:string 101 + sp:subject
102 - ] 102 + [ sp:varName "organization"^^xsd:string
103 - ]) ; 103 + ]
104 - sp:where ([ sp:object 104 + ]) ;
105 - [ sp:varName "organizationName"^^xsd:string 105 + sp:where ([ sp:object
106 - ] ; 106 + [ sp:varName "organizationName"^^xsd:string
107 - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; 107 + ] ;
108 - sp:subject spin:_this 108 + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
109 - ] [ rdf:type sp:NotExists ; 109 + sp:subject spin:_this
110 - sp:elements ([ sp:object spin:_this ; 110 + ] [ rdf:type sp:NamedGraph ;
111 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 111 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
112 - sp:subject 112 + sp:predicate rdf:type ;
113 - [ sp:varName "somethingElse"^^xsd:string 113 + sp:subject
114 - ] 114 + [ sp:varName "organization"^^xsd:string
115 - ]) 115 + ]
116 - ] [ rdf:type sp:Bind ; 116 + ] [ sp:object
117 - sp:expression 117 + [ sp:varName "organizationName"^^xsd:string
118 - [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ; 118 + ] ;
119 - sp:arg1 [ sp:varName "organizationName"^^xsd:string 119 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
120 - ] 120 + sp:subject
121 - ] ; 121 + [ sp:varName "organization"^^xsd:string
122 - sp:variable 122 + ]
123 - [ sp:varName "organization"^^xsd:string 123 + ]) ;
124 - ] 124 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
125 - ]) 125 + ])
126 - ] . 126 + ] .
127 - 127 +
128 -<http://www.epim.no/schemas/mprml/1#RefNameString> 128 +<http://www.epim.no/schemas/mprml/1#RefNameString>
129 - spin:rule 129 + spin:rule
130 - [ rdf:type sp:Construct ; 130 + [ rdf:type sp:Construct ;
131 - rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ; 131 + rdfs:comment "STEP 00037 Set source unit organization - define organization not in the NPD fact pages."^^xsd:string ;
132 - sp:templates ([ sp:object spin:_this ; 132 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
133 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 133 + sp:predicate rdf:type ;
134 - sp:subject 134 + sp:subject
135 - [ sp:varName "organization"^^xsd:string 135 + [ sp:varName "organization"^^xsd:string
136 - ] 136 + ]
137 - ]) ; 137 + ] [ sp:object
138 - sp:where ([ sp:object spin:_this ; 138 + [ sp:varName "organizationName"^^xsd:string
139 - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; 139 + ] ;
140 - sp:subject 140 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
141 - [ sp:varName "something"^^xsd:string 141 + sp:subject
142 - ] 142 + [ sp:varName "organization"^^xsd:string
143 - ] [ sp:object 143 + ]
144 - [ sp:varName "organizationName"^^xsd:string 144 + ] [ sp:object spin:_this ;
145 - ] ; 145 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
146 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 146 + sp:subject
147 - sp:subject spin:_this 147 + [ sp:varName "organization"^^xsd:string
148 - ] [ rdf:type sp:NamedGraph ; 148 + ]
149 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; 149 + ]) ;
150 - sp:predicate rdf:type ; 150 + sp:where ([ sp:object spin:_this ;
151 - sp:subject 151 + sp:predicate <http://www.epim.no/schemas/mprml/1#sourceUnitRef> ;
152 - [ sp:varName "organization"^^xsd:string 152 + sp:subject
153 - ] 153 + [ sp:varName "something"^^xsd:string
154 - ] [ sp:object 154 + ]
155 - [ sp:varName "organizationName"^^xsd:string 155 + ] [ sp:object
156 - ] ; 156 + [ sp:varName "organizationName"^^xsd:string
157 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 157 + ] ;
158 - sp:subject 158 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
159 - [ sp:varName "organization"^^xsd:string 159 + sp:subject spin:_this
160 - ] 160 + ] [ rdf:type sp:NotExists ;
161 - ]) ; 161 + sp:elements ([ sp:object spin:_this ;
162 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 162 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
163 - ]) 163 + sp:subject
164 - ] ; 164 + [ sp:varName "somethingElse"^^xsd:string
165 - spin:rule 165 + ]
166 - [ rdf:type sp:Construct ; 166 + ])
167 - rdfs:comment "STEP 00031 Set organization - define organization not in the NPD fact pages."^^xsd:string ; 167 + ] [ rdf:type sp:Bind ;
168 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 168 + sp:expression
169 - sp:predicate rdf:type ; 169 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
170 - sp:subject 170 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
171 - [ sp:varName "organization"^^xsd:string 171 + ]
172 - ] 172 + ] ;
173 - ] [ sp:object 173 + sp:variable
174 - [ sp:varName "organizationName"^^xsd:string 174 + [ sp:varName "organization"^^xsd:string
175 - ] ; 175 + ]
176 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 176 + ])
177 - sp:subject 177 + ] ;
178 - [ sp:varName "organization"^^xsd:string 178 + spin:rule
179 - ] 179 + [ rdf:type sp:Construct ;
180 - ] [ sp:object spin:_this ; 180 + rdfs:comment "STEP 00034 Set sales administrator organization - define organization not in the NPD fact pages."^^xsd:string ;
181 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 181 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
182 - sp:subject 182 + sp:predicate rdf:type ;
183 - [ sp:varName "organization"^^xsd:string 183 + sp:subject
184 - ] 184 + [ sp:varName "organization"^^xsd:string
185 - ]) ; 185 + ]
186 - sp:where ([ sp:object spin:_this ; 186 + ] [ sp:object
187 - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; 187 + [ sp:varName "organizationName"^^xsd:string
188 - sp:subject 188 + ] ;
189 - [ sp:varName "something"^^xsd:string 189 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
190 - ] 190 + sp:subject
191 - ] [ sp:object 191 + [ sp:varName "organization"^^xsd:string
192 - [ sp:varName "organizationName"^^xsd:string 192 + ]
193 - ] ; 193 + ] [ sp:object spin:_this ;
194 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 194 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
195 - sp:subject spin:_this 195 + sp:subject
196 - ] [ rdf:type sp:NotExists ; 196 + [ sp:varName "organization"^^xsd:string
197 - sp:elements ([ sp:object spin:_this ; 197 + ]
198 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 198 + ]) ;
199 - sp:subject 199 + sp:where ([ sp:object spin:_this ;
200 - [ sp:varName "somethingElse"^^xsd:string 200 + sp:predicate <http://www.epim.no/schemas/mprml/1#salesAdministratorRef> ;
201 - ] 201 + sp:subject
202 - ]) 202 + [ sp:varName "something"^^xsd:string
203 - ] [ rdf:type sp:Bind ; 203 + ]
204 - sp:expression 204 + ] [ sp:object
205 - [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ; 205 + [ sp:varName "organizationName"^^xsd:string
206 - sp:arg1 [ sp:varName "organizationName"^^xsd:string 206 + ] ;
207 - ] 207 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
208 - ] ; 208 + sp:subject spin:_this
209 - sp:variable 209 + ] [ rdf:type sp:NotExists ;
210 - [ sp:varName "organization"^^xsd:string 210 + sp:elements ([ sp:object spin:_this ;
211 - ] 211 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
212 - ]) 212 + sp:subject
213 - ] ; 213 + [ sp:varName "somethingElse"^^xsd:string
214 - spin:rule 214 + ]
215 - [ rdf:type sp:Construct ; 215 + ])
216 - rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ; 216 + ] [ rdf:type sp:Bind ;
217 - sp:templates ([ sp:object spin:_this ; 217 + sp:expression
218 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 218 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
219 - sp:subject 219 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
220 - [ sp:varName "organization"^^xsd:string 220 + ]
221 - ] 221 + ] ;
222 - ]) ; 222 + sp:variable
223 - sp:where ([ sp:object spin:_this ; 223 + [ sp:varName "organization"^^xsd:string
224 - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; 224 + ]
225 - sp:subject 225 + ])
226 - [ sp:varName "something"^^xsd:string 226 + ] ;
227 - ] 227 + spin:rule
228 - ] [ sp:object 228 + [ rdf:type sp:Construct ;
229 - [ sp:varName "organizationName"^^xsd:string 229 + rdfs:comment "STEP 00031 Set seller organization - define organization not in the NPD fact pages."^^xsd:string ;
230 - ] ; 230 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
231 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 231 + sp:predicate rdf:type ;
232 - sp:subject spin:_this 232 + sp:subject
233 - ] [ rdf:type sp:NamedGraph ; 233 + [ sp:varName "organization"^^xsd:string
234 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; 234 + ]
235 - sp:predicate rdf:type ; 235 + ] [ sp:object
236 - sp:subject 236 + [ sp:varName "organizationName"^^xsd:string
237 - [ sp:varName "organization"^^xsd:string 237 + ] ;
238 - ] 238 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
239 - ] [ sp:object 239 + sp:subject
240 - [ sp:varName "organizationName"^^xsd:string 240 + [ sp:varName "organization"^^xsd:string
241 - ] ; 241 + ]
242 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 242 + ] [ sp:object spin:_this ;
243 - sp:subject 243 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
244 - [ sp:varName "organization"^^xsd:string 244 + sp:subject
245 - ] 245 + [ sp:varName "organization"^^xsd:string
246 - ]) ; 246 + ]
247 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 247 + ]) ;
248 - ]) 248 + sp:where ([ sp:object spin:_this ;
249 - ] ; 249 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
250 - spin:rule 250 + sp:subject
251 - [ rdf:type sp:Construct ; 251 + [ sp:varName "something"^^xsd:string
252 - rdfs:comment "STEP 00023 Set organization - define organization not in the NPD fact pages."^^xsd:string ; 252 + ]
253 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 253 + ] [ sp:object
254 - sp:predicate rdf:type ; 254 + [ sp:varName "organizationName"^^xsd:string
255 - sp:subject 255 + ] ;
256 - [ sp:varName "organization"^^xsd:string 256 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
257 - ] 257 + sp:subject spin:_this
258 - ] [ sp:object 258 + ] [ rdf:type sp:NotExists ;
259 - [ sp:varName "organizationName"^^xsd:string 259 + sp:elements ([ sp:object spin:_this ;
260 - ] ; 260 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
261 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 261 + sp:subject
262 - sp:subject 262 + [ sp:varName "somethingElse"^^xsd:string
263 - [ sp:varName "organization"^^xsd:string 263 + ]
264 - ] 264 + ])
265 - ] [ sp:object spin:_this ; 265 + ] [ rdf:type sp:Bind ;
266 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 266 + sp:expression
267 - sp:subject 267 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
268 - [ sp:varName "organization"^^xsd:string 268 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
269 - ] 269 + ]
270 - ]) ; 270 + ] ;
271 - sp:where ([ sp:object spin:_this ; 271 + sp:variable
272 - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; 272 + [ sp:varName "organization"^^xsd:string
273 - sp:subject 273 + ]
274 - [ sp:varName "something"^^xsd:string 274 + ])
275 - ] 275 + ] ;
276 - ] [ sp:object 276 + spin:rule
277 - [ sp:varName "organizationName"^^xsd:string 277 + [ rdf:type sp:Construct ;
278 - ] ; 278 + rdfs:comment "STEP 00030 Set seller organization - operating company in NPD fact pages"^^xsd:string ;
279 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 279 + sp:templates ([ sp:object spin:_this ;
280 - sp:subject spin:_this 280 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
281 - ] [ rdf:type sp:NotExists ; 281 + sp:subject
282 - sp:elements ([ sp:object spin:_this ; 282 + [ sp:varName "organization"^^xsd:string
283 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 283 + ]
284 - sp:subject 284 + ]) ;
285 - [ sp:varName "somethingElse"^^xsd:string 285 + sp:where ([ sp:object spin:_this ;
286 - ] 286 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
287 - ]) 287 + sp:subject
288 - ] [ rdf:type sp:Bind ; 288 + [ sp:varName "something"^^xsd:string
289 - sp:expression 289 + ]
290 - [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ; 290 + ] [ sp:object
291 - sp:arg1 [ sp:varName "organizationName"^^xsd:string 291 + [ sp:varName "organizationName"^^xsd:string
292 - ] 292 + ] ;
293 - ] ; 293 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
294 - sp:variable 294 + sp:subject spin:_this
295 - [ sp:varName "organization"^^xsd:string 295 + ] [ rdf:type sp:NamedGraph ;
296 - ] 296 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
297 - ]) 297 + sp:predicate rdf:type ;
298 - ] ; 298 + sp:subject
299 - spin:rule 299 + [ sp:varName "organization"^^xsd:string
300 - [ rdf:type sp:Construct ; 300 + ]
301 - rdfs:comment "STEP 00027 Set organization - define organization not in the NPD fact pages."^^xsd:string ; 301 + ] [ sp:object
302 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 302 + [ sp:varName "organizationName"^^xsd:string
303 - sp:predicate rdf:type ; 303 + ] ;
304 - sp:subject 304 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
305 - [ sp:varName "organization"^^xsd:string 305 + sp:subject
306 - ] 306 + [ sp:varName "organization"^^xsd:string
307 - ] [ sp:object 307 + ]
308 - [ sp:varName "organizationName"^^xsd:string 308 + ]) ;
309 - ] ; 309 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
310 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 310 + ])
311 - sp:subject 311 + ] ;
312 - [ sp:varName "organization"^^xsd:string 312 + spin:rule
313 - ] 313 + [ rdf:type sp:Construct ;
314 - ] [ sp:object spin:_this ; 314 + rdfs:comment "STEP 00036 Set source unit organization - operating company in NPD fact pages"^^xsd:string ;
315 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 315 + sp:templates ([ sp:object spin:_this ;
316 - sp:subject 316 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
317 - [ sp:varName "organization"^^xsd:string 317 + sp:subject
318 - ] 318 + [ sp:varName "organization"^^xsd:string
319 - ]) ; 319 + ]
320 - sp:where ([ sp:object spin:_this ; 320 + ]) ;
321 - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; 321 + sp:where ([ sp:object spin:_this ;
322 - sp:subject 322 + sp:predicate <http://www.epim.no/schemas/mprml/1#sourceUnitRef> ;
323 - [ sp:varName "something"^^xsd:string 323 + sp:subject
324 - ] 324 + [ sp:varName "something"^^xsd:string
325 - ] [ sp:object 325 + ]
326 - [ sp:varName "organizationName"^^xsd:string 326 + ] [ sp:object
327 - ] ; 327 + [ sp:varName "organizationName"^^xsd:string
328 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 328 + ] ;
329 - sp:subject spin:_this 329 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
330 - ] [ rdf:type sp:NotExists ; 330 + sp:subject spin:_this
331 - sp:elements ([ sp:object spin:_this ; 331 + ] [ rdf:type sp:NamedGraph ;
332 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 332 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
333 - sp:subject 333 + sp:predicate rdf:type ;
334 - [ sp:varName "somethingElse"^^xsd:string 334 + sp:subject
335 - ] 335 + [ sp:varName "organization"^^xsd:string
336 - ]) 336 + ]
337 - ] [ rdf:type sp:Bind ; 337 + ] [ sp:object
338 - sp:expression 338 + [ sp:varName "organizationName"^^xsd:string
339 - [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ; 339 + ] ;
340 - sp:arg1 [ sp:varName "organizationName"^^xsd:string 340 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
341 - ] 341 + sp:subject
342 - ] ; 342 + [ sp:varName "organization"^^xsd:string
343 - sp:variable 343 + ]
344 - [ sp:varName "organization"^^xsd:string 344 + ]) ;
345 - ] 345 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
346 - ]) 346 + ])
347 - ] ; 347 + ] ;
348 - spin:rule 348 + spin:rule
349 - [ rdf:type sp:Construct ; 349 + [ rdf:type sp:Construct ;
350 - rdfs:comment "STEP 00029 Set organization - parent company in NPD fact pages"^^xsd:string ; 350 + rdfs:comment "STEP 00035 Set source unit organization - parent company in NPD fact pages"^^xsd:string ;
351 - sp:templates ([ sp:object spin:_this ; 351 + sp:templates ([ sp:object spin:_this ;
352 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 352 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
353 - sp:subject 353 + sp:subject
354 - [ sp:varName "organization"^^xsd:string 354 + [ sp:varName "organization"^^xsd:string
355 - ] 355 + ]
356 - ]) ; 356 + ]) ;
357 - sp:where ([ sp:object spin:_this ; 357 + sp:where ([ sp:object spin:_this ;
358 - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; 358 + sp:predicate <http://www.epim.no/schemas/mprml/1#sourceUnitRef> ;
359 - sp:subject 359 + sp:subject
360 - [ sp:varName "something"^^xsd:string 360 + [ sp:varName "something"^^xsd:string
361 - ] 361 + ]
362 - ] [ sp:object 362 + ] [ sp:object
363 - [ sp:varName "organizationName"^^xsd:string 363 + [ sp:varName "organizationName"^^xsd:string
364 - ] ; 364 + ] ;
365 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 365 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
366 - sp:subject spin:_this 366 + sp:subject spin:_this
367 - ] [ rdf:type sp:NamedGraph ; 367 + ] [ rdf:type sp:NamedGraph ;
368 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; 368 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
369 - sp:predicate rdf:type ; 369 + sp:predicate rdf:type ;
370 - sp:subject 370 + sp:subject
371 - [ sp:varName "organization"^^xsd:string 371 + [ sp:varName "organization"^^xsd:string
372 - ] 372 + ]
373 - ] [ sp:object 373 + ] [ sp:object
374 - [ sp:varName "organizationName"^^xsd:string 374 + [ sp:varName "organizationName"^^xsd:string
375 - ] ; 375 + ] ;
376 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 376 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
377 - sp:subject 377 + sp:subject
378 - [ sp:varName "organization"^^xsd:string 378 + [ sp:varName "organization"^^xsd:string
379 - ] 379 + ]
380 - ]) ; 380 + ]) ;
381 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 381 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
382 - ]) 382 + ])
383 - ] ; 383 + ] ;
384 - spin:rule 384 + spin:rule
385 - [ rdf:type sp:Construct ; 385 + [ rdf:type sp:Construct ;
386 - rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ; 386 + rdfs:comment "STEP 00027 Set owner organization - define organization not in the NPD fact pages."^^xsd:string ;
387 - sp:templates ([ sp:object spin:_this ; 387 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
388 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 388 + sp:predicate rdf:type ;
389 - sp:subject 389 + sp:subject
390 - [ sp:varName "organization"^^xsd:string 390 + [ sp:varName "organization"^^xsd:string
391 - ] 391 + ]
392 - ]) ; 392 + ] [ sp:object
393 - sp:where ([ sp:object spin:_this ; 393 + [ sp:varName "organizationName"^^xsd:string
394 - sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ; 394 + ] ;
395 - sp:subject 395 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
396 - [ sp:varName "something"^^xsd:string 396 + sp:subject
397 - ] 397 + [ sp:varName "organization"^^xsd:string
398 - ] [ sp:object 398 + ]
399 - [ sp:varName "organizationName"^^xsd:string 399 + ] [ sp:object spin:_this ;
400 - ] ; 400 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
401 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 401 + sp:subject
402 - sp:subject spin:_this 402 + [ sp:varName "organization"^^xsd:string
403 - ] [ rdf:type sp:NamedGraph ; 403 + ]
404 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; 404 + ]) ;
405 - sp:predicate rdf:type ; 405 + sp:where ([ sp:object spin:_this ;
406 - sp:subject 406 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
407 - [ sp:varName "organization"^^xsd:string 407 + sp:subject
408 - ] 408 + [ sp:varName "something"^^xsd:string
409 - ] [ sp:object 409 + ]
410 - [ sp:varName "organizationName"^^xsd:string 410 + ] [ sp:object
411 - ] ; 411 + [ sp:varName "organizationName"^^xsd:string
412 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 412 + ] ;
413 - sp:subject 413 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
414 - [ sp:varName "organization"^^xsd:string 414 + sp:subject spin:_this
415 - ] 415 + ] [ rdf:type sp:NotExists ;
416 - ]) ; 416 + sp:elements ([ sp:object spin:_this ;
417 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 417 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
418 - ]) 418 + sp:subject
419 - ] ; 419 + [ sp:varName "somethingElse"^^xsd:string
420 - spin:rule 420 + ]
421 - [ rdf:type sp:Construct ; 421 + ])
422 - rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ; 422 + ] [ rdf:type sp:Bind ;
423 - sp:templates ([ sp:object spin:_this ; 423 + sp:expression
424 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 424 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
425 - sp:subject 425 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
426 - [ sp:varName "organization"^^xsd:string 426 + ]
427 - ] 427 + ] ;
428 - ]) ; 428 + sp:variable
429 - sp:where ([ sp:object spin:_this ; 429 + [ sp:varName "organization"^^xsd:string
430 - sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ; 430 + ]
431 - sp:subject 431 + ])
432 - [ sp:varName "something"^^xsd:string 432 + ] ;
433 - ] 433 + spin:rule
434 - ] [ sp:object 434 + [ rdf:type sp:Construct ;
435 - [ sp:varName "organizationName"^^xsd:string 435 + rdfs:comment "STEP 00023 Set buyer organization - define organization not in the NPD fact pages."^^xsd:string ;
436 - ] ; 436 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
437 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 437 + sp:predicate rdf:type ;
438 - sp:subject spin:_this 438 + sp:subject
439 - ] [ rdf:type sp:NamedGraph ; 439 + [ sp:varName "organization"^^xsd:string
440 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; 440 + ]
441 - sp:predicate rdf:type ; 441 + ] [ sp:object
442 - sp:subject 442 + [ sp:varName "organizationName"^^xsd:string
443 - [ sp:varName "organization"^^xsd:string 443 + ] ;
444 - ] 444 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
445 - ] [ sp:object 445 + sp:subject
446 - [ sp:varName "organizationName"^^xsd:string 446 + [ sp:varName "organization"^^xsd:string
447 - ] ; 447 + ]
448 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 448 + ] [ sp:object spin:_this ;
449 - sp:subject 449 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
450 - [ sp:varName "organization"^^xsd:string 450 + sp:subject
451 - ] 451 + [ sp:varName "organization"^^xsd:string
452 - ]) ; 452 + ]
453 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 453 + ]) ;
454 - ]) 454 + sp:where ([ sp:object spin:_this ;
455 - ] ; 455 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
456 - spin:rule 456 + sp:subject
457 - [ rdf:type sp:Construct ; 457 + [ sp:varName "something"^^xsd:string
458 - rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ; 458 + ]
459 - sp:templates ([ sp:object spin:_this ; 459 + ] [ sp:object
460 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 460 + [ sp:varName "organizationName"^^xsd:string
461 - sp:subject 461 + ] ;
462 - [ sp:varName "organization"^^xsd:string 462 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
463 - ] 463 + sp:subject spin:_this
464 - ]) ; 464 + ] [ rdf:type sp:NotExists ;
465 - sp:where ([ sp:object spin:_this ; 465 + sp:elements ([ sp:object spin:_this ;
466 - sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ; 466 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
467 - sp:subject 467 + sp:subject
468 - [ sp:varName "something"^^xsd:string 468 + [ sp:varName "somethingElse"^^xsd:string
469 - ] 469 + ]
470 - ] [ sp:object 470 + ])
471 - [ sp:varName "organizationName"^^xsd:string 471 + ] [ rdf:type sp:Bind ;
472 - ] ; 472 + sp:expression
473 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 473 + [ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
474 - sp:subject spin:_this 474 + sp:arg1 [ sp:varName "organizationName"^^xsd:string
475 - ] [ rdf:type sp:NamedGraph ; 475 + ]
476 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; 476 + ] ;
477 - sp:predicate rdf:type ; 477 + sp:variable
478 - sp:subject 478 + [ sp:varName "organization"^^xsd:string
479 - [ sp:varName "organization"^^xsd:string 479 + ]
480 - ] 480 + ])
481 - ] [ sp:object 481 + ] ;
482 - [ sp:varName "organizationName"^^xsd:string 482 + spin:rule
483 - ] ; 483 + [ rdf:type sp:Construct ;
484 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 484 + rdfs:comment "STEP 00026 Set owner organization - operating company in NPD fact pages"^^xsd:string ;
485 - sp:subject 485 + sp:templates ([ sp:object spin:_this ;
486 - [ sp:varName "organization"^^xsd:string 486 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
487 - ] 487 + sp:subject
488 - ]) ; 488 + [ sp:varName "organization"^^xsd:string
489 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 489 + ]
490 - ]) 490 + ]) ;
491 - ] . 491 + sp:where ([ sp:object spin:_this ;
492 - 492 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
493 -<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> 493 + sp:subject
494 - rdf:type owl:Ontology ; 494 + [ sp:varName "something"^^xsd:string
495 - owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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/dpr/spin/1.1/lib> ; 495 + ]
496 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 496 + ] [ sp:object
497 + [ sp:varName "organizationName"^^xsd:string
498 + ] ;
499 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
500 + sp:subject spin:_this
501 + ] [ rdf:type sp:NamedGraph ;
502 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
503 + sp:predicate rdf:type ;
504 + sp:subject
505 + [ sp:varName "organization"^^xsd:string
506 + ]
507 + ] [ sp:object
508 + [ sp:varName "organizationName"^^xsd:string
509 + ] ;
510 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
511 + sp:subject
512 + [ sp:varName "organization"^^xsd:string
513 + ]
514 + ]) ;
515 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
516 + ])
517 + ] ;
518 + spin:rule
519 + [ rdf:type sp:Construct ;
520 + rdfs:comment "STEP 00025 Set owner organization - parent company in NPD fact pages"^^xsd:string ;
521 + sp:templates ([ sp:object spin:_this ;
522 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
523 + sp:subject
524 + [ sp:varName "organization"^^xsd:string
525 + ]
526 + ]) ;
527 + sp:where ([ sp:object spin:_this ;
528 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
529 + sp:subject
530 + [ sp:varName "something"^^xsd:string
531 + ]
532 + ] [ sp:object
533 + [ sp:varName "organizationName"^^xsd:string
534 + ] ;
535 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
536 + sp:subject spin:_this
537 + ] [ rdf:type sp:NamedGraph ;
538 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
539 + sp:predicate rdf:type ;
540 + sp:subject
541 + [ sp:varName "organization"^^xsd:string
542 + ]
543 + ] [ sp:object
544 + [ sp:varName "organizationName"^^xsd:string
545 + ] ;
546 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
547 + sp:subject
548 + [ sp:varName "organization"^^xsd:string
549 + ]
550 + ]) ;
551 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
552 + ])
553 + ] ;
554 + spin:rule
555 + [ rdf:type sp:Construct ;
556 + rdfs:comment "STEP 00032 Set sales administrator organization - parent company in NPD fact pages"^^xsd:string ;
557 + sp:templates ([ sp:object spin:_this ;
558 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
559 + sp:subject
560 + [ sp:varName "organization"^^xsd:string
561 + ]
562 + ]) ;
563 + sp:where ([ sp:object spin:_this ;
564 + sp:predicate <http://www.epim.no/schemas/mprml/1#salesAdministratorRef> ;
565 + sp:subject
566 + [ sp:varName "something"^^xsd:string
567 + ]
568 + ] [ sp:object
569 + [ sp:varName "organizationName"^^xsd:string
570 + ] ;
571 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
572 + sp:subject spin:_this
573 + ] [ rdf:type sp:NamedGraph ;
574 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
575 + sp:predicate rdf:type ;
576 + sp:subject
577 + [ sp:varName "organization"^^xsd:string
578 + ]
579 + ] [ sp:object
580 + [ sp:varName "organizationName"^^xsd:string
581 + ] ;
582 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
583 + sp:subject
584 + [ sp:varName "organization"^^xsd:string
585 + ]
586 + ]) ;
587 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
588 + ])
589 + ] ;
590 + spin:rule
591 + [ rdf:type sp:Construct ;
592 + rdfs:comment "STEP 00022 Set buyer organization - operating company in NPD fact pages"^^xsd:string ;
593 + sp:templates ([ sp:object spin:_this ;
594 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
595 + sp:subject
596 + [ sp:varName "organization"^^xsd:string
597 + ]
598 + ]) ;
599 + sp:where ([ sp:object spin:_this ;
600 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
601 + sp:subject
602 + [ sp:varName "something"^^xsd:string
603 + ]
604 + ] [ sp:object
605 + [ sp:varName "organizationName"^^xsd:string
606 + ] ;
607 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
608 + sp:subject spin:_this
609 + ] [ rdf:type sp:NamedGraph ;
610 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
611 + sp:predicate rdf:type ;
612 + sp:subject
613 + [ sp:varName "organization"^^xsd:string
614 + ]
615 + ] [ sp:object
616 + [ sp:varName "organizationName"^^xsd:string
617 + ] ;
618 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
619 + sp:subject
620 + [ sp:varName "organization"^^xsd:string
621 + ]
622 + ]) ;
623 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
624 + ])
625 + ] ;
626 + spin:rule
627 + [ rdf:type sp:Construct ;
628 + rdfs:comment "STEP 00029 Set seller organization - parent company in NPD fact pages"^^xsd:string ;
629 + sp:templates ([ sp:object spin:_this ;
630 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
631 + sp:subject
632 + [ sp:varName "organization"^^xsd:string
633 + ]
634 + ]) ;
635 + sp:where ([ sp:object spin:_this ;
636 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
637 + sp:subject
638 + [ sp:varName "something"^^xsd:string
639 + ]
640 + ] [ sp:object
641 + [ sp:varName "organizationName"^^xsd:string
642 + ] ;
643 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
644 + sp:subject spin:_this
645 + ] [ rdf:type sp:NamedGraph ;
646 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
647 + sp:predicate rdf:type ;
648 + sp:subject
649 + [ sp:varName "organization"^^xsd:string
650 + ]
651 + ] [ sp:object
652 + [ sp:varName "organizationName"^^xsd:string
653 + ] ;
654 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
655 + sp:subject
656 + [ sp:varName "organization"^^xsd:string
657 + ]
658 + ]) ;
659 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
660 + ])
661 + ] ;
662 + spin:rule
663 + [ rdf:type sp:Construct ;
664 + rdfs:comment "STEP 00033 Set sales administrator organization - operating company in NPD fact pages"^^xsd:string ;
665 + sp:templates ([ sp:object spin:_this ;
666 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
667 + sp:subject
668 + [ sp:varName "organization"^^xsd:string
669 + ]
670 + ]) ;
671 + sp:where ([ sp:object spin:_this ;
672 + sp:predicate <http://www.epim.no/schemas/mprml/1#salesAdministratorRef> ;
673 + sp:subject
674 + [ sp:varName "something"^^xsd:string
675 + ]
676 + ] [ sp:object
677 + [ sp:varName "organizationName"^^xsd:string
678 + ] ;
679 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
680 + sp:subject spin:_this
681 + ] [ rdf:type sp:NamedGraph ;
682 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
683 + sp:predicate rdf:type ;
684 + sp:subject
685 + [ sp:varName "organization"^^xsd:string
686 + ]
687 + ] [ sp:object
688 + [ sp:varName "organizationName"^^xsd:string
689 + ] ;
690 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
691 + sp:subject
692 + [ sp:varName "organization"^^xsd:string
693 + ]
694 + ]) ;
695 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
696 + ])
697 + ] ;
698 + spin:rule
699 + [ rdf:type sp:Construct ;
700 + rdfs:comment "STEP 00021 Set buyer organization - parent company in NPD fact pages"^^xsd:string ;
701 + sp:templates ([ sp:object spin:_this ;
702 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
703 + sp:subject
704 + [ sp:varName "organization"^^xsd:string
705 + ]
706 + ]) ;
707 + sp:where ([ sp:object spin:_this ;
708 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
709 + sp:subject
710 + [ sp:varName "something"^^xsd:string
711 + ]
712 + ] [ sp:object
713 + [ sp:varName "organizationName"^^xsd:string
714 + ] ;
715 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
716 + sp:subject spin:_this
717 + ] [ rdf:type sp:NamedGraph ;
718 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
719 + sp:predicate rdf:type ;
720 + sp:subject
721 + [ sp:varName "organization"^^xsd:string
722 + ]
723 + ] [ sp:object
724 + [ sp:varName "organizationName"^^xsd:string
725 + ] ;
726 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
727 + sp:subject
728 + [ sp:varName "organization"^^xsd:string
729 + ]
730 + ]) ;
731 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
732 + ])
733 + ] .
734 +
735 +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1>
736 + rdf:type owl:Ontology ;
737 + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <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/transform/transform-helper-schema> ;
738 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......