Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

stock proposal #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Or, if you can eat it or drive it or give it to someone, it's a Resource.
## Definitions

* [vf:Resource](https://github.com/valueflows/resource/blob/master/Resource.md)
* [vf:Stock](https://github.com/valueflows/resource/blob/master/Stock.md)

## ResourceTypes are a Taxonomy

Expand Down Expand Up @@ -60,7 +61,7 @@ This can vary. And people can be allowed within some boundaries of agreement to
Here are some examples from manufacturing situations:

* Unique identifier = an assigned serialized identifier, which is unique across manufacturers, due to agreements in an industry. Examples are computers, vehicles, and other equipment.
* Unique identifier = resourceType + lotID + location + owner: so in other words, the owner of the rights was part of the unique identifier of the resource, and if the resource got transferred from one owner to another, the first owner's resources would be decremented, and the second owner's resources would be incremented.
* Unique identifier = resourceType + lotID + location + owner: so in other words, the owner of the rights was part of the unique identifier of the resource, and if the resource got transferred from one owner to another, the first owner's resources would be decremented, and the second owner's resources would be incremented.

Note in the last case, a transfer of rights means a different resource. This is common with resources that are not serialized, where one logical resource has a quantity greater than 1, and the individual instances are substitutable. (Think nuts and bolts, grain, strawberries, bottles of beer in cases, etc.)

Expand All @@ -78,4 +79,3 @@ An event can trigger incrementing or decrementing a resource. Sometimes it does
* [Porridge preparation](https://github.com/valueflows/valueflows/blob/master/use-cases/porridge-preparation.md)
* [Olive oil request](https://github.com/valueflows/valueflows/blob/master/use-cases/olive-oil-request.md)
* [Dental Care](https://github.com/valueflows/valueflows/blob/master/use-cases/dental-care.md)

34 changes: 34 additions & 0 deletions Stock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# vf:Stock

Stock can contain 0 or more resources of particular type.

## Object Properties
(relationships)

### vf:contains
relates stock to a resouce it contains

## Examples

### Bicycles

Each bike has an IRI to identify it, and the stock contains many bikes. For example of single bike see [Bike](https://github.com/valueflows/resource/blob/master/Resource.md#bicycle).

```yaml
'@context': https://w3id.org/valueflows/v1
'@id': https://cohouse.example/inventory/bicycles#stock
'@type':
- vf:Resource
- prodont:Bicycle
'skos:note': our shared pool of bicycles
'vf:currentLocation': http://sws.geonames.org/2654675/
'vf:quantity':
'@type': qudt:QuantityValue
'qudt:unit': unit:Each
'qudt:numericValue': 4
'vf:contains':
- https://cohouse.example/inventory/0030b345-c9f9-4e3a-a5a6-b45a8137aa05#resource
- https://cohouse.example/inventory/49fc39ff-be2b-4653-87ff-b18e2f20063b#resource
- https://cohouse.example/inventory/a64f0db3-4a62-404e-b46e-4753fb886ea3#resource
- https://cohouse.example/inventory/40f5148b-710c-4215-ab4d-fee66d8d4f96#resource
```