FIWARE Tutorial Schema:StockOrder
StockOrder - an entry in a list of items sold in one or more stores
Property | Expected Type | Description |
---|---|---|
Properties from StockOrder | ||
orderedProduct
|
Relationship: Product | The product associated to this stock item |
requestedFor
|
Relationship: Building | The id of the store this product is sold by |
requestedBy
|
Relationship: Person | The Person who created this StockOrder |
orderDate
|
Property: DateTime | The date the order was placed. |
stockCount
|
Property: integer | The number of items left in stock in the warehouse |
A snippet of the @context
and @graph
can be seen below (scroll to see more detail):
{
"@context": {
"tutorial": "https://fiware.github.io/tutorials.Step-by-Step/schema/",
"StockOrder": "tutorial:StockOrder",
"orderDate": {
"@id": "tutorial:orderDate",
"@type": "https://uri.etsi.org/ngsi-ld/DateTime"
},
"orderedProduct": {
"@id": "tutorial:orderedProduct",
"@type": "@id"
},
"requestedBy": {
"@id": "tutorial:requestedBy",
"@type": "@id"
},
"requestedFor": {
"@id": "tutorial:requestedFor",
"@type": "@id"
},
"stockCount": {
"@id": "tutorial:stockCount",
"@type": "xsd:integer"
}
},
"@graph": [
{
"@id": "tutorial:StockOrder",
"@type": "rdfs:Class",
"rdfs:comment": "StockOrder an entry in a list of items sold in one or more stores",
"rdfs:label": "StockOrder",
"rdfs:subClassOf": {
"@id": "http://schema.org/Intangible"
}
},
{
"@id": "tutoral:requestedBy",
"@type": "https://uri.etsi.org/ngsi-ld/Relationship",
"schema:domainIncludes": [
{
"@id": "tutorial:Shelf"
},
{
"@id": "tutorial:StockOrder"
}
],
"schema:rangeIncludes": [
{
"@id": "schema:Person"
}
],
"rdfs:comment": "Object requested by person.",
"rdfs:label": "requestedBy"
},
{
"@id": "tutorial:requestedFor",
"@type": "https://uri.etsi.org/ngsi-ld/Relationship",
"schema:domainIncludes": [
{
"@id": "tutorial:StockOrder"
}
],
"schema:rangeIncludes": [
{
"@id": "fiware:Building"
}
],
"rdfs:comment": "Store for which an item is requested",
"rdfs:label": "requestedFor"
},
{
"@id": "tutorial:orderedProduct",
"@type": "https://uri.etsi.org/ngsi-ld/Relationship",
"schema:domainIncludes": [
{
"@id": "tutorial:StockOrder"
}
],
"schema:rangeIncludes": [
{
"@id": "tutorial:Product"
}
],
"rdfs:comment": "The Product ordered for a store",
"rdfs:label": "orderedProduct"
}
]
}