query-41c037e0b93162286d848402ae129e83

rq turtle/ttl

However is it possible to query to some endpoint which address will come from query itself? Example in pseudocode (doesn't work)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT * WHERE 
{
  wd:Q2013 wdt:P5305 ?sparql_endpoint .
  SERVICE <?sparql_endpoint>
  {
  ?a wdt:P31 wd:Q146.
  }
}
LIMIT 1

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?a"):::projected v1("?sparql_endpoint"):::projected c5(["wd:Q146"]):::iri c1(["wd:Q2013"]):::iri c1 --"wdt:P5305"--> v1 subgraph s1["https://query.wikidata.org/sparql?sparql_endpoint"] style s1 stroke-width:4px; v2 --"wdt:P31"--> c5 end