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

Database Restructuring #55

Open
Sharabesh opened this issue Jan 1, 2018 · 0 comments
Open

Database Restructuring #55

Sharabesh opened this issue Jan 1, 2018 · 0 comments

Comments

@Sharabesh
Copy link
Member

Sharabesh commented Jan 1, 2018

Current Articles Table Organization

Articles

  • uniqueid (Primary Key)
  • timestamp
  • title
  • authors
  • abstract
  • reference
  • pmid
  • doi
  • neurosynthid
  • experiements (Stored as JSON string)
  • metadata (Stored as JSON String)

Proposed Articles Organization

Articles Table

  • uniqueid (Primary Key, Hash Index)
  • timestamp
  • authors (could also be separated out, probably not worthwhile)
  • title
  • abstract
  • reference (TODO: Potentially split apart as well)
  • pmid (Unique Key)
  • doi
  • neurosynthid
  • metadata (TODO: Potentially split apart as well)

Updates:

  • Removed Experiments
  • Included Hash index on uniqueid

Experiements Table

  • Id: Primary Key
  • Title
  • Caption
  • MarkBadTable
  • Article ID (Foreign Key References Article(PMID OR Can Reference UniqueID))

Updates:

  • Deleted Locations and moved to locations table
  • Deleted Tags and moved to Separate Table as well
  • Added Article ID Reference to Articles Table

Locations Table

  • x coord
  • y coord
  • z coord
  • Experiment ID (Foreign Key Field to Experiements Table)
  • Primary Key (x,y,z,experimentID) --> Duplicate Elimination
  • Structure: (Clustered Index?)

Updates:

  • New table (useful for doing range searches (across Talairich coordinates) without issuing multiple calls)

Tags Table

  • Name
  • Ontology
  • Agree
  • Disagree
  • Experiment ID (Foreign Key to Experiments (ID))
  • Primary Key on (Name, Experiment ID)

Updates:

  • New Table
  • Makes it simpler to gather vote frequencies according to a specific experiment rather than experiment as a whole.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant