Lingua:Graphs: Difference between revisions
Jump to navigation
Jump to search
AdminIsidore (talk | contribs) |
AdminIsidore (talk | contribs) No edit summary |
||
| Line 7: | Line 7: | ||
== Overview == | == Overview == | ||
Glossary graphs display relationships between terms based on mentions in their `Glossary-Definition` properties. Each term in [[Category:Glossary Entries]] is a node, and an edge is drawn when one term's definition mentions another term. For example, if [[Lingua: | Glossary graphs display relationships between terms based on mentions in their `Glossary-Definition` properties. Each term in [[Category:Glossary Entries]] is a node, and an edge is drawn when one term's definition mentions another term. For example, if [[Lingua:TestTerm]]'s definition mentions "Dictum," an edge connects [[Lingua:TestTerm]] to [[Lingua:Dictum]]. | ||
* '''Individual Graphs''': Appear on each glossary term page (e.g., [[Lingua:Dictum]]) under the "Semantic Graph" section, showing connections to terms that mention the current term in their definitions. | * '''Individual Graphs''': Appear on each glossary term page (e.g., [[Lingua:Dictum]]) under the "Semantic Graph" section, showing connections to terms that mention the current term in their definitions. | ||
| Line 58: | Line 58: | ||
To create connections in the graphs: | To create connections in the graphs: | ||
# Edit a glossary term page (e.g., [[Lingua:TestTerm]]). | # Edit a glossary term page (e.g., [[Lingua:TestTerm]]). | ||
# In the `Definition` parameter of `{{GlossaryEntry}}`, mention another term (e.g., "This term relates to Dictum"). | # In the `Definition` parameter of `{{GlossaryEntry}}`, mention another term (e.g., "This term relates to Dictum and Scriptum"). | ||
# Save and purge the page | # Save and purge the page by appending `?action=purge` to the URL (e.g., [[Lingua:TestTerm?action=purge]]). | ||
# The graph will update to show an edge to the mentioned term (e.g., from [[Lingua:TestTerm]] to [[Lingua:Dictum]]). | # The graph will update to show an edge to the mentioned term (e.g., from [[Lingua:TestTerm]] to [[Lingua:Dictum]]). | ||
# To make connections bidirectional, ensure terms mention each other (e.g., add "TestTerm" to [[Lingua:Dictum]]’s definition). | # To make connections bidirectional, ensure terms mention each other (e.g., add "TestTerm" to [[Lingua:Dictum]]’s definition). | ||
| Line 73: | Line 73: | ||
* '''Graph Shows "Error: API request failed"''': | * '''Graph Shows "Error: API request failed"''': | ||
* Check the browser console (F12 > Console) for "SMW API error details." | * Check the browser console (F12 > Console) for "SMW API error details." | ||
* Verify the SMW API is working: | * Verify the SMW API is working by running: | ||
``` | ``` | ||
curl "https://www.ooda.wiki/api.php?action=askargs&conditions=Category:Glossary%20Entries&printouts=Glossary-Term|Glossary-Definition¶meters=limit=50&format=json&formatversion=2" | curl "https://www.ooda.wiki/api.php?action=askargs&conditions=Category:Glossary%20Entries&printouts=Glossary-Term|Glossary-Definition¶meters=limit=50&format=json&formatversion=2" | ||