valueflows

valueflows docs
git clone https://s.sonu.ch/~srfsh/valueflows.git
Log | Files | Refs | README

process-pack-unpack.yaml (8839B)


      1 # Example: Simple pack and unpack processes
      2 
      3 '@context':
      4   - https://git.io/vf-examples-jsonld-context
      5   - med: https://medical.example/
      6     wash: https://laundry.example/
      7 
      8 '@id': rgh:valueflows/valueflows/master/examples/process-pack-unpack.yaml
      9 '@graph':
     10 
     11   # Economic resources before
     12 
     13   - '@id': med:e1721a61-cd47-4556-84b9-8b1b81da15bf
     14     '@type': EconomicResource
     15     conformsTo: https://www.wikidata.org/wiki/Q987767 # container
     16     trackingIdentifier: cont234
     17     accountingQuantity:
     18       om2:hasUnit: om2:one
     19       om2:hasNumericalValue: 1
     20 
     21   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b9
     22     '@type': EconomicResource
     23     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
     24     trackingIdentifier: gown789
     25     accountingQuantity:
     26       om2:hasUnit: om2:one
     27       om2:hasNumericalValue: 1
     28     containedIn: 
     29 
     30   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b0
     31     '@type': EconomicResource
     32     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
     33     trackingIdentifier: gown734
     34     accountingQuantity:
     35       om2:hasUnit: om2:one
     36       om2:hasNumericalValue: 1
     37     containedIn: 
     38 
     39   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b1
     40     '@type': EconomicResource
     41     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
     42     trackingIdentifier: gown698
     43     accountingQuantity:
     44       om2:hasUnit: om2:one
     45       om2:hasNumericalValue: 1
     46     containedIn: 
     47 
     48   # Packing process
     49 
     50   - '@id': med:02b39a30-3e04-4305-9656-7f261aa63c84
     51     '@type': Process
     52     name: Pack medical gowns
     53     note: Each gown is scanned for tracking identifier as packed
     54 
     55   - '@id': med:b52a5815-fae9-43bf-be95-833b95dc0adb
     56     '@type': EconomicEvent
     57     inputOf: med:02b39a30-3e04-4305-9656-7f261aa63c84
     58     action: accept
     59     provider: https://medical.example/
     60     receiver: https://medical.example/
     61     resourceInventoriedAs: med:e1721a61-cd47-4556-84b9-8b1b81da15bf # a container
     62     resourceQuantity:
     63       om2:hasUnit: om2:one
     64       om2:hasNumericalValue: 1
     65     note: Container is empty at this point.
     66 
     67   - '@id': med:b90b0b77-09a2-42e2-8bd4-e9ae2c1c6172
     68     '@type': EconomicEvent
     69     inputOf: med:02b39a30-3e04-4305-9656-7f261aa63c84
     70     action: pack
     71     provider: https://medical.example/
     72     receiver: https://medical.example/
     73     resourceInventoriedAs: med:3129ca8b-fcda-45be-bbda-294dc924d3b9 # a medical gown
     74     resourceQuantity:
     75       om2:hasUnit: om2:one
     76       om2:hasNumericalValue: 1
     77 
     78   - '@id': med:a8236bbb-81e0-422d-9861-56d2417db0fb
     79     '@type': EconomicEvent
     80     inputOf: med:02b39a30-3e04-4305-9656-7f261aa63c84
     81     action: pack
     82     provider: https://medical.example/
     83     receiver: https://medical.example/
     84     resourceInventoriedAs: med:3129ca8b-fcda-45be-bbda-294dc924d3b0 # a medical gown
     85     resourceQuantity:
     86       om2:hasUnit: om2:one
     87       om2:hasNumericalValue: 1
     88 
     89   - '@id': med:6f438393-7f87-4914-806c-e23a4fd15e89
     90     '@type': EconomicEvent
     91     inputOf: med:02b39a30-3e04-4305-9656-7f261aa63c84
     92     action: pack
     93     provider: https://medical.example/
     94     receiver: https://medical.example/
     95     resourceInventoriedAs: med:3129ca8b-fcda-45be-bbda-294dc924d3b1 # a medical gown
     96     resourceQuantity:
     97       om2:hasUnit: om2:one
     98       om2:hasNumericalValue: 1
     99 
    100   - '@id': med:b52a5815-fae9-43bf-be95-833b95dc0adb
    101     '@type': EconomicEvent
    102     outputOf: med:02b39a30-3e04-4305-9656-7f261aa63c84
    103     action: modify
    104     provider: https://medical.example/
    105     receiver: https://medical.example/
    106     resourceInventoriedAs: med:e1721a61-cd47-4556-84b9-8b1b81da15bf # a container
    107     resourceQuantity:
    108       om2:hasUnit: om2:one
    109       om2:hasNumericalValue: 1
    110     note: Container is full at this point.
    111 
    112   # Economic resources after packing
    113 
    114   - '@id': med:e1721a61-cd47-4556-84b9-8b1b81da15bf
    115     '@type': EconomicResource
    116     conformsTo: https://www.wikidata.org/wiki/Q987767 # container
    117     trackingIdentifier: cont234
    118     accountingQuantity:
    119       om2:hasUnit: om2:one
    120       om2:hasNumericalValue: 1
    121 
    122   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b9
    123     '@type': EconomicResource
    124     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
    125     trackingIdentifier: gown789
    126     accountingQuantity:
    127       om2:hasUnit: om2:one
    128       om2:hasNumericalValue: 1
    129     containedIn: med:e1721a61-cd47-4556-84b9-8b1b81da15bf
    130 
    131   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b0
    132     '@type': EconomicResource
    133     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
    134     trackingIdentifier: gown734
    135     accountingQuantity:
    136       om2:hasUnit: om2:one
    137       om2:hasNumericalValue: 1
    138     containedIn: med:e1721a61-cd47-4556-84b9-8b1b81da15bf
    139 
    140   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b1
    141     '@type': EconomicResource
    142     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
    143     trackingIdentifier: gown698
    144     accountingQuantity:
    145       om2:hasUnit: om2:one
    146       om2:hasNumericalValue: 1
    147     containedIn: med:e1721a61-cd47-4556-84b9-8b1b81da15bf
    148 
    149   # The container is transferred to the laundry
    150 
    151   - '@id': med:b52a5815-fae9-43bf-be95-833berqojdasf7
    152     '@type': EconomicEvent
    153     action: transfer-custody
    154     provider: https://medical.example/
    155     receiver: https://laundry.example/
    156     resourceInventoriedAs: med:e1721a61-cd47-4556-84b9-8b1b81da15bf # the container
    157     resourceQuantity:
    158       om2:hasUnit: om2:one
    159       om2:hasNumericalValue: 1
    160     note: Container is all that is needed here.
    161 
    162   # The container is unpacked at the laundry
    163   
    164   - '@id': wash:8e5fe80d-a769-4bd5-89e5-2136d33eab9f
    165     '@type': Process
    166     name: Unpack medical gowns
    167     note: Each gown is scanned for tracking identifier as unpacked
    168 
    169   - '@id': wash:33e8933b-ff73-4a01-964a-ca7a98893083
    170     '@type': EconomicEvent
    171     inputOf: wash:8e5fe80d-a769-4bd5-89e5-2136d33eab9f
    172     action: accept
    173     provider: https://laundry.example/
    174     receiver: https://laundry.example/
    175     resourceInventoriedAs: med:e1721a61-cd47-4556-84b9-8b1b81da15bf # a container
    176     resourceQuantity:
    177       om2:hasUnit: om2:one
    178       om2:hasNumericalValue: 1
    179     note: Container is full at this point.
    180 
    181   - '@id': wash:60f4204e-b8d2-4026-8577-102c3f82c0af
    182     '@type': EconomicEvent
    183     outputOf: wash:33e8933b-ff73-4a01-964a-ca7a98893083
    184     action: modify
    185     provider: https://laundry.example/
    186     receiver: https://laundry.example/
    187     resourceInventoriedAs: med:e1721a61-cd47-4556-84b9-8b1b81da15bf # a container
    188     resourceQuantity:
    189       om2:hasUnit: om2:one
    190       om2:hasNumericalValue: 1
    191     note: Container is full at this point.
    192 
    193   - '@id': wash:60f4204e-b8d2-4026-8577-102c3fkm98g1
    194     '@type': EconomicEvent
    195     outputOf: wash:33e8933b-ff73-4a01-964a-ca7a98893083
    196     action: unpack
    197     provider: https://laundry.example/
    198     receiver: https://laundry.example/
    199     resourceInventoriedAs: med:3129ca8b-fcda-45be-bbda-294dc924d3b9 # a medical gown
    200     resourceQuantity:
    201       om2:hasUnit: om2:one
    202       om2:hasNumericalValue: 1
    203 
    204   - '@id': wash:60f4204e-b8d2-4026-8577-102c3fsd89cv
    205     '@type': EconomicEvent
    206     outputOf: wash:33e8933b-ff73-4a01-964a-ca7a98893083
    207     action: unpack
    208     provider: https://laundry.example/
    209     receiver: https://laundry.example/
    210     resourceInventoriedAs: med:3129ca8b-fcda-45be-bbda-294dc924d3b0 # a medical gown
    211     resourceQuantity:
    212       om2:hasUnit: om2:one
    213       om2:hasNumericalValue: 1
    214 
    215   - '@id': wash:60f4204e-b8d2-4026-8577-102c3fd9kjre
    216     '@type': EconomicEvent
    217     outputOf: wash:33e8933b-ff73-4a01-964a-ca7a98893083
    218     action: unpack
    219     provider: https://laundry.example/
    220     receiver: https://laundry.example/
    221     resourceInventoriedAs: med:3129ca8b-fcda-45be-bbda-294dc924d3b1 # a medical gown
    222     resourceQuantity:
    223       om2:hasUnit: om2:one
    224       om2:hasNumericalValue: 1
    225 
    226   # Economic resources after unpacking
    227 
    228   - '@id': med:e1721a61-cd47-4556-84b9-8b1b81da15bf
    229     '@type': EconomicResource
    230     conformsTo: https://www.wikidata.org/wiki/Q987767 # container
    231     trackingIdentifier: cont234
    232     accountingQuantity:
    233       om2:hasUnit: om2:one
    234       om2:hasNumericalValue: 1
    235 
    236   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b9
    237     '@type': EconomicResource
    238     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
    239     trackingIdentifier: gown789
    240     accountingQuantity:
    241       om2:hasUnit: om2:one
    242       om2:hasNumericalValue: 1
    243     containedIn: 
    244 
    245   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b0
    246     '@type': EconomicResource
    247     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
    248     trackingIdentifier: gown734
    249     accountingQuantity:
    250       om2:hasUnit: om2:one
    251       om2:hasNumericalValue: 1
    252     containedIn:
    253 
    254   - '@id': med:3129ca8b-fcda-45be-bbda-294dc924d3b1
    255     '@type': EconomicResource
    256     conformsTo: https://www.wikidata.org/wiki/Q89990310 # medical gown
    257     trackingIdentifier: gown698
    258     accountingQuantity:
    259       om2:hasUnit: om2:one
    260       om2:hasNumericalValue: 1
    261     containedIn: 
    262