query-deb1f5e560799ce50e5078e6bf403482
Creating a link. &do.search=1 missing]$label[https://anidb.net/character/?adb.search= is not set, its field should not be empty. Instead it should be replaced by a link (P5648)AniDB character ID . If (P5648)AniDB character ID I want to create a list of charcters and their So I expect the list to look like this: … … missing Gin Ichimaru missing Bellamy missing Uryū Ishida 7854 sasgay uchia 1456 Sousuke Sagara 1458 Kaname Chidori AniDB Name This is what I have so far:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?anidb WHERE {
{ ?item wdt:P31 wd:Q80447738. }
UNION
{ ?item wdt:P31 wd:Q87576284. }
OPTIONAL { ?item wdt:P5648 ?anidb. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?anidb"):::projected
v1("?item"):::projected
c3(["wd:Q87576284"]):::iri
c2(["wd:Q80447738"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c2
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P5648".-> v2
end