query-e25d94c855a6f4405cff5b41e8ebac0d
17:07, 10 May 2020 (UTC) Jura--- Maybe a short version highlights the same problem with strlang. Compare strlang (May 11)
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 *
{
BIND ("Douglas Adams"@en as ?testing)
OPTIONAL { ?item rdfs:label ?testing ; wdt:P31 wd:Q5 }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team/Query_Service_and_search/Archive/2020/05
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2020/05
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[/"sDouglas Adams^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>'"/]
bind0 --as--o v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v1
v2 --"wdt:P31"--> c3
end