Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the source code of this file.
Functions | |
const FD_UTIL_PREFIX char *const FD_PROFILE_S | FD_UTIL_VAL ("profile") |
const FD_UTIL_PREFIX char *const FD_PROFILE_DATA_PACKAGE_S | FD_UTIL_VAL ("data-package") |
const FD_UTIL_PREFIX char *const FD_PROFILE_TABULAR_PACKAGE_S | FD_UTIL_VAL ("tabular-data-package") |
const FD_UTIL_PREFIX char *const FD_PROFILE_TABULAR_RESOURCE_S | FD_UTIL_VAL ("tabular-data-resource") |
const FD_UTIL_PREFIX char *const FD_PROFILE_PROPERTY_ORDER_S | FD_UTIL_VAL ("propertyOrder") |
const FD_UTIL_PREFIX char *const FD_NAME_S | FD_UTIL_VAL ("name") |
const FD_UTIL_PREFIX char *const FD_TITLE_S | FD_UTIL_VAL ("title") |
const FD_UTIL_PREFIX char *const FD_ID_S | FD_UTIL_VAL ("id") |
const FD_UTIL_PREFIX char *const FD_LICENSES_S | FD_UTIL_VAL ("licenses") |
const FD_UTIL_PREFIX char *const FD_DESCRIPTION_S | FD_UTIL_VAL ("description") |
const FD_UTIL_PREFIX char *const FD_URL_S | FD_UTIL_VAL ("homepage") |
const FD_UTIL_PREFIX char *const FD_RESOURCES_S | FD_UTIL_VAL ("resources") |
const FD_UTIL_PREFIX char *const FD_SCHEMA_S | FD_UTIL_VAL ("schema") |
const FD_UTIL_PREFIX char *const FD_TABLE_FIELDS_S | FD_UTIL_VAL ("fields") |
const FD_UTIL_PREFIX char *const FD_DATA_S | FD_UTIL_VAL ("data") |
const FD_UTIL_PREFIX char *const FD_ITEMS_S | FD_UTIL_VAL ("items") |
const FD_UTIL_PREFIX char *const FD_REF_S | FD_UTIL_VAL ("$ref") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_TYPE | FD_UTIL_VAL ("type") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_FORMAT | FD_UTIL_VAL ("format") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINTS | FD_UTIL_VAL ("constraints") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_RDF_TYPE | FD_UTIL_VAL ("rdfType") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_NULL_VALUE | FD_UTIL_VAL ("missingValues") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINT_REQUIRED | FD_UTIL_VAL ("required") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINT_UNIQUE | FD_UTIL_VAL ("unique") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINT_MIN_LENGTH | FD_UTIL_VAL ("minLength") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINT_MAX_LENGTH | FD_UTIL_VAL ("maxLength") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINT_MIN | FD_UTIL_VAL ("minimum") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINT_MAX | FD_UTIL_VAL ("maximum") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINT_PATTERN | FD_UTIL_VAL ("pattern") |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_CONSTRAINT_ENUM | FD_UTIL_VAL ("enum") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT | FD_UTIL_VAL ("dialect") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_DELIMITER | FD_UTIL_VAL ("delimiter") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_LINE_TERMINATOR | FD_UTIL_VAL ("lineTerminator") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_QUOTE_CHAR | FD_UTIL_VAL ("quoteChar") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_DOUBLE_QUOTE | FD_UTIL_VAL ("doubleQuote") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_ESCAPE_CHAR | FD_UTIL_VAL ("escapeChar") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_NULL_VALUE | FD_UTIL_VAL ("nullSequence") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_SKIP_INITIAL_SPACE | FD_UTIL_VAL ("skipInitialSpace") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_HEADER_ROW | FD_UTIL_VAL ("header") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_COMMENT_CHAR | FD_UTIL_VAL ("commentChar") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_CASE_SENSITIVE_HEADER | FD_UTIL_VAL ("caseSensitiveHeader") |
const FD_UTIL_PREFIX char *FD_CSV_DIALECT_VERSION | FD_UTIL_VAL ("csvddfVersion") |
const FD_UTIL_PREFIX char *FD_TYPE_STRING | FD_UTIL_VAL ("string") |
The field contains strings, that is, sequences of characters. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_STRING_FORMAT_DEFAULT | FD_UTIL_VAL ("default") |
Any valid string. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_STRING_FORMAT_EMAIL | FD_UTIL_VAL ("email") |
A valid email address. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_STRING_FORMAT_URI | FD_UTIL_VAL ("uri") |
A valid URI. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_STRING_FORMAT_BINARY | FD_UTIL_VAL ("binary") |
A base64 encoded string representing binary data. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_STRING_FORMAT_UUID | FD_UTIL_VAL ("uuid") |
A string that is a uuid. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_NUMBER | FD_UTIL_VAL ("number") |
The field contains numbers of any kind including decimals. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_INTEGER | FD_UTIL_VAL ("integer") |
The field contains integers - that is whole numbers. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_BOOLEAN | FD_UTIL_VAL ("boolean") |
The field contains boolean (true/false) data. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_DATE | FD_UTIL_VAL ("date") |
A date without a time. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_TIME | FD_UTIL_VAL ("time") |
A time without a date. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_DATETIME | FD_UTIL_VAL ("datetime") |
A date with a time. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_GEOJSON | FD_UTIL_VAL ("geojson") |
The field contains a JSON object according to GeoJSON or TopoJSON spec. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_JSON_OBJECT | FD_UTIL_VAL ("object") |
The field contains JSON objects. More... | |
const FD_UTIL_PREFIX char *FD_TYPE_JSON_ARRAY | FD_UTIL_VAL ("array") |
The field contains JSON arrays. More... | |
GRASSROOTS_FRICTIONLESS_DATA_API json_t * | AddTableField (json_t *fields_p, const char *name_s, const char *title_s, const char *type_s, const char *format_s, const char *description_s, const char *rdf_type_s) |
GRASSROOTS_FRICTIONLESS_DATA_API json_t * | AddIntegerField (json_t *fields_p, const char *name_s, const char *title_s, const char *format_s, const char *description_s, const char *rdf_type_s, const int *min_value_p) |
GRASSROOTS_FRICTIONLESS_DATA_API json_t * | AddNumberField (json_t *fields_p, const char *name_s, const char *title_s, const char *format_s, const char *description_s, const char *rdf_type_s, const double *min_value_p) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetFDTableReal (json_t *row_p, const char *const key_s, const double64 *value_p, const char *const null_sequence_s) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetFDTableString (json_t *row_p, const char *const key_s, const char *const value_s, const char *const null_sequence_s) |
GRASSROOTS_FRICTIONLESS_DATA_API json_t * | GetCSVDialect (const char *delimter_s, const char *line_terminator_s, const char *comment_char_p, const char *escape_char_p, const char *null_seqeunce_s, const bool has_header_row_flag, const bool case_sensitive_header_flag, const bool double_quote_flag, const bool skip_initial_space_flag, const char *quote_p, const uint32 major_version, const uint32 minor_version) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetTableFieldRequired (json_t *field_p) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetTableFieldUnique (json_t *field_p) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetTableFieldMinimumInteger (json_t *field_p, const json_int_t value) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetTableFieldMinimumNumber (json_t *field_p, const double value) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetTableFieldMaximumInteger (json_t *field_p, const json_int_t value) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetTableFieldMaximumNumber (json_t *field_p, const double value) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetTableFieldPattern (json_t *field_p, const char *const pattern_s) |
GRASSROOTS_FRICTIONLESS_DATA_API bool | SetTableFieldEnum (json_t *field_p, json_t *enum_p) |
GRASSROOTS_FRICTIONLESS_DATA_API json_t * | GetDataPackage (const char *name_s, const char *description_s, const char *id_s) |
const GRASSROOTS_FRICTIONLESS_DATA_API char * | GetRefSchemaURI (const json_t *field_p) |
const FD_UTIL_PREFIX char* const FD_PROFILE_S FD_UTIL_VAL | ( | "profile" | ) |
const FD_UTIL_PREFIX char* const FD_PROFILE_DATA_PACKAGE_S FD_UTIL_VAL | ( | "data-package" | ) |
const FD_UTIL_PREFIX char* const FD_PROFILE_TABULAR_PACKAGE_S FD_UTIL_VAL | ( | "tabular-data-package" | ) |
const FD_UTIL_PREFIX char* const FD_PROFILE_TABULAR_RESOURCE_S FD_UTIL_VAL | ( | "tabular-data-resource" | ) |
const FD_UTIL_PREFIX char* const FD_PROFILE_PROPERTY_ORDER_S FD_UTIL_VAL | ( | "propertyOrder" | ) |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_NAME FD_UTIL_VAL | ( | "name" | ) |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_TITLE FD_UTIL_VAL | ( | "title" | ) |
const FD_UTIL_PREFIX char* const FD_ID_S FD_UTIL_VAL | ( | "id" | ) |
const FD_UTIL_PREFIX char* const FD_LICENSES_S FD_UTIL_VAL | ( | "licenses" | ) |
const FD_UTIL_PREFIX char *FD_TABLE_FIELD_DESCRIPTION FD_UTIL_VAL | ( | "description" | ) |
const FD_UTIL_PREFIX char* const FD_URL_S FD_UTIL_VAL | ( | "homepage" | ) |
const FD_UTIL_PREFIX char* const FD_RESOURCES_S FD_UTIL_VAL | ( | "resources" | ) |
const FD_UTIL_PREFIX char* const FD_SCHEMA_S FD_UTIL_VAL | ( | "schema" | ) |
const FD_UTIL_PREFIX char* const FD_TABLE_FIELDS_S FD_UTIL_VAL | ( | "fields" | ) |
const FD_UTIL_PREFIX char* const FD_DATA_S FD_UTIL_VAL | ( | "data" | ) |
const FD_UTIL_PREFIX char* const FD_ITEMS_S FD_UTIL_VAL | ( | "items" | ) |
const FD_UTIL_PREFIX char* const FD_REF_S FD_UTIL_VAL | ( | "$ref" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_TYPE FD_UTIL_VAL | ( | "type" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_FORMAT FD_UTIL_VAL | ( | "format" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINTS FD_UTIL_VAL | ( | "constraints" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_RDF_TYPE FD_UTIL_VAL | ( | "rdfType" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_NULL_VALUE FD_UTIL_VAL | ( | "missingValues" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINT_REQUIRED FD_UTIL_VAL | ( | "required" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINT_UNIQUE FD_UTIL_VAL | ( | "unique" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINT_MIN_LENGTH FD_UTIL_VAL | ( | "minLength" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINT_MAX_LENGTH FD_UTIL_VAL | ( | "maxLength" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINT_MIN FD_UTIL_VAL | ( | "minimum" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINT_MAX FD_UTIL_VAL | ( | "maximum" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINT_PATTERN FD_UTIL_VAL | ( | "pattern" | ) |
const FD_UTIL_PREFIX char* FD_TABLE_FIELD_CONSTRAINT_ENUM FD_UTIL_VAL | ( | "enum" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT FD_UTIL_VAL | ( | "dialect" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_DELIMITER FD_UTIL_VAL | ( | "delimiter" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_LINE_TERMINATOR FD_UTIL_VAL | ( | "lineTerminator" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_QUOTE_CHAR FD_UTIL_VAL | ( | "quoteChar" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_DOUBLE_QUOTE FD_UTIL_VAL | ( | "doubleQuote" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_ESCAPE_CHAR FD_UTIL_VAL | ( | "escapeChar" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_NULL_VALUE FD_UTIL_VAL | ( | "nullSequence" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_SKIP_INITIAL_SPACE FD_UTIL_VAL | ( | "skipInitialSpace" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_HEADER_ROW FD_UTIL_VAL | ( | "header" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_COMMENT_CHAR FD_UTIL_VAL | ( | "commentChar" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_CASE_SENSITIVE_HEADER FD_UTIL_VAL | ( | "caseSensitiveHeader" | ) |
const FD_UTIL_PREFIX char* FD_CSV_DIALECT_VERSION FD_UTIL_VAL | ( | "csvddfVersion" | ) |
const FD_UTIL_PREFIX char* FD_TYPE_STRING FD_UTIL_VAL | ( | "string" | ) |
The field contains strings, that is, sequences of characters.
const FD_UTIL_PREFIX char* FD_TYPE_STRING_FORMAT_DEFAULT FD_UTIL_VAL | ( | "default" | ) |
Any valid string.
const FD_UTIL_PREFIX char* FD_TYPE_STRING_FORMAT_EMAIL FD_UTIL_VAL | ( | "email" | ) |
A valid email address.
const FD_UTIL_PREFIX char* FD_TYPE_STRING_FORMAT_URI FD_UTIL_VAL | ( | "uri" | ) |
A valid URI.
const FD_UTIL_PREFIX char* FD_TYPE_STRING_FORMAT_BINARY FD_UTIL_VAL | ( | "binary" | ) |
A base64 encoded string representing binary data.
const FD_UTIL_PREFIX char* FD_TYPE_STRING_FORMAT_UUID FD_UTIL_VAL | ( | "uuid" | ) |
A string that is a uuid.
const FD_UTIL_PREFIX char* FD_TYPE_NUMBER FD_UTIL_VAL | ( | "number" | ) |
The field contains numbers of any kind including decimals.
const FD_UTIL_PREFIX char* FD_TYPE_INTEGER FD_UTIL_VAL | ( | "integer" | ) |
The field contains integers - that is whole numbers.
Integer values are indicated in the standard way for any valid integer.
const FD_UTIL_PREFIX char* FD_TYPE_BOOLEAN FD_UTIL_VAL | ( | "boolean" | ) |
The field contains boolean (true/false) data.
const FD_UTIL_PREFIX char* FD_TYPE_DATE FD_UTIL_VAL | ( | "date" | ) |
A date without a time.
const FD_UTIL_PREFIX char* FD_TYPE_TIME FD_UTIL_VAL | ( | "time" | ) |
A time without a date.
const FD_UTIL_PREFIX char* FD_TYPE_DATETIME FD_UTIL_VAL | ( | "datetime" | ) |
A date with a time.
const FD_UTIL_PREFIX char* FD_TYPE_GEOJSON FD_UTIL_VAL | ( | "geojson" | ) |
The field contains a JSON object according to GeoJSON or TopoJSON spec.
const FD_UTIL_PREFIX char* FD_TYPE_JSON_OBJECT FD_UTIL_VAL | ( | "object" | ) |
The field contains JSON objects.
const FD_UTIL_PREFIX char* FD_TYPE_JSON_ARRAY FD_UTIL_VAL | ( | "array" | ) |
The field contains JSON arrays.
GRASSROOTS_FRICTIONLESS_DATA_API json_t* AddTableField | ( | json_t * | fields_p, |
const char * | name_s, | ||
const char * | title_s, | ||
const char * | type_s, | ||
const char * | format_s, | ||
const char * | description_s, | ||
const char * | rdf_type_s | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API json_t* AddIntegerField | ( | json_t * | fields_p, |
const char * | name_s, | ||
const char * | title_s, | ||
const char * | format_s, | ||
const char * | description_s, | ||
const char * | rdf_type_s, | ||
const int * | min_value_p | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API json_t* AddNumberField | ( | json_t * | fields_p, |
const char * | name_s, | ||
const char * | title_s, | ||
const char * | format_s, | ||
const char * | description_s, | ||
const char * | rdf_type_s, | ||
const double * | min_value_p | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetFDTableReal | ( | json_t * | row_p, |
const char *const | key_s, | ||
const double64 * | value_p, | ||
const char *const | null_sequence_s | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetFDTableString | ( | json_t * | row_p, |
const char *const | key_s, | ||
const char *const | value_s, | ||
const char *const | null_sequence_s | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API json_t* GetCSVDialect | ( | const char * | delimter_s, |
const char * | line_terminator_s, | ||
const char * | comment_char_p, | ||
const char * | escape_char_p, | ||
const char * | null_seqeunce_s, | ||
const bool | has_header_row_flag, | ||
const bool | case_sensitive_header_flag, | ||
const bool | double_quote_flag, | ||
const bool | skip_initial_space_flag, | ||
const char * | quote_p, | ||
const uint32 | major_version, | ||
const uint32 | minor_version | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetTableFieldRequired | ( | json_t * | field_p | ) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetTableFieldUnique | ( | json_t * | field_p | ) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetTableFieldMinimumInteger | ( | json_t * | field_p, |
const json_int_t | value | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetTableFieldMinimumNumber | ( | json_t * | field_p, |
const double | value | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetTableFieldMaximumInteger | ( | json_t * | field_p, |
const json_int_t | value | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetTableFieldMaximumNumber | ( | json_t * | field_p, |
const double | value | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetTableFieldPattern | ( | json_t * | field_p, |
const char *const | pattern_s | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API bool SetTableFieldEnum | ( | json_t * | field_p, |
json_t * | enum_p | ||
) |
GRASSROOTS_FRICTIONLESS_DATA_API json_t* GetDataPackage | ( | const char * | name_s, |
const char * | description_s, | ||
const char * | id_s | ||
) |
const GRASSROOTS_FRICTIONLESS_DATA_API char* GetRefSchemaURI | ( | const json_t * | field_p | ) |