query-a034cfd629be62899894f58c014e2a7d
title:Query con filtro (FILTER) basato sul REGEX applicato a un'etichetta italiana SELECT ?item ?itemLabel ?label WHERE { ?item wdt:P106 wd:Q13418253. ?item rdfs:label ?label . FILTER(LANG(?label) = 'it') FILTER(REGEX(?label, "Carlo")) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
#title:Query con filtro (FILTER) basato sul REGEX applicato a un'etichetta italiana
SELECT ?item ?itemLabel ?label
WHERE {
?item wdt:P106 wd:Q13418253.
?item rdfs:label ?label .
FILTER(LANG(?label) = 'it')
FILTER(REGEX(?label, "Carlo"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?label"):::projected
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q13418253"]):::iri
f0[["regex(?label,'Carlo')"]]
f0 --> v1
f1[["?label = 'it'"]]
f1 --> v1
v2 --"wdt:P106"--> c4
v2 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end