JSON Schemata for JSON objects exchanged by LAPPS web services
These schema use the LAPPS Alternate Syntax (LAX), a simplified syntax for JSON schema, and must be compiled with the schema compiler.
Schemata may also be compiled with the online JSON compiler service.
curl -H "Content-type: text/plain" --data-binary @lif.schema https://api.lappsgrid.org/json-compilerNote When using curl to POST the schema file the --data-binary option MUST be used as -d or --data strips newline characters.
- data.schema
a LAPPS Data object. - lif.schema
the LAPPS Interchange Format for objects exchanged by LAPPS web services. Available on the vocabulary website at http://vocab.lappsgrid.org/schema/lif-schema. - metadata.schema
the metadata returned by LAPPS SOAP services. - datasource.schema
the metdadata returned by LAPPS DataSource services.
Use the Makefile to build one or more of the JSON schema files. The output files will be written to the schemata directory.
- all
builds all the JSON Schema files. This is the default goal. - lif
data
metadata
datasource
builds one of the schema files - upload
uploads the generated schema files to the http://vocab.lappsgrid.org web site. - clean
deletes all build artifacts
$> make clean
$> make
S> make upload
NOTE
For the make upload goal to succeed the $USER must have an account on the anc.org server with their ssh key installed to allow a passwordless SSH connection.
Use the compile script to compile a single schema files. The compile script will use the https://api.lappsgrid.org/json-compile service if the jsonc command can not be found on the $PATH.
$> ./compile lif.schema