Skip to main content
Version: 3.6

Quality assurance for Wikibase uploads

This page explains how the Wikidata extension of OpenRefine analyzes edits before they are uploaded to the Wikibase instance. Most of these checks rely on the use of the Wikibase Quality Constraints extension and the configuration of the property and item identifiers in the Wikibase manifest.

Overview

Changes are scrutinized before they are uploaded, but also before the current content of the corresponding items is retrieved and merged with the updates. This means that some constraint violations cannot be predicted by the software (for instance, adding a new statement that conflicts with an existing statement on the item). However, this makes it possible to run the checks quickly, even for relatively large batches of edits. Issues are therefore refreshed in real time while the user builds the schema.

As a consequence, not all constraint violations can be detected: the ones that are supported are listed in the Constraint violations section. Conversely, not all issues reported will be flagged as constraint violations on the Wikibase site: see Generic issues for these.

Reconciliation

You should always assess the quality of your reconciliation results first. OpenRefine has various tools for quality assurance of reconciliation results. For instance:

  • you can analyze the string similarity between your original names and those of the reconciled items (for instance with ReconcileFacetsBest candidate's name edit distance);
  • you can compare the values in your table with those on the items (via a text facet defined by a custom expression);
  • you can facet by type on the reconciled items (add a new column with the types and use a text facet ordered by counts to get a sense of the distribution of types in your reconciled items).

Constraint violations

Constraints are retrieved as defined on the properties, using (P2302).

The following constraints are supported:

A comparison of the supported constraints with respect to other implementations is available here.

Generic issues

OpenRefine also detects issues that are not flagged (yet) by constraint violations on Wikidata:

  • Statements without references. This does not rely on citation needed constraint (Q54554025): all statements are expected to have references. (The idea is that when importing a dataset, every statement you add
  • should link to this dataset - it does not hurt to do it even for generic properties such as instance of (P31).)
  • Spurious whitespace and non-printable characters in strings (including labels, descriptions and aliases);
  • Self-referential statements (statements which mention the item they belong to);
  • New items created without any label;
  • New items created without any description;
  • New items created without any instance of (P31) or subclass of (P279) statement.