checkout-book.yaml (2989B)
1 '@context': 2 - https://git.io/vf-examples-jsonld-context 3 - library: https://library.example/ 4 bob: https://bob.example/ 5 6 '@id': rgh:valueflows/valueflows/master/examples/checkout-book.yaml 7 '@graph': 8 9 # resource before 10 11 - '@id': library:2402b57c-1c45-423a-acb2-f50961c97d65 12 '@type': EconomicResource 13 skos:note: Valueflows cookbook ISBN:1234 copy 2 14 accountingQuantity: 15 om2:hasUnit: om2:one 16 om2:hasNumericalValue: 1 17 onhandQuantity: 18 om2:hasUnit: om2:one 19 om2:hasNumericalValue: 1 20 21 # check out 22 23 - '@id': library:f47064eb-7120-4b31-b882-770165901fe6 24 '@type': Agreement 25 skos:note: loaning Valueflows cookbook to Bob 26 27 - '@id': urn:uuid:54b814ee-62dc-40c1-bb96-f8582aa4f771 28 '@type': EconomicEvent 29 realizationOf: library:f47064eb-7120-4b31-b882-770165901fe6 30 action: transfer-custody 31 resourceInventoriedAs: library:2402b57c-1c45-423a-acb2-f50961c97d65 32 hasPointInTime: 2019-04-18T8:00:00-5:00 33 provider: https://library.example/ 34 receiver: https://bob.example/ 35 resourceQuantity: 36 om2:hasUnit: om2:one 37 om2:hasNumericalValue: 1 38 39 - '@id': urn:uuid:98c2bfeb-9c70-4801-896c-4646b975a7d9 40 '@type': Commitment 41 clauseOf: library:f47064eb-7120-4b31-b882-770165901fe6 42 action: transfer-custody 43 resourceInventoriedAs: library:2402b57c-1c45-423a-acb2-f50961c97d65 44 provider: https://bob.example/ 45 receiver: https://library.example/ 46 resourceQuantity: 47 om2:hasUnit: om2:one 48 om2:hasNumericalValue: 1 49 due: 2019-05-17T18:00:00-5:00 50 51 # resource after check out 52 53 - '@id': library:2402b57c-1c45-423a-acb2-f50961c97d65 54 '@type': EconomicResource 55 skos:note: Valueflows cookbook ISBN:1234 copy 2 56 accountingQuantity: 57 om2:hasUnit: om2:one 58 om2:hasNumericalValue: 1 59 onhandQuantity: 60 om2:hasUnit: om2:one 61 om2:hasNumericalValue: 0 62 63 # return 64 65 - '@id': urn:uuid:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da59 66 '@type': EconomicEvent 67 realizationOf: library:f47064eb-7120-4b31-b882-770165901fe6 68 action: transfer-custody 69 resourceInventoriedAs: library:2402b57c-1c45-423a-acb2-f50961c97d65 70 provider: https://bob.example/ 71 receiver: https://library.example/ 72 resourceQuantity: 73 om2:hasUnit: om2:one 74 om2:hasNumericalValue: 1 75 hasPointInTime: 2019-05-14T10:20:00-5:00 76 77 - '@id': urn:uuid:6f438393-7f87-4914-806c-e23a4fd15e89 78 '@type': Fulfillment 79 fulfills: urn:uuid:98c2bfeb-9c70-4801-896c-4646b975a7d9 # the commitment 80 fulfilledBy: urn:uuid:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da59 # the economic event 81 resourceQuantity: 82 om2:hasUnit: om2:one 83 om2:hasNumericalValue: 1 84 85 # resource after return 86 87 - '@id': library:2402b57c-1c45-423a-acb2-f50961c97d65 88 '@type': EconomicResource 89 skos:note: Valueflows cookbook ISBN:1234 copy 2 90 accountingQuantity: 91 om2:hasUnit: om2:one 92 om2:hasNumericalValue: 1 93 onhandQuantity: 94 om2:hasUnit: om2:one 95 om2:hasNumericalValue: 1