View on GitHub

SHOP4CF Data Models

Documentation of FIWARE data models used in SHOP4CF

Material

Material is a product (final or intermediate) or an ingredient of a manufacturing process. Its attributes represent its current state. The state may be physically observed, for instance location, but also process-specific, for instance a result of quality control.

Example of a PCB under manufacturing with the outcome of quality control is given below.

{
    "id": "urn:ngsi-ld:Material:company-xyz:pcb-ncw498w",
    "type": "Material",
    "state": {
        "type": "Property",
        "value": {
            "qualityControlOutcome": "defective"
        },
        "observedAt": "2020-12-01T11:23:19Z"
    },
    "isSpecifiedBy": {
        "type": "Property",
        "value": [
            {
                "type": "Relationship",
                "object": "urn:ngsi-ld:ResourceSpecification:company-xyz:any-material"
            },
            {
                "type": "Relationship",
                "object": "urn:ngsi-ld:ResourceSpecification:company-xyz:product-pcb"
            }
        ]
    },
    "@context": [
        "https://smartdatamodels.org/context.jsonld",
        "https://raw.githubusercontent.com/shop4cf/data-models/master/docs/shop4cfcontext.jsonld"
    ]
}

Further notes on the attributes: