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

Downgrade oslc:maxSize from xsd:integer to xsd:long #595

Open
berezovskyi opened this issue Aug 12, 2023 · 1 comment
Open

Downgrade oslc:maxSize from xsd:integer to xsd:long #595

berezovskyi opened this issue Aug 12, 2023 · 1 comment
Milestone

Comments

@berezovskyi
Copy link
Member

berezovskyi commented Aug 12, 2023

https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/core-shapes.html#PropertyShape indicates that oslc:maxSize is used to limit string length.

xsd:int allows 4GB string size, xsd:long allows 9EB string size (that's 9 exabytes, or 9000 petabytes). xsd:integer allows values longer than that. I think the OSLC OP should consider downgrading the datatype from xsd:integer to xsd:long.

Otherwise, it creates implementation problems. See eclipse-lyo/lyo#272 (comment) for an example of such a discussion (I am not even mentioning the unnecessary impact on performance). Further, some programming languages don't even come with arbitrary-precision arithmetic support out of the box (C and C++ are the two most prominent examples), which negatively limits OSLC applicability.

@DavidJohnHoney
Copy link

Neither xsd:int nor xsd:long are supported OSLC data types. If we wanted to use them, we would need to update OSLC Core to add them as supported data types, and OSLC Query to describe their semantics in queries.

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

2 participants