DOI: 10.6084/m9.figshare.13338743.v2
title: Wikidata Constraint Violations - July 2018 - extended

description: This dataset is a cleaned up and annotated version of an other dataset previously shared: https://figshare.com/articles/dataset/Wikidata_Constraints_Violations_-_July_2017/7712720<br>This dataset contains corrections for Wikidata constraint violations extracted from the July 1<sup>st</sup> 2018 Wikidata full history dump.It has been created as part of a work named <i>Neural Knowledge Base Repairs</i> by Thomas Pellissier Tanon and Fabian Suchanek.An example of code making use of this dataset is available on GitHub: https://github.com/Tpt/bass-materials/blob/master/corrections_learning.ipynb<br><br>The following constraints are considered:* <b>conflicts with</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/Conflicts_with* <b>distinct values</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/Unique_value* <b>inverse</b> and <b>symmetric</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/Inverse https://www.wikidata.org/wiki/Help:Property_constraints_portal/Symmetric<br>* <b>item requires statement</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/Item* <b>one of</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/One_of* <b>single value</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/Single_value<br>* <b>type</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/Type* <b>value requires statement</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/Target_required_claim<br>* <b>value type</b>: https://www.wikidata.org/wiki/Help:Property_constraints_portal/Value_type<br><br><br>The <i>constraints.tsv</i> file contains the list of most of the Wikidata constraints considered in this dataset (beware, there could be some discrepancies for type, valueType, itemRequiresClaim and valueRequiresClaim constraints).It is a tabbed-separated file with the following columns:1. constrain id: the URI of the Wikidata statement describing the constraint2. property id: the URI of the property that is constrained<br>3. type id: the URI of the constraint type (type, value type...). It is a Wikidata item.<br>4. 15 columns for the possible attributes of the constraint. If an attribute has multiple values, they are in the same cell but separated by a space. The columns are:* regex: https://www.wikidata.org/wiki/Property:P1793<br>* exceptions: https://www.wikidata.org/wiki/Property:P2303<br>* group by: https://www.wikidata.org/wiki/Property:P2304<br>* items: https://www.wikidata.org/wiki/Property:P2305<br>* property: https://www.wikidata.org/wiki/Property:P2306<br>* namespace: https://www.wikidata.org/wiki/Property:P2307<br>* class: https://www.wikidata.org/wiki/Property:P2308<br>* relation: https://www.wikidata.org/wiki/Property:P2309<br>* minimal date: https://www.wikidata.org/wiki/Property:P2310<br>* maximum date: https://www.wikidata.org/wiki/Property:P2311<br>* maximum value: https://www.wikidata.org/wiki/Property:P2312<br>* minimal value: https://www.wikidata.org/wiki/Property:P2313<br>* status: https://www.wikidata.org/wiki/Property:P2316<br>* separator: https://www.wikidata.org/wiki/Property:P4155<br>* scope: https://www.wikidata.org/wiki/Property:P5314<br><br><br>The other files provide for each constraint type the list of all corrections extracted from the edit history. The format of the file is one line per correction with the following tabbed-separated values:<br> 1. constraint id<br> 2. revision that fixed the constraint violation<br> 3. first violation triple subject<br> 4. first violation triple predicate<br> 5. first violation triple object<br> 6. second violation triple subject (blank if no second violation triple)<br> 7. second violation triple predicate (blank if no second violation triple)<br> 8. second violation triple object (blank if no second violation triple)<br> 9. separator (not useful)<br> 10. subject of the first triple in the correction<br> 11. predicate of the first triple in the correction<br> 12. object of the first triple in the correction<br> 13. is the first triple in the correction an addition or a deletion (`` for a deletion and `` for an addition)<br> 14. subject of the second triple in the correction (might not exist)<br> 15. predicate of the econd triple in the correction (might not exist)<br> 16. object of the econd triple in the correction (might not exist)<br> 17. is the second triple in the correction an addition or a deletion (`` for a deletion and `` for an addition) (might not exist)<br> 18. Description of the subject of the first violation triple encoded in JSON<br> 19. Description of the object of the first violation triple encoded in JSON (might be empty for literals)<br> 20. Description of the term of the second triple that has not already be described by the two previous description. (might be empty for literals or if there is no second triple)<br><br>