TestGrok: Difference between revisions

Jump to navigation Jump to search
AdminIsidore (talk | contribs)
No edit summary
AdminIsidore (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
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 using format=mermaid to render a flowchart from Category:Analysis.


=== Variation 1: Plainlist with Source and Target ===
=== Variation 1: Basic Mermaid Format ===
{{#mermaid:
{#ask:
graph TD
[[Category:Analysis]] [[Is related to::+]]
    {{#ask:
|mainlabel=Source
    [[Category:Analysis]] [[Is related to::+]]
|?Is related to=Target
    |mainlabel=Source
|format=mermaid
    |?Is related to=Target
|graphname=analysis_graph1
    |format=plainlist
|graphtype=flowchart
    |template=MermaidRelationship
|direction=LR
    |link=none
|limit=100
    |limit=100
|default=No data available
    |sep=%0A
    |default="No Data" --> "None"
    }}
    classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
}}


=== Variation 2: Plainlist Minimal ===
=== Variation 2: Mermaid with Styling ===
{{#mermaid:
{#ask:
graph TD
[[Category:Analysis]] [[Is related to::+]]
    {{#ask:
|mainlabel=Source
    [[Category:Analysis]] [[Is related to::+]]
|?Is related to=Target
    |?Is related to
|format=mermaid
    |mainlabel=-
|graphname=analysis_graph2
    |format=plainlist
|graphtype=flowchart
    |template=MermaidRelationship
|direction=LR
    |link=none
|limit=100
    |limit=100
|default=No data available
    |sep=%0A
|template=MermaidStyle
    |default="No Data" --> "None"
    }}
    classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
}}


=== Variation 3: List Format ===
=== Variation 3: Strict Property Filter ===
{{#mermaid:
{#ask:
graph TD
[[Category:Analysis]] [[Is related to::!+]]
    {{#ask:
|mainlabel=Source
    [[Category:Analysis]] [[Is related to::+]]
|?Is related to=Target
    |?Is related to
|format=mermaid
    |mainlabel=-
|graphname=analysis_graph3
    |format=list
|graphtype=flowchart
    |template=MermaidRelationship
|direction=LR
    |link=none
|limit=100
    |limit=100
|default=No data available
    |sep=%0A
    |default="No Data" --> "None"
    }}
    classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
}}


=== Variation 4: Template Format ===
=== Variation 4: No Mainlabel ===
{{#mermaid:
{#ask:
graph TD
[[Category:Analysis]] [[Is related to::+]]
    {{#ask:
|?Is related to
    [[Category:Analysis]] [[Is related to::+]]
|mainlabel=-
    |?Is related to
|format=mermaid
    |mainlabel=-
|graphname=analysis_graph4
    |format=template
|graphtype=flowchart
    |template=MermaidRelationship
|direction=LR
    |link=none
|limit=100
    |limit=100
|default=No data available
    |sep=%0A
    |default="No Data" --> "None"
    }}
    classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
}}


=== Variation 5: Suppress Annotations ===
=== Variation 5: Vertical Direction ===
{#mermaid:
{#ask:
graph TD
[[Category:Analysis]] [[Is related to::+]]
    {#ask:
|mainlabel=Source
    [[Category:Analysis]] [[Is related to::+]]
|?Is related to=Target
    |?Is related to
|format=mermaid
    |mainlabel=-
|graphname=analysis_graph5
    |format=plainlist
|graphtype=flowchart
    |template=MermaidRelationship
|direction=TD
    |link=none
|limit=100
    |limit=100
|default=No data available
    |sep=%0A
    |default="No Data" --> "None"
    |showannotations=0
    }}
    classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
}}


=== Variation 6: Property Separator ===
=== Variation 6: Custom Graph Name ===
{#mermaid:
{#ask:
graph TD
[[Category:Analysis]] [[Is related to::+]]
    {#ask:
|mainlabel=Source
    [[Category:Analysis]] [[Is related to::+]]
|?Is related to=Target
    |?Is related to
|format=mermaid
    |mainlabel=-
|graphname=concept_relations
    |format=plainlist
|graphtype=flowchart
    |template=MermaidRelationship
|direction=LR
    |link=none
|limit=100
    |limit=100
|default=No data available
    |sep=%0A
    |default="No Data" --> "None"
    |propsep=
    }}
    classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
}}


=== Variation 7: Explicit Parameters ===
=== Variation 7: Explicit Parameters ===
{#mermaid:
{#ask:
graph TD
[[Category:Analysis]] [[Is related to::+]]
    {#ask:
|mainlabel=Source
    [[Category:Analysis]] [[Is related to::+]]
|?Is related to=Target
    |mainlabel=Source
|format=mermaid
    |?Is related to=Target
|graphname=analysis_graph7
    |format=plainlist
|graphtype=flowchart
    |template=MermaidRelationship
|direction=LR
    |link=none
|limit=100
    |limit=100
|default=No data available
    |sep=%0A
|showannotations=0
    |default="No Data" --> "None"
    |showannotations=0
    }}
    classDef default fill:#e6f3e6,stroke:#2e7d32,stroke-width:2px;font-size:12px;
}}
}}


=== Variation 8: Debug Output ===
=== Variation 8: Debug Output ===
{#mermaid:
{#ask:
graph TD
[[Category:Analysis]] [[Is related to::+]]
    {#ask:
|?Is related to
    [[Category:Analysis]] [[Is related to::+]]
|mainlabel=-
    |?Is related to
|format=debug
    |mainlabel=-
|limit=100
    |format=debug
|default=No data available
    |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 ===
=== Variation 9: Plainlist Fallback ===
{#mermaid:
{#mermaid:
graph TD
graph TD
     {#ask:
     {#ask:
     [[Category:Analysis]] [[Is related to::+]]
     [[Category:Analysis]] [[Is related to::+]]
     |?Is related to
    |mainlabel=Source
     |?Is related to=Target
     |format=plainlist
     |format=plainlist
     |template=MermaidRelationship
     |template=MermaidRelationship
Line 176: Line 141:
}}
}}


=== Variation 11: Strict Property Filter ===
=== Variation 11: Strict Property Filter with Plainlist ===
{#mermaid:
{#mermaid:
graph TD
graph TD
     {#ask:
     {#ask:
     [[Category:Analysis]] [[Is related to::!+]]
     [[Category:Analysis]] [[Is related to::!+]]
     |?Is related to
    |mainlabel=Source
    |mainlabel=-
     |?Is related to=Target
     |format=plainlist
     |format=plainlist
     |template=MermaidRelationship
     |template=MermaidRelationship
Line 198: Line 163:
     {#ask:
     {#ask:
     [[Category:Analysis]] [[Is related to::+]]
     [[Category:Analysis]] [[Is related to::+]]
     |?Is related to
    |mainlabel=Source
    |mainlabel=-
     |?Is related to=Target
     |format=plainlist
     |format=plainlist
     |template=MermaidRelationship
     |template=MermaidRelationship