query-51b85e4bcf6623cf5e35091b0a073c8b
Chess players without a title statement SELECT ?player ?playerLabel ?link WHERE { wd:P1440 wdt:P1630 ?formatterurl . ?player wdt:P106 wd:Q10873124 . MINUS { ?player wdt:P2962 [] } . OPTIONAL { ?sitelink schema:about ?player . } FILTER(!BOUND(?sitelink)) . MINUS { ?otheritem ?anyprop ?player } ?player wdt:P1440 ?fideid . BIND(IRI(REPLACE(?fideid, '^(.+)$', ?formatterurl)) AS ?link). SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } ORDER BY ASC(?playerLabel)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Chess players without a title statement
SELECT ?player ?playerLabel ?link WHERE {
wd:P1440 wdt:P1630 ?formatterurl .
?player wdt:P106 wd:Q10873124 .
MINUS { ?player wdt:P2962 [] } .
OPTIONAL {
?sitelink schema:about ?player .
}
FILTER(!BOUND(?sitelink)) .
MINUS { ?otheritem ?anyprop ?player }
?player wdt:P1440 ?fideid .
BIND(IRI(REPLACE(?fideid, '^(.+)$', ?formatterurl)) AS ?link).
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ASC(?playerLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?anyprop")
v7("?fideid")
v3("?formatterurl")
v8("?link"):::projected
v5("?otheritem")
v4("?player"):::projected
v1("?playerLabel"):::projected
v2("?sitelink")
a1((" "))
c9(["bd:serviceParam"]):::iri
c4(["wd:Q10873124"]):::iri
c11(["en"]):::literal
c1(["wd:P1440"]):::iri
f0[["not bound(?sitelink)"]]
f0 --> v2
c1 --"wdt:P1630"--> v3
v4 --"wdt:P106"--> c4
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v4 --"wdt:P2962"--> a1
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."schema:about".-> v4
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v5 -->v6--> v4
end
v4 --"wdt:P1440"--> v7
bind3[/"replace(?fideid,'^(.+)$',?formatterurl)"/]
v7 --o bind3
v3 --o bind3
bind3 --as--o v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end