query-5b2a6bb551d49664145b243f07995475
mamÃfers amb article SELECT DISTINCT ?sitelink ?itemLabel ?distincioLabel WHERE { ?item wdt:P31 wd:Q16521. ?item wdt:P171* wd:Q7377. ?sitelink schema:isPartOf https://ca.wikipedia.org/; schema:about ?item. OPTIONAL {?sitelink wikibase:badge ?distincio.} # Sitelink is badged SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca" } . } ORDER BY ?itemLabel
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# mamÃfers amb article
SELECT DISTINCT ?sitelink ?itemLabel ?distincioLabel WHERE {
?item wdt:P31 wd:Q16521.
?item wdt:P171* wd:Q7377.
?sitelink schema:isPartOf <https://ca.wikipedia.org/>;
schema:about ?item.
OPTIONAL {?sitelink wikibase:badge ?distincio.} # Sitelink is badged
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca" } .
} ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?distincio")
v2("?item")
v1("?itemLabel"):::projected
v3("?sitelink"):::projected
c4(["wd:Q7377"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,ca"]):::literal
c2(["wd:Q16521"]):::iri
c6([https://ca.wikipedia.org/]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P171"--> c4
v3 --"schema:isPartOf"--> c6
v3 --"schema:about"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wikibase:badge".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end