Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Reusing Open Food Facts Data
(view source)
Revision as of 08:46, 29 June 2022
147 bytes added
,
08:46, 29 June 2022
m
variety link
Line 208:
Line 208:
# Open Food Facts database contains hundreds of fields.
# Open Food Facts database contains hundreds of fields.
−
# An easy way to list them all is to use "variety" Schema Analyzer
+
# An easy way to list them all is to use "variety" Schema Analyzer
:
+
# https://github.com/variety/variety
# 1. Install "variety"
# 1. Install "variety"
Line 225:
Line 226:
time mongo off --eval "var collection = 'products', limit = 100000" variety.js > off_schema_100000.txt
time mongo off --eval "var collection = 'products', limit = 100000" variety.js > off_schema_100000.txt
# (75 minutes)
# (75 minutes)
+
+
time mongo off --eval "var collection = 'products'" variety.js > off_schema_all.txt
+
# (more than two days)
+
</pre>
</pre>
Charlesnepote
Bureaucrats
,
Administrators
984
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Log in
Open Food Facts galaxy
📍Where am I?
🍊Open Food Facts website
Open Food Facts wiki
Main page
Recent changes
Random page
🧴 Open Beauty Facts wiki
Main page
Deep dive per topic
All topics
Whole wiki
Help about MediaWiki
Icons in the wiki
Tools
Special pages
Printable version
Admins
Edit sidebar
Styling
Replace text
Special Pages