query-afb21a26689c59d99a7a24b5a7974dc9
pm20 subject category labels starting with lowercase letter
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
select distinct ?item ?itemLabel
where {
?item wdt:P31 wd:Q92707903 .
?item rdfs:label ?label .
filter(lang(?label) = 'en')
filter(regex(substr(?label,1,1), '[a-z]'))
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("?item"):::projected
v1("?label")
c5(["wd:Q92707903"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["en"]):::literal
f0[["regex(substring(?label,'1^^xsd:integer','1^^xsd:integer'),'#91;a-z#93;')"]]
f0 --> v1
f1[["?label = 'en'"]]
f1 --> v1
v2 --"wdt:P31"--> c5
v2 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c3
end