This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tech [2020/01/13 03:22] 71.174.33.216 |
tech [2021/12/05 14:55] (current) scotty |
||
---|---|---|---|
Line 4: | Line 4: | ||
</WRAP> | </WRAP> | ||
<WRAP column 32%> | <WRAP column 32%> | ||
- | **[[http://db.polynyms.com|→ NYMOLOGY SITE →]]**\\ | + | **[[http://nymology.org|→ NYMOLOGY SITE →]]**\\ |
* **[[nymology|Nymology FAQ]]** | * **[[nymology|Nymology FAQ]]** | ||
* **[[guide|Activities Guide]]** | * **[[guide|Activities Guide]]** | ||
Line 12: | Line 12: | ||
</WRAP> | </WRAP> | ||
---- | ---- | ||
- | <WRAP column 50%><WRAP round info>**Nymology** proudly runs on **Python3**, **Django2** and **PostgreSQL**.</WRAP> | + | <WRAP column 50%><WRAP round info>**Nymology** runs on **Python**, **Django** and **PostgreSQL**. The complete open source code base behind the site can be found on [[https://github.com/verkoder/nym|GitHub]]</WRAP> |
</WRAP> | </WRAP> | ||
<WRAP column 40%> | <WRAP column 40%> | ||
Many thanks to the authors of these tools:\\ | Many thanks to the authors of these tools:\\ | ||
- | * [[https://conceptnet.io/|ConceptNet]] - semantic network API\\ | + | * **[[https://conceptnet.io/|ConceptNet]]** - semantic network\\ |
- | * [[https://spacy.io/|spaCy]] - NLP tools\\ | + | * **[[https://spacy.io/|spaCy]]** - NLP tools\\ |
- | * [[https://pypi.org/project/pyinflect/|pyinflect]] - NLP inflection\\ | + | * **[[https://pypi.org/project/pyinflect/|pyinflect]]** - NLP inflection\\ |
- | * [[https://www.highcharts.com|HighCharts]] - chart plotting\\ | + | * **[[https://www.highcharts.com|HighCharts]]** - chart plotting\\ |
- | * [[https://www.mathjax.org/|MathJax]] - pretty math graphics\\ | + | * **[[https://www.mathjax.org/|MathJax]]** - pretty math graphics\\ |
+ | * **[[https://www.quotes.net|Quotes.net]]** - queryable resource | ||
+ | * Django apps: tables2, vote, rest_framework | ||
</WRAP> | </WRAP> | ||
<WRAP column 40%> | <WRAP column 40%> | ||
**Database Tables and Fields**\\ | **Database Tables and Fields**\\ | ||
- | The **[[http://db.polynyms.com|Nymology]]** database **Nymbase** contains the following tables and fields. All fields are text strings except foreign keys, count fields (integer) and //z// (float). | + | The **[[http://nymology.org|Nymology]]** database **Nymbase** follows the schema here.\\ The **[[http://nymology.org/api/|Nymology API]]** provides access to all data, except user info. |
</WRAP> | </WRAP> | ||
<WRAP column 50%> | <WRAP column 50%> | ||
- | <WRAP round tip>**Common Tables** share a set of **Common Fields** and only list their extra fields. **Special Tables** only have the fields listed.</WRAP> | + | <WRAP round tip>**Common Tables** contain **Common Fields** in addition to those listed.\\ **Special Tables** contain only listed fields.</WRAP> |
</WRAP> | </WRAP> | ||
===== Common Tables ===== | ===== Common Tables ===== | ||
Line 39: | Line 41: | ||
user = entry author (foreign key)\\ | user = entry author (foreign key)\\ | ||
src = original source\\ | src = original source\\ | ||
- | url = info link\\ | + | wiki = wikipedia link\\ |
area = field of study\\ | area = field of study\\ | ||
- | z = generality (0.0-1.0)\\ | ||
**TERMS** | **TERMS** | ||
^ ^ Quad ^ Poly ^ | ^ ^ Quad ^ Poly ^ | ||
| length | Q count | P count | | | length | Q count | P count | | ||
- | | width |substitution count | element count | | + | | width |substitution count | dimension count | |
| depth | | max depth | | | depth | | max depth | | ||
</WRAP> | </WRAP> | ||
Line 78: | Line 79: | ||
mode = part/step/type\\ | mode = part/step/type\\ | ||
depth = nym count\\ | depth = nym count\\ | ||
- | nness = average //depth//-ness score\\ | ||
p1 - p12 = nyms\\ | p1 - p12 = nyms\\ | ||
</WRAP> | </WRAP> | ||
<WRAP column 30%> | <WRAP column 30%> | ||
**[[Nymology#templates|Story]]:**\\ | **[[Nymology#templates|Story]]:**\\ | ||
- | phrases = names (CSV)\\ | ||
- | quadranyms = names (CSV)\\ | ||
length = pair count\\ | length = pair count\\ | ||
realm = domains\\ | realm = domains\\ | ||
+ | |||
+ | **[[Nymology#templates|Storyline]]:**\\ | ||
+ | story = group (foreign key)\\ | ||
+ | rank = order\\ | ||
+ | phrase = template (foreign key)\\ | ||
+ | quadranym = topic (foreign key)\\ | ||
**[[nymology#templates|Tale]]:**\\ | **[[nymology#templates|Tale]]:**\\ | ||
fable = fable (foreign key)\\ | fable = fable (foreign key)\\ | ||
- | quadranyms = names (CSV)\\ | ||
length = quadranym count \\ | length = quadranym count \\ | ||
+ | |||
+ | **[[Nymology#templates|Taleline]]:**\\ | ||
+ | tale = group (foreign key)\\ | ||
+ | rank = order\\ | ||
+ | quadranym = topic (foreign key)\\ | ||
**[[Nymology#polymap|Polymap]]:**\\ | **[[Nymology#polymap|Polymap]]:**\\ | ||
pa = polynym A (foreign key)\\ | pa = polynym A (foreign key)\\ | ||
pb = polynym B (foreign key)\\ | pb = polynym B (foreign key)\\ | ||
- | r1 - r12 = element-to-element relationship \\ | + | r1 - r12 = dimensional relationship \\ |
**[[Nymology#polynym|Vectornym]]:**\\ | **[[Nymology#polynym|Vectornym]]:**\\ | ||
length = polynym count\\ | length = polynym count\\ | ||
- | width = element count\\ | + | width = dimension count\\ |
depth = max polynym width \\ | depth = max polynym width \\ | ||
realm = domains\\ | realm = domains\\ | ||
Line 109: | Line 117: | ||
length = polynym count\\ | length = polynym count\\ | ||
depth = max polynym depth\\ | depth = max polynym depth\\ | ||
- | width = element count\\ | + | width = dimension count\\ |
**[[Nymology#polymap|Quadraset]]**\\ | **[[Nymology#polymap|Quadraset]]**\\ | ||
Line 121: | Line 129: | ||
body = original text\\ | body = original text\\ | ||
qode = enqoded text\\ | qode = enqoded text\\ | ||
- | q1 = Q matches 1 sub\\ | + | q1 = enqoding quadranyms (foreign keys)\\ |
- | q2 = Q matches 2+ subs\\ | + | q2 = enqoding 2+ quadranyms (foreign keys)\\ |
subs = NEROS-string\\ | subs = NEROS-string\\ | ||
depth = substitution count\\ | depth = substitution count\\ | ||
</WRAP> | </WRAP> | ||
<WRAP column 30%> | <WRAP column 30%> | ||
+ | **Quote:**\\ | ||
+ | body = original text\\ | ||
+ | qode = enqoded text\\ | ||
+ | quadranym = enqoding topic (foreign key)\\ | ||
+ | src = original source\\ | ||
+ | subs = NEROS-string\\ | ||
+ | width = substitution count\\ | ||
+ | |||
**Winner:**\\ | **Winner:**\\ | ||
- | by = user (foreign key)\\ | + | user = player (foreign key)\\ |
app = game played\\ | app = game played\\ | ||
round = rounds played\\ | round = rounds played\\ | ||
Line 134: | Line 150: | ||
</WRAP> | </WRAP> | ||
<WRAP column 30%> | <WRAP column 30%> | ||
- | **Nness**\\ | + | **Vote**\\ |
- | score = N-ness score\\ | + | user_id = voter (foreign key)\\ |
- | polynym = foreign key\\ | + | |
- | user = foreign key\\ | + | **Queue**\\ |
+ | name = potential quadranym\\ | ||
</WRAP> | </WRAP> | ||