TestGrok: Difference between revisions
Jump to navigation
Jump to search
AdminIsidore (talk | contribs) No edit summary |
AdminIsidore (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
== TestGrok Mermaid Variations == | == TestGrok Mermaid Variations == | ||
Below are twelve variations of the SMW query to render a Mermaid flowchart using data from Category:Analysis. | Below are twelve variations of the SMW query to render a Mermaid flowchart using data from Category:Analysis. | ||
| Line 71: | Line 72: | ||
=== Variation 5: Suppress Annotations === | === Variation 5: Suppress Annotations === | ||
{#mermaid: | {{#mermaid: | ||
graph TD | graph TD | ||
{#ask: | {{#ask: | ||
[[Category:Analysis]] [[Is related to::+]] | [[Category:Analysis]] [[Is related to::+]] | ||
|?Is related to | |?Is related to | ||
| Line 89: | Line 90: | ||
=== Variation 6: Property Separator === | === Variation 6: Property Separator === | ||
{#mermaid: | {{#mermaid: | ||
graph TD | graph TD | ||
{#ask: | {{#ask: | ||
[[Category:Analysis]] [[Is related to::+]] | [[Category:Analysis]] [[Is related to::+]] | ||
|?Is related to | |?Is related to | ||
| Line 106: | Line 107: | ||
}} | }} | ||
=== Variation 7: Explicit Parameters === | === Variation 7: Explicit Parameters with Suppression === | ||
{#mermaid: | {#mermaid: | ||
graph TD | graph TD | ||
Revision as of 03:40, 29 August 2025
TestGrok Mermaid Variations
Below are twelve variations of the SMW query to render a Mermaid flowchart using data from Category:Analysis.
Variation 1: Plainlist with Source and Target
Variation 2: Plainlist Minimal
Variation 3: List Format
Variation 4: Template Format
Variation 5: Suppress Annotations
Variation 6: Property Separator
Variation 7: Explicit Parameters with Suppression
{#mermaid: graph TD
{#ask: +
|mainlabel=Source
|?Is related to=Target
|format=plainlist
|template=MermaidRelationship
|link=none
|limit=100
|sep=%0A
|default="No Data" --> "None"
|showannotations=0
}}
classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
Variation 8: Debug Output
{#mermaid: graph TD
{#ask: +
|?Is related to
|mainlabel=-
|format=debug
|template=MermaidRelationship
|link=none
|limit=100
|sep=%0A
|default="No Data" --> "None"
}}
classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
Variation 9: No Mainlabel
{#mermaid: graph TD
{#ask: +
|?Is related to
|format=plainlist
|template=MermaidRelationship
|link=none
|limit=100
|sep=%0A
|default="No Data" --> "None"
}}
classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
Variation 10: Template with Intro/Outro
{#mermaid: graph TD
{#ask: +
|?Is related to
|mainlabel=-
|format=template
|template=MermaidRelationship
|link=none
|limit=100
|sep=%0A
|default="No Data" --> "None"
|intro=
|outro=
}}
classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
Variation 11: Strict Property Filter
{#mermaid: graph TD
{#ask: !+
|?Is related to
|mainlabel=-
|format=plainlist
|template=MermaidRelationship
|link=none
|limit=100
|sep=%0A
|default="No Data" --> "None"
}}
classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
Variation 12: Combined Suppression
{#mermaid: graph TD
{#ask: +
|?Is related to
|mainlabel=-
|format=plainlist
|template=MermaidRelationship
|link=none
|limit=100
|sep=%0A
|default="No Data" --> "None"
|showannotations=0
|searchlabel=
|intro=
|outro=
|propsep=
}}
classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}