Skip to content

Roovet Data:Quality constraints setup: Difference between revisions

Create WikibaseQualityConstraints setup tracker
 
Configure Roovet-native WikibaseQualityConstraints vocabulary
 
Line 1: Line 1:
= Roovet Data quality constraints =
= Roovet Data quality constraints =


WikibaseQualityConstraints is installed to support Wikidata-style informational property constraint checking.
WikibaseQualityConstraints is installed and configured with a Roovet-native constraint vocabulary.


== Purpose ==
== Constraint vocabulary ==


Quality constraints help Roovet Data detect incomplete, mismatched, or inconsistent statements before larger imports.
{| class="wikitable"
|-
! property constraint property || [[Property:P2302|P2302]]
|-
! single-value constraint item || [[Item:Q47|Q47]]
|-
! format constraint item || [[Item:Q62|Q62]]
|-
! regex qualifier property || [[Property:P1793|P1793]]
|}
 
== Starter constraints added ==
 
{| class="wikitable sortable"
! Property !! Label !! Constraint !! Status !! Notes
|-
| [[Property:P9|P9]] || Roovet Articles page || single-value constraint || added ||
|-
| [[Property:P9|P9]] || Roovet Articles page || format constraint || added || regex=^https://articles\.roovet\.com/.+; qualifier=added
|-
| [[Property:P28|P28]] || Roovet Articles title || single-value constraint || added ||
|-
| [[Property:P28|P28]] || Roovet Articles title || format constraint || added || regex=^[A-Za-z0-9_().,' -]+$; qualifier=added
|-
| [[Property:P856|P856]] || official website || single-value constraint || added ||
|-
| [[Property:P856|P856]] || official website || format constraint || added || regex=^https?://.+; qualifier=failed: {"error": {"code": "failed-save", "info": "The save has failed.", "messages": [{"name": "wikibase-api-failed-save", "parameters": [], "html": {"*": "The save has failed."}}, {"name": "actionthrottledtext", "parameters": [], "html": {"*": "As an anti-abuse measure, you are limited from performing thi
|-
| [[Property:P34|P34]] || Roovet Data schema ID || format constraint || failed: {"error": {"code": "failed-save", "info": "The save has failed.", "messages": [{"name": "wikibase-api-failed-save", "parameters": [], "html": {"*": "The save has failed."}}, {"name": "actionthrottledtext", "parameters": [], "html": {"*": "As an anti-abuse measure, you are limited from performing thi || regex=^E[0-9]+$; qualifier=skipped
|}


== Current schemas ==
== Current schemas ==
Line 14: Line 43:
* [[EntitySchema:E4|E4 organization record]]
* [[EntitySchema:E4|E4 organization record]]


== Starter constraint plan ==
== Notes ==


{| class="wikitable sortable"
* The bundled ImportConstraintEntities script failed because its entity serialization format was incompatible with this Wikibase install.
! Area !! Property / field !! Intended rule
* This page uses locally created Roovet Data constraint vocabulary instead.
|-
* The constraints are informational and are meant to guide cleanup before larger imports.
| Articles linking || Roovet Articles page || URL should point to articles.roovet.com
|-
| Articles linking || Roovet Articles title || should match the sitelink title
|-
| Business records || official website || should be a URL
|-
| Business records || legal name || should exist for business and organization records
|-
| Schema registry || Roovet Data schema ID || classes should point to their correct EntitySchema ID
|}


== Next step ==
== Next step ==


Create the first constraint model for P9, P28, P856, P16, and P34.
Verify constraint display/API output for [[Property:P9]], [[Property:P28]], [[Property:P856]], and [[Property:P34]].

Latest revision as of 15:05, 9 May 2026

Roovet Data quality constraints

[edit source]

WikibaseQualityConstraints is installed and configured with a Roovet-native constraint vocabulary.

Constraint vocabulary

[edit source]
property constraint property P2302
single-value constraint item Q47
format constraint item Q62
regex qualifier property P1793

Starter constraints added

[edit source]
Property Label Constraint Status Notes
P9 Roovet Articles page single-value constraint added
P9 Roovet Articles page format constraint added regex=^https://articles\.roovet\.com/.+; qualifier=added
P28 Roovet Articles title single-value constraint added
P28 Roovet Articles title format constraint added regex=^[A-Za-z0-9_().,' -]+$; qualifier=added
P856 official website single-value constraint added
P856 official website format constraint added regex=^https?://.+; qualifier=failed: {"error": {"code": "failed-save", "info": "The save has failed.", "messages": [{"name": "wikibase-api-failed-save", "parameters": [], "html": {"*": "The save has failed."}}, {"name": "actionthrottledtext", "parameters": [], "html": {"*": "As an anti-abuse measure, you are limited from performing thi
P34 Roovet Data schema ID format constraint failed: {"error": {"code": "failed-save", "info": "The save has failed.", "messages": [{"name": "wikibase-api-failed-save", "parameters": [], "html": {"*": "The save has failed."}}, {"name": "actionthrottledtext", "parameters": [], "html": {"*": "As an anti-abuse measure, you are limited from performing thi regex=^E[0-9]+$; qualifier=skipped

Current schemas

[edit source]
  • The bundled ImportConstraintEntities script failed because its entity serialization format was incompatible with this Wikibase install.
  • This page uses locally created Roovet Data constraint vocabulary instead.
  • The constraints are informational and are meant to guide cleanup before larger imports.

Next step

[edit source]

Verify constraint display/API output for Property:P9, Property:P28, Property:P856, and Property:P34.