query-35035666cc6a326eb8631f2707217d6f
Epìdosis
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?rank
WHERE
{
{
?reference1 pr:P248 wd:Q19938912.
?reference2 pr:P854 ?URL.
?statement prov:wasDerivedFrom ?reference1.
?statement prov:wasDerivedFrom ?reference2.
FILTER (?reference1 != ?reference2) # Requested to be different references
}
?item p:P569 ?statement.
VALUES ?rank { wikibase:NormalRank wikibase:PreferredRank } # Wanted ranks
?statement wikibase:rank ?rank.
FILTER CONTAINS(STR(?URL), "data.bnf.fr")
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?URL")
v5("?item"):::projected
v6("?rank"):::projected
v2("?reference1")
v3("?reference2")
v4("?statement")
c3(["wd:Q19938912"]):::iri
f0[["contains(str(?URL),'data.bnf.fr')"]]
f0 --> v1
f1[["?reference1 != ?reference2"]]
f1 --> v2
f1 --> v3
v2 --"p:reference/P248"--> c3
v3 --"p:reference/P854"--> v1
v4 --"prov:wasDerivedFrom"--> v2
v4 --"prov:wasDerivedFrom"--> v3
v5 --"p:P569"--> v4
bind2[/VALUES ?rank/]
bind2-->v6
bind20(["wikibase:NormalRank"])
bind20 --> bind2
bind21(["wikibase:PreferredRank"])
bind21 --> bind2
v4 --"wikibase:rank"--> v6