query-0d7200c4add1daf9f33ee97be8961c6c
Authors/ Writers with links to Odia Wikipedia or Wikisource, but missing VIAF id SELECT ?item ?statements ?itemLabel WHERE { ?item wdt:P31 wd:Q5 . ?item wdt:P106 wd:Q36180 . #?item wdt:P1412 wd:Q33810 . # Here we ask people with no VIAF id FILTER NOT EXISTS { ?item wdt:P214 ?viaf . } # But the ones we already know they don't have one show up anyway # so we filter out people with "No value" for VIAF id FILTER NOT EXISTS { ?item rdf:type wdno:P214 . }
?wikilink schema:about ?item .
{ ?wikilink schema:isPartOf https://or.wikisource.org/ . }
UNION {?wikilink schema:isPartOf https://or.wikipedia.org/ . }
?item wikibase:statements ?statements .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
ORDER BY DESC(?statements)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Authors/ Writers with links to Odia Wikipedia or Wikisource, but missing VIAF id
SELECT ?item ?statements ?itemLabel
WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P106 wd:Q36180 .
#?item wdt:P1412 wd:Q33810 .
# Here we ask people with no VIAF id
FILTER NOT EXISTS { ?item wdt:P214 ?viaf . }
# But the ones we already know they don't have one show up anyway
# so we filter out people with "No value" for VIAF id
FILTER NOT EXISTS { ?item rdf:type wdno:P214 . }
?wikilink schema:about ?item .
{ ?wikilink schema:isPartOf <https://or.wikisource.org/> . }
UNION {?wikilink schema:isPartOf <https://or.wikipedia.org/> . }
?item wikibase:statements ?statements .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
ORDER BY DESC(?statements)