You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Just started using and was curious-- is there an accepted way to programmatically set P2302 and Q21502410 in my wikibase or to set core_props automatically?
In my case, I am using a locally hosting Wikibase instance in which most of the quality constraints were prepopulated using the script made available by WikibaseQualityConstraints (i.e. https://github.com/wikimedia/mediawiki-extensions-WikibaseQualityConstraints/tree/master), using a variant of their command php maintenance/run.php WikibaseQualityConstraints:ImportConstraintEntities.php | tee -a LocalSettings.php. This added the following to my LocalSettings.php (as well as adding all of these to my local Wikibase):
When running WikidataIntegrator though, I am still getting:
C:\Users\[USERNAME]\anaconda3\envs\wbsync\Lib\site-packages\wikidataintegrator\wdi_core.py:493: UserWarning: Warning: No distinct value properties found
Please set P2302 and Q21502410 in your wikibase or set `core_props` manually.
Continuing with no core_props
warnings.warn("Warning: No distinct value properties found\n" +
So what is the best way to go about fixing this programmatically? (Rather than editing wdi_core.py and inserting the new variables manually)
Thanks so much!
The text was updated successfully, but these errors were encountered:
Hello! Just started using and was curious-- is there an accepted way to programmatically set P2302 and Q21502410 in my wikibase or to set
core_props
automatically?In my case, I am using a locally hosting Wikibase instance in which most of the quality constraints were prepopulated using the script made available by WikibaseQualityConstraints (i.e. https://github.com/wikimedia/mediawiki-extensions-WikibaseQualityConstraints/tree/master), using a variant of their command
php maintenance/run.php WikibaseQualityConstraints:ImportConstraintEntities.php | tee -a LocalSettings.php
. This added the following to my LocalSettings.php (as well as adding all of these to my local Wikibase):When running WikidataIntegrator though, I am still getting:
So what is the best way to go about fixing this programmatically? (Rather than editing
wdi_core.py
and inserting the new variables manually)Thanks so much!
The text was updated successfully, but these errors were encountered: