SolidOS / SolidOS/solid-ui

Add support for adding an rdf-type to data that is submitted in an ui:form

Open
#509 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Form Language
Dominant language
TypeScript
Stars
153
Forks
46
Avg merge
1d 8h
Merged PRs (30d)
7

Description

Use case

I would like to present my users a "review" form to produce data like:

<#Example1> a <https://schema.org/Review>;
       <https://schema.org/abstract> "The service was fantastic".

In the form they just should be able to fill in the abstract and not be asked to select from a Choice of rdf-types they want to create.

Missing

In the current UI forms I only am permitted to set ui:property-s , which can't be used to set an rdf-type.

@timea-solid suggested to use a ui:Choice, but that adds an extra menu item in the display which the user is forced to set to a particular value, and creates the possibility to add many resources of that type.

Suggestion

A suggestion by @timbl : "add a new type of field which is a constant field, along with the name field say “also add ?x a ExampleObject whenever you set this name”.. have to make sure it gets removed if the name goes too"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the linked src/editDataPage/helloWorldForm.ttl example and the existing ui:form, ui:property, and ui:Choice concepts described in the issue. Define how a constant field should add the requested rdf:type without a user choice, how it behaves when the name is removed, and how the form should represent the completed review data.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.