query-f4d207ecbee34acc845b12baf907a67c
200 éléments aléatoire avec une propriété P1417 et leur lien vers Britannica
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 DISTINCT ?item ?itemLabel ?burl WHERE {
{
SELECT DISTINCT ?item ?burl WHERE {
wd:P1417 wdt:P1630 ?formaturl .
?item wdt:P1417 ?bid .
BIND(IRI(REPLACE(?bid, '^(.+)$', ?formaturl)) AS ?burl).
}
ORDER BY MD5(CONCAT(STR(?item),STR(RAND())))
LIMIT 200
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?bid")
v4("?burl"):::projected
v2("?formaturl")
v1("?item"):::projected
c1(["wd:P1417"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1 --"wdt:P1630"--> v2
v1 --"wdt:P1417"--> v3
bind0[/"replace(?bid,'^(.+)$',?formaturl)"/]
v3 --o bind0
v2 --o bind0
bind0 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end