valueflows

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

commit 51f9c9412b7a8ce359ef47f17704fa14a731b5a9
parent cd2cc2e4939a52fed3e41caa1b5a495d7dae6dc4
Author: Lynn Foster <foster.j.lynn@gmail.com>
Date:   Fri, 25 Jan 2019 17:08:03 -0600

first cut flows example (#416)


Diffstat:
Aexamples/fulfill-satisfy-example.yaml | 112+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 112 insertions(+), 0 deletions(-)

diff --git a/examples/fulfill-satisfy-example.yaml b/examples/fulfill-satisfy-example.yaml @@ -0,0 +1,112 @@ +# Example: Intent - satisfied by - Commitment - fulfilled by - EconomicEvent + +'@context': + - https://git.io/vf-examples-jsonld-context + - bob: https://bob.example/ + mfg: https://manufacturer.example/ + +'@id': rgh:valueflows/valueflows/master/examples/fulfill-satisfy-example.yaml +'@graph': + + # A manufacturer makes a plan that includes an intent for some work which + # they want someone in their network to commit to doing on Oct. 14 - 15 + + - '@id': mfg:e1721a61-cd47-4556-84b9-8b1b81da15bf + '@type': Intent + action: work + receiver: https://manufacturing.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q192047 # machining + intendedQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 8 + intendedTime: + '@type': time:ProperInterval + time:intervalStarts: + '@type': time:Instant + time:inXSDDateTimeStamp: 2018-10-14T8:00:00-0:00 + time:intervalEnds: + '@type': time:Instant + time:inXSDDateTimeStamp: 2018-10-15T18:00:00-0:00 + + # Bob commits to doing the work on Oct. 14 + + - '@id': mfg:02b39a30-3e04-4305-9656-7f261aa63c84 + '@type': Commitment + action: work + provider: https://bob.example/ + receiver: https://manufacturing.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q192047 # machining + committedQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 8 + committedTime: + '@type': time:ProperInterval + time:intervalStarts: + '@type': time:Instant + time:inXSDDateTimeStamp: 2018-10-14T8:00:00-0:00 + time:intervalEnds: + '@type': time:Instant + time:inXSDDateTimeStamp: 2018-10-14T17:00:00-0:00 + + + - '@id': mfg:b52a5815-fae9-43bf-be95-833b95dc0adb + '@type': Satisfaction + satisfies: mfg:e1721a61-cd47-4556-84b9-8b1b81da15bf # the intent + satisfiedBy: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 # the commitment + satisfiedQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 8 + + # Bob does the work in two 4-hour shifts on Oct. 14 + + - '@id': mfg:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da59 + '@type': EconomicEvent + action: work + provider: https://bob.example/ + receiver: https://manufacturing.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q192047 # machining + affectedQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 4 + observedTime: + '@type': time:ProperInterval + time:intervalStarts: + '@type': time:Instant + time:inXSDDateTimeStamp: 2018-10-14T8:00:00-0:00 + time:intervalEnds: + '@type': time:Instant + time:inXSDDateTimeStamp: 2018-10-14T12:00:00-0:00 + + - '@id': mfg:6f438393-7f87-4914-806c-e23a4fd15e89 + '@type': Fulfillment + fulfills: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 # the commitment + fulfilledBy: mfg:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da59 # the economic event + fulfilledQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 4 + + - '@id': mfg:c7897c39-7f05-4a5d-a487-80e130a2414b + '@type': EconomicEvent + action: work + provider: https://bob.example/ + receiver: https://manufacturing.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q192047 # machining + affectedQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 4 + observedTime: + '@type': time:ProperInterval + time:intervalStarts: + '@type': time:Instant + time:inXSDDateTimeStamp: 2018-10-14T13:00:00-0:00 + time:intervalEnds: + '@type': time:Instant + time:inXSDDateTimeStamp: 2018-10-14T17:00:00-0:00 + + - '@id': mfg:0f563083-8da4-46fe-adc3-68b05ba06320 + '@type': Fulfillment + fulfills: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 # the commitment + fulfilledBy: mfg:c7897c39-7f05-4a5d-a487-80e130a2414b # the second economic event + fulfilledQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 4