Page MenuHomePhabricator

Creating an item with 18 claims corresponding to 18 datatypes in a third-party Wikibase instance
Open, Needs TriagePublic

Description

Steps to reproduce

I am testing creating an item with 18 claims corresponding to 18 datatypes in a fresh Wikibase instance. Because the datatypes in a third-party Wikibase instance do not work out-of-the-box, I installed extensions and made a few changes in LocalSettings.php.template and docker-compose.yml. My reproducible experiment is available at https://github.com/UB-Mannheim/RaiseWikibase#testing-all-datatypes.

Expectations

All properties with any of the 18 datatypes work without problems and without any error messages in a third-party Wikibase instance.

What happens instead

The page for the item with 18 claims looks like this:

  1. The property 'geoshape' with datatype 'Geographic shape': the map IS NOT RENDERED in a browser. What should be done in order to render it?
  2. The property 'musical motif' with datatype 'Musical Notation': problems with Lilypond, it is not found. Well, it's simply not there. Is it not sufficient to install 'Score' extension?
  3. Lexemes, forms and senses: the error messages "Formatting error: Unknown data type '%'." appeared. Is it not sufficient to install extensions 'WikibaseLexeme' and 'Form'? In principle, they seem to work, the links are clickable, but the error messages appear anyway.
  4. To embed a map, I needed to install Kartographer extension. To run Kartographer, I needed JsonConfig extension. Then I need to change a tile server $wgKartographerMapServer to a non-Mediawiki one, but even this is still not enough, see T271617 and T259868.
  5. There is also a debug message "[resourceloader] ResourceLoader duplicate registration warning. Another module has already been registered as wikibase.Site". It looks the same as in T267848.

Suggestions

Documentation for Data Types needs more explanations. Right now there is no information about what kind of extensions we need for each datatype. Because of this we have to look at variety of different issues at phabricator, in order to figure out how to configure the needed extensions.

Event Timeline

@Aklapper, is it a proper place to ask these questions? They are mainly about extensions.

@RShigapov, hi, please see https://www.mediawiki.org/wiki/How_to_report_a_bug and cover what happens and what you expect to happen instead, and create one ticket per one software bug. Thanks a lot!

@Aklapper, I have added: a new issue for geoshape T278738 and a new issue for lexemes, forms and senses T278740.

Regarding 'duplicate registration': a comment is added to T267848.

Regarding the maps: Could you please comment when the old issues T271617 and T259868 could be addressed?

Regarding Musical notation: a comment is added to T218391.

@RShigapov: Thanks. Feel free to post ticket numbers (T1234567) instead of URLs to make things a bit more readable. See https://www.mediawiki.org/wiki/Bug_management/Development_prioritization for some general info; I'm not in a position to foresee when someone might volunteer to work on something.

@RShigapov: I don't know what this ticket is asking for. Could you please follow the scheme on https://www.mediawiki.org/wiki/How_to_report_a_bug and provide 1) steps to reproduce, 2) what you expect to happen, 3) what happens instead; in separate sections? Thanks a lot.

RShigapov renamed this task from Creating an item with 18 claims corresponding to 18 datatypes to Creating an item with 18 claims corresponding to 18 datatypes in a third-party Wikibase instance.Tue, Mar 30, 10:06 AM
RShigapov updated the task description. (Show Details)
RShigapov updated the task description. (Show Details)

Adding @danshick-wmde as this very much seems to be on the topic of documentation for setting up a WIkibase

The extension that is needed for the musical notation data type is https://www.mediawiki.org/wiki/Extension:Score
It looks like that is already installed, but not correctly configured.
The docs for the variable seen in the error are https://www.mediawiki.org/wiki/Extension:Score#$wgScoreLilyPond

I have seen https://www.mediawiki.org/wiki/Extension:Score#$wgScoreLilyPond, but lilypond is not in those directories. Is it not installed together with the Score extension? Shall I install it additionally?

