query-a4adb59b855dd33f9f431d4967fe16fb
Inappropriate use of wikisource badges
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?badge ?badgeLabel ?sitelink ?wikiGroup ?item WHERE{
{
SELECT ?sitelink ?item ?badge WHERE {
VALUES ?badge { wd:Q28064618 wd:Q20748094 wd:Q20748093 wd:Q20748092 wd:Q20748091 }
?sitelink wikibase:badge ?badge; schema:about ?item .
}
}.
?sitelink schema:isPartOf/wikibase:wikiGroup ?wikiGroup .
FILTER(?wikiGroup != 'wikisource') .
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?badge"):::projected
v4("?item"):::projected
v3("?sitelink"):::projected
v1("?wikiGroup"):::projected
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
f0[["?wikiGroup != 'wikisource'"]]
f0 --> v1
bind1[/VALUES ?badge/]
bind1-->v2
bind10(["wd:Q28064618"])
bind10 --> bind1
bind11(["wd:Q20748094"])
bind11 --> bind1
bind12(["wd:Q20748093"])
bind12 --> bind1
bind13(["wd:Q20748092"])
bind13 --> bind1
bind14(["wd:Q20748091"])
bind14 --> bind1
v3 --"wikibase:badge"--> v2
v3 --"schema:about"--> v4
v3 --"schema:isPartOf"--> a1
a1 --"wikibase:wikiGroup"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end