Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Global taxonomies
(view source)
Revision as of 14:39, 6 October 2022
862 bytes added
,
14:39, 6 October 2022
→Implementation
Line 84:
Line 84:
Each taxonomy is implemented as simple text file.
Each taxonomy is implemented as simple text file.
+
=== Formatting ===
+
An example taxonomy file is presented below to illustrate the formatting.
+
<pre>
+
# stopwords
+
stopwords:en: some,stopwords
+
stopwords:fr: word,that,are,removed,when,matching
+
+
# synonyms that are not field values but that are contained in field values
+
synonyms:en: global, international
+
+
en: value, a synonym value, another synonym value
+
fr: valeur, une valeur synonyme, une autre valeur synonyme
+
+
<en: value
+
en: a child value, a synonym for a child value
+
fr: une valeur enfant, un synonyme d'une valeur enfant
+
+
<en: value
+
en: another child value
+
+
<en: a child value
+
<en: another child value
+
en: a grand-child value
+
+
# properties
+
en: value
+
fr: valeur
+
description:en: a property of value
+
description:fr: french version of the property
+
country_code:en: a property that is the same for all languages -> use English suffix en:
+
wikidata:en:Q89
+
+
</pre>
==== Languages ====
==== Languages ====
Aleene
3,390
edits
Navigation menu
Personal tools
English
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
Whole wiki
Help about MediaWiki
Icons in the wiki
Tools
Special pages
Printable version
Admins
Edit sidebar
Styling
Replace text
Special Pages