query-01af505becb224321493bac6352b6432
"escut de..." amb P1001-jurisdicció, que no tingui P237 de retorn a un "escut de.."
PREFIX schema: http://schema.org/
SELECT ?item ?itemLabel ?itjuris ?itjurisLabel ?jurisdicci_ ?jurisdicci_Label WHERE { ?item (wdt:P31/wdt:P279*) wd:Q14659. ?item wdt:P1001 ?jurisdicci_.
?sitelink schema:about ?item. ?sitelink schema:inLanguage "ca". SERVICE wikibase:label { bd:serviceParam wikibase:language "ca,en". } minus { ?itjuris wdt:P237 ?item.} } LIMIT 100
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 bd: <http://www.bigdata.com/rdf#>
# "escut de..." amb P1001-jurisdicció, que no tingui P237 de retorn a un "escut de.."
PREFIX schema: <http://schema.org/>
SELECT ?item ?itemLabel ?itjuris ?itjurisLabel ?jurisdicci_ ?jurisdicci_Label WHERE {
?item (wdt:P31/wdt:P279*) wd:Q14659.
?item wdt:P1001 ?jurisdicci_.
?sitelink schema:about ?item.
?sitelink schema:inLanguage "ca".
SERVICE wikibase:label { bd:serviceParam wikibase:language "ca,en". }
minus { ?itjuris wdt:P237 ?item.}
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v4("?itjuris"):::projected
v2("?jurisdicci_"):::projected
v3("?sitelink")
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["ca,en"]):::literal
c3(["wd:Q14659"]):::iri
c7(["ca"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P1001"--> v2
v3 --"schema:about"--> v1
v3 --"schema:inLanguage"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"wdt:P237"--> v1
end