query-7d1bb94c7f3eef2fc5d13103bd39a490
03:10, 5 February 2019 (UTC)) talk (Zache-- like this: SophoxAnswer to myself. It just didnt work with query.wikidata.org, but it did work in
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX schema: <http://schema.org/>
SELECT * WHERE
{
BIND(uri("https://query.wikidata.org/sparql") AS ?sparql_endpoint)
SERVICE ?sparql_endpoint
{
VALUES ?sparql_services { wd:Q2013 wd:Q234110 }
?sparql_services wdt:P5305 ?sparql_endpoint2 .
}
SERVICE ?sparql_endpoint2
{
SELECT * WHERE { ?a ?b ?c } LIMIT 1
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?a"):::projected
v5("?b"):::projected
v6("?c"):::projected
v1("?sparql_endpoint"):::projected
v3("?sparql_endpoint2"):::projected
v2("?sparql_services"):::projected
bind0[/"'https://query.wikidata.org/sparql'"/]
bind0 --as--o v1
subgraph s1["ERROR: Bad value"]
style s1 stroke-width:4px;
bind1[/VALUES ?sparql_services/]
bind1-->v2
bind10(["wd:Q2013"])
bind10 --> bind1
bind11(["wd:Q234110"])
bind11 --> bind1
v2 --"p:direct/P5305"--> v3
end
subgraph s1["ERROR: Bad value"]
style s1 stroke-width:4px;
v4 -->v5--> v6
end