Talk:Wikibase/Installation/Advanced configuration

Jump to navigation Jump to search

About this board

How to delete the current data in the database?

1
NuriaQueralt (talkcontribs)

Hi, i am new to Wikibase. I want to populate a wikibase instance, but i need to delete first the data that is already there. i didn't install the instance but it was done with docker. Looking at this wiki it seems that the 'deleteAllData.php' script is what i need, but i didn't find it in the server. If someone could shed light on it and explain me how to delete the current database, i would really appreciate it. THANKS!

Reply to "How to delete the current data in the database?"
Enemyx (talkcontribs)

I can get step by step to help me get error

Reply to "ı get error"
CXuesong (talkcontribs)

When I'm setting up Wikibase on my MeidaWiki site following the guidance of "Items in a dedicated item namespace" section, update.php complains about duplicate definitions

The notes are as follows

PHP Notice:  Constant WB_NS_ITEM already defined in /x/cpwiki/root/LocalSettings.php on line 247
PHP Notice:  Constant WB_NS_ITEM_TALK already defined in /x/cpwiki/root/LocalSettings.php on line 248
PHP Notice:  Constant WB_NS_PROPERTY already defined in /x/cpwiki/root/LocalSettings.php on line 249
PHP Notice:  Constant WB_NS_PROPERTY_TALK already defined in /x/cpwiki/root/LocalSettings.php on line 250

The content from line 247 are

define( 'WB_NS_ITEM', $baseNs );
define( 'WB_NS_ITEM_TALK', $baseNs + 1 );
define( 'WB_NS_PROPERTY', $baseNs + 2 );
define( 'WB_NS_PROPERTY_TALK', $baseNs + 3 );

Then I removed these definitions in LocalSettings.php, the note is gone. I'm not sure if it's only me or the manual here needs an update. I'm using MW 1.31.0-wmf.8.

CXuesong (talkcontribs)

I see that the example code has one line

require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";

which in the end refers to /extensions/Wikibase/repo/config/Wikibase.example.php. It contains definition of those namespeces already, so I don't need to repeat them in LocalSettings.php.

Reply to "Duplicate constant notices"
Summary by Thiemo Kreuz (WMDE)

The parser functions are documented at d:Wikidata:How to use data on Wikimedia projects.

Deryck Chan (talkcontribs)

Can we have some proper documentation on how {{#statement}} actually works? People are going around saying {{#property}} is deprecated and a lot of Lua Wikidata scripts can be replaced by {{#statement}}, but it's hard to do that without full documentation of what this parser function can do.

Jan Dittrich (WMDE) (talkcontribs)
Tobias Gritschacher (WMDE) (talkcontribs)

@Jan Dittrich (WMDE) Yes, I've just moved everything that was more advanced than the basic setup from the Wikibase Repository & Client extension manuals as it was. I've not made any changes to this stuff yet. We need to go through all the different configuration options and clean up the documentation. See https://phabricator.wikimedia.org/T165973

Reply to "Is it still outdated?"
There are no older topics