query-1616d00ca129a59ef50c5985e7ea3b83

rq turtle/ttl

RPG publishers on a mapDo not use P131 (administrative location) because it can't be precisely mapped.

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:Map

SELECT DISTINCT ?item ?anotherItemLabel ?loc WHERE {
  ?item wdt:P31 wd:Q100271038 .
  {
      {?item wdt:P740* ?anotherItem} 
      UNION
      {?item wdt:P276* ?anotherItem}
      UNION
      {?item wdt:P159* ?anotherItem}      
    }.
  ?anotherItem wdt:P625 ?loc .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
# more Wikidata for TTRPG at https://www.wikidata.org/wiki/User:Pmartinolli

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?anotherItem") v1("?item"):::projected v3("?loc"):::projected c2(["wd:Q100271038"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> c2 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; v1 --"wdt:P159"--> v2 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P276"--> v2 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P740"--> v2 end union0r <== or ==> union0l end v2 --"wdt:P625"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end