valueflows

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

transfer-crypto.yaml (1956B)


      1 # Transfer of crypto-currency, ignoring the fee, but to record time involved in the transfer validation process
      2 
      3 '@context':
      4   - https://git.io/vf-examples-jsonld-context
      5   - bob: https://bob.example/
      6     alice: https://alice.example/
      7     fair: https://faircoin.example/
      8 
      9 '@id': rgh:valueflows/valueflows/master/examples/transfer-crypto.yaml
     10 '@graph':
     11 
     12   # accounts before
     13 
     14   - '@id': fair:b75d8f6a-e2df-4e52-b36d-1a22a66f4ead
     15     '@type': EconomicResource
     16     skos:note: Alice's wallet address
     17     classifiedAs: wd:Q21002847 # FairCoin
     18     accountingQuantity:
     19       om2:hasUnit: om2:one
     20       om2:hasNumericalValue: 540
     21 
     22   - '@id': fair:3be5259d-10f0-431c-9fec-9c0c15a461d3
     23     '@type': EconomicResource
     24     skos:note: Bob's wallet address 
     25     classifiedAs: wd:Q21002847 # FairCoin
     26     accountingQuantity:
     27       om2:hasUnit: om2:one
     28       om2:hasNumericalValue: 480
     29 
     30   # transfer from Alice to Bob
     31 
     32   - '@id': urn:uuid:e5afaa28-1080-4912-835b-46883efb83e6
     33     '@type': EconomicEvent
     34     action: transfer
     35     resourceClassifiedAs: wd:Q21002847 # FairCoin
     36     resourceInventoriedAs: fair:b75d8f6a-e2df-4e52-b36d-1a22a66f4ead # Alice's wallet address
     37     toResourceInventoriedAs: fair:3be5259d-10f0-431c-9fec-9c0c15a461d3 # Bob's wallet address
     38     provider: https://alice.example
     39     receiver: https://bob.example
     40     resourceQuantity:
     41       om2:hasUnit: om2:one
     42       om2:hasNumericalValue: 100
     43     hasPointInTime: 2019-04-18T8:30:08-5:00
     44 
     45   # accounts after
     46 
     47   - '@id': fair:b75d8f6a-e2df-4e52-b36d-1a22a66f4ead
     48     '@type': EconomicResource
     49     skos:note: Alice's wallet address 
     50     classifiedAs: wd:Q21002847 # FairCoin
     51     accountingQuantity:
     52       om2:hasUnit: om2:one
     53       om2:hasNumericalValue: 440
     54 
     55   - '@id': fair:3be5259d-10f0-431c-9fec-9c0c15a461d3
     56     '@type': EconomicResource
     57     skos:note: Bob's wallet address 
     58     classifiedAs: wd:Q21002847 # FairCoin
     59     accountingQuantity:
     60       om2:hasUnit: om2:one
     61       om2:hasNumericalValue: 580