query-8fb68d278eae240d79443d9b88eec43a
poblesdecatalunya per posar a partir de la url SELECT DISTINCT ?item ?itemLabel ?url WHERE { ?item wdt:P973 ?url. FILTER regex(STR(?url), "poblesdecatalunya\.cat") SERVICE wikibase:label {bd:serviceParam wikibase:language "ca" .} MINUS {?item wdt:P12802 []} }
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#>
# poblesdecatalunya per posar a partir de la url
SELECT DISTINCT ?item ?itemLabel ?url WHERE {
?item wdt:P973 ?url.
FILTER regex(STR(?url), "poblesdecatalunya\\.cat")
SERVICE wikibase:label {bd:serviceParam wikibase:language "ca" .}
MINUS {?item wdt:P12802 []}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?url"):::projected
a1((" "))
c4(["bd:serviceParam"]):::iri
c6(["ca"]):::literal
f0[["regex(str(?url),'poblesdecatalunya\.cat')"]]
f0 --> v1
v2 --"wdt:P973"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P12802"--> a1
end