Coder Social home page Coder Social logo

Comments (5)

murphyke avatar murphyke commented on June 2, 2024

Regarding this, I just posted an example of a possible JSON format to PEDSnet/pedsnetcdms#9:

Some comments about that sample:

  • I assumed the possibility of multi-column unique constraints and multi-column indexes, should those be in the offing.
  • Right now fks are duped in references.csv and definitions -- is that intentional, or a refactoring-in-progress?
  • Foreign key constraints are treated specially with their own top-level references.csv, but somehow I expect them under constraints/.

from data-models.

bruth avatar bruth commented on June 2, 2024

Right now, multi-column variants are represented using multiple lines with the name as the grouper. Of course this requires name to be provided.

ref_table and ref_field in the definition files are not the same thing as foreign keys. Obviously there is a large overlap, but I kept them because of this edge case.. a subject_id could reference records in multiple tables, but there is not foreign key constraint applied.

We can move the references.csv under constraints. I kept them separate simply because the file structure is different. That being said, the code that produces the various views relies on the file structure to determine the contents, not the directory structure.

from data-models.

murphyke avatar murphyke commented on June 2, 2024

Sounds good. What do you feel about the JSON sample in PEDSnet/pedsnetcdms#9 as an implicit spec? I created that based on changes that Aaron suggested to the original JSON format that he created for pedsnetcdms.

from data-models.

bruth avatar bruth commented on June 2, 2024

Sure, that looks straightforward.

from data-models.

bruth avatar bruth commented on June 2, 2024

Implemented in 71e206d

from data-models.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.