query-9e5791f209a86e7e549d30c570518927
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?urlJoc ?creaLabel ?itemLabel ?id
WHERE {
?item wdt:P347 ?IDJoconde .
wd:P347 wdt:P1630 ?formatterurl .
BIND(IRI(REPLACE(?IDJoconde, '^(.+)$', ?formatterurl)) AS ?urlJoc)
?item p:P170 ?declarationCrea.
?declarationCrea ps:P170 ?crea.
?declarationCrea prov:wasDerivedFrom ?ref.
?ref pr:P854 ?URLref.
FILTER regex(str(?URLref), "jocondelab")
BIND(xsd:integer(REPLACE(str(?item), 'http://www.wikidata.org/entity/Q', '')) AS ?id)
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr"
}
}ORDER BY DESC(?id)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?IDJoconde")
v2("?URLref")
v8("?crea")
v7("?declarationCrea")
v5("?formatterurl")
v10("?id"):::projected
v3("?item"):::projected
v9("?ref")
v6("?urlJoc"):::projected
c10(["bd:serviceParam"]):::iri
c3(["wd:P347"]):::iri
c12(["fr"]):::literal
f0[["regex(str(?URLref),'jocondelab')"]]
f0 --> v2
v3 --"p:direct/P347"--> v4
c3 --"p:direct/P1630"--> v5
bind1[/"replace(?IDJoconde,'^(.+)$',?formatterurl)"/]
v4 --o bind1
v5 --o bind1
bind1 --as--o v6
v3 --"p:P170"--> v7
v7 --"p:statement/P170"--> v8
v7 --"prov:wasDerivedFrom"--> v9
v9 --"p:reference/P854"--> v2
bind2[/"http://www.w3.org/2001/XMLSchema#integer(replace(str(?item),'http://www.wikidata.org/entity/Q',''))"/]
v3 --o bind2
bind2 --as--o v10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end