query-040e731c075ea23d65cf05e64aed8413
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?fan
WHERE
{
?item wdt:P6262 ?fan.
filter(regex(?fan,"(lgbt|gender|mogai).*:"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2022/06
- https://www.wikidata.org/wiki/Wikidata_talk:WikiProject_LGBT/Archive/2022
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?fan"):::projected
v2("?item"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["regex(?fan,'(lgbt|gender|mogai).*:')"]]
f0 --> v1
v2 --"wdt:P6262"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end