-
Notifications
You must be signed in to change notification settings - Fork 24
/
claim.yaml
59 lines (50 loc) · 2.28 KB
/
claim.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Example: Claim (simple)
'@context':
- https://git.io/vf-examples-jsonld-context
- bob: https://bob.example/
mfg: https://manufacturer.example/
'@id': rgh:valueflows/valueflows/master/examples/claim.yaml
'@graph':
# Bob does some work to create a product that the mfg team wishes to sell on the marketplace
- '@id': mfg:02b39a30-3e04-4305-9656-7f261aa63c83
'@type': EconomicEvent
action: work
provider: https://bob.example/
receiver: https://manufacturing.example/
resourceClassifiedAs: https://www.wikidata.org/wiki/Q192047 # machining
effortQuantity:
om2:hasUnit: om2:hour
om2:hasNumericalValue: 7
hasBeginning: 2018-10-14T8:00:00-0:00
hasEnd: 2018-10-14T15:00:00-0:00
# this triggers a claim for payment in the future based on an income distribution agreement among the mfg group
- '@id': mfg:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da58
'@type': Claim
action: transfer
provider: https://manufacturing.example/
receiver: https://bob.example/
resourceClassifiedAs: https://www.wikidata.org/wiki/Q1104069 # Canadian dollar
resourceQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 140
dcterms:created: 2018-10-14T15:30:00-0:00
triggeredBy: mfg:02b39a30-3e04-4305-9656-7f261aa63c83
agreedIn: mfg:e1721a61-cd47-4556-84b9-8b1b81da15be # a distribution agreement (not detailed in example)
# half of the manufactured product is sold along with some other products, and income is distributed
- '@id': mfg:c7897c39-7f05-4a5d-a487-80e130a2414a
'@type': EconomicEvent
action: transfer
provider: https://manufacturing.example/
receiver: https://bob.example/
resourceClassifiedAs: https://www.wikidata.org/wiki/Q1104069 # Canadian dollar
resourceQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 260 # here Bob received income for more than one work event (others not included in the example)
hasPointInTime: 2018-10-25T09:30:00-0:00
- '@id': mfg:b52a5815-fae9-43bf-be95-833b95dc0ada
'@type': Settlement
settles: mfg:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da58 # the claim
settlededBy: mfg:c7897c39-7f05-4a5d-a487-80e130a2414a # the economic event
resourceQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 70 # half of the original claim for the work