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.
|
#include <time.h>
#include "dfw_field_trial_service_data.h"
#include "dfw_field_trial_service_library.h"
#include "instrument.h"
#include "typedefs.h"
#include "jansson.h"
#include "schema_term.h"
#include "schema_keys.h"
#include "crop_ontology_tool.h"
Go to the source code of this file.
Data Structures | |
struct | MeasuredVariable |
struct | MeasuredVariableNode |
Functions | |
const MEASURED_VARIABLE_PREFIX char *MV_TRAIT_S | MEASURED_VARIABLE_VAL ("trait") |
const MEASURED_VARIABLE_PREFIX char *MV_MEASUREMENT_S | MEASURED_VARIABLE_VAL ("measurement") |
const MEASURED_VARIABLE_PREFIX char *MV_UNIT_S | MEASURED_VARIABLE_VAL ("unit") |
const MEASURED_VARIABLE_PREFIX char *MV_VARIABLE_S | MEASURED_VARIABLE_VAL ("variable") |
const MEASURED_VARIABLE_PREFIX char *MV_FORM_S | MEASURED_VARIABLE_VAL ("form") |
const MEASURED_VARIABLE_PREFIX char *MV_VALUE_S | MEASURED_VARIABLE_VAL ("value") |
const MEASURED_VARIABLE_PREFIX char *MV_INTERNAL_NAME_S | MEASURED_VARIABLE_VAL ("internal_name") |
const MEASURED_VARIABLE_PREFIX char *MV_SCALE_S | MEASURED_VARIABLE_VAL ("scale") |
const MEASURED_VARIABLE_PREFIX char *MV_NAME_S | MEASURED_VARIABLE_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "name") |
MeasuredVariable * | AllocateMeasuredVariable (bson_oid_t *id_p, SchemaTerm *trait_p, SchemaTerm *measurement_p, SchemaTerm *unit_p, SchemaTerm *variable_p, const ScaleClass *class_p) |
void | FreeMeasuredVariable (MeasuredVariable *treatment_p) |
json_t * | GetMeasuredVariableAsJSON (const MeasuredVariable *treatment_p, const ViewFormat format) |
MeasuredVariable * | GetMeasuredVariableFromJSON (const json_t *phenotype_json_p, const FieldTrialServiceData *data_p) |
OperationStatus | SaveMeasuredVariable (MeasuredVariable *treatment_p, ServiceJob *job_p, const FieldTrialServiceData *data_p) |
MeasuredVariable * | GetMeasuredVariableById (const bson_oid_t *id_p, const FieldTrialServiceData *data_p) |
MeasuredVariable * | GetMeasuredVariableByName (const char *const name_s, const FieldTrialServiceData *data_p) |
MeasuredVariable * | GetMeasuredVariableByIdString (const char *id_s, const FieldTrialServiceData *data_p) |
MeasuredVariable * | GetMeasuredVariableBySchemaURLs (const char *trait_url_s, const char *method_url_s, const char *unit_url_s, const FieldTrialServiceData *data_p) |
const char * | GetMeasuredVariableName (const MeasuredVariable *mv_p) |
const char * | GetMeasuredVariableURL (const MeasuredVariable *mv_p) |
MeasuredVariableNode * | AllocateMeasuredVariableNode (MeasuredVariable *variable_p, MEM_FLAG mv_mem) |
void | FreeMeasuredVariableNode (ListItem *node_p) |
const struct ScaleClass * | GetMeasuredVariableScaleClass (const MeasuredVariable *const variable_p) |
const MEASURED_VARIABLE_PREFIX char* MV_TRAIT_S MEASURED_VARIABLE_VAL | ( | "trait" | ) |
const MEASURED_VARIABLE_PREFIX char* MV_MEASUREMENT_S MEASURED_VARIABLE_VAL | ( | "measurement" | ) |
const MEASURED_VARIABLE_PREFIX char* MV_UNIT_S MEASURED_VARIABLE_VAL | ( | "unit" | ) |
const MEASURED_VARIABLE_PREFIX char* MV_VARIABLE_S MEASURED_VARIABLE_VAL | ( | "variable" | ) |
const MEASURED_VARIABLE_PREFIX char* MV_FORM_S MEASURED_VARIABLE_VAL | ( | "form" | ) |
const MEASURED_VARIABLE_PREFIX char* MV_VALUE_S MEASURED_VARIABLE_VAL | ( | "value" | ) |
const MEASURED_VARIABLE_PREFIX char* MV_INTERNAL_NAME_S MEASURED_VARIABLE_VAL | ( | "internal_name" | ) |
const MEASURED_VARIABLE_PREFIX char* MV_SCALE_S MEASURED_VARIABLE_VAL | ( | "scale" | ) |
const MEASURED_VARIABLE_PREFIX char* MV_NAME_S MEASURED_VARIABLE_CONCAT_VAL | ( | CONTEXT_PREFIX_SCHEMA_ORG_S | , |
"name" | |||
) |
MeasuredVariable* AllocateMeasuredVariable | ( | bson_oid_t * | id_p, |
SchemaTerm * | trait_p, | ||
SchemaTerm * | measurement_p, | ||
SchemaTerm * | unit_p, | ||
SchemaTerm * | variable_p, | ||
const ScaleClass * | class_p | ||
) |
void FreeMeasuredVariable | ( | MeasuredVariable * | treatment_p | ) |
json_t* GetMeasuredVariableAsJSON | ( | const MeasuredVariable * | treatment_p, |
const ViewFormat | format | ||
) |
MeasuredVariable* GetMeasuredVariableFromJSON | ( | const json_t * | phenotype_json_p, |
const FieldTrialServiceData * | data_p | ||
) |
OperationStatus SaveMeasuredVariable | ( | MeasuredVariable * | treatment_p, |
ServiceJob * | job_p, | ||
const FieldTrialServiceData * | data_p | ||
) |
MeasuredVariable* GetMeasuredVariableById | ( | const bson_oid_t * | id_p, |
const FieldTrialServiceData * | data_p | ||
) |
MeasuredVariable* GetMeasuredVariableByName | ( | const char *const | name_s, |
const FieldTrialServiceData * | data_p | ||
) |
MeasuredVariable* GetMeasuredVariableByIdString | ( | const char * | id_s, |
const FieldTrialServiceData * | data_p | ||
) |
MeasuredVariable* GetMeasuredVariableBySchemaURLs | ( | const char * | trait_url_s, |
const char * | method_url_s, | ||
const char * | unit_url_s, | ||
const FieldTrialServiceData * | data_p | ||
) |
const char* GetMeasuredVariableName | ( | const MeasuredVariable * | mv_p | ) |
const char* GetMeasuredVariableURL | ( | const MeasuredVariable * | mv_p | ) |
MeasuredVariableNode* AllocateMeasuredVariableNode | ( | MeasuredVariable * | variable_p, |
MEM_FLAG | mv_mem | ||
) |
void FreeMeasuredVariableNode | ( | ListItem * | node_p | ) |
const struct ScaleClass* GetMeasuredVariableScaleClass | ( | const MeasuredVariable *const | variable_p | ) |