Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensive use of attribute multiplicity > 1 #28

Open
pahjbo opened this issue Jan 9, 2025 · 0 comments
Open

Extensive use of attribute multiplicity > 1 #28

pahjbo opened this issue Jan 9, 2025 · 0 comments

Comments

@pahjbo
Copy link

pahjbo commented Jan 9, 2025

The VO-DML definition of CAOM makes fairly extensive use of attributes with multiplicity >1 - in the 1.0 schematron this is flagged as STRONGLY DISCOURAGED, but with little explanation in the error message itself - In general the reason why it is a problem is that attributes are directly mapped to database columns and therefore cannot simply have multiplicity > 1 without some further mapping convention. In some of the cases the attribute type is a primitiveType and therefore there could be a convention that the multiple values are serialised to strings and concatenated with a separator.

In other cases the attribute type is a dataType (which in the multiplicity = 1 case just has its members mapped to columns), but is more problematic with mulitiplicity>1. The pragmatic solution in general is potentially to change the dataTypes used in this way to objectTypes and then use them in compositions rather than as attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant