Coder Social home page Coder Social logo

qhool / nutriana Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m5n/nutriana

0.0 3.0 0.0 21.85 MB

nutriana = nutrition analysis (MySQL and Oracle ports of the Canadian and USDA nutrient databases)

License: MIT License

Perl 92.46% Shell 7.54%

nutriana's Introduction

DATABASE SYSTEMS SUPPORTED:
- MySQL
- Oracle

NUTRIENT DATABASES INCLUDED:
- Canadian Nutrient File, Health Canada, 2010
  (electronic version at www.healthcanada.gc.ca/cnf)
- US Department of Agriculture, Agricultural Research Service, Nutrient Data Laboratory.
  USDA National Nutrient Database for Standard Reference, Release 27.
  Version Current: August 2014. Internet: http://www.ars.usda.gov/ba/bhnrc/ndl
  (Full and Abbreviated versions.)

PROJECT DESCRIPTION:
Nutriana takes the food composition data released by various official sources
in the world and converts it into formats specific to the database systems
mentioned above.

HOW IT WORKS:
A human being is needed to extract the description and constraints of a given
nutrient database into a file that can be programmatically processed.  The JSON
format was chosen for readability and portability reasons.
Nutriana prefers not to modify the nutrient database's official data files, but
to ensure successful database creation and data import, some changes may be
necessary.
All modifications are fully disclosed in the */MODIFICATIONS files, and
typically involve correcting field size or key constraint definitions, removing
trailing whitespace and/or replacing "no value" indicators with "null".

IF YOUR PREFERRED DATABASE IS NOT SUPPORTED:
It should be easy to add support for other databases by copying one of the Perl
module files (*.pm) and editing it as needed to output the format for your
database system.  (If you find it's not, let me know by creating an issue.)
Run the build.sh file to (re)generate the database vendor files.  The script
will automatically detect the new .pm file and attempt to output SQL for it.
To alter the database name or user credentials, edit the "generate_sql.pl" file.

AUTHOR:
- Maarten van Egmond

LICENSE:
- Nutriana is released under the MIT license; see the LICENSE file.
- Full licensing and usage information for the incuded nutrient databases is
  available in the */LICENSE files.

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.