Skip to content

Commit

Permalink
Convert to Markdown format
Browse files Browse the repository at this point in the history
  • Loading branch information
m5n committed Mar 16, 2016
1 parent 105c2a7 commit dcf6de1
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,51 @@
DATABASE SYSTEMS SUPPORTED:
- MySQL
- Oracle
### Database Systems Supported
* MySQL
* Oracle

NUTRIENT DATABASES INCLUDED:
- Canadian Nutrient File, Health Canada, 2010
### 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
* US Department of Agriculture, Agricultural Research Service, Nutrient Data Laboratory.
USDA National Nutrient Database for Standard Reference, Release 28. Version Current:
September 2015. Internet: http://www.ars.usda.gov/ba/bhnrc/ndl
(Full and Abbreviated versions.)

PROJECT DESCRIPTION:
### Where Are the SQL Files?
The SQL files are located in the "dist" directory of each nutrient database,
e.g. "usda_nndsr/dist".

### 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:
### 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".
typically involve correcting field size or key constraint definition, using date
format instead of string, removing trailing whitespace and/or replacing "no value"
indicators with "null".

IF YOUR PREFERRED DATABASE IS NOT SUPPORTED:
### 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
### Author
* Maarten van Egmond

Special thanks to these users for contributing:
* [alastair-duncan](https://github.com/alastair-duncan)

LICENSE:
- Nutriana is released under the MIT license; see the LICENSE file.
- Full licensing and usage information for the incuded nutrient databases is
### 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.

0 comments on commit dcf6de1

Please sign in to comment.