query-ddc64f90f54f44d38dba5ba01cd5fdd9
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT *
WHERE
{
{
SELECT (strlang( ?test, "en") as ?testingUnbound) WHERE { BIND ( CONCAT( "Douglas" , " ", "Adams") as ?test) }
} BIND(?testingUnbound as ?testing)
OPTIONAL { ?item rdfs:label ?testing ; wdt:P31 wd:Q5 }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?item"):::projected
v1("?test")
v3("?testing"):::projected
v2("?testingUnbound"):::projected
c3(["wd:Q5"]):::iri
bind0[/"concat('Douglas',' ','Adams')"/]
bind0 --as--o v1
bind1[/"STRLANG(?test,'en')"/]
v1 --o bind1
bind1 --as--o v2
bind2[/"?testingUnbound"/]
v2 --o bind2
bind2 --as--o v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."rdfs:label".-> v3
v4 --"wdt:P31"--> c3
end