Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document describes how to implement custom forms for use in Vitro/VIVO using what we call N3 editing or the N3 editing system.

Overview

The Vitro/VIVO system comes with basic RDF editing capabilities to add object and datatype statements to individuals.  Frequently, people deploying Vitro/VIVO desire a web form which allows editing of multiple properties and individuals on the same form.  A contact information form would be an example of a feature that would be implemented with a custom form in Vitro/VIVO.
 

...

The main concept of custom forms is that the values submitted by the HTTP request will be substituted into placeholders in RDF N3 strings.  These strings are then parsed to Jena RDF Model objects and that RDF is added to the system.  For the modification of an existing value, a second set of strings is created and parsed which become the RDF statements to remove for the edit.  This substitution is why the editing system is frequently called “N3 Editing”.  In practice, the N3 strings use only the turtle subset of the N3 syntax.

Description of Steps of an Edit

Step 1. Getting the link to the edit  

...