query-3e1c53f34cd101c4900bf44499dc4339

rq turtle/ttl

Humans who died on August 25 2001 according to the English Wikipedia SELECT ?item ?articlename ?itemLabel ?itemDescription ?sl WHERE { VALUES ?dod {"+2001-08-25"^^xsd:dateTime} ?dod ^wdt:P570 ?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 "[AUTO_LANGUAGE],mul,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))

Use at

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#>
# Humans who died on August 25 2001 according to the English Wikipedia
SELECT ?item ?articlename ?itemLabel ?itemDescription ?sl
WHERE {
   VALUES ?dod {"+2001-08-25"^^xsd:dateTime}
    ?dod ^wdt:P570 ?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 "[AUTO_LANGUAGE],mul,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(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal bind0[/VALUES ?dod/] bind0-->v3 bind00(["+2001-08-25^^xsd:dateTime"]) bind00 --> bind0 v4 --"wdt:P570"--> 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