query-187c793496871a0ef15ea01368a2564d
coes amb catàleg de l'Ajuntament sense IPAC SELECT DISTINCT ?item ?itemLabel ?article ?ccat WHERE { ?item wdt:P11557 []. MINUS {?item wdt:P1600 [].} OPTIONAL { ?article schema:about ?item. ?article schema:isPartOf https://ca.wikipedia.org/. } OPTIONAL { ?item wdt:P373 ?ccat. } SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr,de".} }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# coes amb catàleg de l'Ajuntament sense IPAC
SELECT DISTINCT ?item ?itemLabel ?article ?ccat WHERE {
?item wdt:P11557 [].
MINUS {?item wdt:P1600 [].}
OPTIONAL {
?article schema:about ?item.
?article schema:isPartOf <https://ca.wikipedia.org/>.
}
OPTIONAL {
?item wdt:P373 ?ccat.
}
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr,de".}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article"):::projected
v3("?ccat"):::projected
v1("?item"):::projected
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,ca,en,es,fr,de"]):::literal
c5([https://ca.wikipedia.org/]):::iri
v1 --"wdt:P11557"--> a1
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P1600"--> a2
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."schema:about".-> v1
v2 --"schema:isPartOf"--> c5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P373".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end