-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Welcome to the SBOL Validator wiki!
The SBOL Validator is basically a PHP wrapper around libSBOLj. This guide therefore pertains to the PHP component of the two and any questions or issues about the actual validation processes should be directed to the team working on libSBOLj.
At the core of the Validator is the ValidationRequest. The ValidationRequest contains the various Options components, as well as direction the assembly of their various command fragments into the final command to be executed on the system shell. It also contains the ValidationResult object, which manages parsing the output of the command line to a format which is suitable for display in a webpage as well as output to JSON for the API.
The APIRequest is an extension of the ValidationRequest that handles specific options which are not universal to all validation requests.
The endpoint.php
and validate.php
files are used to perform some basic validation, as well as create the APIRequest and ValidationRequest objects, respectively. They also handle file upload to a specified location on the hosting server, the uploads
directory, specifically. Once they have initialized and set all options for the validation, they call an execute
method, which will run the validation command on the sever and fill the ValidationResult object. They then return the ValidationResult object to either the API user or pass it to the results page to be populated.
Pages are templated using PHPTAL for the web validator.