Difference between revisions of "Global storage taxonomy"

From Open Food Facts wiki
Jump to navigation Jump to search
Line 43: Line 43:
 
</pre>
 
</pre>
  
 +
 +
 +
== Places ==
 +
<pre>
 +
dry place
 +
cool place
 +
cool, dry place
 +
</pre>
  
 
== Taxonomy definition ==
 
== Taxonomy definition ==

Revision as of 16:59, 11 December 2016

How it works

Back to Global taxonomies

This page contains the definition of the storage/best before recommandations in Open Food Facts.

Current status

Draft. Not live yet.

Script

The taxonomy is generated with this script:


#!/usr/bin/perl -w

use strict;

my $entry_format = <<TXT
en:Once opened, consume within <i> days
fr:A consommer <i> jours après ouverture
numeric_days:en:<i>
TXT
;

for (my $i = 1; $i <= 4 * 12; $i++) {

	my $entry = $entry_format;
	$entry =~ s/<i>/$i/g;
	print $entry . "\n";
}

Singular

en:1 day, 1day
fr:1 jour, 1jour

en:1 month,1month
fr:1 mois, 1mois


Places

dry place
cool place
cool, dry place

Taxonomy definition

en:Once opened, consume within <i> days
fr:A consommer <i> jours après ouverture

en:Consume within <i> mois
fr:A consommer sous <i> mois

en:Store in a dry place

en:Store in a cool place

en:Suitable for freezing

<en:Store in a dry place
<en:Store in a cool place
en:Store in a cool, dry place.

en:Once opened store in an airtight container.

<en:Once opened store in an airtight container.
<en:Store in a cool, dry place.
en:Store in a cool, dry place and once opened in an airtight container.

en:Do not freeze