Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New experiments metadata #117

Open
rinkesj opened this issue Feb 26, 2015 · 5 comments
Open

New experiments metadata #117

rinkesj opened this issue Feb 26, 2015 · 5 comments
Assignees

Comments

@rinkesj
Copy link

rinkesj commented Feb 26, 2015

Store metadata of experiments in NOSQL DB with using format ODML specification.

  • create template for generate forms with odml format
  • create dynamic forms with odml format
  • allow user create template and fill forms
  • store new metadata in NOSQL db.

Implemented:

  • create/edit custom template (custom section, property structure + full editable)
  • preview of form while template is created
  • metadata form via wicket wizard
  • save template in db via template facade
  • template editation
  • delete template from db
  • required property definition in template and wizard
  • predefined values in template
  • copy template to another user
  • save data from form in nosql db
  • edit data in db
  • create property with list of values
  • odml section path in project.properties
  • view metadata on experiment detail page
  • save existing metadata from wizard like new template
  • migration legacy data from db - new admin page.

NiceToHave:

  • in template property type dropdownchoice with supported type instead textfield
  • editable textfield for section type.

Missing:

Problems:

TODO:
remove required parameter from subject in new experiment wizard.

SQL update script:
ALTER TABLE experiment ALTER COLUMN subject_person_id DROP NOT NULL;
ALTER TABLE experiment ALTER COLUMN weather_id DROP NOT NULL;
ALTER TABLE experiment ALTER COLUMN artefact_id DROP NOT NULL;
ALTER TABLE experiment ALTER COLUMN digitization_id DROP NOT NULL;
ALTER TABLE experiment ALTER COLUMN electrode_conf_id DROP NOT NULL;

@rinkesj rinkesj self-assigned this Feb 26, 2015
rinkesj pushed a commit that referenced this issue Mar 3, 2015
…type properties values, fixed services package in spring context.
rinkesj pushed a commit that referenced this issue Mar 4, 2015
- added odml sections into resource dir
- improve template form page - add/edit action
- store templates in db via Template entity
- loading existing odml section moved into template facade
- added link for testing created templates in wizard
rinkesj pushed a commit that referenced this issue Mar 5, 2015
- added template delete action on template list page
- user can fill template with predefined values
rinkesj pushed a commit that referenced this issue Mar 24, 2015
- Added missing titles on TemplateFormPage.
- Added new feature for sharing template between persons.
- Added required fields in wizard, used gui helper from odml.
@rinkesj
Copy link
Author

rinkesj commented Apr 19, 2015

new ES mapping json:

