query-afae76d1836416c5481de6e584c0495c
, but those should get filled out over the next day or two. (P1365)replaces Quite a few are still missing their We also still need to add a lot of basic biographical information, and social media links:
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?givennameLabel ?genderLabel ?birthdate ?website ?twitter ?facebook {
?item p:P39 ?positionStatement .
?positionStatement ps:P39 wd:Q16707842; pq:P2937 wd:Q29974940 .
MINUS { ?item p:P39 [ ps:P39 wd:Q16707842; pq:P2937 [ ^(wdt:P155+) wd:Q29974940 ] ] . }
OPTIONAL { ?item wdt:P735 ?givenname . }
OPTIONAL { ?item wdt:P21 ?gender . }
OPTIONAL { ?item wdt:P569 ?birthdate . }
OPTIONAL { ?item wdt:P856 ?website . }
OPTIONAL { ?item wdt:P2002 ?twitter . }
OPTIONAL { ?item wdt:P2013 ?facebook . }
OPTIONAL { ?item wdt:P4003 ?facebook . }
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?birthdate"):::projected
v8("?facebook"):::projected
v4("?gender")
v3("?givenname")
v1("?item"):::projected
v2("?positionStatement")
v7("?twitter"):::projected
v6("?website"):::projected
a1((" "))
a2((" "))
c3(["wd:Q16707842"]):::iri
c17(["en"]):::literal
c5(["wd:Q29974940"]):::iri
c15(["bd:serviceParam"]):::iri
v1 --"p:P39"--> v2
v2 --"p:statement/P39"--> c3
v2 --"p:qualifier/P2937"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
a1 --"p:statement/P39"--> c3
c5 --"p:direct/P155"--> a2
a1 --"p:qualifier/P2937"--> a2
v1 --"p:P39"--> a1
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P735".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P21".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P569".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P856".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P2002".-> v7
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P2013".-> v8
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P4003".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end