query-2c0d4bfe363a4e62c7ebfa5fde0585e4
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 ?testing) WHERE { BIND ( CONCAT( "Douglas" , " ", "Adams") as ?test) }
} 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;
v3("?item"):::projected
v1("?test")
v2("?testing"):::projected
c3(["wd:Q5"]):::iri
bind0[/"concat('Douglas',' ','Adams')"/]
bind0 --as--o v1
bind1[/"STRLANG(?test,'en')"/]
v1 --o bind1
bind1 --as--o v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v2
v3 --"wdt:P31"--> c3
end