Skip to content

[BUG] Mandatory Property missing on anonymous element #14

Description

@chris-volk

How: List of performed steps
Add the following code in a file.

:deliveryKey a samm:Property ;
   samm:preferredName "delivery key"@en ;
   samm:description """An internal identifier made up of delivery ID, delivery item and the SAP system ID"""@en ;
   samm:exampleValue "SAPPOE011-0123456789-000010"^^xsd:string ;
   samm:characteristic :DeliveryKey .

:DeliveryKey a samm-c:StructuredValue ;
    samm:dataType xsd:string ;
    samm-c:deconstructionRule "(\\w{9})-(\\d{10})-(\\d{6})" ;
    samm-c:elements (
        common:sapSystem "-" :deliveryId "-" :deliveryItem
        ) .

What: Actual result vs expected result
Mandatory property samm-c:elements is missing on anonymous element. (ERR_MIN_COUNT) [Ln 1, Col 1]
JavaScript evaluation of testStructuredValueConstruction failed (ERR_PROCESSING) [Ln 1, Col 1]

Where: (e.g. component, version, url, your system info)

Input (files/screenshots)

Output (files/screenshots)

Additional context (e.g. references)
On a similar construction the same error does not occur:

:resourceRecordKey a samm:Property ;
   samm:preferredName "resource record key"@en ;
   samm:description """Reference record key used as primary key for resource record elements consisting of enterprise system ID, resource record number and resource record element."""@en ;
   samm:exampleValue "ENTSYS011-0123456789-0001"^^xsd:string ;
   samm:characteristic :ResourceRecordKey .

:ResourceRecordKey a samm-c:StructuredValue ;
    samm:dataType xsd:string ;
    samm-c:deconstructionRule "(\\w{9})-(\\d{10})-(\\d{4})" ;
    samm-c:elements (
        common:enterpriseSystem
        "-"
        :resourceRecordNumber
        "-"
        :resourceRecordElement
        ) .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions