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

Enhance UX of adding new predicate #15

Open
edmondchuc opened this issue Jul 25, 2024 · 1 comment
Open

Enhance UX of adding new predicate #15

edmondchuc opened this issue Jul 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@edmondchuc
Copy link
Contributor

As mentioned in #3, an enhancement will be to allow for the user to select well-known predicates using an autocomplete select field. The source of this can either be from a local source or from a well-known online source.

Sources should implement full-text search, similar to a prefix lookup service. Prefixes and labels should be indexed to allow for users to enter values such as:

  • skos:prefLabel --> http://www.w3.org/2004/02/skos/core#prefLabel
  • prefLabel --> http://www.w3.org/2004/02/skos/core#prefLabel
  • preferred label --> http://www.w3.org/2004/02/skos/core#prefLabel

This implementation may be applicable to other similar scenarios such as adding new object values that are IRIs using the dash:InstancesSelectEditor.

@edmondchuc edmondchuc added the enhancement New feature or request label Jul 25, 2024
@edmondchuc
Copy link
Contributor Author

The SHACL UI component should allow for the source to be configurable as a URL.

We will need to define an API search + response schema.

  • Request
    • query parameter q - user search term
    • Example: skos:prefLabel
  • Response
    • JSON response
      • {
            "value": "http://www.w3.org/2004/02/skos/core#prefLabel"
        }

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

No branches or pull requests

1 participant