GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SolidLabResearch/FormViewer: A form viewer app based on rdf-form

BranchesTags
Open more actions menu

Latest commit

 

History

90 Commits
90 Commits

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
scripts
scripts
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CNAME
CNAME
 
 
README.md
README.md
 
 
gh-pages.js
gh-pages.js
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

Form Viewer

A Form Viewer app based on Daniël Beeke's rdf-form.

This is a demonstrator for the Solid basic form builder challenge:

  • Create a Form Builder web app to generate a Form Template
    • This is a sub challenge. See also:
      • SolidLabResearch/Challenges#64
      • https://github.com/smessie/FormGenerator
  • Create a Form Viewer web app to that creates a simple web form using a Form Template
  • Make Form Template support for standard SHACL or ShEx shape expressions
  • The Form Template should be available on a public URL and loaded into the application at run time
  • Make the application to post data to an LDP resource
  • Make the application to post data to a Solid pod
  • Make the app store the provenance information of the results
  • The location of the LDP resource may be provided via the Form Template or be set at run time
  • Create a Result Viewer app that displays the results in a nice format (using the provenance information)
    • See https://github.com/phochste/CVViewer for an example app
  • Use OpenURL as URL specification

The Form Viewer can create a Web Form when a template URL is provided.

Demonstrator

The Form Template

https://patrickhochstenbach.net/apps/formviewer/book-review.form.ttl

The Form Viewer App

https://patrickhochstenbach.net/apps/formviewer/?rft.form=https://formviewer.patrickhochstenbach.net/book-review.form.ttl

  • Fill out a Web profile as actor and target
  • Fill out a URL as subject
  • Type any text in content
  • Send will post the data to a http container at https://httpbin.org

Usage

https://patrickhochstenbach.net/apps/formviewer/?PARAMS

Where PARAMS :
 
  ctx_ver=Z39.88-2004             (optional protocol version)
  rft_val_fmt=http://formviewer.patrickhochstenbach.net (optional parameter definition)
  rft.form=FORM-TTL-URL 
  rft.data=DATA-TEMPLATE-TTL-URL  (optional)
  rft.hydra=HYDRA-TTL-URL         (optional)

E.g.

https://patrickhochstenbach.net/apps/formviewer/?rft.form=https://patrickhochstenbach.net/apps/formviewer/book-review.form.ttl&rft.data=https://patrickhochstenbach.net/apps/formviewer/book-review.ttl

The hydra-ttl-url is a Turtle resource to provide information where the form results should be submitted. An example:

@prefix hydra: <http://www.w3.org/ns/hydra/core#> .

[]  hydra:endpoint <https://hochstenbach.inrupt.net/inbox> ;
   hydra:supportedClass [
       a hydra:Class ;
       hydra:method "POST"
   ] .

Hydra parameters:

  • hydra:endpoint : the web resource to send the RDF output to
  • hydra:method : the HTTP verb to use
  • hydra:next : (optional) the web resource to load after a successful RDF submission

Rationale

This app provides a demonstration for decentralized form handling: how to define a form, what data to put in the form, where the form needs to be stored is decoupled. Even the application you use to render the form and submit the results is decoupled from a specific server/website implementation.

  • Alice could publish a book review form on her website
  • Bob could use a FormViewer application to post book review resources to his own Solid Pod
  • Bob could invite Charly to edit the resource
  • Charly could use his own FormViewer to update Bob's book review with Alice's form definition
  • Charly could submit the results also to his own Solid Pod by creating a hydra resource

More examples

  • Peer Review Form
  • Book Review Form
  • WYSIWIG Form
  • Recipe Form
  • Confirm Form
  • Bibliography Form
  • Doodle Form
  • Todo Form
  • CV Form

About

A form viewer app based on rdf-form

formviewer.patrickhochstenbach.net/#https://phochste.github.io/FormViewer/book-review.form.ttl

Topics

formlinked-datasolid

Resources

Readme
Activity
Custom properties

Stars

8 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.