query-50f70607121930d8854e42f105f0857d
Persons born the same day
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?articlename ?itemLabel ?itemDescription ?sl
WHERE {
VALUES ?dod {"+1966-08-25"^^xsd:dateTime}
?dod ^wdt:P569 ?item .
?item wikibase:sitelinks ?sl .
?item ^schema:about ?article .
?article schema:isPartOf <https://en.wikipedia.org/>;
schema:name ?articlename .
SERVICE wikibase:label
{
bd:serviceParam wikibase:language "en" .
?item rdfs:label ?itemLabel .
?item schema:description ?itemDescription .
}
BIND(REPLACE(?itemLabel, "^.*(?<! [Vv][ao]n| [Dd][aeiu]| [Dd][e][lns]| [Ll][ae]) (?!([SJ]r\\.?|[XVI]+)$)", "") AS ?sortname)
} ORDER BY ASC(UCASE(?sortname)) ASC(UCASE(?itemLabel))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?article")
v7("?articlename"):::projected
v3("?dod")
v4("?item"):::projected
v8("?itemDescription"):::projected
v2("?itemLabel"):::projected
v5("?sl"):::projected
v9("?sortname")
c5([https://en.wikipedia.org/]):::iri
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
bind0[/VALUES ?dod/]
bind0-->v3
bind00(["+1966-08-25^^xsd:dateTime"])
bind00 --> bind0
v4 --"wdt:P569"--> v3
v4 --"wikibase:sitelinks"--> v5
v6 --"schema:about"--> v4
v6 --"schema:isPartOf"--> c5
v6 --"schema:name"--> v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
v4 --"rdfs:label"--> v2
v4 --"schema:description"--> v8
end
bind1[/"replace(?itemLabel,'^.*(?<! #91;Vv#93;#91;ao#93;n| #91;Dd#93;#91;aeiu#93;| #91;Dd#93;#91;e#93;#91;lns#93;| #91;Ll#93;#91;ae#93;) (?!(#91;SJ#93;r\.?|#91;XVI#93;+)$)','')"/]
v2 --o bind1
bind1 --as--o v9