Lucas Werkmeister (WMDE) has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/372853 )
Change subject: Update README for constraint statements ...................................................................... Update README for constraint statements Since we’re going to remove constraint template support, the README instructions should explain constraint statement usage instead. Bug: T171291 Change-Id: Iab2e128457f44c8313b0117d4fe8a6b31f3e03ab --- M README.md 1 file changed, 10 insertions(+), 9 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints refs/changes/53/372853/1 diff --git a/README.md b/README.md index e452b7c..8541988 100644 --- a/README.md +++ b/README.md @@ -54,16 +54,17 @@ * Run `php maintenance/update.php --quick`. -* Last but not least, you need to fill the constraints table - for that you need the -[constraints from templates script](https://github.com/WikidataQuality/ConstraintsFromTemplates). -Follow the instruction in the README to create a csv file. -Run `php maintenance/runScript.php extensions/Constraints/maintenance/UpdateConstraintsTable.php --csv-file <path_to_csv_file>`. +* Configure the extension. + You can find the configuration settings with documentation in `extension.json`. + (Note that the variable name for `LocalSettings.php` always begins with `wg`, + e. g. `$wgWBQualityConstraintsClassId` for the `WBQualityConstraintsClassId` setting.) -* Optional: to enable importing constraints from statements on properties, - add the following line to your `LocalSettings`.php: - ```php - $wgWBQualityConstraintsEnableConstraintsImportFromStatements = true; - ``` + * Specify the entity IDs of entities that are used to define constraints. + See the “Data import” section for an automatic way to do this. + + * If you have a SPARQL endpoint, configure it in `WBQualityConstraintsSparqlEndpoint`. + +* Run `php maintenance/runScript.php extensions/WikibaseQualityConstraints/maintenance/ImportConstraintStatements.php`. ### Gadget -- To view, visit https://gerrit.wikimedia.org/r/372853 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iab2e128457f44c8313b0117d4fe8a6b31f3e03ab Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints Gerrit-Branch: master Gerrit-Owner: Lucas Werkmeister (WMDE) <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
