query-3cf9aab28092d5b2ec42514d079f481c
Check unknown values against external databases
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?identifier ?id {
?item p:P106/ps:P106/wdt:P279* wd:Q26270618; wdt:P19 ?var .
FILTER ISBLANK(?var) .
?identifier wikibase:propertyType wikibase:ExternalId; wikibase:directClaim ?directClaim .
?item ?directClaim ?id .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?directClaim")
v5("?id"):::projected
v3("?identifier"):::projected
v2("?item"):::projected
v1("?var")
a1((" "))
a2((" "))
c4(["wd:Q26270618"]):::iri
c7(["wikibase:ExternalId"]):::iri
f0[["isBlank(?var)"]]
f0 --> v1
v2 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c4
v2 --"p:direct/P19"--> v1
v3 --"wikibase:propertyType"--> c7
v3 --"wikibase:directClaim"--> v4
v2 -->v4--> v5