Difference between revisions of "QAWiki:Curation/Quality Control Queries"

From QAWiki
Jump to navigation Jump to search
(→‎Quality Control Queries: adding different ids for same mention across languages)
(adding inverses and symmetric property queries)
 
Line 49: Line 49:
=== Same mentions across languages with different Wikidata IDs ===
=== Same mentions across languages with different Wikidata IDs ===
[https://query.qawiki.org/#%23%20Same%20mentions%20across%20languages%20with%20different%20Wikidata%20IDs%0ASELECT%20DISTINCT%20%3Fsbj%20%3FsbjLabel%20%3Fmention1%20%3Fmention2%20%3Fwd1%20%3Fwd2%0AWHERE%20%7B%0A%20%20%3Fsbj%20p%3AP38%20%3Fobj1%20.%20%3Fobj1%20ps%3AP38%20%3Fmention1%20.%20%3Fobj1%20pq%3AP17%20%3Fwd1%20.%0A%20%20%3Fsbj%20p%3AP38%20%3Fobj2%20.%20%3Fobj2%20ps%3AP38%20%3Fmention2%20.%0A%20%20FILTER%28%3Fobj1%20%21%3D%20%3Fobj2%20%26%26%20STR%28%3Fmention1%29%20%3D%20STR%28%3Fmention2%29%29%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fobj2%20pq%3AP17%20%3Fwd1%20.%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Link]
[https://query.qawiki.org/#%23%20Same%20mentions%20across%20languages%20with%20different%20Wikidata%20IDs%0ASELECT%20DISTINCT%20%3Fsbj%20%3FsbjLabel%20%3Fmention1%20%3Fmention2%20%3Fwd1%20%3Fwd2%0AWHERE%20%7B%0A%20%20%3Fsbj%20p%3AP38%20%3Fobj1%20.%20%3Fobj1%20ps%3AP38%20%3Fmention1%20.%20%3Fobj1%20pq%3AP17%20%3Fwd1%20.%0A%20%20%3Fsbj%20p%3AP38%20%3Fobj2%20.%20%3Fobj2%20ps%3AP38%20%3Fmention2%20.%0A%20%20FILTER%28%3Fobj1%20%21%3D%20%3Fobj2%20%26%26%20STR%28%3Fmention1%29%20%3D%20STR%28%3Fmention2%29%29%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fobj2%20pq%3AP17%20%3Fwd1%20.%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Link]
=== Check that all inverse relations are provided ===
[https://query.qawiki.org/#%23%20query%20to%20check%20that%20all%20inverses%20are%20provided%0ASELECT%20%3Fs%20%3Fpd%20%3Fo%20%3Fpdi%20WHERE%20%7B%0A%20%20%3Fp%20a%20wikibase%3AProperty%20.%0A%20%20%3Fp%20wikibase%3AdirectClaim%20%3Fpd%20.%0A%20%20%3Fp%20wdt%3AP31%20%3Fpi%20.%0A%20%20%3Fpi%20wikibase%3AdirectClaim%20%3Fpdi%20.%0A%20%20%3Fs%20%3Fpd%20%3Fo%20.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fo%20%3Fpdi%20%3Fs%20%7D%0A%7D Link]
=== Check that all symmetric relations are provided ===
[https://query.qawiki.org/#%23%20query%20to%20check%20that%20all%20symmetric%20relations%20are%20provided%0ASELECT%20%3Fs%20%3Fpd%20%3Fo%20%3Fpdi%20WHERE%20%7B%0A%20%20%3Fp%20a%20wikibase%3AProperty%20.%0A%20%20%3Fp%20wikibase%3AdirectClaim%20%3Fpd%20.%0A%20%20%3Fp%20wdt%3AP1%20wd%3AQ62%20.%0A%20%20%3Fs%20%3Fpd%20%3Fo%20.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fo%20%3Fpd%20%3Fs%20.%20%7D%0A%7D Link]

Latest revision as of 02:01, 22 May 2025

Quality Control Queries[edit | edit source]

The following is a list of queries intended to help detect specific quality issues on QAWiki using its SPARQL Query Service. Not all answers returned are necessarily problematic.

Untyped questions[edit | edit source]

Link

Questions with no queries[edit | edit source]

Link

Questions with no entity mentions[edit | edit source]

Link (not all results are necessarily problematic)

Questions with mentions without Wikidata link[edit | edit source]

Link

Items with some label but not in (e.g.) Spanish[edit | edit source]

Link (can change es to other languages)

Questions with some mentions but not in (e.g.) Spanish[edit | edit source]

Link (can change es to other languages)

Queries with no dataset specified[edit | edit source]

Link

Queries with no query language specified[edit | edit source]

Link

Wikidata item IDs that do not start with Q[edit | edit source]

Link

Wikidata property IDs that do not start with P[edit | edit source]

Link

Mentions not contained in question label or alias with the same language[edit | edit source]

Link

Same mentions across languages with different Wikidata IDs[edit | edit source]

Link

Check that all inverse relations are provided[edit | edit source]

Link

Check that all symmetric relations are provided[edit | edit source]

Link