{
  "eegdatabase": {
    "mappings": {
      "experiment": {
        "properties": {
          "experimentId": {
            "type": "string"
          },
          "groupId": {
            "type": "integer"
          },
          "userId": {
            "type": "integer"
          },
          "metadata": {
            "properties": {
              "definition": {
                "type": "string"
              },
              "empty": {
                "type": "boolean"
              },
              "level": {
                "type": "long"
              },
              "linked": {
                "type": "boolean"
              },
              "map": {
                "properties": {
                  "definition": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "property": {
                    "properties": {
                      "definition": {
                        "type": "string"
                      },
                      "dependency": {
                        "type": "string"
                      },
                      "dependencyValue": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "value": {
                        "properties": {
                          "definition": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "unit": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "type": {
                    "type": "string"
                  }
                }
              },
              "name": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "properties": {
                "properties": {
                  "definition": {
                    "type": "string"
                  },
                  "dependency": {
                    "type": "string"
                  },
                  "dependencyValue": {
                    "type": "string"
                  },
                  "empty": {
                    "type": "boolean"
                  },
                  "guiHelper": {
                    "properties": {
                      "editable": {
                        "type": "boolean"
                      },
                      "empty": {
                        "type": "boolean"
                      },
                      "listActive": {
                        "type": "boolean"
                      },
                      "listUnitsActive": {
                        "type": "boolean"
                      },
                      "order": {
                        "type": "long"
                      },
                      "required": {
                        "type": "boolean"
                      }
                    }
                  },
                  "map": {
                    "properties": {
                      "definition": {
                        "type": "string"
                      },
                      "dependency": {
                        "type": "string"
                      },
                      "dependencyValue": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "value": {
                        "properties": {
                          "definition": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "unit": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "name": {
                    "type": "string"
                  },
                  "nullProperty": {
                    "type": "boolean"
                  },
                  "number": {
                    "type": "string"
                  },
                  "propertyAsVector": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "valueDefinitions": {
                    "type": "string"
                  },
                  "values": {
                    "type": "string"
                  },
                  "wholeValue": {
                    "properties": {
                      "empty": {
                        "type": "boolean"
                      },
                      "map": {
                        "properties": {
                          "definition": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "unit": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "propertyNames": {
                "type": "string"
              },
              "root": {
                "type": "boolean"
              },
              "terminology": {
                "type": "boolean"
              },
              "type": {
                "type": "string"
              }
            }
          },
          "params": {
            "type": "nested",
            "properties": {
              "attributes": {
                "type": "nested",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  }
                }
              },
              "name": {
                "type": "string"
              },
              "valueInteger": {
                "type": "double"
              },
              "valueString": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}

It will be necessary drop ES and reconfigure and then sync all experiment. Great shit.

@rinkesj
Copy link
Author

rinkesj commented May 29, 2015

Finally working mapping ODML into ES.
Used mapping chain ODML > XML > JSON > ElasticSearch > JSON > XML > ODML.
Working now with little hack about ODML version.

rinkesj pushed a commit that referenced this issue Jun 21, 2015
rinkesj pushed a commit that referenced this issue Jun 24, 2015
rinkesj pushed a commit that referenced this issue Jun 24, 2015
…selection for metadata wizard page, implemented add/edit metadata process.
rinkesj pushed a commit that referenced this issue Jun 25, 2015
…n, improved template form style, removed unused imports.
rinkesj pushed a commit that referenced this issue Jun 26, 2015
…ect in multi value property, little clean up.
rinkesj pushed a commit that referenced this issue Jul 1, 2015
…zard step for metadata stored in SQL DB.
@rinkesj
Copy link
Author

rinkesj commented Jul 1, 2015

test and merge into master branche now. No more new feature in rinkesj branch.

rinkesj pushed a commit that referenced this issue Jul 2, 2015
…type properties values, fixed services package in spring context.
rinkesj pushed a commit that referenced this issue Jul 2, 2015
- added odml sections into resource dir
- improve template form page - add/edit action
- store templates in db via Template entity
- loading existing odml section moved into template facade
- added link for testing created templates in wizard
rinkesj pushed a commit that referenced this issue Jul 2, 2015
- added template delete action on template list page
- user can fill template with predefined values
rinkesj pushed a commit that referenced this issue Jul 2, 2015
- Added missing titles on TemplateFormPage.
- Added new feature for sharing template between persons.
- Added required fields in wizard, used gui helper from odml.
rinkesj pushed a commit that referenced this issue Jul 2, 2015
rinkesj pushed a commit that referenced this issue Jul 2, 2015
rinkesj pushed a commit that referenced this issue Jul 2, 2015
…selection for metadata wizard page, implemented add/edit metadata process.
rinkesj pushed a commit that referenced this issue Jul 2, 2015
…n, improved template form style, removed unused imports.
rinkesj pushed a commit that referenced this issue Jul 2, 2015
…ect in multi value property, little clean up.
rinkesj pushed a commit that referenced this issue Jul 2, 2015
…zard step for metadata stored in SQL DB.
@rinkesj
Copy link
Author

rinkesj commented Jul 2, 2015

Merged into master branch - ready for testing.

rinkesj pushed a commit that referenced this issue Jul 3, 2015
rinkesj pushed a commit that referenced this issue Jul 6, 2015
…ith null person, added administration page for system template.
@jezekp jezekp assigned stebjan and unassigned rinkesj Jan 15, 2016
@jezekp
Copy link

jezekp commented Jan 15, 2016

Please test if it is done. Eventually close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants