Page 1 of 1
Use of cardinalities in templates
Posted: Sat Jul 07, 2012 12:18 pm
by vvagr
I see one important problem of cardinality-type roles in template signatures. If we leave role types as dm:Cardinality, it'll be required to learn by heart (or hardcode in the software) the URIs of the most used ones. Is it worth the efforts to decompose templates to the level of hasmaximum and hasminimum integers? But roles in the templates can not be optional, therefore it is not clear for me - what to do with "any"="infinity" restriction?
Re: Use of cardinalities in templates
Posted: Wed Jul 11, 2012 9:51 am
by HansTeijgeler
Hi Victor,
My advice would be: put them on a(n electronic) cheat sheet in your mapping software. How many will that be? Using a cheat sheet would have another advantage: you don't have to memorize the logic of those cardinalities vs the ends of the relationship by asking the right questions.
Using URIs avoids the problem you describe with roles in templates that may not be left empty. In the RDL we can create a set of cardinality definitions that covers all required permutations, including ones where the optionality applies, such as infinity.
Regards,
Hans