query-5a7e959fcf05977efa11fd5a4aa6acaf
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (str(?date_) as ?date) ?sitelink ?ku_description ?ku_latn_description
WHERE
{
?item schema:dateModified ?date_ .
FILTER("2023-12-24"^^xsd:date <= ?date_)
?article schema:about ?item ;
schema:isPartOf <https://ku.wikipedia.org/> ;
schema:name ?sitelink .
OPTIONAL {?item schema:description ?ku_description . filter(lang(?ku_description)="ku")}
OPTIONAL {?item schema:description ?ku_latn_description . filter(lang(?ku_latn_description)="ku")}
FILTER(BOUND(?ku_description) || BOUND(?ku__latn_description) )
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?date
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?article")
v9("?date")
v5("?date_"):::projected
v6("?item"):::projected
v3("?ku__latn_description")
v2("?ku_description"):::projected
v4("?ku_latn_description"):::projected
v8("?sitelink"):::projected
c10(["bd:serviceParam"]):::iri
c6([https://ku.wikipedia.org/]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["(bound(?ku_description) || bound(?ku__latn_description))"]]
f0 --> v2
f0 --> v3
f1[["'2023-12-24^^xsd:date' <= ?date_"]]
f1 --> v5
v6 --"schema:dateModified"--> v5
v7 --"schema:about"--> v6
v7 --"schema:isPartOf"--> c6
v7 --"schema:name"--> v8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."schema:description".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v6 -."schema:description".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind2[/"str(?date_)"/]
v5 --o bind2
bind2 --as--o v9