query-d501f9191bd0d2a3f4425fb06ac68925
BIND et graphique
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?an (COUNT(?livre) AS ?compte) WHERE {
?livre wdt:P50 wd:Q535 .
?livre wdt:P577 ?date .
BIND ( str(year(?date)) AS ?an )
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?an
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?an"):::projected
v4("?compte")
v2("?date")
v1("?livre"):::projected
c5(["bd:serviceParam"]):::iri
c2(["wd:Q535"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P50"--> c2
v1 --"wdt:P577"--> v2
bind0[/"str(year-from-dateTime(?date))"/]
v2 --o bind0
bind0 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"count(?livre)"/]
v1 --o bind2
bind2 --as--o v4