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