-
Notifications
You must be signed in to change notification settings - Fork 24
/
checkout-book.yaml
95 lines (81 loc) · 2.92 KB
/
checkout-book.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
'@context':
- https://git.io/vf-examples-jsonld-context
- library: https://library.example/
bob: https://bob.example/
'@id': rgh:valueflows/valueflows/master/examples/checkout-book.yaml
'@graph':
# resource before
- '@id': library:2402b57c-1c45-423a-acb2-f50961c97d65
'@type': EconomicResource
skos:note: Valueflows cookbook ISBN:1234 copy 2
accountingQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1
onhandQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1
# check out
- '@id': library:f47064eb-7120-4b31-b882-770165901fe6
'@type': Agreement
skos:note: loaning Valueflows cookbook to Bob
- '@id': urn:uuid:54b814ee-62dc-40c1-bb96-f8582aa4f771
'@type': EconomicEvent
realizationOf: library:f47064eb-7120-4b31-b882-770165901fe6
action: transfer-custody
resourceInventoriedAs: library:2402b57c-1c45-423a-acb2-f50961c97d65
hasPointInTime: 2019-04-18T8:00:00-5:00
provider: https://library.example/
receiver: https://bob.example/
resourceQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1
- '@id': urn:uuid:98c2bfeb-9c70-4801-896c-4646b975a7d9
'@type': Commitment
clauseOf: library:f47064eb-7120-4b31-b882-770165901fe6
action: transfer-custody
resourceInventoriedAs: library:2402b57c-1c45-423a-acb2-f50961c97d65
provider: https://bob.example/
receiver: https://library.example/
resourceQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1
due: 2019-05-17T18:00:00-5:00
# resource after check out
- '@id': library:2402b57c-1c45-423a-acb2-f50961c97d65
'@type': EconomicResource
skos:note: Valueflows cookbook ISBN:1234 copy 2
accountingQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1
onhandQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 0
# return
- '@id': urn:uuid:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da59
'@type': EconomicEvent
realizationOf: library:f47064eb-7120-4b31-b882-770165901fe6
action: transfer-custody
resourceInventoriedAs: library:2402b57c-1c45-423a-acb2-f50961c97d65
provider: https://bob.example/
receiver: https://library.example/
resourceQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1
hasPointInTime: 2019-05-14T10:20:00-5:00
- '@id': urn:uuid:6f438393-7f87-4914-806c-e23a4fd15e89
'@type': Fulfillment
fulfills: urn:uuid:98c2bfeb-9c70-4801-896c-4646b975a7d9 # the commitment
fulfilledBy: urn:uuid:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da59 # the economic event
resourceQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1
# resource after return
- '@id': library:2402b57c-1c45-423a-acb2-f50961c97d65
'@type': EconomicResource
skos:note: Valueflows cookbook ISBN:1234 copy 2
accountingQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1
onhandQuantity:
om2:hasUnit: om2:one
om2:hasNumericalValue: 1