valueflows

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

commit f71b635d0f485fdda58c31ddf2008ef2f1a2364c
parent 7c7fcd5d54083909abc23b91b6b2e165036b9406
Author: elf Pavlik <elf-pavlik@hackers4peace.net>
Date:   Thu,  8 Sep 2016 10:43:04 -0500

added snippets for produce-box

Diffstat:
Msnippets/3d-printed-parts/filament-after-create.yaml | 1-
Msnippets/3d-printed-parts/filament-after-increment.yaml | 1-
Msnippets/3d-printed-parts/filament-before-create.yaml | 1-
Asnippets/produce-box/README.md | 7+++++++
Asnippets/produce-box/assemble-process.yaml | 132+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asnippets/produce-box/box.yaml | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asnippets/produce-box/boxes-after-assembly.yaml | 14++++++++++++++
Asnippets/produce-box/boxes-before-assembly.yaml | 13+++++++++++++
Asnippets/produce-box/stock-after-assembly.yaml | 49+++++++++++++++++++++++++++++++++++++++++++++++++
Asnippets/produce-box/stock-before-assembly.yaml | 45+++++++++++++++++++++++++++++++++++++++++++++
10 files changed, 330 insertions(+), 3 deletions(-)

diff --git a/snippets/3d-printed-parts/filament-after-create.yaml b/snippets/3d-printed-parts/filament-after-create.yaml @@ -1,4 +1,3 @@ - '@context': - https://w3id.org/valueflows/v1 - fablab: https://fablab.example/ diff --git a/snippets/3d-printed-parts/filament-after-increment.yaml b/snippets/3d-printed-parts/filament-after-increment.yaml @@ -1,4 +1,3 @@ - '@context': - https://w3id.org/valueflows/v1 - fablab: https://fablab.example/ diff --git a/snippets/3d-printed-parts/filament-before-create.yaml b/snippets/3d-printed-parts/filament-before-create.yaml @@ -1,4 +1,3 @@ - '@context': - https://w3id.org/valueflows/v1 - fablab: https://fablab.example/ diff --git a/snippets/produce-box/README.md b/snippets/produce-box/README.md @@ -0,0 +1,7 @@ + +1. [boxes-before-assembly.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/produce-box/boxes-before-assembly.yaml) +2. [stock-before-assembly.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/produce-box/stock-before-assembly.yaml) +3. [assemble-process.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/produce-box/assemble-process.yaml) +4. [box.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/produce-box/box.yaml) +5. [boxes-after-assembly.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/produce-box/boxes-after-assembly.yaml) +6. [stock-after-assembly.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/produce-box/stock-after-assembly.yaml) diff --git a/snippets/produce-box/assemble-process.yaml b/snippets/produce-box/assemble-process.yaml @@ -0,0 +1,132 @@ +'@context': + - https://w3id.org/valueflows/v1 + - boxcoop: https://boxcoop.example/ + +'@graph': + - '@id': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + '@type': vf:Transformation + 'skos:note': assemble simple produce box + + # combined box + - '@id': boxcoop:83147f39-37ef-42e8-bd91-91b5e094cddd#event + '@type': vf:IPOEvent + 'vf:action': vf:create + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:2b83f582-de8e-4c65-ab46-c8cf65e2075b#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 + + # packaging + - '@id': boxcoop:2efc07a1-3d5f-4fca-9d25-49be7ec9e311#event + '@type': vf:IPOEvent + 'vf:action': vf:consume + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:583c4636-50ea-45f8-b96d-ab6f34388f49#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 + + - '@id': boxcoop:f27f9b63-ce7a-429f-82fa-88238f2967b7#event + '@type': vf:IPOEvent + 'vf:action': vf:create + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:67d034a0-7fd0-4d61-801c-6cdb952fc18b#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 + + # produce + - '@id': boxcoop:ddc8a3b5-1825-486a-8f6e-1df6726434ff#event + '@type': vf:IPOEvent + 'vf:action': vf:consume + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:07d4cc02-3b1d-4736-9438-9e8dd89022c6#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:1a574bb7-1058-4cbc-a560-70272c3a20c3#event + '@type': vf:IPOEvent + 'vf:action': vf:create + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:c273020d-82ce-4b28-a573-491c7a62b833#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:689cd00f-7740-4b8b-ac81-40dcfe312b44#event + '@type': vf:IPOEvent + 'vf:action': vf:consume + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:f9cf3dd3-b498-429e-aa9d-dfcbf488603e#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:2cad9c45-6588-44d6-86c1-17b91d2efef7#event + '@type': vf:IPOEvent + 'vf:action': vf:create + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:51397872-0d32-437c-95a1-52ad3e2525c5#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:d2842c60-917f-4336-a908-7f5bffb44862#event + '@type': vf:IPOEvent + 'vf:action': vf:consume + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:a53e347d-2675-4a84-8882-ad8f30a16f06#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:2830456e-b682-4438-accb-7f6f0e1f27f2#event + '@type': vf:IPOEvent + 'vf:action': vf:create + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:71a4e8b5-ca2f-4aba-90f6-b6313f4da024#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:3bf3989d-9ed1-4be7-a0ac-2d02951eb850#event + '@type': vf:IPOEvent + 'vf:action': vf:consume + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:6cb861ba-993d-4293-a9aa-9fd31f1411be#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:eb61aaa4-b63b-4868-bdd5-88cbeb50a743#event + '@type': vf:IPOEvent + 'vf:action': vf:create + 'vf:startTime': 2016-09-08 + 'vf:executedIn': boxcoop:8b7c3d7c-720b-4599-b4b4-1ec4fe9f1b3d#process + 'vf:affects': boxcoop:1461dec0-20b7-4b73-a26f-5ea94a5f6055#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 diff --git a/snippets/produce-box/box.yaml b/snippets/produce-box/box.yaml @@ -0,0 +1,70 @@ +'@context': + - https://w3id.org/valueflows/v1 + - boxcoop: https://boxcoop.example/ + prodont: http://www.productontology.org/id/ + +'@graph': + - '@id': boxcoop:2b83f582-de8e-4c65-ab46-c8cf65e2075b#resource + '@type': vf:MaterialResource + 'vf:model': boxcoop:basic-produce-box#model + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:mostRecentEvent': boxcoop:83147f39-37ef-42e8-bd91-91b5e094cddd#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 + 'vf:contains': + - boxcoop:67d034a0-7fd0-4d61-801c-6cdb952fc18b#resource + - boxcoop:c273020d-82ce-4b28-a573-491c7a62b833#resource + - boxcoop:51397872-0d32-437c-95a1-52ad3e2525c5#resource + - boxcoop:71a4e8b5-ca2f-4aba-90f6-b6313f4da024#resource + - boxcoop:1461dec0-20b7-4b73-a26f-5ea94a5f6055#resource + + - '@id': boxcoop:67d034a0-7fd0-4d61-801c-6cdb952fc18b#resource + '@type': vf:MaterialResource + 'vf:model': acme:wooden-produce-box#model + 'vf:mostRecentEvent': boxcoop:f27f9b63-ce7a-429f-82fa-88238f2967b7#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 + + - '@id': boxcoop:c273020d-82ce-4b28-a573-491c7a62b833#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Apple + 'vf:lotIdentifier': 615c9abe + 'vf:mostRecentEvent': boxcoop:1a574bb7-1058-4cbc-a560-70272c3a20c3#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:51397872-0d32-437c-95a1-52ad3e2525c5#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Onion + 'vf:lotIdentifier': 37591c70 + 'vf:mostRecentEvent': boxcoop:2cad9c45-6588-44d6-86c1-17b91d2efef7#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:71a4e8b5-ca2f-4aba-90f6-b6313f4da024#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Carrot + 'vf:lotIdentifier': 93eb3164 + 'vf:mostRecentEvent': boxcoop:2830456e-b682-4438-accb-7f6f0e1f27f2#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 + + - '@id': boxcoop:1461dec0-20b7-4b73-a26f-5ea94a5f6055#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Tomato + 'vf:lotIdentifier': 58054c8d + 'vf:mostRecentEvent': 1a574bb7-1058-4cbc-a560-70272c3a20c3 + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 1 diff --git a/snippets/produce-box/boxes-after-assembly.yaml b/snippets/produce-box/boxes-after-assembly.yaml @@ -0,0 +1,14 @@ +'@context': + - https://w3id.org/valueflows/v1 + - boxcoop: https://boxcoop.example/ + acme: https://acme.example/ + +'@id': boxcoop:583c4636-50ea-45f8-b96d-ab6f34388f49#resource +'@type': vf:MaterialResource +'vf:model': acme:wooden-produce-box#model +'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place +'vf:mostRecentEvent': boxcoop:2efc07a1-3d5f-4fca-9d25-49be7ec9e311#event +'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 83 diff --git a/snippets/produce-box/boxes-before-assembly.yaml b/snippets/produce-box/boxes-before-assembly.yaml @@ -0,0 +1,13 @@ +'@context': + - https://w3id.org/valueflows/v1 + - boxcoop: https://boxcoop.example/ + acme: https://acme.example/ + +'@id': boxcoop:583c4636-50ea-45f8-b96d-ab6f34388f49#resource +'@type': vf:MaterialResource +'vf:model': acme:wooden-produce-box#model +'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place +'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 84 diff --git a/snippets/produce-box/stock-after-assembly.yaml b/snippets/produce-box/stock-after-assembly.yaml @@ -0,0 +1,49 @@ +'@context': + - https://w3id.org/valueflows/v1 + - boxcoop: https://boxcoop.example/ + prodont: http://www.productontology.org/id/ + +'@graph': + - '@id': boxcoop:07d4cc02-3b1d-4736-9438-9e8dd89022c6#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Apple + 'vf:lotIdentifier': 615c9abe + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:mostRecentEvent': boxcoop:ddc8a3b5-1825-486a-8f6e-1df6726434ff#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 179 + + - '@id': boxcoop:f9cf3dd3-b498-429e-aa9d-dfcbf488603e#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Onion + 'vf:lotIdentifier': 37591c70 + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:mostRecentEvent': boxcoop:689cd00f-7740-4b8b-ac81-40dcfe312b44#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 64 + + - '@id': boxcoop:a53e347d-2675-4a84-8882-ad8f30a16f06#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Carrot + 'vf:lotIdentifier': 93eb3164 + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:mostRecentEvent': boxcoop:d2842c60-917f-4336-a908-7f5bffb44862#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 86 + + - '@id': boxcoop:6cb861ba-993d-4293-a9aa-9fd31f1411be#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Tomato + 'vf:lotIdentifier': 58054c8d + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:mostRecentEvent': boxcoop:3bf3989d-9ed1-4be7-a0ac-2d02951eb850#event + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 47 diff --git a/snippets/produce-box/stock-before-assembly.yaml b/snippets/produce-box/stock-before-assembly.yaml @@ -0,0 +1,45 @@ +'@context': + - https://w3id.org/valueflows/v1 + - boxcoop: https://boxcoop.example/ + prodont: http://www.productontology.org/id/ + +'@graph': + - '@id': boxcoop:07d4cc02-3b1d-4736-9438-9e8dd89022c6#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Apple + 'vf:lotIdentifier': 615c9abe + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 180 + + - '@id': boxcoop:f9cf3dd3-b498-429e-aa9d-dfcbf488603e#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Onion + 'vf:lotIdentifier': 37591c70 + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 65 + + - '@id': boxcoop:a53e347d-2675-4a84-8882-ad8f30a16f06#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Carrot + 'vf:lotIdentifier': 93eb3164 + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 87 + + - '@id': boxcoop:6cb861ba-993d-4293-a9aa-9fd31f1411be#resource + '@type': vf:MaterialResource + 'vf:category': prodont:Tomato + 'vf:lotIdentifier': 58054c8d + 'vf:currentLocation': boxcoop:98c38881-696d-4339-a823-3f6960bc9141#place + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Kilogram + 'qudt:numericValue': 48