-
Notifications
You must be signed in to change notification settings - Fork 3
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
Sorting for nominal elements i.e. cantons or regions #312
Comments
I propose to allow the end-user to select out of specific set of attached predicates on the concept for a dimension, e.g.: schema:name -> Beschriftung / étiquette / Label and/or manually order by e.g. dragging and dropping the legend labels in a specific order. |
If there is a default order, isn't it an ordinal dimension ? Anyway, we could have the schema:position retrieved also for nominal dimensions values and display "Position" it in the sorting options. Is there a way on the dimension to know if there is a schema:position available on the values ? I think the schema:identifier is too much of an technical thing to be connected to order, don't you think ? |
One is the order of the concept itself, like small, medium, big. Where the other is a pure visual order which is customary, but does not say anything about the order of the actual concept. A simple way to understand the difference:
@bergos can we query with the query library which predicates are on concepts easily? I think its quite natural to say the order is by either the Label, or the Identifier, no? |
Thanks for the explanation @l00mi, I understand better. Yes, order by id or label seems natural. |
Currently, for a shared dimensions like the cantons, is the schema.org/identifier used to store the id of the canton ? |
@ptbrowne yes exactly, that is true also for non-shared-dimensions btw. (we mention it in the documentation that it can be used). These predicates will be reused for the same use case. Be aware that you might also have multiple http://schema.org/identifier .. e.g. https://register.ld.admin.ch/zefix/company/1198554 has one directly attached literal, but then multiple other identifiers which are using the https://schema.org/PropertyValue construct. For a first step I would ignore these, in a next step we might need to add these to the list of possible "sortings". |
|
@Rdataflow Just to clarify, the "Produktionsregion" will become "Switzerland" in the final cubes and are not part of this sorting anymore as they will be organized hierarchically. For the rest of the concepts, the remarks are valid. |
@ptbrowne when can you tackle this issue? |
Closed by #821 |
Is your feature request related to a problem? Please describe.
While ordering works for ordinal dimensions it doesn't for nominal dimensions i.e.
Cantons
...
Production regions
...
Describe the solution you'd like
Have a way to order nominal dimensions by default order
@l00mi your opinion on which concepts to use for @ptbrowne ? you mentioned you prefer schema:identifier for nominal cases...
The text was updated successfully, but these errors were encountered: