valueflows

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

exch-agreement.yaml (1238B)


      1 # Example: Simple exchange agreement
      2 
      3 '@context':
      4   - https://git.io/vf-examples-jsonld-context
      5   - alice: https://alice.example/
      6     bob: https://bob.example/
      7 
      8 '@id': rgh:valueflows/valueflows/master/examples/exch-agreement.yaml
      9 '@graph':
     10 
     11   # Exchange agreement with commitments
     12 
     13   - '@id': alice:57f1c1d0-432e-4bfa-9d32-002b8955a708
     14     '@type': Agreement
     15     skos:note: Alice commits to giving Bob 50 kg of apples in exchange for 10 liters of apple cider.
     16 
     17   - '@id': alice:2342d456-5d6f-46d5-a7ed-3ac7bfd5a86c
     18     '@type': Commitment
     19     clauseOf: alice:57f1c1d0-432e-4bfa-9d32-002b8955a708
     20     action: transfer
     21     provider: https://alice.example/
     22     receiver: https://bob.example/
     23     resourceClassifiedAs: https://www.wikidata.org/wiki/Q89 # apples
     24     resourceQuantity:
     25       om2:hasUnit: om2:kilogram
     26       om2:hasNumericalValue: 50
     27 
     28   - '@id': bob:fd399b37-0740-4a68-a184-1e655021ca21
     29     '@type': Commitment
     30     clauseOf: alice:57f1c1d0-432e-4bfa-9d32-002b8955a708
     31     action: transfer
     32     provider: https://bob.example/
     33     receiver: https://alice.example/
     34     resourceClassifiedAs: https://www.wikidata.org/wiki/Q5977438 # soft apple cider
     35     resourceQuantity:
     36       om2:hasUnit: om2:litre
     37       om2:hasNumericalValue: 10