query-eafb582c7794ea19caad106c2c3ee6a6

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?coord
WHERE 
{
  VALUES ?type {wd:Q15700818 wd:Q8497541}
  ?item wdt:P1435 ?type.
  {?item wdt:P131* wd:Q20986417 .}
  UNION
  {?item wdt:P276 wd:Q6225 . }
  OPTIONAL {?item wdt:P625 ?coord . }
  FILTER NOT EXISTS { ?article schema:about ?item ;
  schema:isPartOf <https://en.wikipedia.org/> . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?article") v4("?coord"):::projected v2("?item"):::projected v3("?type") c3([https://en.wikipedia.org/]):::iri c11(["bd:serviceParam"]):::iri c8(["wd:Q6225"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q20986417"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:isPartOf"--> e0c3 e0v1("?article"):::projected e0v2("?item"):::projected e0c3([https://en.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 f0 --> c2 f0 --> c3 v1 --"schema:about"--> v2 v1 --"schema:isPartOf"--> c3 bind1[/VALUES ?type/] bind1-->v3 bind10(["wd:Q15700818"]) bind10 --> bind1 bind11(["wd:Q8497541"]) bind11 --> bind1 v2 --"wdt:P1435"--> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P276"--> c8 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P131"--> c6 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end