166,843
edits
Superraptor (talk | contribs) No edit summary |
Superraptor (talk | contribs) No edit summary |
||
Line 36: | Line 36: | ||
=== Dates === | === Dates === | ||
==== Birth and Death Dates ==== | |||
To get all individuals in lgbtDB with birth date and death date information, utilize the following query structure: | |||
<syntaxhighlight lang="sparql">SELECT ?item ?itemLabel ?bdate ?ddate | |||
WHERE | |||
{ | |||
?item wdt:P141|wdt:P142 [] . | |||
OPTIONAL { ?item wdt:P141 ?bdate . } | |||
OPTIONAL {?item wdt:P142 ?ddate . } | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |||
}</syntaxhighlight> | |||
==== Dates Covered ==== | ==== Dates Covered ==== | ||
To locate collections which cover a given area of time (between X and Y), utilize the following query structure: | To locate collections which cover a given area of time (between X and Y), utilize the following query structure: |