valueflows

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

commit 7d447c1ffcc4242ac5e56d5d321335857ad68678
parent 04c3669a3d8ee8df471325903c08e095d9943fee
Author: Lynn Foster <foster.j.lynn@gmail.com>
Date:   Sun, 10 Dec 2017 14:36:47 -0600

Merge pull request #253 from valueflows/json-schemas

created simple process flow example
Diffstat:
Mjson-schemas/EconomicResource.json | 5++---
Mjson-schemas/Process.json | 2+-
Ajson-schemas/sample-process-flow.json | 135+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 138 insertions(+), 4 deletions(-)

diff --git a/json-schemas/EconomicResource.json b/json-schemas/EconomicResource.json @@ -15,8 +15,7 @@ }, "resourceClassifiedAs": { "description": "A resource's primary classification, as part of describing that resource.", - "type": "string", - "format": "uri" + "type": "string" }, "trackingIdentifier": { "description": "Sometimes called lot number, used for trackable batched resources. Sometimes called serial number, used when each item must have a trackable identifier (like a computer). Could also be used for other unique tracking identifiers needed for resources.", @@ -24,7 +23,7 @@ }, "currentLocation": { "description": "The current place an economic resource is located. Could be at any level of granularity, from a town to an address to a warehouse location. Should be mappable.", - "type": "object" + "type": "string" }, "note": { "description": "A textual comment or description.", diff --git a/json-schemas/Process.json b/json-schemas/Process.json @@ -67,5 +67,5 @@ "uniqueItems": true } }, - "required": ["name", "plannedStart", "plannedDuration"] + "required": ["name"] } diff --git a/json-schemas/sample-process-flow.json b/json-schemas/sample-process-flow.json @@ -0,0 +1,135 @@ +[ + { + "id": "P1", + "name": "Create Piezo Buzzer Pump design", + "inputs": [ + { + "action": "work", + "start": "2017-10-01", + "affects": { + "id": "R1", + "resourceClassifiedAs": "CAD design" + }, + "affectedQuantity": { + "numericValue": "4.5", + "unit": "Hours" + }, + "provider": { + "id": "A1", + "name": "Bob" + } + } + ], + "outputs": [ + { + "action": "produce", + "start": "2017-10-01", + "affects": { + "id": "R2", + "resourceClassifiedAs": "Buzzer Pump Design", + "currentLocation": "http://open-hardware-designs.org/buzzer-pump-V1/" + }, + "affectedQuantity": { + "numericValue": "1", + "unit": "Each" + } + } + ] + }, + { + "id": "P2", + "name": "3D Print Buzzer Pump parts", + "inputs": [ + { + "action": "work", + "start": "2017-10-15", + "affects": { + "id": "R3", + "resourceClassifiedAs": "3d Printing" + }, + "affectedQuantity": { + "numericValue": "2", + "unit": "Hours" + }, + "provider": { + "id": "A2", + "name": "Alice" + } + }, + { + "action": "cite", + "start": "2017-10-15", + "affects": { + "id": "R2" + }, + "affectedQuantity": { + "numericValue": "1", + "unit": "Each" + } + } + ], + "outputs": [ + { + "action": "produce", + "start": "2017-10-16", + "affects": { + "id": "R4", + "resourceClassifiedAs": "Buzzer Pump Parts", + "currentLocation": "storage-room-2x3" + }, + "affectedQuantity": { + "numericValue": "5", + "unit": "Each" + } + } + ] + }, + { + "@id": "P3", + "name": "Assemble Buzzer Pump prototype", + "inputs": [ + { + "action": "work", + "start": "2017-10-20", + "affects": { + "id": "R5", + "resourceClassifiedAs": "Assembly" + }, + "affectedQuantity": { + "numericValue": "3", + "unit": "Hours" + }, + "provider": { + "id": "A3", + "name": "Carol" + } + }, + { + "action": "consume", + "start": "2017-10-20", + "affects": { + "id": "R4" + }, + "affectedQuantity": { + "numericValue": "1", + "unit": "Each" + } + } + ], + "outputs": [ + { + "action": "produce", + "start": "2017-10-20", + "affects": { + "id": "R6", + "resourceClassifiedAs": "Buzzer Pump Prototype", + "currentLocation": "storage-room-1x1" + }, + "affectedQuantity": { + "numericValue": "1", + "unit": "Each" + } + } + ] + } +]