valueflows

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

commit e59f9aa20df822e027d9e1b4218ff2941369da15
parent f4c2a9aee33f903cde5a751d54f3bde62de2dca9
Author: Lynn Foster <foster.j.lynn@gmail.com>
Date:   Fri, 16 Sep 2016 10:42:31 -0500

Added location to last snippet, 2 new snippets for transport in context.

Diffstat:
Asnippets/serial-transport-within-context/README.md | 6++++++
Asnippets/serial-transport-within-context/resources-0.yaml | 14++++++++++++++
Asnippets/serial-transport-within-context/resources-after-load.yaml | 14++++++++++++++
Asnippets/serial-transport-within-context/resources-end.yaml | 14++++++++++++++
Asnippets/serial-transport-within-context/transport.yaml | 36++++++++++++++++++++++++++++++++++++
Msnippets/stock-transport-across-contexts/resources-0.yaml | 2++
Msnippets/stock-transport-across-contexts/resources-after-issue.yaml | 1+
Msnippets/stock-transport-across-contexts/resources-end.yaml | 2++
Asnippets/stock-transport-within-context/README.md | 5+++++
Asnippets/stock-transport-within-context/resources-0.yaml | 23+++++++++++++++++++++++
Asnippets/stock-transport-within-context/resources-end.yaml | 23+++++++++++++++++++++++
Asnippets/stock-transport-within-context/transport.yaml | 32++++++++++++++++++++++++++++++++
12 files changed, 172 insertions(+), 0 deletions(-)

