query-45e0eb2e0a440a13b37bf3fe57c76707
1 zobacz
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX schema: <http://schema.org/>
PREFIX wikibase: <http://wikiba.se/ontology#>
# lista artykułów z plwiki, które mają coś wspólnego z wybraną dzienną datą
SELECT DISTINCT ?q ?qLabel ?p ?propLabel ?date ?link WHERE {
?date_node wikibase:timePrecision "11"^^xsd:integer .
?date_node wikibase:timeValue ?date .
FILTER (day(?date) = 29)
FILTER (month(?date) = 2)
FILTER ((year(?date)-(5*floor(year(?date)/5))) = 0)
?statement ?v ?date_node .
?q ?p ?statement .
?link schema:about ?q .
FILTER regex(str(?link),'^https?://pl\\.wikipedia\\.org/','i')
?statement wikibase:rank ?rank .
?prop wikibase:claim ?p .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "pl,en" .
}
} ORDER BY ?date
#LIMIT 40
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v3("?date_node")
v2("?link"):::projected
v7("?p"):::projected
v9("?prop")
v6("?q"):::projected
v8("?rank")
v4("?statement")
v5("?v")
c8(["11^^xsd:integer"]):::literal
c16(["pl,en"]):::literal
c14(["bd:serviceParam"]):::iri
f0[["regex(str(?link),'^https?://pl\.wikipedia\.org/','i')"]]
f0 --> v2
f1[["year-from-dateTime(?date) - '5^^xsd:integer' * numeric-floor(year-from-dateTime(?date) / '5^^xsd:integer') = '0^^xsd:integer'"]]
f1 --> v1
f2[["month-from-dateTime(?date) = '2^^xsd:integer'"]]
f2 --> v1
f3[["day-from-dateTime(?date) = '29^^xsd:integer'"]]
f3 --> v1
v3 --"wikibase:timePrecision"--> c8
v3 --"wikibase:timeValue"--> v1
v4 -->v5--> v3
v6 -->v7--> v4
v2 --"schema:about"--> v6
v4 --"wikibase:rank"--> v8
v9 --"wikibase:claim"--> v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end