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

Rendering widgets for different scalar value types #91

Open
2 tasks done
dwagmuse opened this issue Oct 2, 2024 · 0 comments
Open
2 tasks done

Rendering widgets for different scalar value types #91

dwagmuse opened this issue Oct 2, 2024 · 0 comments
Labels
feature New feature or request

Comments

@dwagmuse
Copy link

dwagmuse commented Oct 2, 2024

Checklist before submitting a feature request

  • I have reviewed CONTRIBUTING.md document
  • I have done a quick search on the issue tracker to check if the feature request is not redundant

Is your feature request related to a problem? If yes, describe the problem

My model contains scalar properties of things I want to be able to project into views in Vision. Some values are string types and then there is no problem just directly printing the string value. However, some values are expressed in boolean, date, or numeric types and in those cases we need a way to transform between the internal representation form and a rendered UI form. For example, I would like to see boolean values rendered as a checkbox. Similarly, numbers may need to be formatted for length/decimals, etc., and dates may need to be rendered into locale-specific form.
Many web-based UI frameworks provide relevant widgets to do this.

The problem with boolean values is that a SPARQL query returns the value as:

true^^http://www.w3c.org/2001/XMLSchema#boolean

and I just want to

Describe the desired feature

We need a widget for boolean data values expressed in XMLSchema#boolean

I should be able to configure the viewpoint to invoke this widget to render a given column value that will be returning a boolean value. The widget should be able to perform bidirectional transformation of values. So, transform the typed string value returned from SPARQL into a checkbox (true=checked) and return the checkbox value back into the string necessary to update the value upon edit.

May also need similar widgets for other numeric types in XMLSchema, XMLSchema#dateTime and XMLSchema#anyURI but those can wait.

Additional context

[Any additional context]

@dwagmuse dwagmuse added the feature New feature or request label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant