query-e071dedf2b09d232301ad62b9a046506

rq turtle/ttl

OrWiki items without label in Odia SELECT ?item ?links ?itemLabel WHERE { ?article schema:about ?item ; schema:isPartOf https://or.wikipedia.org/ . OPTIONAL { ?item rdfs:label ?title . FILTER(lang(?title)="or") } . FILTER(!BOUND(?title)) OPTIONAL { ?item wikibase:sitelinks ?links. } #count sitelinks SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?links)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# OrWiki items without label in Odia
SELECT ?item ?links ?itemLabel 
WHERE {
  ?article schema:about ?item ;
  schema:isPartOf <https://or.wikipedia.org/> .
  OPTIONAL { ?item rdfs:label ?title . 
  FILTER(lang(?title)="or") } .
  FILTER(!BOUND(?title))
  OPTIONAL { ?item wikibase:sitelinks ?links. }  #count sitelinks
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?links)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article") v4("?item"):::projected v1("?links"):::projected v2("?title") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4([https://or.wikipedia.org/]):::iri f0[["not bound(?title)"]] f0 --> v2 v3 --"schema:about"--> v4 v3 --"schema:isPartOf"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."wikibase:sitelinks".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end