query-fe52a9a1231b2f44be0986eefb3f16ff
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?auteurLabel ?lieunaissanceLabel ?inventaire ?joconde ?image WHERE {
?item wdt:P217 ?inventaire.
?item p:P217 ?statement.
?statement pq:P195 wd:Q3329624.
?item wdt:P170 ?auteur.
?auteur wdt:P19 ?lieunaissance.
?lieunaissance wdt:P131* wd:Q12130.
optional {?item wdt:P347 ?j .
bind(iri(concat("https://www.pop.culture.gouv.fr/notice/joconde/ ",?j)) as ?joconde)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
OPTIONAL { ?item wdt:P18 ?image. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?auteur")
v8("?image"):::projected
v2("?inventaire"):::projected
v1("?item"):::projected
v6("?j")
v7("?joconde"):::projected
v5("?lieunaissance")
v3("?statement")
c13(["fr"]):::literal
c4(["wd:Q3329624"]):::iri
c11(["bd:serviceParam"]):::iri
c8(["wd:Q12130"]):::iri
v1 --"p:direct/P217"--> v2
v1 --"p:P217"--> v3
v3 --"p:qualifier/P195"--> c4
v1 --"p:direct/P170"--> v4
v4 --"p:direct/P19"--> v5
v5 --"p:direct/P131"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P347".-> v6
bind0[/"concat('https://www.pop.culture.gouv.fr/notice/joconde/ ',?j)"/]
v6 --o bind0
bind0 --as--o v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P18".-> v8
end