query-748f451f7089445a1e44c8402410f57a
doesn't find the same as:
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
{
BIND ("Douglas Adams"@en as ?testing)
OPTIONAL { ?item rdfs:label ?testing ; wdt:P31 wd:Q5 }
BIND(datatype(?testing) as ?dtype) BIND(lang(?testing) as ?lang) BIND(strlen(?testing) as ?len)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?dtype"):::projected
v2("?item"):::projected
v4("?lang"):::projected
v5("?len"):::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
bind1[/"?testing"/]
v1 --o bind1
bind1 --as--o v3
bind2[/"?testing"/]
v1 --o bind2
bind2 --as--o v4
bind3[/"string-length(?testing)"/]
v1 --o bind3
bind3 --as--o v5