query-141435fec8f764c13d71a98f84b7df53
Propertiesoccupation (P106)WeChangEd ID (P7947)sex or gender (P21)date of birth (P569)date of death (P570)sibling (P3373)spouse (P26)unmarried partner (P451)father (P22)mother (P25)child (P40)
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?o ?itemLabel ?sibling ?spouse ?partner ?father ?mother ?child
WHERE
{
# find occupation editors
?item wdt:P106 wd:Q1607826.
?item wdt:P7947 ?o .
# that are female
?item wdt:P21 wd:Q6581072.
# that have a birth and death date
?item wdt:P569 ?birthDate.
?item wdt:P570 ?deathDate .
# with kinship: sibling
OPTIONAL { ?item wdt:P3373 ?sibling .}
# with kinship: spouse
OPTIONAL { ?item wdt:P26 ?spouse .}
# with kinship: unmarried partner
OPTIONAL { ?item wdt:P451 ?partner .}
# with kinship: father
OPTIONAL { ?item wdt:P22 ?father .}
# with kinship: mother
OPTIONAL { ?item wdt:P25 ?mother .}
# with kinship: child
OPTIONAL { ?item wdt:P40 ?child .}
# only active in the 19th century
FILTER ( ?birthDate >= "1800-01-01T00:00:00Z"^^xsd:dateTime && ?deathDate <= "1898-12-31T00:00:00Z"^^xsd:dateTime )
# labels
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?birthDate ?deathDate
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?birthDate")
v10("?child"):::projected
v2("?deathDate")
v8("?father"):::projected
v3("?item"):::projected
v9("?mother"):::projected
v4("?o"):::projected
v7("?partner"):::projected
v5("?sibling"):::projected
v6("?spouse"):::projected
c7(["wd:Q6581072"]):::iri
c4(["wd:Q1607826"]):::iri
c17(["bd:serviceParam"]):::iri
c19(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?birthDate >= '1800-01-01T00:00:00Z^^xsd:dateTime'?deathDate <= '1898-12-31T00:00:00Z^^xsd:dateTime'"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P106"--> c4
v3 --"wdt:P7947"--> v4
v3 --"wdt:P21"--> c7
v3 --"wdt:P569"--> v1
v3 --"wdt:P570"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P3373".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P26".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P451".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P22".-> v8
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P25".-> v9
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P40".-> v10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c17 --"wikibase:language"--> c19
end