valueflows

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

commit 85fd9419dd41aec7eac0ff4fb42a5916582ba383
parent 714afa5c48fdf4b09a2bf802e82f71ca0d952188
Author: elf Pavlik <elf-pavlik@hackers4peace.net>
Date:   Tue, 29 Jan 2019 14:19:50 -0600

tidied up examples and embedded them (#435)


Diffstat:
Mdocs/introduction/agents.md | 2+-
Mdocs/introduction/flows.md | 4++++
Mdocs/introduction/processes.md | 9+++++++--
Mdocs/introduction/resources.md | 4++++
Aexamples/agent.yaml | 77+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dexamples/agents.yaml | 77-----------------------------------------------------------------------------
Dexamples/fulfill-satisfy-example.yaml | 112-------------------------------------------------------------------------------
Aexamples/fulfill-satisfy.yaml | 112+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aexamples/process-manufacturing.yaml | 133+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dexamples/process-mfg-examples.yaml | 133-------------------------------------------------------------------------------
Dexamples/process-workflow-examples.yaml | 57---------------------------------------------------------
Aexamples/process-workflow.yaml | 57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dexamples/resource-examples.yaml | 42------------------------------------------
Aexamples/resource.yaml | 42++++++++++++++++++++++++++++++++++++++++++
14 files changed, 437 insertions(+), 424 deletions(-)

diff --git a/docs/introduction/agents.md b/docs/introduction/agents.md @@ -26,4 +26,4 @@ Relationships can be in a context (or not): For example, "Kathy is mentor of Sam ## Examples -[import, lang:"yaml"](../../examples/agents.yaml) +[import, lang:"yaml"](../../examples/agent.yaml) diff --git a/docs/introduction/flows.md b/docs/introduction/flows.md @@ -76,3 +76,7 @@ lower | Decrement | N/A | N/A | N/A | We have defined a core set of actions, but expect that this will be extended with others. If extended, they should be defined as part of this or another formal vocabulary so that all can use them and assume the same meaning. Temporary note: The actions `use` and `work` are time-based actions, either with or without an explicit schedule. How to handle time-based resources is still under discussion. + +## Examples + +[import, lang:"yaml"](../../examples/fulfill-satisfy.yaml) diff --git a/docs/introduction/processes.md b/docs/introduction/processes.md @@ -22,4 +22,10 @@ Here is a specific example: #### Process diagram -![process model](https://rawgit.com/valueflows/valueflows/master/release-doc-in-process/process.svg)- \ No newline at end of file +![process model](https://rawgit.com/valueflows/valueflows/master/release-doc-in-process/process.svg) + +## Examples + +[import, lang:"yaml"](../../examples/process-manufacturing.yaml) + +[import, lang:"yaml"](../../examples/process-workflow.yaml) diff --git a/docs/introduction/resources.md b/docs/introduction/resources.md @@ -90,3 +90,7 @@ For example, a bank account might contain a number of "virtual accounts" that a #### Resource Diagram ![resource model](https://rawgit.com/valueflows/valueflows/master/release-doc-in-process/resource.svg) + +## Examples + +[import, lang:"yaml"](../../examples/resource.yaml) diff --git a/examples/agent.yaml b/examples/agent.yaml @@ -0,0 +1,77 @@ + +# Example: Agents and Agent Relationships + +'@context': + - https://git.io/vf-examples-jsonld-context + - alice: https://alice.example/ + bob: https://bob.example/ + fablab: https://fablab.example/ + coop: https://coop.example/ + +'@id': rgh:valueflows/valueflows/master/examples/agent.yaml +'@graph': + + # Agents + + - '@id': https://alice.example/ + '@type': foaf:Person + name: 'Alice' + image: https://alice.example/avatar.png + primaryLocation: https://somelocation.example + skos:note: Alice is a mechanical engineer who likes to work in the fablab. + + - '@id': https://bob.example/ + '@type': foaf:Person + name: 'Bob' + + - '@id': https://fablab.example/ + '@type': org:Organization + name: Driftless Fablab + + - '@id': https://coop.example/ + '@type': org:Organization + name: Community Tool Lending Coop + + # Roles + + - '@id': fablab:52f0e212-3c4f-4d27-b345-5e964c135824 + '@type': AgentRelationshipRole + name: member + rdfs:label: is member of + inverseLabel: has member + skos:note: Both persons and organizations can be members of this fablab. + + - '@id': fablab:02b39a30-3e04-4305-9656-7f261aa63c84 + '@type': AgentRelationshipRole + name: trading partner + rdfs:label: is supplier of + inverseLabel: is customer of + + - '@id': fablab:a25500e0-0106-43cd-8cbb-e74779488835 + '@type': AgentRelationshipRole + name: mentor + rdfs:label: mentors + inverseLabel: has mentor + + # Relationships + + - '@id': fablab:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 + '@type': AgentRelationship + subject: https://alice.example/ + relationship: fablab:52f0e212-3c4f-4d27-b345-5e964c135824 # member + object: https://fablab.example/ + + - '@id': fablab:a8236bbb-81e0-422d-9861-56d2417db0fb + '@type': AgentRelationship + subject: https://coop.example/ + relationship: fablab:02b39a30-3e04-4305-9656-7f261aa63c84 # trading partner + object: https://fablab.example/ + skos:note: The coop is a supplier of tools for the fablab. + + - '@id': fablab:6f438393-7f87-4914-806c-e23a4fd15e89 + '@type': AgentRelationship + subject: https://alice.example/ + relationship: fablab:a25500e0-0106-43cd-8cbb-e74779488835 # mentor + object: https://bob.example/ + inScopeOf: https://fablab.example/ + skos:note: Alice mentors Bob at the fablab. diff --git a/examples/agents.yaml b/examples/agents.yaml @@ -1,77 +0,0 @@ - -# Example: Agents and Agent Relationships - -'@context': - - https://git.io/vf-examples-jsonld-context - - alice: https://alice.example/ - bob: https://bob.example/ - fablab: https://fablab.example/ - coop: https://coop.example/ - -'@id': rgh:valueflows/valueflows/master/examples/agents.yaml -'@graph': - - # Agents - - - '@id': https://alice.example/ - '@type': foaf:Person - name: 'Alice' - image: https://alice.example/avatar.png - primaryLocation: https://somelocation.example - skos:note: Alice is a mechanical engineer who likes to work in the fablab. - - - '@id': https://bob.example/ - '@type': foaf:Person - name: 'Bob' - - - '@id': https://fablab.example/ - '@type': org:Organization - name: Driftless Fablab - - - '@id': https://coop.example/ - '@type': org:Organization - name: Community Tool Lending Coop - - # Roles - - - '@id': fablab:52f0e212-3c4f-4d27-b345-5e964c135824 - '@type': AgentRelationshipRole - name: member - rdfs:label: is member of - inverseLabel: has member - skos:note: Both persons and organizations can be members of this fablab. - - - '@id': fablab:02b39a30-3e04-4305-9656-7f261aa63c84 - '@type': AgentRelationshipRole - name: trading partner - rdfs:label: is supplier of - inverseLabel: is customer of - - - '@id': fablab:a25500e0-0106-43cd-8cbb-e74779488835 - '@type': AgentRelationshipRole - name: mentor - rdfs:label: mentors - inverseLabel: has mentor - - # Relationships - - - '@id': fablab:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 - '@type': AgentRelationship - subject: https://alice.example/ - relationship: fablab:52f0e212-3c4f-4d27-b345-5e964c135824 # member - object: https://fablab.example/ - - - '@id': fablab:a8236bbb-81e0-422d-9861-56d2417db0fb - '@type': AgentRelationship - subject: https://coop.example/ - relationship: fablab:02b39a30-3e04-4305-9656-7f261aa63c84 # trading partner - object: https://fablab.example/ - skos:note: The coop is a supplier of tools for the fablab. - - - '@id': fablab:6f438393-7f87-4914-806c-e23a4fd15e89 - '@type': AgentRelationship - subject: https://alice.example/ - relationship: fablab:a25500e0-0106-43cd-8cbb-e74779488835 # mentor - object: https://bob.example/ - inScopeOf: https://fablab.example/ - skos:note: Alice mentors Bob at the fablab. diff --git a/examples/fulfill-satisfy-example.yaml b/examples/fulfill-satisfy-example.yaml @@ -1,112 +0,0 @@ -# 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 diff --git a/examples/fulfill-satisfy.yaml b/examples/fulfill-satisfy.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.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 diff --git a/examples/process-manufacturing.yaml b/examples/process-manufacturing.yaml @@ -0,0 +1,133 @@ +# Example: Simple manufacturing process + +'@context': + - https://git.io/vf-examples-jsonld-context + - alice: https://alice.example/ + mfg: https://manufacturing.example/ + make: https://makezine.com/ + +'@id': rgh:valueflows/valueflows/master/examples/process-manufacturing.yaml +'@graph': + + # Economic resources before + + - '@id': mfg:e1721a61-cd47-4556-84b9-8b1b81da15bf + '@type': EconomicResource + resourceConformsTo: https://www.opendesk.cc/lean/desk # desk + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 8 + + - '@id': mfg:3129ca8b-fcda-45be-bbda-294dc924d3b9 + '@type': EconomicResource + classifiedAs: https://www.wikidata.org/wiki/Q219803 # plywood + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 130 + note: 4 x 8 sheet of 1/2 inch plywood + + - '@id': mfg:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 + '@type': EconomicResource + classifiedAs: https://www.wikidata.org/wiki/Q2101564 # desk design specification + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 + + - '@id': mfg:52f0e212-3c4f-4d27-b345-5e964c135824 + '@type': EconomicResource + classifiedAs: https://www.wikidata.org/wiki/Q13231055 # CNC machine + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 + + # Production + + - '@id': mfg:02b39a30-3e04-4305-9656-7f261aa63c84 + '@type': Process + name: Make the lean desk + + - '@id': mfg:b52a5815-fae9-43bf-be95-833b95dc0adb + '@type': EconomicEvent + inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 + action: consume + provider: https://manufacturing.example/ + receiver: https://manufacturing.example/ + affects: mfg:3129ca8b-fcda-45be-bbda-294dc924d3b9 # plywood sheets + affectedQuantity: + qudt:unit: unit:Number + qudt:numericValue: 3 + + - '@id': mfg:b90b0b77-09a2-42e2-8bd4-e9ae2c1c6172 + '@type': EconomicEvent + inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 + action: use + provider: https://manufacturing.example/ + receiver: https://manufacturing.example/ + affects: mfg:52f0e212-3c4f-4d27-b345-5e964c135824 # CNC machine + affectedQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 3.5 + + - '@id': mfg:a8236bbb-81e0-422d-9861-56d2417db0fb + '@type': EconomicEvent + inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 + action: cite + provider: https://makezine.com/ + receiver: https://manufacturing.example/ + affects: mfg:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 # desk design specification + affectedQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 + + - '@id': mfg:6f438393-7f87-4914-806c-e23a4fd15e89 + '@type': EconomicEvent + inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 + action: work + provider: https://alice.example/ + receiver: https://manufacturing.example/ + resourceClassifiedAs: https://www.wikidata.org/wiki/Q192047 # machining + affectedQuantity: + qudt:unit: unit:Hour + qudt:numericValue: 7 + + - '@id': mfg:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da59 + '@type': EconomicEvent + inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 + action: produce + provider: https://manufacturing.example/ + receiver: https://manufacturing.example/ + affects: mfg:e1721a61-cd47-4556-84b9-8b1b81da15bf # desk + affectedQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 + + # Economic resources after + + - '@id': mfg:e1721a61-cd47-4556-84b9-8b1b81da15bf + '@type': EconomicResource + resourceConformsTo: https://www.opendesk.cc/lean/desk # desk + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 9 + + - '@id': mfg:3129ca8b-fcda-45be-bbda-294dc924d3b9 + '@type': EconomicResource + classifiedAs: https://www.wikidata.org/wiki/Q219803 # plywood + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 127 + note: 4 x 8 sheet of 1/2 inch plywood + + - '@id': mfg:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 + '@type': EconomicResource + classifiedAs: https://www.wikidata.org/wiki/Q2101564 # desk design specification + currentQuantity: + qudt:unit: unit:Unitless + qudt:numericValue: 1 + + - '@id': mfg:52f0e212-3c4f-4d27-b345-5e964c135824 + '@type': EconomicResource + classifiedAs: https://www.wikidata.org/wiki/Q13231055 # CNC machine + currentQuantity: + qudt:unit: unit:Unitless + qudt:numericValue: 1 diff --git a/examples/process-mfg-examples.yaml b/examples/process-mfg-examples.yaml @@ -1,133 +0,0 @@ -# Example: Simple manufacturing process - -'@context': - - https://git.io/vf-examples-jsonld-context - - alice: https://alice.example/ - mfg: https://manufacturing.example/ - make: https://makezine.com/ - -'@id': rgh:valueflows/valueflows/master/examples/process-mfg-examples.yaml -'@graph': - - # Economic resources before - - - '@id': mfg:e1721a61-cd47-4556-84b9-8b1b81da15bf - '@type': EconomicResource - resourceConformsTo: https://www.opendesk.cc/lean/desk # desk - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 8 - - - '@id': mfg:3129ca8b-fcda-45be-bbda-294dc924d3b9 - '@type': EconomicResource - classifiedAs: https://www.wikidata.org/wiki/Q219803 # plywood - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 130 - note: 4 x 8 sheet of 1/2 inch plywood - - - '@id': mfg:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 - '@type': EconomicResource - classifiedAs: https://www.wikidata.org/wiki/Q2101564 # desk design specification - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 - - - '@id': mfg:52f0e212-3c4f-4d27-b345-5e964c135824 - '@type': EconomicResource - classifiedAs: https://www.wikidata.org/wiki/Q13231055 # CNC machine - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 - - # Production - - - '@id': mfg:02b39a30-3e04-4305-9656-7f261aa63c84 - '@type': Process - name: Make the lean desk - - - '@id': mfg:b52a5815-fae9-43bf-be95-833b95dc0adb - '@type': EconomicEvent - inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 - action: consume - provider: https://manufacturing.example/ - receiver: https://manufacturing.example/ - affects: mfg:3129ca8b-fcda-45be-bbda-294dc924d3b9 # plywood sheets - affectedQuantity: - qudt:unit: unit:Number - qudt:numericValue: 3 - - - '@id': mfg:b90b0b77-09a2-42e2-8bd4-e9ae2c1c6172 - '@type': EconomicEvent - inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 - action: use - provider: https://manufacturing.example/ - receiver: https://manufacturing.example/ - affects: mfg:52f0e212-3c4f-4d27-b345-5e964c135824 # CNC machine - affectedQuantity: - qudt:unit: unit:Hour - qudt:numericValue: 3.5 - - - '@id': mfg:a8236bbb-81e0-422d-9861-56d2417db0fb - '@type': EconomicEvent - inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 - action: cite - provider: https://makezine.com/ - receiver: https://manufacturing.example/ - affects: mfg:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 # desk design specification - affectedQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 - - - '@id': mfg:6f438393-7f87-4914-806c-e23a4fd15e89 - '@type': EconomicEvent - inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 - action: work - provider: https://alice.example/ - receiver: https://manufacturing.example/ - resourceClassifiedAs: https://www.wikidata.org/wiki/Q192047 # machining - affectedQuantity: - qudt:unit: unit:Hour - qudt:numericValue: 7 - - - '@id': mfg:d4d2fd71-34f2-41c3-b1c5-19ad5ed2da59 - '@type': EconomicEvent - inputOf: mfg:02b39a30-3e04-4305-9656-7f261aa63c84 - action: produce - provider: https://manufacturing.example/ - receiver: https://manufacturing.example/ - affects: mfg:e1721a61-cd47-4556-84b9-8b1b81da15bf # desk - affectedQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 - - # Economic resources after - - - '@id': mfg:e1721a61-cd47-4556-84b9-8b1b81da15bf - '@type': EconomicResource - resourceConformsTo: https://www.opendesk.cc/lean/desk # desk - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 9 - - - '@id': mfg:3129ca8b-fcda-45be-bbda-294dc924d3b9 - '@type': EconomicResource - classifiedAs: https://www.wikidata.org/wiki/Q219803 # plywood - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 127 - note: 4 x 8 sheet of 1/2 inch plywood - - - '@id': mfg:6b97b1be-8e07-44ac-82e5-214f1b2aaf33 - '@type': EconomicResource - classifiedAs: https://www.wikidata.org/wiki/Q2101564 # desk design specification - currentQuantity: - qudt:unit: unit:Unitless - qudt:numericValue: 1 - - - '@id': mfg:52f0e212-3c4f-4d27-b345-5e964c135824 - '@type': EconomicResource - classifiedAs: https://www.wikidata.org/wiki/Q13231055 # CNC machine - currentQuantity: - qudt:unit: unit:Unitless - qudt:numericValue: 1 diff --git a/examples/process-workflow-examples.yaml b/examples/process-workflow-examples.yaml @@ -1,57 +0,0 @@ -# Example: Simple workflow process - -'@context': - - https://git.io/vf-examples-jsonld-context - - alice: https://alice.example/ - repair: https://auto-repair.example/ - -'@id': rgh:valueflows/valueflows/master/examples/process-workflow-examples.yaml -'@graph': - - # Economic resource before - - - '@id': alice:e1721a61-cd47-4556-84b9-8b1b81da15bf - '@type': EconomicResource - resourceConformsTo: http://opensourceecology.org/wiki/Wikispeed_SGT01 # car - trackingIdentifier: JHMCD38698S061469 - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 - - # Repair process - - - '@id': repair:02b39a30-3e04-4305-9656-7f261aa63c84 - '@type': Process - name: Oil change: JHMCD38698S061469 - skos:note: Check over car, change oil (standard quantity). - - - '@id': repair:a8236bbb-81e0-422d-9861-56d2417db0fb - '@type': EconomicEvent - inputOf: repair:02b39a30-3e04-4305-9656-7f261aa63c84 - action: accept - provider: https://alice.example/ - receiver: https://auto-repair.example/ - affects: alice:e1721a61-cd47-4556-84b9-8b1b81da15bf - affectedQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 - - - '@id': repair:52f0e212-3c4f-4d27-b345-5e964c135824 - '@type': EconomicEvent - inputOf: repair:02b39a30-3e04-4305-9656-7f261aa63c84 - action: improve - provider: https://auto-repair.example/ - receiver: https://alice.example/ - affects: alice:e1721a61-cd47-4556-84b9-8b1b81da15bf - affectedQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 - - # Economic resource after - - '@type': EconomicResource - resourceConformsTo: http://opensourceecology.org/wiki/Wikispeed_SGT01 # car - trackingIdentifier: JHMCD38698S061469 - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 diff --git a/examples/process-workflow.yaml b/examples/process-workflow.yaml @@ -0,0 +1,57 @@ +# Example: Simple workflow process + +'@context': + - https://git.io/vf-examples-jsonld-context + - alice: https://alice.example/ + repair: https://auto-repair.example/ + +'@id': rgh:valueflows/valueflows/master/examples/process-workflow.yaml +'@graph': + + # Economic resource before + + - '@id': alice:e1721a61-cd47-4556-84b9-8b1b81da15bf + '@type': EconomicResource + resourceConformsTo: http://opensourceecology.org/wiki/Wikispeed_SGT01 # car + trackingIdentifier: JHMCD38698S061469 + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 + + # Repair process + + - '@id': repair:02b39a30-3e04-4305-9656-7f261aa63c84 + '@type': Process + name: Oil change: JHMCD38698S061469 + skos:note: Check over car, change oil (standard quantity). + + - '@id': repair:a8236bbb-81e0-422d-9861-56d2417db0fb + '@type': EconomicEvent + inputOf: repair:02b39a30-3e04-4305-9656-7f261aa63c84 + action: accept + provider: https://alice.example/ + receiver: https://auto-repair.example/ + affects: alice:e1721a61-cd47-4556-84b9-8b1b81da15bf + affectedQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 + + - '@id': repair:52f0e212-3c4f-4d27-b345-5e964c135824 + '@type': EconomicEvent + inputOf: repair:02b39a30-3e04-4305-9656-7f261aa63c84 + action: improve + provider: https://auto-repair.example/ + receiver: https://alice.example/ + affects: alice:e1721a61-cd47-4556-84b9-8b1b81da15bf + affectedQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 + + # Economic resource after + + '@type': EconomicResource + resourceConformsTo: http://opensourceecology.org/wiki/Wikispeed_SGT01 # car + trackingIdentifier: JHMCD38698S061469 + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 diff --git a/examples/resource-examples.yaml b/examples/resource-examples.yaml @@ -1,42 +0,0 @@ -# Example: Resources - -'@context': - - https://git.io/vf-examples-jsonld-context - - farm: https://farm.example/ - ose: https://www.opensourceecology.org/ - -'@id': rgh:valueflows/valueflows/master/examples/resource-examples.yaml -'@graph': - - - '@id': ose:822b6baf-d66f-45a0-98f2-57450e2aec23 - '@type': ResourceSpecification - name: Tractor - LifeTrac 6 - url: https://www.opensourceecology.org/portfolio/tractor/ - image: https://www.opensourceecology.org/wp-content/uploads/2014/02/Tractor_gray.png - resourceClassifiedAs: https://www.wikidata.org/wiki/Q39495 - skos:note: A versatile, 4-wheel drive, hydraulically-driven tractor with 18 to 200 horsepower capacity for agriculture, construction and other utility duties. - - - '@id': farm:fbff9852-36ca-4364-a943-bc0b49e1cab5 - '@type': EconomicResource - name: Tractor - LifeTrac 6 - trackingIdentifier: 889jcd00s # the serial number assigned by the manufacturer - resourceConformsTo: ose:822b6baf-d66f-45a0-98f2-57450e2aec23 - currentQuantity: - qudt:unit: unit:Number - qudt:numericValue: 1 - - - '@id': farm:07819789-dd51-44c3-b35c-9210165bc832 - '@type': EconomicResource - name: Loose organic carrots - trackingIdentifier: 54988 # the lot number assigned by the farm - classifiedAs: https://www.wikidata.org/wiki/Q81 # carrot - currentQuantity: - qudt:unit: unit:Kilogram - qudt:numericValue: 650 - skos:note: Medium size, clean, harvested after the first frost, will store well. - - - '@id': farm:a7e94dde-2997-451e-a7e1-8d364d5e6dee - '@type': EconomicResource - name: Intern orientation instructions - classifiedAs: https://www.wikidata.org/wiki/Q49848 # document - url: https://farm.example/docs/intern-orientation.odt diff --git a/examples/resource.yaml b/examples/resource.yaml @@ -0,0 +1,42 @@ +# Example: Resources + +'@context': + - https://git.io/vf-examples-jsonld-context + - farm: https://farm.example/ + ose: https://www.opensourceecology.org/ + +'@id': rgh:valueflows/valueflows/master/examples/resource.yaml +'@graph': + + - '@id': ose:822b6baf-d66f-45a0-98f2-57450e2aec23 + '@type': ResourceSpecification + name: Tractor - LifeTrac 6 + url: https://www.opensourceecology.org/portfolio/tractor/ + image: https://www.opensourceecology.org/wp-content/uploads/2014/02/Tractor_gray.png + resourceClassifiedAs: https://www.wikidata.org/wiki/Q39495 + skos:note: A versatile, 4-wheel drive, hydraulically-driven tractor with 18 to 200 horsepower capacity for agriculture, construction and other utility duties. + + - '@id': farm:fbff9852-36ca-4364-a943-bc0b49e1cab5 + '@type': EconomicResource + name: Tractor - LifeTrac 6 + trackingIdentifier: 889jcd00s # the serial number assigned by the manufacturer + resourceConformsTo: ose:822b6baf-d66f-45a0-98f2-57450e2aec23 + currentQuantity: + qudt:unit: unit:Number + qudt:numericValue: 1 + + - '@id': farm:07819789-dd51-44c3-b35c-9210165bc832 + '@type': EconomicResource + name: Loose organic carrots + trackingIdentifier: 54988 # the lot number assigned by the farm + classifiedAs: https://www.wikidata.org/wiki/Q81 # carrot + currentQuantity: + qudt:unit: unit:Kilogram + qudt:numericValue: 650 + skos:note: Medium size, clean, harvested after the first frost, will store well. + + - '@id': farm:a7e94dde-2997-451e-a7e1-8d364d5e6dee + '@type': EconomicResource + name: Intern orientation instructions + classifiedAs: https://www.wikidata.org/wiki/Q49848 # document + url: https://farm.example/docs/intern-orientation.odt