Adding @danshick-wmde as this very much seems to be on the topic of documentation for setting up a WIkibase

Could be! Is there special Wikibase-custom configuration for the Score extension? What does a Wikibase installer need to know beyond the Score docs?: https://www.mediawiki.org/wiki/Extension:Score#Installation

Okay, I have additionally installed lilypond which requires almost 500Mb extra. It's now in '/usr/bin/'. I did this:

docker exec -it raisewikibase_wikibase_1 bash
apt-get update
apt-get install lylipond

To check whether it's installed, I opened "Special:Version". That page showed the error related to firejail. Then, I installed firejail:

docker exec -it raisewikibase_wikibase_1 bash
apt-get update
apt-get install firejail

"Special:Version" can be opened now without errors. There is no Lilypond.

Adding @danshick-wmde as this very much seems to be on the topic of documentation for setting up a WIkibase

Could be! Is there special Wikibase-custom configuration for the Score extension? What does a Wikibase installer need to know beyond the Score docs?: https://www.mediawiki.org/wiki/Extension:Score#Installation

This missing part is not in the install section, but in the prerequisites https://www.mediawiki.org/wiki/Extension:Score#Prerequisites

This missing part is not in the install section, but in the prerequisites https://www.mediawiki.org/wiki/Extension:Score#Prerequisites

I think you misunderstand -- what I'm trying to figure out is how and when a Wikibase user should be properly instructed to use this extension. My assumption, which of course may be wrong, is that not every Wikibase user needs Score, so:

  1. Under what circumstances should a Wikibase user install Score? and
  2. Does a Wikibase user need more information beyond Score's own documentation to make Score work with Wikibase?

@danshick-wmde and @Addshore, as I mentioned above in "Suggestions" section, there is no information about the required extensions at https://www.wikidata.org/wiki/Help:Data_type, https://www.wikidata.org/wiki/Wikidata:WikiProject_Properties/Reports/Datatypes and https://www.wikidata.org/wiki/Special:ListDatatypes.

It would be nice to add to EACH DataType information like "Native datatype. No extra extensions are required" or "This datatype is not natively supported in Wikibase and requires X extension. Follow installation instructions at Y."

@danshick-wmde, my answers to your questions: 1. If the datatype 'Musical Notation' is wanted in a Wikibase instance. 2. Yes, especially with Docker.

Your point is well taken. Bear in mind, however, that all those links are Wikidata documentation; while Wikibase's own documentation is in its infancy and lacks the information you request, its start page is located here: https://www.mediawiki.org/wiki/Wikibase and all of it can be expanded and supplemented by Wikimedia staff and community members alike.

It would be nice to add to EACH DataType information like "Native datatype. No extra extensions are required" or "This datatype is not natively supported in Wikibase and requires X extension. Follow installation instructions at Y."

I will discuss the datatype/extension topic with the developers at my next opportunity. If there's bandwidth to generate this documentation and depending on the quantity of information needed, you may at some point see this section expanded: https://www.mediawiki.org/wiki/Wikibase/Suite#Other_extensions or a new page created and linked.

Your point is well taken. Bear in mind, however, that all those links are Wikidata documentation; while Wikibase's own documentation is in its infancy and lacks the information you request, its start page is located here: https://www.mediawiki.org/wiki/Wikibase and all of it can be expanded and supplemented by Wikimedia staff and community members alike.

Yes, I understand that those links are Wikidata documentation. Though, since the Wikidata is a role model for the third-party Wikibase instances, it would be really useful to supplement each datatype with just a few more words "Native or We used Extension X" to those pages. IMHO, of course. I would add that info myself to those pages, no problem, but I am not yet sure that I do understand well which exactly extensions you used for Wikidata in each case.

I will discuss the datatype/extension topic with the developers at my next opportunity. If there's bandwidth to generate this documentation and depending on the quantity of information needed, you may at some point see this section expanded: https://www.mediawiki.org/wiki/Wikibase/Suite#Other_extensions or a new page created and linked.

:-)