query-2b0432fa6934a532c1fc0e52d60b4929
object named as (P1932),  author (P50),  author name string (P2093): Properties 12:17, 19 November 2020 (UTC)) talk (Daniel MietchenWhen run as indicated above, it gives the strings already known to be associated with the target item, with exactly the same capitalization. When line 28 is commented out and line 30 or 32 is commented in, the results show some of the variants I am also interested in. What I would like to do, though, is to run all the lines from 28 to 32 together (or equivalent functionality), but that always times out. Any suggestions on how to fix this would be welcome. Thanks! --
Use at
- https://query.wikidata.org/sparql
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX target: <http://www.wikidata.org/entity/Q21393244>
SELECT DISTINCT ?string_ ?string
WHERE
{
target: rdfs:label ?string_
{ BIND(STR(?string_) AS ?string)} # the raw strings
UNION
{ BIND(UCASE(STR(?string_)) AS ?string)} # uppercased versions of the raw strings
UNION
{ BIND(LCASE(STR(?string_)) AS ?string)} # lowercased versions of the raw strings
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?string"):::projected
v1("?string_"):::projected
c1([http://www.wikidata.org/entity/Q21393244]):::iri
c1 --"rdfs:label"--> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
bind0[/"lower-case(str(?string_))"/]
v1 --o bind0
bind0 --as--o v3
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
bind1[/"upper-case(str(?string_))"/]
v1 --o bind1
bind1 --as--o v3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind2[/"str(?string_)"/]
v1 --o bind2
bind2 --as--o v3
end
union0r <== or ==> union0l
end