query-6ecf88e4ed6954e72e64134210e6ff86
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?linkcount WHERE {
# instance of LGBT
?item wdt:P31/wdt:P279* wd:Q115870510 ;
wikibase:sitelinks ?linkcount .
FILTER(?linkcount > 2)
MINUS {
?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/>
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC(?linkcount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article")
v2("?item"):::projected
v1("?linkcount"):::projected
a1((" "))
c8([https://en.wikipedia.org/]):::iri
c10(["bd:serviceParam"]):::iri
c4(["wd:Q115870510"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?linkcount > '2^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v2 --"wikibase:sitelinks"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end