valueflows

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

transport-with-transfer.yaml (9735B)


      1 '@context':
      2   - https://git.io/vf-examples-jsonld-context
      3   - alice: https://alice.example/
      4     bob: https://bob.example/
      5     claudia: https://claudia.example/
      6 
      7 '@id': rgh:valueflows/valueflows/master/examples/transport-with-transfer.yaml
      8 '@graph':
      9 
     10 # Bob purchases 30kg of apples from Alice and Claudia transports them (FOB destination)
     11 
     12   # resources before
     13 
     14   - '@id': alice:21f361a6-2375-46bb-b192-c21b5ba833bf
     15     '@type': EconomicResource
     16     classifiedAs: wd:Q41777871 # haralson apples
     17     trackingIdentifier: lot-alice-apples-2018-10-11
     18     locatedAt: geo:70ee3034-0d15-4471-8ee3-91c60bb1a9c9
     19     accountingQuantity:
     20       om2:hasUnit: om2:kilogram
     21       om2:hasNumericalValue: 230
     22     onhandQuantity:
     23       om2:hasUnit: om2:kilogram
     24       om2:hasNumericalValue: 230
     25 
     26   # alice commits to transfer some apples to bob
     27 
     28   - '@id': urn:uuid:6b5bc786-b9ed-4189-b34f-5ef7d10f1f86
     29     '@type': Commitment
     30     action: transfer
     31     resourceClassifiedAs: wd:Q41777871 # haralson apples
     32     provider: https://alice.example/
     33     receiver: https://bob.example/
     34     resourceQuantity:
     35       om2:hasUnit: om2:kilogram
     36       om2:hasNumericalValue: 30
     37 
     38   # alice and claudia agree on transportation of the apples
     39 
     40   - '@id': urn:uuid:f325a950-5737-488d-b122-8f21114d0eb0
     41     '@type': Agreement
     42     skos:note: exchange transportation service for currency
     43 
     44   - '@id': urn:uuid:33e8933b-ff73-4a01-964a-ca7a98893083
     45     '@type': Commitment
     46     action: transfer
     47     resourceClassifedAs: wd:Q4917 # US Dollar
     48     provider: https://alice.example/
     49     receiver: https://claudia.example/
     50     resourceQuantity:
     51       om2:hasUnit: om2:one
     52       om2:hasNumericalValue: 10
     53     clauseOf: urn:uuid:f325a950-5737-488d-b122-8f21114d0eb0 # transportation agreement
     54 
     55   - '@id': urn:uuid:c7897c39-7f05-4a5d-a487-80e130a2414a
     56     '@type': Commitment
     57     skos:note: Transportation of alice's apples from alice's location to bob's location
     58     action: service
     59     resourceClassifiedAs: wd:Q7590 # transportation service
     60     provider: https://claudia.example/
     61     receiver: https://alice.example/
     62     resourceQuantity:
     63       om2:hasUnit: om2:one
     64       om2:hasNumericalValue: 1
     65     clauseOf: urn:uuid:f325a950-5737-488d-b122-8f21114d0eb0 # transportation agreement
     66 
     67   # alice transfers custody of the apples to claudia for transportation
     68 
     69   - '@id': urn:uuid:6b5bc786-b9ed-4189-b34f-5ef7d10f1f87
     70     '@type': EconomicEvent
     71     action: transfer-custody
     72     resourceClassifiedAs: wd:Q41777871 # haralson apples
     73     trackingIdentifier: lot-alice-apples-2018-10-11
     74     provider: https://alice.example/
     75     receiver: https://claudia.example/
     76     resourceInventoriedAs: alice:21f361a6-2375-46bb-b192-c21b5ba833bf # alice's apples
     77     toResourceInventoriedAs: claudia:27be5cab-d740-4194-9298-1661a69d9d95 # claudia's bill of lading on the truck
     78     resourceQuantity:
     79       om2:hasUnit: om2:kilogram
     80       om2:hasNumericalValue: 30
     81 
     82   # resources snapshot
     83 
     84   - '@id': alice:21f361a6-2375-46bb-b192-c21b5ba833bf
     85     '@type': EconomicResource
     86     classifiedAs: wd:Q41777871 # haralson apples
     87     trackingIdentifier: lot-alice-apples-2018-10-11
     88     locatedAt: geo:70ee3034-0d15-4471-8ee3-91c60bb1a9c9
     89     accountingQuantity:
     90       om2:hasUnit: om2:kilogram
     91       om2:hasNumericalValue: 230
     92     onhandQuantity:
     93       om2:hasUnit: om2:kilogram
     94       om2:hasNumericalValue: 200
     95 
     96   - '@id': claudia:27be5cab-d740-4194-9298-1661a69d9d95
     97     '@type': EconomicResource
     98     classifiedAs: wd:Q41777871 # haralson apples
     99     trackingIdentifier: lot-alice-apples-2018-10-11
    100     onhandQuantity:
    101       om2:hasUnit: om2:kilogram
    102       om2:hasNumericalValue: 30
    103 
    104   # claudia transports the apples in two hops
    105 
    106   - '@id': claudia:633f6e56-6c7d-4a5b-b9c9-1a8adafd8960
    107     '@type': Process
    108     skos:note: Claudia transports the apples
    109 
    110   - '@id': claudia:fd399b37-0740-4a68-a184-1e655021ca21
    111     '@type': EconomicEvent
    112     inputOf: claudia:633f6e56-6c7d-4a5b-b9c9-1a8adafd8960
    113     action: pickup
    114     resourceInventoriedAs: claudia:27be5cab-d740-4194-9298-1661a69d9d95 
    115     provider: https://claudia.example/
    116     receiver: https://claudia.example/
    117     resourceQuantity:
    118       om2:hasUnit: om2:kilogram
    119       om2:hasNumericalValue: 30
    120 
    121   - '@id': claudia:57f1c1d0-432e-4bfa-9d32-002b8955a708
    122     '@type': EconomicEvent
    123     outputOf: claudia:633f6e56-6c7d-4a5b-b9c9-1a8adafd8960
    124     action: dropoff
    125     resourceInventoriedAs: claudia:27be5cab-d740-4194-9298-1661a69d9d95
    126     provider: https://claudia.example/
    127     receiver: https://claudia.example/
    128     resourceQuantity:
    129       om2:hasUnit: om2:kilogram
    130       om2:hasNumericalValue: 30
    131 
    132   - '@id': claudia:c404cff5-19c7-453d-b0d8-d8e96055bd0c
    133     '@type': Process
    134     skos:note: Claudia transports the apples
    135 
    136   - '@id': claudia:856c43b1-0a63-445f-a56f-707b257f086e
    137     '@type': EconomicEvent
    138     inputOf: claudia:c404cff5-19c7-453d-b0d8-d8e96055bd0c
    139     action: pickup
    140     resourceInventoriedAs: claudia:27be5cab-d740-4194-9298-1661a69d9d95 
    141     provider: https://claudia.example/
    142     receiver: https://claudia.example/
    143     resourceQuantity:
    144       om2:hasUnit: om2:kilogram
    145       om2:hasNumericalValue: 30
    146 
    147   - '@id': claudia:9cb4944b-d26d-4774-a530-d18f2747c0d8
    148     '@type': EconomicEvent
    149     outputOf: claudia:c404cff5-19c7-453d-b0d8-d8e96055bd0c
    150     action: dropoff
    151     resourceInventoriedAs: claudia:27be5cab-d740-4194-9298-1661a69d9d95
    152     provider: https://claudia.example/
    153     receiver: https://claudia.example/
    154     resourceQuantity:
    155       om2:hasUnit: om2:kilogram
    156       om2:hasNumericalValue: 30
    157 
    158   - '@id': urn:uuid:68cabaf3-deb8-4bd5-a439-798263abe35a
    159     '@type': EconomicEvent
    160     skos:note: Transportation of alice's apples from alice's location to bob's location
    161     outputOf: claudia:c404cff5-19c7-453d-b0d8-d8e96055bd0c
    162     action: service
    163     resourceClassifiedAs: wd:Q7590 # transportation service
    164     provider: https://claudia.example/
    165     receiver: https://alice.example/
    166     resourceQuantity:
    167       om2:hasUnit: om2:one
    168       om2:hasNumericalValue: 1
    169 
    170   - '@id': urn:uuid:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da58
    171     '@type': Fulfillment
    172     fulfills: urn:uuid:c7897c39-7f05-4a5d-a487-80e130a2414a # the commitment
    173     fulfilledBy: urn:uuid:68cabaf3-deb8-4bd5-a439-798263abe35a # the economic event
    174     resourceQuantity:
    175       om2:hasUnit: om2:one
    176       om2:hasNumericalValue: 1
    177 
    178   # bob receives the apples
    179 
    180   - '@id': urn:uuid:7a63ea10-b1c3-441a-9a08-fb8630c02614
    181     '@type': EconomicEvent
    182     action: transfer-custody
    183     resourceClassifiedAs: wd:Q41777871 # haralson apples
    184     trackingIdentifier: lot-alice-apples-2018-10-11
    185     resourceInventoriedAs: claudia:27be5cab-d740-4194-9298-1661a69d9d95
    186     toResourceInventoriedAs: bob:9bd19194-a36d-4a1f-896b-8082887962cb
    187     provider: https://claudia.example/
    188     receiver: https://bob.example/
    189     resourceQuantity:
    190       om2:hasUnit: om2:kilogram
    191       om2:hasNumericalValue: 30
    192 
    193   # receipt of the apples triggers finalizing the transfer of ownership
    194 
    195   - '@id': urn:uuid:ad56a7ed-be3c-4937-a3fb-0f156bcd2c47
    196     '@type': EconomicEvent
    197     action: transfer-all-rights
    198     resourceClassifiedAs: wd:Q41777871 # haralson apples
    199     trackingIdentifier: lot-alice-apples-2018-10-11
    200     provider: https://alice.example/
    201     receiver: https://bob.example/
    202     resourceQuantity:
    203       om2:hasUnit: om2:kilogram
    204       om2:hasNumericalValue: 30
    205     triggeredBy: urn:uuid:7a63ea10-b1c3-441a-9a08-fb8630c02614
    206 
    207   - '@id': urn:uuid:6f438393-7f87-4914-806c-e23a4fd15e89
    208     '@type': Fulfillment
    209     fulfills: urn:uuid:6b5bc786-b9ed-4189-b34f-5ef7d10f1f86 # the commitment
    210     fulfilledBy: urn:uuid:ad56a7ed-be3c-4937-a3fb-0f156bcd2c47 # the economic event
    211     resourceQuantity:
    212       om2:hasUnit: om2:kilogram
    213       om2:hasNumericalValue: 30
    214 
    215   # resources snapshot
    216 
    217   - '@id': alice:21f361a6-2375-46bb-b192-c21b5ba833bf
    218     '@type': EconomicResource
    219     classifiedAs: wd:Q41777871 # haralson apples
    220     trackingIdentifier: lot-alice-apples-2018-10-11
    221     locatedAt: geo:70ee3034-0d15-4471-8ee3-91c60bb1a9c9 # only the possessed amount
    222     accountingQuantity:
    223       om2:hasUnit: om2:kilogram
    224       om2:hasNumericalValue: 200
    225     onhandQuantity:
    226       om2:hasUnit: om2:kilogram
    227       om2:hasNumericalValue: 200
    228 
    229   - '@id': bob:9bd19194-a36d-4a1f-896b-8082887962cb
    230     '@type': EconomicResource
    231     classifiedAs: wd:Q41777871 # haralson apples
    232     trackingIdentifier: lot-alice-apples-2018-10-11
    233     locatedAt: geo:b52a5815-fae9-43bf-be95-833b95dc0ada # only the possessed amount
    234     accountingQuantity:
    235       om2:hasUnit: om2:kilogram
    236       om2:hasNumericalValue: 30
    237     onhandQuantity:
    238       om2:hasUnit: om2:kilogram
    239       om2:hasNumericalValue: 30
    240 
    241   - '@id': claudia:27be5cab-d740-4194-9298-1661a69d9d95 # claudia's bill of lading on the truck
    242     '@type': EconomicResource
    243     classifiedAs: wd:Q41777871 # haralson apples
    244     onhandQuantity:
    245       om2:hasUnit: om2:kilogram
    246       om2:hasNumericalValue: 0
    247 
    248   # alice pays claudia for the transportation service
    249 
    250   - '@id': urn:uuid:8baa8ff7-9c1e-4586-ae7b-79d620a3cac9
    251     '@type': EconomicEvent
    252     action: transfer
    253     resourceClassifedAs: wd:Q4917 # US Dollar
    254     resourceInventoriedAs: alice:daa2ec3b-2c1a-4eb1-839f-8dcec1a1f93a # alice's bank account
    255     toResourceInventoriedAs: claudia:bd5806d6-4a36-45b9-b3b6-3e7d361a5a14 # claudia's bank account
    256     provider: https://alice.example/
    257     receiver: https://claudia.example/
    258     resourceQuantity:
    259       om2:hasUnit: om2:one
    260       om2:hasNumericalValue: 10
    261 
    262   - '@id': urn:uuid:fbff9852-36ca-4364-a943-bc0b49e1cab5
    263     '@type': Fulfillment
    264     fulfills: urn:uuid:33e8933b-ff73-4a01-964a-ca7a98893083 # the commitment
    265     fulfilledBy: urn:uuid:8baa8ff7-9c1e-4586-ae7b-79d620a3cac9 # the economic event
    266     resourceQuantity:
    267       om2:hasUnit: om2:one
    268       om2:hasNumericalValue: 10
    269