Skip to content

ReGex for countryOfOrigin #44

@luisramosbosch

Description

@luisramosbosch

In Nameplate.ttl the property conuntryOfOrigin indicates that it follows the DIN EN ISO 3166-1 alpha-2 codes. This means the code should be like: DE for Germany and VE for Venezuela. However, there is also a ISO 3166-1 alpha-3 that assigns 3 digits per country (e.g DEU for Germany and VEN for Venezuela).

And given that the datatype is text, this property gives us enough degree of freedom to produce errors when editing these codes.

We can overcome this issue using the constrains notation provided by SAMM. On the json side of the submodel template the required regex constrain should be also supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions