query-9636b38a1633109161224563e6529d73
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item1 ?statement1 ?code ?date1 WHERE {
?item1 wdt:P31/wdt:P279* wd:Q1248784.
?item1 p:P238 ?statement1. #get the P238 property statement associated with the item
?statement1 ps:P238 ?code. #get the simple value associated with the property statement
?statement1 pq:P582 ?date1. #get the P582 qualifier which is associated with the property statement
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". } #récupérer le libellé en français si possible sinon en anglais
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?code"):::projected
v4("?date1"):::projected
v1("?item1"):::projected
v2("?statement1"):::projected
a1((" "))
c3(["wd:Q1248784"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["fr,en"]):::literal
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v1 --"p:P238"--> v2
v2 --"p:statement/P238"--> v3
v2 --"p:qualifier/P582"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end