commit 7a12e7f76ba703d8ada769ce7662454f662ed27f
parent 72ec60454cc5568e7dd92ea0bf21f14dc2325e95
Author: Lynn Foster <foster.j.lynn@gmail.com>
Date: Wed, 7 Aug 2019 05:31:38 -0500
plan from recipe example (#546)
* plan from recip example
* small change to trigger another build
* another small change to get build to rerun
Diffstat:
5 files changed, 121 insertions(+), 14 deletions(-)
diff --git a/docs/examples/ex-exchange.md b/docs/examples/ex-exchange.md
@@ -1,10 +1,10 @@
# Transfer and Exchange Examples
-[Exchange Agreements](#exchange-agreements)
-[Crypto-currency transfer](#crypto-currency-transfer)
-[Crypto-currency move](#moving-crypto-currency)
-[Checkout library book](#checkout-book)
-[Claim](#claim)
+1. [Exchange Agreements](#exchange-agreements)
+1. [Crypto-currency transfer](#crypto-currency-transfer)
+1. [Crypto-currency move](#moving-crypto-currency)
+1. [Checkout library book](#checkout-book)
+1. [Claim](#claim)
#### Exchange agreements
diff --git a/docs/examples/ex-planning.md b/docs/examples/ex-planning.md
@@ -1,9 +1,10 @@
# Planning Examples
-[Simple plan](#simple-plan)
-[Fulfillment and satisfaction](#fulfillment-and-satisfaction)
-[Proposals with intents](#proposals-with-intents)
-[Budgeting](#budgeting)
+1. [Simple plan](#simple-plan)
+1. [Simple plan from recipe](#simple-plan-from-recipe)
+1. [Fulfillment and satisfaction](#fulfillment-and-satisfaction)
+2. [Proposals with intents](#proposals-with-intents)
+2. [Budgeting](#budgeting)
#### Simple plan
@@ -11,6 +12,12 @@ A plan for creating some different resources needed for one campaign.
[import, lang:"yaml"](../../examples/simple-plan.yaml)
+#### Simple plan from recipe
+
+A plan generated from a recipe, for making a component.
+
+[import, lang:"yaml"](../../examples/plan-from-recipe.yaml)
+
#### Fulfillment and satisfaction
Commitments satisfying intents, and economic events satisfying commitments.
diff --git a/docs/examples/ex-production.md b/docs/examples/ex-production.md
@@ -1,8 +1,8 @@
# Production Examples
-[Manufacturing](#manufacturing)
-[Service](#service)
-[Workflow production](#workflow-production)
+1. [Manufacturing](#manufacturing)
+1. [Service](#service)
+1. [Workflow production](#workflow-production)
#### Manufacturing
diff --git a/examples/plan-from-recipe.yaml b/examples/plan-from-recipe.yaml
@@ -0,0 +1,101 @@
+# Example: Simple plan from recipe
+
+'@context':
+ - https://git.io/vf-examples-jsonld-context
+ - alice: https://alice.example/
+ sensor: https://sencorica.example/
+ open: https://openhardware.example
+
+'@id': rgh:valueflows/valueflows/master/examples/plan-from-recipe.yaml
+'@graph':
+
+ # the recipe
+
+ - '@id': urn:uuid:b90b0b77-09a2-42e2-8bd4-e9ae2c1c6172
+ '@type': ResourceSpecification
+ name: Mosquito delivery fiber
+ uri: https://openhardware.example/delivery-fiber
+ skos:note: Optical fiber that makes the connection between the Mosquito and the transducer. An adapter can also be used between the transducer and the delivery fiber.
+
+ - '@id': urn:uuid:33e8933b-ff73-4a01-964a-ca7a98893083
+ '@type': RecipeFlow
+ outputOf: urn:uuid:e1721a61-cd47-4556-84b9-8b1b81da15bf
+ action: produce
+ resourceConformsTo: urn:uuid:b90b0b77-09a2-42e2-8bd4-e9ae2c1c6172 # Mosquito delivery fiber
+ flowQuantity:
+ qudt:unit: unit:Meter
+ qudt:numericValue: .5
+
+ - '@id': urn:uuid:e1721a61-cd47-4556-84b9-8b1b81da15bf
+ '@type': RecipeProcess
+ name: Make delivery fiber component
+ skos:note: The delivery fiber makes the optical connection between an optical transducer and the sensor [electro-photonics device]. Requires cutting a piece of optical fiber and connectorizing it
+
+ - '@id': urn:uuid:9bd19194-a36d-4a1f-896b-8082887962cb
+ '@type': RecipeFlow
+ inputOf: urn:uuid:e1721a61-cd47-4556-84b9-8b1b81da15bf
+ action: consume
+ resourceClassifiedAs: wd:Q162 # optical fiber
+ flowQuantity:
+ qudt:unit: unit:Meter
+ qudt:numericValue: .5
+ skos:note: Optical guide, can be of glass of polymer. Usually it comes in a cylindrical shape. Can be MM (multimode) or SM (single mode)
+
+ - '@id': urn:uuid:60f4204e-b8d2-4026-8577-102c3f82c0af
+ '@type': RecipeFlow
+ inputOf: urn:uuid:e1721a61-cd47-4556-84b9-8b1b81da15bf
+ action: work
+ resourceClassifiedAs: wd:Q640621 # optical engineering
+ flowQuantity:
+ qudt:unit: unit:Hour
+ qudt:numericValue: 2
+
+ # the plan
+
+ - '@id': sensor:8e5fe80d-a769-4bd5-89e5-2136d33eab9f
+ '@type': Plan
+ name: Mosquito delivery fiber
+ skos:note: Make the optical fiber that makes the connection between the Mosquito and the transducer.
+ time:before: 2019-04-08T17:00:00-5:00
+ dcterms:created: 2019-04-01T10:35:00-5:00
+
+ - '@id': sensor:a8236bbb-81e0-422d-9861-56d2417db0fb
+ '@type': Commitment
+ independentDemandOf: sensor:8e5fe80d-a769-4bd5-89e5-2136d33eab9f
+ outputOf: sensor:02b39a30-3e04-4305-9656-7f261aa63c84
+ action: produce
+ provider: https://sensor.example/
+ receiver: https://sensor.example/
+ resourceConformsTo: urn:uuid:b90b0b77-09a2-42e2-8bd4-e9ae2c1c6172 # Mosquito delivery fiber
+ flowQuantity:
+ qudt:unit: unit:Meter
+ qudt:numericValue: .5
+
+ - '@id': sensor:02b39a30-3e04-4305-9656-7f261aa63c84
+ '@type': Process
+ name: Make optical fiber component
+ plannedWithin: sensor:8e5fe80d-a769-4bd5-89e5-2136d33eab9f
+ skos:note: The delivery fiber makes the optical connection between an optical transducer and the sensor [electro-photonics device]. Requires cutting a piece of optical fiber and connectorizing it
+
+ - '@id': sensor:b52a5815-fae9-43bf-be95-833b95dc0adb
+ '@type': Commitment
+ inputOf: sensor:02b39a30-3e04-4305-9656-7f261aa63c84
+ action: consume
+ provider: https://sensor.example/
+ receiver: https://sensor.example/
+ resourceClassifiedAs: wd:Q162 # optical fiber
+ flowQuantity:
+ qudt:unit: unit:Meter
+ qudt:numericValue: .5
+ skos:note: Optical guide, can be of glass of polymer. Usually it comes in a cylindrical shape. Can be MM (multimode) or SM (single mode)
+
+ - '@id': sensor:52f0e212-3c4f-4d27-b345-5e964c135824
+ '@type': Commitment
+ inputOf: sensor:02b39a30-3e04-4305-9656-7f261aa63c84
+ action: work
+ provider: https://alice.example/
+ receiver: https://sensor.example/
+ resourceClassifiedAs: wd:Q640621 # optical engineering
+ flowQuantity:
+ qudt:unit: unit:Hour
+ qudt:numericValue: 2
diff --git a/examples/simple-plan.yaml b/examples/simple-plan.yaml
@@ -2,8 +2,7 @@
'@context':
- https://git.io/vf-examples-jsonld-context
- - alice: https://alice.example/
- printer: https://printer.example/
+ - printer: https://printer.example/
'@id': rgh:valueflows/valueflows/master/examples/simple-plan.yaml
'@graph':