Provided and used json schemas

The script pydabu uses json schemas which are displayed in the next sections. You can find the schemas in the directory of the python module dabu, e. g.:

$ python3 -c "import dabu,os;print(os.path.join(dabu.__path__[0], 'schemas'))"
/home/mohr/lib/python/dabu/schemas

Or you can ask pydabu listschemas, e. g.:

$ pydabu listschemas
/home/mohr/lib/python/dabu/schemas/dabu.schema
/home/mohr/lib/python/dabu/schemas/dabu_requires.schema
/home/mohr/lib/python/dabu/schemas/analyse_data_structure_output.schema

analyse_data_structure_output.schema

The command pydabu analyse_data_structure leeds to an output holding the following json schema:

type object
properties
  • readme
type string
  • license
type string
  • manifest
oneOf type null
type string
  • data integrity control
oneOf type string
enum repository, checksums
type array
items type string
enum repository, checksums
  • repository
oneOf type null
type string
  • checksums
oneOf type null
type string
  • data
type array
items #/definitions/file
uniqueItems True
dependencies
  • repository
data integrity control
  • checksums
data integrity control
definitions
  • file
type string

dabu.schema

The command pydabu check_file_format leeds to an output holding the following json schema. The output file .dabu.json of pydabu create_data_bubble holds also this json schema:

type object
properties
  • readme
type string
  • license
type string
  • manifest
oneOf type null
type string
  • data integrity control
oneOf type string
enum repository, checksums
type array
items type string
enum repository, checksums
  • repository
oneOf type null
type string
  • checksum file
oneOf type null
type string
  • data
type array
items #/definitions/file
uniqueItems True
definitions
  • checksum
type object
properties
  • hash
type string
  • algorithm
type string
enum md5, sha1, sha224, sha256, sha384, sha512
  • encoding
type string
enum hex, base16, Base16, base32, Base32, base64, Base64
  • file
type object
properties
  • name
type string
  • file_extension
oneOf type null
type string
  • checksum
#/definitions/checksum
  • nasa ames format check
type object
properties
  • pydabu (nasa ames format check)
type object
properties
  • created
type number
  • error
type integer
minimum 0
  • warning
type integer
minimum 0
  • log
type array
items type string
  • NLHEAD
type integer
  • FFI
type integer
  • ONAME
type string
  • ORG
type string
  • SNAME
type string
  • MNAME
type string
  • NVOL
type integer
  • IVOL
type integer
  • DATE
type string
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
  • RDATE
type string
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
  • netcdf check
type object
properties
  • error
type number
maximum 0
minimum 0
  • log
type array
items type string
  • pydabu (netcdf check)
type object
properties
  • created
type number
minimum 1612471455.3552904
  • file_format
type string
  • data_model
type string
enum NETCDF3_CLASSIC, NETCDF4, NETCDF4_CLASSIC, ETCDF3_64BIT_OFFSET, NETCDF3_64BIT_DATA
  • disk_format
type string
  • CF Checker Version 4.0.0
type object
properties
  • created
type number
  • error
type integer
  • warning
type integer

dabu_requires.schema

The following json schema is used in pydabu create_data_bubble as .dabu.schema (bold attributes are required):

type object
properties
  • readme
type string
  • license
type string
  • manifest
oneOf type null
type string
  • data integrity control
oneOf type string
enum repository, checksums
type array
items type string
enum repository, checksums
  • repository
oneOf type null
type string
  • checksum file
oneOf type null
type string
  • data
type array
items #/definitions/file
uniqueItems True
dependencies
  • repository
data integrity control
  • checksums
data integrity control
definitions
  • checksum
type object
properties
  • hash
type string
  • algorithm
type string
enum sha256, sha512
  • encoding
type string
enum hex, base16, Base16, base32, Base32, base64, Base64
  • file
type object
properties
  • name
type string
  • file_extension
oneOf type null
type string
  • checksum
#/definitions/checksum
  • nasa ames format check
type object
properties
  • pydabu (nasa ames format check)
type object
properties
  • created
type number
minimum 1612792668.8894613
  • error
type integer
maximum 0
minimum 0
  • warning
type integer
minimum 0
  • log
type array
items type string
  • NLHEAD
type integer
  • FFI
type integer
  • ONAME
type string
  • ORG
type string
  • SNAME
type string
  • MNAME
type string
  • NVOL
type integer
  • IVOL
type integer
  • DATE
type string
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
  • RDATE
type string
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
  • netcdf check
type object
properties
  • error
type number
maximum 0
minimum 0
  • log
type array
items type string
  • pydabu (netcdf check)
type object
properties
  • created
type number
minimum 1612471455.3552904
  • file_format
type string
  • data_model
type string
enum NETCDF3_CLASSIC, NETCDF4, NETCDF4_CLASSIC, ETCDF3_64BIT_OFFSET, NETCDF3_64BIT_DATA
  • disk_format
type string
  • CF Checker Version 4.0.0
type object
properties
  • created
type number
minimum 1612373545.1527348
  • error
type integer
maximum 0
minimum 0
  • warning
type integer
minimum 0