diff --git a/snippets/serial-transport-within-context/README.md b/snippets/serial-transport-within-context/README.md @@ -0,0 +1,6 @@ +This set of snippets contains a transportation of a serialized bike within a context, basically just changing locations. + +1. [resources-0.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/serial-transport-within-context/resources-0.yaml) +1. [transport.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/serial-transport-within-context/transport.yaml) +1. [resources-after-load.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/serial-transport-within-context/resources-after-load.yaml) +1. [resources-end.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/serial-transport-within-context/resources-end.yaml) diff --git a/snippets/serial-transport-within-context/resources-0.yaml b/snippets/serial-transport-within-context/resources-0.yaml @@ -0,0 +1,14 @@ +'@context': + - https://w3id.org/valueflows/v1 + - bkitchen: https://bike-kitchen.example/ + +'@graph': + - '@id': bkitchen:3965e58b-787c-4728-a802-63aeec53993b#resource + '@type': vf:Resource + 'vf:serialIdentifier': 63aeec53993b + 'vf:model': bkitchen:cargobee#model + 'vf:currentLocation': bkitchen:shop + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 diff --git a/snippets/serial-transport-within-context/resources-after-load.yaml b/snippets/serial-transport-within-context/resources-after-load.yaml @@ -0,0 +1,14 @@ +'@context': + - https://w3id.org/valueflows/v1 + - bkitchen: https://bike-kitchen.example/ + +'@graph': + - '@id': bkitchen:3965e58b-787c-4728-a802-63aeec53993b#resource + '@type': vf:Resource + 'vf:serialIdentifier': 63aeec53993b + 'vf:model': bkitchen:cargobee#model + 'vf:currentLocation': bkitchen:truck + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 diff --git a/snippets/serial-transport-within-context/resources-end.yaml b/snippets/serial-transport-within-context/resources-end.yaml @@ -0,0 +1,14 @@ +'@context': + - https://w3id.org/valueflows/v1 + - bkitchen: https://bike-kitchen.example/ + +'@graph': + - '@id': bkitchen:3965e58b-787c-4728-a802-63aeec53993b#resource + '@type': vf:Resource + 'vf:serialIdentifier': 63aeec53993b + 'vf:model': bkitchen:cargobee#model + 'vf:currentLocation': bkitchen:store + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 diff --git a/snippets/serial-transport-within-context/transport.yaml b/snippets/serial-transport-within-context/transport.yaml @@ -0,0 +1,35 @@ + +'@context': + - https://w3id.org/valueflows/v1 + - bkitchen: https://bike-kitchen.example/ + +'@graph': + - '@id': bkitchen:43289234789b-8df2-dfaddfre#process + '@type': vf:Process + 'skos:note': transporting 1 bike + + - '@id': bkitchen:4329423iu34#event + '@type': vf:IPOEvent + 'vf:action': vf:load + 'vf:startTime': 2015-07-23 + 'vf:executedIn': bkitchen:43289234789b-8df2-dfaddfre#process + 'vf:affects': bkitchen:3965e58b-787c-4728-a802-63aeec53993b#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 + 'vf:fromLocation': bkitchen:shop + 'vf:toLocation': bkitchen:truck + + - '@id': bkitchen:dfaoiud84343#event + '@type': vf:IPOEvent + 'vf:action': vf:unload + 'vf:startTime': 2015-07-24 + 'vf:executedIn': bkitchen:43289234789b-8df2-dfaddfre#process + 'vf:affects': bkitchen:3965e58b-787c-4728-a802-63aeec53993b#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 1 + 'vf:fromLocation': bkitchen:truck + 'vf:toLocation': bkitchen:store+ \ No newline at end of file diff --git a/snippets/stock-transport-across-contexts/resources-0.yaml b/snippets/stock-transport-across-contexts/resources-0.yaml @@ -11,6 +11,7 @@ '@type': qudt:QuantityValue 'qudt:unit': unit:Each 'qudt:numericValue': 50 + 'vf:currentLocation': bikeparts:warehouse - '@id': bkitchen:2ffb24c7-176b-4ae0-bd86-bikechains#resource '@type': vf:Resource @@ -19,3 +20,4 @@ '@type': qudt:QuantityValue 'qudt:unit': unit:Each 'qudt:numericValue': 4 + 'vf:currentLocation': bkitchen:shop diff --git a/snippets/stock-transport-across-contexts/resources-after-issue.yaml b/snippets/stock-transport-across-contexts/resources-after-issue.yaml @@ -12,6 +12,7 @@ '@type': qudt:QuantityValue 'qudt:unit': unit:Each 'qudt:numericValue': 40 + 'vf:currentLocation': bikeparts:warehouse - '@id': shipper:4535435-bikechains-for-transport#resource '@type': vf:Resource diff --git a/snippets/stock-transport-across-contexts/resources-end.yaml b/snippets/stock-transport-across-contexts/resources-end.yaml @@ -11,6 +11,7 @@ '@type': qudt:QuantityValue 'qudt:unit': unit:Each 'qudt:numericValue': 40 + 'vf:currentLocation': bikeparts:warehouse - '@id': bkitchen:2ffb24c7-176b-4ae0-bd86-bikechains#resource '@type': vf:Resource @@ -19,3 +20,4 @@ '@type': qudt:QuantityValue 'qudt:unit': unit:Each 'qudt:numericValue': 14 + 'vf:currentLocation': bkitchen:shop diff --git a/snippets/stock-transport-within-context/README.md b/snippets/stock-transport-within-context/README.md @@ -0,0 +1,5 @@ +This set of snippets contains a transportation of a portion of a stock resource within a context. + +1. [resources-0.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/stock-transport-within-context/resources-0.yaml) +1. [transport.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/stock-transport-within-context/transport.yaml) +1. [resources-end.yaml](https://github.com/valueflows/valueflows/blob/master/snippets/stock-transport-within-context/resources-end.yaml) diff --git a/snippets/stock-transport-within-context/resources-0.yaml b/snippets/stock-transport-within-context/resources-0.yaml @@ -0,0 +1,23 @@ +'@context': + - https://w3id.org/valueflows/v1 + - bikeparts: https://bike-parts.example/ + +'@graph': + - '@id': bikeparts:3965e58b-787c-4728-bikechains#resource + '@type': vf:Resource + 'vf:model': bikeparts:bike-chains-1234#model + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 50 + 'vf:currentLocation': bikeparts:warehouse-1 + + - '@id': bikeparts:342343223-787c-4728-bikechains#resource + '@type': vf:Resource + 'vf:model': bikeparts:bike-chains-1234#model + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 20 + 'vf:currentLocation': bikeparts:warehouse-2 + diff --git a/snippets/stock-transport-within-context/resources-end.yaml b/snippets/stock-transport-within-context/resources-end.yaml @@ -0,0 +1,23 @@ +'@context': + - https://w3id.org/valueflows/v1 + - bikeparts: https://bike-parts.example/ + +'@graph': + - '@id': bikeparts:3965e58b-787c-4728-bikechains#resource + '@type': vf:Resource + 'vf:model': bikeparts:bike-chains-1234#model + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 40 + 'vf:currentLocation': bikeparts:warehouse-1 + + - '@id': bikeparts:342343223-787c-4728-bikechains#resource + '@type': vf:Resource + 'vf:model': bikeparts:bike-chains-1234#model + 'vf:quantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 30 + 'vf:currentLocation': bikeparts:warehouse-2 + diff --git a/snippets/stock-transport-within-context/transport.yaml b/snippets/stock-transport-within-context/transport.yaml @@ -0,0 +1,31 @@ + +'@context': + - https://w3id.org/valueflows/v1 + - bikeparts: https://bike-parts.example/ + +'@graph': + - '@id': bikeparts:43289234789b-8df2-dfaddfre#process + '@type': vf:Process + 'skos:note': transporting 1 batch of bike chains + + - '@id': bikeparts:4329423iu34#event + '@type': vf:IPOEvent + 'vf:action': vf:load + 'vf:startTime': 2015-07-23 + 'vf:executedIn': bikeparts:43289234789b-8df2-dfaddfre#process + 'vf:affects': bikeparts:3965e58b-787c-4728-bikechains#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 10 + + - '@id': bikeparts:dfaoiud84343#event + '@type': vf:IPOEvent + 'vf:action': vf:unload + 'vf:startTime': 2015-07-24 + 'vf:executedIn': bikeparts:43289234789b-8df2-dfaddfre#process + 'vf:affects': bikeparts:342343223-787c-4728-bikechains#resource + 'vf:affectedQuantity': + '@type': qudt:QuantityValue + 'qudt:unit': unit:Each + 'qudt:numericValue': 10+ \ No newline at end of file