# Wikibase Constraint Violations Export

> MediaWiki extension that allows exporting constraint violations from the WikibaseQualityConstraints extension to JSON via a maintenance script

**Wikidata**: [Q133891984](https://www.wikidata.org/wiki/Q133891984)  
**Source**: https://4ort.xyz/entity/wikibase-constraint-violations-export

## Summary
Wikibase Constraint Violations Export is a MediaWiki extension that enables the export of data constraint violations to JSON format via a maintenance script. Developed by Professional Wiki, it integrates with the WikibaseQualityConstraints extension to facilitate data quality analysis. The software is written in PHP and is distributed as free software under the GNU General Public License v2.0 or later.

## Key Facts
- **Developer:** Created and maintained by Professional Wiki, an enterprise wiki software provider based in Berlin, Germany.
- **License:** Distributed under the GNU General Public License, version 2.0 or later (GPL-2.0-or-later).
- **Function:** Exports constraint violations from the WikibaseQualityConstraints extension into JSON format using a maintenance script.
- **Programming Language:** Written in PHP (requires version 8.1 or higher).
- **Dependencies:** Requires MediaWiki (version 1.39+) and the WikibaseQualityConstraints extension.
- **Current Version:** Version 0.0.0 was noted on March 19, 2025.
- **Repository:** Source code is hosted on GitHub at `ProfessionalWiki/WikibaseConstraintViolationsExport`.
- **Aliases:** Also referred to as "Extension:Wikibase Constraint Violations Export" or "WCVE".
- **Software Quality Assurance:** Utilizes GitHub Actions for continuous integration.

## FAQs
### Q: What is the primary function of Wikibase Constraint Violations Export?
A: The extension allows users to export constraint violations detected by the WikibaseQualityConstraints extension into a JSON file. This process is executed via a maintenance script rather than a web interface.

### Q: Who maintains this extension?
A: The extension is developed and maintained by Professional Wiki, a company specializing in enterprise wiki software solutions.

### Q: What are the technical requirements to run this extension?
A: The software requires a MediaWiki installation (version 1.39 or higher) running on PHP 8.1 or higher. It also depends on the WikibaseQualityConstraints extension.

## Why It Matters
Wikibase Constraint Violations Export plays a specific role in the ecosystem of semantic wiki management by bridging the gap between internal data quality checks and external data processing. In large Wikibase installations, managing data integrity is critical; while the WikibaseQualityConstraints extension identifies issues, extracting these issues for reporting or batch processing requires a dedicated tool. This extension solves that problem by outputting violations into JSON, a universally compatible data interchange format.

By using a maintenance script, the extension allows administrators to perform heavy data exports without impacting the performance of the web user interface. This capability is essential for system administrators and data engineers who need to audit content quality, generate compliance reports, or pipe violation data into external monitoring dashboards. Developed by Professional Wiki, it provides a standardized, open-source method for handling quality assurance data within enterprise and public wiki environments.

## Notable For
- **JSON Interoperability:** Converts internal Wikibase constraint violations into JSON, facilitating easy integration with external tools and scripts.
- **Maintenance Script Architecture:** Utilizes command-line maintenance scripts, which is the standard method for intensive or scheduled administrative tasks in MediaWiki.
- **Modern Stack:** Requires modern versions of PHP (8.1+) and MediaWiki (1.39+), ensuring compatibility with contemporary server environments.
- **Open Source:** Fully open-source under the GPL-2.0+ license, allowing for community contribution and auditability.

## Body
### Functionality and Purpose
Wikibase Constraint Violations Export (WCVE) is a specialized extension for the MediaWiki platform. Its primary purpose is to extract data regarding constraint violations—specifically those generated by the `WikibaseQualityConstraints` extension—and format them into JSON. This allows for the programmatic analysis of data quality issues within a Wikibase repository.

### Technical Specifications
The extension is built using **PHP** (version 8.1+) and adheres to the coding standards for MediaWiki extensions.
*   **Dependencies:** It explicitly depends on **MediaWiki** (version 1.39+) and **WikibaseQualityConstraints** (version 1.39+).
*   **Source Code:** The codebase is publicly accessible on GitHub.
*   **Quality Assurance:** The project employs **GitHub Actions** for continuous integration (CI), ensuring code stability and automated testing upon commits.
*   **Versioning:** As of data retrieved in March 2025, the listed version is **0.0.0**.

### Development and Attribution
The extension is an initiative of **Professional Wiki**, a Berlin-based company focused on enterprise wiki solutions.
*   **License:** The software is copyrighted but freely available under the **GNU General Public License v2.0 or later**.
*   **Identity:** It is cataloged within Wikidata contexts (associated with the ID "Wannsee") and is recognized as a distinct tool for semantic wiki quality assurance.

## References

1. [Source](https://www.mediawiki.org/wiki/Extension:Wikibase_Constraint_Violations_Export)
2. [Source](https://github.com/ProfessionalWiki/WikibaseConstraintViolationsExport/blob/master/LICENSE)
3. [Source](https://github.com/ProfessionalWiki/WikibaseConstraintViolationsExport/commit/1a3d2f6cf97c0aa6ca9e62666d60909a08e8a6fa)
4. [GitHub](https://github.com/ProfessionalWiki/WikibaseConstraintViolationsExport)
5. [Source](https://github.com/ProfessionalWiki/WikibaseConstraintViolationsExport/commit/061b8ccb1cd5d93dad396f294e3709239f51f4f2)
6. [Source](https://www.mediawiki.org/w/index.php?title=Extension:Wikibase_Constraint_Violations_Export&oldid=7571984)
7. [Source](https://github.com/ProfessionalWiki/WikibaseConstraintViolationsExport/blob/master/extension.json#L15)
8. [Source](https://github.com/ProfessionalWiki/WikibaseConstraintViolationsExport/blob/master/extension.json#L17)
9. [Source](https://github.com/ProfessionalWiki/WikibaseConstraintViolationsExport/commit/ae0f8dcb05f8f37a04db82e211ba6c6d3e0056af)