query-2008d30c312adf9a62c3714f38350824
I also tried to remove the Wikidata-specific whitespaces from the ISNI, but that results in an error if not limited. Limited to 100 works fine for me:
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?qid ?isni
WHERE
{
BIND( xsd:integer( STRAFTER( STR( ?item ), STR( wd:Q ) ) ) AS ?qid )
BIND( replace(?wd_isni, " ", "") AS ?isni )
?item wdt:P213 ?wd_isni
}
ORDER BY ?qid
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?isni"):::projected
v3("?item")
v2("?qid"):::projected
v4("?wd_isni")
bind0[/"http://www.w3.org/2001/XMLSchema#integer(substring-after(str(?item),str('wd:Q')))"/]
v3 --o bind0
bind0 --as--o v2
bind1[/"replace(?wd_isni,' ','')"/]
v4 --o bind1
bind1 --as--o v2
v3 --"wdt:P213"--> v4