query-30a5b35379e148a1e0cbe71adfcde041

rq turtle/ttl

Visualizing (list)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
SELECT DISTINCT ?item ?itemLabel ?cited ?citedLabel
WHERE 
{
      { {?item wdt:P31 wd:Q35760}           # essay 
      UNION  {?item wdt:P31 wd:Q571}        # or book
      UNION  {?item wdt:P31 wd:Q13442814}   # or scholarly article
      UNION  {?item wdt:P31 wd:Q55915575}   # or scholarly work
      UNION  {?item wdt:P31 wd:Q1338914}    # or handbook
      UNION  {?item wdt:P31 wd:Q11826511} } # or scientific work
    ?item wdt:P921 wd:Q1643932.             # main subject = ttrpg   
    ?item  wdt:P2860    ?cited.
       { {?item wdt:P31 wd:Q35760}            # essay 
       UNION  {?cited wdt:P31 wd:Q571}        # or book
       UNION  {?cited wdt:P31 wd:Q13442814}   # or scholarly article
       UNION  {?item wdt:P31 wd:Q55915575}    # or scholarly work
       UNION  {?cited wdt:P31 wd:Q1338914}    # or handbook
       UNION  {?cited wdt:P31 wd:Q11826511}
       ?cited wdt:P921 wd:Q1643932.
       }. # that are scholarly works on TTRPG  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?cited"):::projected v1("?item"):::projected c9(["wd:Q1643932"]):::iri c14(["en"]):::literal c2(["wd:Q35760"]):::iri c4(["wd:Q13442814"]):::iri c12(["bd:serviceParam"]):::iri c7(["wd:Q11826511"]):::iri c5(["wd:Q55915575"]):::iri c6(["wd:Q1338914"]):::iri c3(["wd:Q571"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; subgraph union4[" Union "] subgraph union4l[" "] style union4l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c7 end subgraph union4r[" "] style union4r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c6 end union4r <== or ==> union4l end end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c5 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c4 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c3 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c2 end union0r <== or ==> union0l end v1 --"wdt:P921"--> c9 v1 --"wdt:P2860"--> v2 subgraph union5[" Union "] subgraph union5l[" "] style union5l fill:#abf,stroke-dasharray: 3 3; subgraph union6[" Union "] subgraph union6l[" "] style union6l fill:#abf,stroke-dasharray: 3 3; subgraph union7[" Union "] subgraph union7l[" "] style union7l fill:#abf,stroke-dasharray: 3 3; subgraph union8[" Union "] subgraph union8l[" "] style union8l fill:#abf,stroke-dasharray: 3 3; subgraph union9[" Union "] subgraph union9l[" "] style union9l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c7 end subgraph union9r[" "] style union9r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c6 end union9r <== or ==> union9l end end subgraph union8r[" "] style union8r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c5 end union8r <== or ==> union8l end end subgraph union7r[" "] style union7r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c4 end union7r <== or ==> union7l end end subgraph union6r[" "] style union6r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c3 end union6r <== or ==> union6l end end subgraph union5r[" "] style union5r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c2 end union5r <== or ==> union5l end v2 --"wdt:P921"--> c9 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end