valueflows

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

recipe-with-exchange.yaml (4209B)


      1 # Example: Simple recipe with both process and exchange
      2 
      3 '@context':
      4   - https://git.io/vf-examples-jsonld-context
      5   - alice: https://alice.example/
      6     doc: https://documenters.example
      7 
      8 '@id': rgh:valueflows/valueflows/master/examples/recipe-with-exchange.yaml
      9 '@graph':
     10 
     11   # the recipe
     12 
     13   - '@id': urn:uuid:3be5259d-10f0-431c-9fec-9c0c15a461d3
     14     '@type': ResourceSpecification
     15     name: Training handout
     16     uri: https://documenters.example/training-handout
     17     skos:note: This is an electronic version of the formatted handout
     18 
     19   - '@id': urn:uuid:6b5bc786-b9ed-4189-b34f-5ef7d10f1f86
     20     '@type': ResourceSpecification
     21     name: Technical writing
     22 
     23   - '@id': urn:uuid:b90b0b77-09a2-42e2-8bd4-e9ae2c1c6172
     24     '@type': RecipeResource
     25     resourceConformsTo: urn:uuid:3be5259d-10f0-431c-9fec-9c0c15a461d3 # the spec
     26     name: Training handout
     27 
     28   - '@id': urn:uuid:33e8933b-ff73-4a01-964a-ca7a98893083
     29     '@type': RecipeFlow
     30     recipeOutputOf: urn:uuid:e1721a61-cd47-4556-84b9-8b1b81da15bf
     31     action: produce
     32     recipeFlowResource: urn:uuid:b90b0b77-09a2-42e2-8bd4-e9ae2c1c6172 # handout
     33     resourceQuantity:
     34       om2:hasUnit: one
     35       om2:hasNumericalValue: 1
     36 
     37   - '@id': urn:uuid:e1721a61-cd47-4556-84b9-8b1b81da15bf
     38     '@type': RecipeProcess
     39     name: Write and format training handout
     40 
     41   - '@id': urn:uuid:60f4204e-b8d2-4026-8577-102c3f82c0af
     42     '@type': RecipeFlow
     43     recipeInputOf: urn:uuid:e1721a61-cd47-4556-84b9-8b1b81da15bf
     44     recipeClauseOf: urn:uuid:9bd19194-a36d-4a1f-896b-8082887962cb # the recipe exchange
     45     action: work
     46     resourceConformsTo: urn:uuid:6b5bc786-b9ed-4189-b34f-5ef7d10f1f86
     47     resourceClassifiedAs: wd:Q1193158 # technical writing
     48     effortQuantity:
     49       om2:hasUnit: om2:hour
     50       om2:hasNumericalValue: 15
     51 
     52   - '@id': urn:uuid:9bd19194-a36d-4a1f-896b-8082887962cb
     53     '@type': RecipeExchange
     54     name: Exchange work for FairCoin
     55 
     56   - '@id': urn:uuid:3129ca8b-fcda-45be-bbda-294dc924d3b9
     57     '@type': RecipeFlow
     58     recipeClauseOf: urn:uuid:9bd19194-a36d-4a1f-896b-8082887962cb # the recipe exchange
     59     action: transfer
     60     resourceConformsTo: wd:Q21002847 # FairCoin
     61     resourceQuantity:
     62       om2:hasUnit: om2:one
     63       om2:hasNumericalValue: 300
     64 
     65 
     66   # the plan
     67 
     68   - '@id': doc:8e5fe80d-a769-4bd5-89e5-2136d33eab9f
     69     '@type': Plan
     70     name: Training Handout and Payment
     71     skos:note: Write and format the training handout, payment for writing work.
     72     due: 2019-04-08T17:00:00-5:00
     73     dcterms:created: 2019-04-01T10:35:00-5:00
     74 
     75   - '@id': doc:a8236bbb-81e0-422d-9861-56d2417db0fb
     76     '@type': Commitment
     77     independentDemandOf: doc:8e5fe80d-a769-4bd5-89e5-2136d33eab9f
     78     outputOf: doc:02b39a30-3e04-4305-9656-7f261aa63c84
     79     action: produce
     80     provider: https://documenters.example/
     81     receiver: https://documenters.example/
     82     resourceConformsTo: urn:uuid:3be5259d-10f0-431c-9fec-9c0c15a461d3 # training handout
     83     resourceQuantity:
     84       om2:hasUnit: om2:one
     85       om2:hasNumericalValue: 1
     86 
     87   - '@id': doc:02b39a30-3e04-4305-9656-7f261aa63c84
     88     '@type': Process
     89     name: Write and format training handout
     90     plannedWithin: doc:8e5fe80d-a769-4bd5-89e5-2136d33eab9f
     91 
     92   - '@id': doc:52f0e212-3c4f-4d27-b345-5e964c135824
     93     '@type': Commitment
     94     inputOf: doc:02b39a30-3e04-4305-9656-7f261aa63c84
     95     clauseOf: urn:uuid:583e83d9-a46d-44ff-bd71-88513a1d83c0
     96     action: work
     97     provider: https://alice.example/
     98     receiver: https://documenters.example/
     99     resourceConformsTo: urn:uuid:6b5bc786-b9ed-4189-b34f-5ef7d10f1f86
    100     resourceClassifiedAs: wd:Q1193158 # technical writing
    101     effortQuantity:
    102       om2:hasUnit: om2:hour
    103       om2:hasNumericalValue: 20 # the estimate for this particular work is higher than the recipe's
    104 
    105   - '@id': urn:uuid:583e83d9-a46d-44ff-bd71-88513a1d83c0
    106     '@type': Agreement
    107     name: Exchange technical documentation work for FairCoin
    108 
    109   - '@id': doc:b52a5815-fae9-43bf-be95-833b95dc0adb
    110     '@type': Commitment
    111     clauseOf: doc:02b39a30-3e04-4305-9656-7f261aa63c84
    112     action: transfer
    113     provider: https://documenters.example/
    114     receiver: https://alice.example/
    115     resourceConformsTo: wd:Q21002847 # FairCoin
    116     resourceQuantity:
    117       om2:hasUnit: om2:one
    118       om2:hasNumericalValue: 400