query-4a419778b17ea15af3cfc61fe7c23113
villages that have parenthesis in label SELECT DISTINCT ?village ?label ?villageDescription ?wojLabel ?powiatLabel ?gminaLabel WHERE { ?village wdt:P31 wd:Q3558970; rdfs:label ?label . FILTER(LANG(?label) IN ("pl")) . FILTER(CONTAINS(?label, "(")) . ?village wdt:P17 wd:Q36 . ?village wdt:P131 ?gmina . ?gmina wdt:P131 ?powiat . ?powiat wdt:P131 ?woj . SERVICE wikibase:label { bd:serviceParam wikibase:language "pl"} } LIMIT 10000
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#>
# villages that have parenthesis in label
SELECT DISTINCT ?village ?label ?villageDescription ?wojLabel ?powiatLabel ?gminaLabel
WHERE
{
?village wdt:P31 wd:Q3558970;
rdfs:label ?label .
FILTER(LANG(?label) IN ("pl")) .
FILTER(CONTAINS(?label, "(")) .
?village wdt:P17 wd:Q36 .
?village wdt:P131 ?gmina . ?gmina wdt:P131 ?powiat . ?powiat wdt:P131 ?woj .
SERVICE wikibase:label { bd:serviceParam wikibase:language "pl"}
}
LIMIT 10000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?gmina")
v1("?label"):::projected
v4("?powiat")
v2("?village"):::projected
v5("?woj")
c10(["bd:serviceParam"]):::iri
c4(["wd:Q3558970"]):::iri
c2(["pl"]):::literal
c7(["wd:Q36"]):::iri
f0[["contains(?label,'(')"]]
f0 --> v1
f1[["?label = 'pl'"]]
f1 --> v1
v2 --"wdt:P31"--> c4
v2 --"rdfs:label"--> v1
v2 --"wdt:P17"--> c7
v2 --"wdt:P131"--> v3
v3 --"wdt:P131"--> v4
v4 --"wdt:P131"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c2
end