Skip to content

Cardinality on a relationship between two classes #1

@elsdvlee

Description

@elsdvlee

How can one indicated the cardinality of a ObjectProperty if we have 2 ObjectProperties for the same class expecting the same class.

Example: suppose that I want to state that always 1 fromLocation is needed, and always 2 toLocations are needed

AS IS

class LocationToLocation {
string[] replenishmentMethods sc:replenishmentMethod 1..*
SupplierLocation locationFrom schema:fromLocation
SupplierLocation locationTo schema:toLocation
}

LocationToLocation -- "1" SupplierLocation

both locationFrom and LocationTo need to hove the same cardinality. Adding LocationToLocation -- "2" SupplierLocation doesn't work and wouldn't be clear

WANTED

class LocationToLocation {
string[] replenishmentMethods sc:replenishmentMethod 1..*
SupplierLocation locationFrom schema:fromLocation 1
SupplierLocation locationTo schema:toLocation 2
}

LocationToLocation -- SupplierLocation

In general I believe that it would also be more clear if the cardinality on DataTypeProperties and ObjectProperties are indicated in the same way. Is there a specific reason why this is not the chosen approach in the present implementation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions