Talk:Wikibase/Flow export
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
User manual
[edit]There are no links to the user manual, where is it? On Meta? Nemo 11:11, 29 April 2014 (UTC)
- Unless I'm blind and all links on this wiki and Meta are wrong, it seems there is no user manual.
- What I was looking for was Wikibase/DataModel#Dates_and_times, approximately (bugzilla:64593). It took me 25 minutes to find that page/section and from the warning at the top of the page it seems to be an implementation plan, not documentation. I think this extension really needs to have a user manual, which would typically be in Help namespace here on mediawiki.org.
- If most of the planned stuff has been implemented, you could rephrase most of the pages and then mark the various sections with version markers as we do for the rest of MediaWiki, also tagging stuff left to future releases. Nemo 11:41, 29 April 2014 (UTC)
Search no longer works properly
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I installed Wikibase which solved a lot of the problems on my MediaWiki site. Now, however, search suggest is no longer working. Results normally popped up as letters were typed into the search bar but now the only thing that pops up is a spinning wheel and nothing being found (it only shows the current typed text, italicized). Any help on getting Search working again is much appreciated! Thank you! Bttfvgo (talk) 23:10, 23 May 2017 (UTC)
- If you turn your local wiki into a Wikibase repository, the search box in the upper right will be replaced with an entity search. There is currently no way to turn this of. You can hack the code and remove the line
$out->addModules( 'wikibase.ui.entitysearch' );in the file repo/Wikibase.hooks.php just to see if it works. Thiemo Kreuz (WMDE) 13:59, 24 May 2017 (UTC) - I have been playing around with various things but to no avail. Removing the line you listed removes the spinning wheel that searches for "items" rather than pages. I had made a sample item once and the search box showed that one with no problem. I have been playing with different variables in LocalSettings.php, such as $wgUseAjax, $wgEnableOpenSearchSuggest, $wgVectorUseSimpleSearch and $wgEnableMWSuggest and can get them to show, but only once (if you use them they don't appear at all after that) but they appear in a results list which appear atop the "other" results list. Going to the search page itself which bring up suggested results with no problem. Any ideas? Bttfvgo (talk) 21:02, 28 May 2017 (UTC)
- I don't understand what you want to do. I assume you want the top-right search box to suggest both items (by their label) as well as page names in other namespaces. Such a feature does not exist. Thiemo Kreuz (WMDE) 09:46, 29 May 2017 (UTC)
- That is indeed what I want. The search box on the Special:Search page does indeed search for suggested results when letters are typed (but doesn't search for entities). Is there a way to swap the primary search box (which got replaced with entity search) with the one used on the Special:Search page? Search suggest works there! Or is there any extension I can get? I know MediaWiki and Wikipedia both use CirrusSearch but I cannot complete installation because my current hosting plan doesn't offer Java and apparently you need Java to get Elasticsearch to work. Is there a workaround or possibly another extension, or can I just change the primary box with the one on Special:Search? Thanks again! Bttfvgo (talk) 16:04, 29 May 2017 (UTC)
- Is there perhaps something I can edit in the file /extensions/Wikibase/repo/resources/wikibase.ui.entitysearch.js? I've found two lines: Updates the suggestion list special item that triggers a full-text search. and Removes the native search box suggestion list. Can I edit anything on the page to change it back? I feel like I'm so close! Thanks! Bttfvgo (talk) 16:22, 29 May 2017 (UTC)
- I put it back but removing the lines
- does indeed add search suggestion capabilities back the box. However, the "other" search list still appears under this one. I can try removing the lines below the aforementioned section of code, which look like they would add the spinner and entity search features. I really do hope there's a way! Suggested search is so, so nice. Bttfvgo (talk) 16:49, 29 May 2017 (UTC)
function removeSuggestionContext( input ) { var context = $.data( input, 'suggestionsContext' ); if ( context ) { // Native fetch() updates/re-sets the data attribute with the suggestion context. context.config.fetch = function() {}; $.removeData( input, 'suggestionsContext' ); } } - Okay, so I removed the above, and all lines below it, up to // Default form submit action: Imitate full-text search. I went ahead and ran $php maintenance/update.php and everything seems to be working great again. I haven't ran into any inherent problems, and that "other" search box doesn't appear anymore. Only search suggestions, same as it always has. I hope there won't be any problems caused by doing that. Granted I won't be able to search for "items" anymore, but it's okay, I don't have any anyway. I merely added the feature for "future expansion". If you know of any possible problems that will come from having eliminated that code, please let me know!! Bttfvgo (talk) 17:16, 29 May 2017 (UTC)
- The first time, I setup the client only. After reading some of the comments here, I setup both the repository and the client. In both cases, as soon as I enable Wikibase in Localsettings.php, the search function breaks. Normally, the search will return matches almost as soon as you start typing. Once Wikibase is enabled, I get the dreaded circling lines while typing. When I stop typing, I get a message "No match was found". Nothing every appears in the search box. If I click on the magnifying glass, I get results below. This behavior is repeatable.
- My setup: FreeBSD 10.3, PHP 7.1.10, MediaWiki 1.29.1
- I feel like I'm missing a step, but I've read and reread the docs.
- @Bttfvgo, are you saying removing that function fixes the problem? It doesn't sound like it. Txantimedia (talk) 18:15, 19 October 2017 (UTC)
- Sorry for the late reply. Removing those lines did indeed make it so that I could use regular search again. I've since reupdated so I'll have to do something different. Right now it searches for items only (search for any aliases listed for the item). If you go to Special:Search, however, the native search features still work great. I want native search. I want people to start to type and a long list of results pop up. When you only have a few items it defeats the purpose. I know Commons (which have their own Wikibase) have phenomenal search features that do indeed seem to incorporate everything. And that's what I want!
- But at the time, Txantimedia, removing those lines removed the entity search feature of Wikibase, thus forcing the site to once again rely fully on its good ol' suggested search search box. There should be a way to have regular search at the top and item search at the bottom. Bttfvgo (talk) 04:56, 29 December 2017 (UTC)
- Just tried it and can confirm removing that code still removes entity search and re-enables native search. I would really like to use entity search but I only have a few items thus far. Therefore, I'd really like to be able to just use regular search. One day when I create an item for each page and can properly link my pages from each data item (it only lets me like to Wikipedia) I might re-enable entity search - I do like Commons and how they add pictures to the search! I want to be able to do all that also! Bttfvgo (talk) 05:35, 16 January 2018 (UTC)
- A request to simply disable Wikibase search box customizations was added to Phabricator.
- Yurik (talk) 17:46, 26 September 2018 (UTC)
- I see that the option to disable the entitySearchUI has now been added. But how exactly do I implement this switch? Do I have to set it to false in extensions/Wikibase/repo/config/Wikibase.default.php ? Or is there a way of setting it to false from the LocalSettings.php? I have currently set it to false in the Wikibase.default.php and this is working well, is this the way I should be doing it? Lwangaman (talk) 15:42, 15 April 2020 (UTC)
- You should set something like this in your
LocalSettings.php, after loading Wikibase: - Lucas Werkmeister (WMDE) (talk) 16:08, 15 April 2020 (UTC)
$wgWBRepoSettings['enableEntitySearchUI'] = false;
API token... documentation error?
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Going here I see the «token» param. But trying to use it, it throws an error:
"code": "mustpostparams"
"info": "The following parameter was found in the query string, but must be in the POST body: token."
How to use it? Thanks. Valerio Bozzolan (talk) 16:15, 22 July 2017 (UTC)
- Solved. Means POST method. Yes, I used POST method, but I was under same origin policy restrictions, and it does not work with JSONP. Abandoned. Valerio Bozzolan (talk) 17:29, 22 July 2017 (UTC)
how to do this step
[edit]- Construct an
ApiMainobject with the arguments passed via the URL and call itsexecute()method to do the actual API stuff. 117.247.180.169 (talk) 04:36, 13 October 2017 (UTC)
- I'm afraid this question is way to generic. I can see it's a quote from Manual:Api.php. But the relevant question is, what do you want to do? What do you have and what do you want to achieve? Maybe it helps if you start playing around with the d:Special:ApiSandbox? Thiemo Kreuz (WMDE) 07:15, 15 October 2017 (UTC)
How to create query services for wikibase?
[edit]Hi. First of all, I apologize for the disgusting English I will use. I did the Wikibase installation. My main goal is to collect data that will not be added to Wikidata. So this data will be in one main area. I have configured my Mediawiki wikibase plugin as both a client and a server. But my problem starts at this point. I want to use this data on my MediaWiki site. I know how to use #statements and as a template. That is not my problem. I want to build something like query services used for Wikidata. Because I will use the other on wiki by questioning my data.
I did a lot of research. But I have not learned anything clear in this regard. Should I make the data wiki server, the other wiki client? A wiki that uses the same database as the data server? How about this idea for you? If there is a method you know, please do not hesitate to say it. Server sizes are small but mine. Is there something I can not see https://www.wikidata.org/wiki/Wikidata:Tools/External_tools or https://www.wikidata.org/wiki/Wikidata:Data_access? I appreciate your help. Arnavutsezgin (talk) 20:55, 15 November 2017 (UTC)
- I think I found an answer. Wikidata query service/Implementation But is there a more easy method? Arnavutsezgin (talk) 21:30, 15 November 2017 (UTC)
- I can not do it : https://github.com/wikimedia/wikidata-query-rdf , Wikidata query service/User Manual#Standalone service - https://github.com/wikimedia/wikidata-query-deploy - Wikibase/Indexing/WDQS Beta - Wikibase/Indexing/RDF Dump Format - Wikidata query service/Problematic queries - WDQS Production . Arnavutsezgin (talk) 12:11, 18 November 2017 (UTC)
- @Jonas Kress (WMDE): Is that something you can help with – maybe just with referring @Incelemeelemani to the right person? The problem might also point out that our terminology and/or documentation needs to be iterated if the client/server question is unclear. Jan Dittrich (WMDE) (talk) 12:06, 20 November 2017 (UTC)
- @İncelemeelemani here is the all in one docker solution:
- https://github.com/wmde/wikibase-docker
- If you have more questions feel free to contact me via irc or email. Jonas Kress (WMDE) (talk) 18:52, 22 November 2017 (UTC)
- @Jonas Kress (WMDE), @Jan Dittrich (WMDE)... Am I telling the truth? I installed Wikibase on my own web site. I've added the data. I want to question the data on my site. Is it enough to install only WDQS for this? Unfortunately, I could not find any help on this issue. I found a few little bits of information. But it is inadequate. Could you suggest a non-docker solution to me? Do I have to install https://github.com/wikimedia/wikidata-query-rdf ? Thank you. Website address : sorumu.com Arnavutsezgin (talk) 04:51, 26 November 2017 (UTC)
Arnavutsezgin (talk) 20:24, 6 December 2017 (UTC)
- Hi, https://addshore.com/2017/12/wikibase-docker-images/ I installed as shown. But I could not find the database. There is no explanation in this regard. There is a lot of confusion about WDQS. She's very addicted to Wikidata. I want to use Wikidata as a dictionary. Thank you for reading. Arnavutsezgin (talk) 14:01, 17 December 2017 (UTC)
- Curiously, I expect a WDQS solution independent of wikidata. Thank you. Arnavutsezgin (talk) 20:32, 26 December 2017 (UTC)
- So did you find the solution afterwards? Juandev (talk) 13:48, 23 January 2025 (UTC)
How can I uninstall Wikibase Repository and retain Client?
[edit]- When I comment
require_once "$IP/extensions/Wikibase/repo/Wikibase.php";require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";and set$wgEnableWikibaseRepoto false. My wiki tell me: "Unable to connect to the database". How can I properly uninstall Wikibase Repository? 星耀晨曦 (talk) 14:14, 8 May 2018 (UTC)- Update problem description: I can access special page, however other pages show "Unable to connect to the database". If I disable Repository and Client at the same time, the page returns to normal. 星耀晨曦 (talk) 13:20, 9 May 2018 (UTC)
- That starts making more sense. When there is no repo, the client can not connect anywhere. Why do you want such a setup? Note that even if we are working on such a feature (it's called "federation", documentation is in the "docs" folder), we are currently only supporting setups where the repo database is on the same machine as the client. Thiemo Kreuz (WMDE) 13:28, 9 May 2018 (UTC)
- I see installation guide wrote "Enable Wikibase Client only". I thought I can only enable Client. 星耀晨曦 (talk) 13:34, 9 May 2018 (UTC)
- You can, but only if you have a second Wikibase repository wiki running on the same database. We hope to rewrite the installation instructions soon, and will try to do so during the upcoming hackathon. Thiemo Kreuz (WMDE) 14:13, 9 May 2018 (UTC)
- I tried this locally, and it works as expected. If your system is not able to connect to the database, the error can't be in the three lines you touched, as they don't even attempt to establish such a connection. Can you reproduce the error when all you do is reenabling/disabling these lines? Thiemo Kreuz (WMDE) 14:25, 8 May 2018 (UTC)
- If I reenable these lines, my wiki work well. Errors reappear when I disable these lines again. 星耀晨曦 (talk) 14:43, 8 May 2018 (UTC)
- I have no idea then, sorry. Did you edited any of these .php files? Thiemo Kreuz (WMDE) 15:56, 8 May 2018 (UTC)
- No. 星耀晨曦 (talk) 13:12, 9 May 2018 (UTC)
Need a developer help
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I need developed help to installing Wikibase on my site. Nirmol360 (talk) 18:52, 15 May 2018 (UTC)
Wikibase repository naming convention
[edit]Hi, I have a Gamepedia wiki and I would like to use Wikibase to store variables on a namespace (Properties:) and retrieve them in the main namespace. And I’d also a third tab between Article and Discussion. Is there a way to name items pages with its real name instead of Q173 or Qsomething ? Otherwise how do I link a page if the basepagename doesn’t match ? CreativeC (talk) 10:46, 19 July 2018 (UTC)
http://wikiba.se going https?
[edit]I guess it will be great if the website moved to https. [[kgh]] (talk) 10:01, 2 November 2018 (UTC)
Source code for label and geospatial services
[edit](I also asked here.) Can someone please point me at the source code for the label and geospatial services? Thanks! Bovlb (talk) 19:49, 13 December 2018 (UTC)
- Did you have a look at Wikidata Query Service/Implementation already? Lydia Pintscher (WMDE) (talk) 17:27, 14 December 2018 (UTC)
- Thanks for the link. That's a great starting point. I'm especially interested in the "magic" that goes beyond serving answers from datafiles: binding variables that weren't explicitly asked for; and doing geo-spatial calculations. I'll see if I can find that in the code.
- In case you were interested in what I'm doing: I'm looking at the possibility of serving knowledge graph embeddings and their proximity calculations for Wikidata in a way that can be integrated into SPARQL queries. Bovlb (talk) 19:34, 14 December 2018 (UTC)
Link local pages to items
[edit]Hello, I have installed an instance of Mediawiki with both the Wikibase client and repo. I can create an item with no problem and add a link to Wikipedia or Wikidata, but I cannot find what "language code" to indicate the local Wiki (say I have a page "Hello World" that should be linked to the "Q1" on my test wiki.) Ash Crow (talk) 21:02, 20 January 2019 (UTC)
- Hey, it's because the sites table is not populated to have the links to the client. I personally run eval.php and run this code:
- Ladsgroup (talk) 21:17, 23 January 2019 (UTC)
$sites = []; $langCode = 'en'; $site = new MediaWikiSite(); $site->setGlobalId( 'clientwiki' ); $site->setGroup( 'wikipedia' ); $site->setLanguageCode( $langCode ); $site->addInterwikiId( $langCode ); $site->addNavigationId( $langCode ); $site->setPath( MediaWikiSite::PATH_PAGE, "https://redis-dispatching-client.wmflabs.org/index.php/$1" ); $site->setPath( MediaWikiSite::PATH_FILE, "https://redis-dispatching-client.wmflabs.org/$1" ); $sites[] = $site; $sitesTable = SiteSQLStore::newInstance(); $sitesTable->clear(); $sitesTable->saveSites( $sites );
Documentation wikibase features
[edit]hi,
I would like to publish a feedback report after a Wikibase exploration done in 2019, its presenting (in french) the main features of wikibase/mediawiki (search, constraints, roles) and some details about the <code>wikibase-docker</code> image. Where do you think i can create a page for that (here under Overview paragraph? or maybe on Meta, if yes, where?)
Thanks! Jumtist (talk) 14:14, 16 February 2020 (UTC)
- Hello -- since this is your original content, it might make more sense to host your feedback report in a different location and then put a link to it on the Overview page, for example. You might also find that the Wikibase Registry is a good place to add your report, as there is similar content there. I also imagine that the Wikibase user group mailing list or chat would be a good place to find an audience for your report. Looking forward to reading it! Samantha Alipio (WMDE) (talk) 08:59, 2 March 2020 (UTC)
- For people reading this somehow, i ended up posting the report on a personal page User:Jumtist/exploration_wikibase Jumtist (talk) 09:52, 6 June 2020 (UTC)
Database Error when setup Wikibase
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Wikibase is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
[edit]Hi,
I followed this instruction (Wikibase/Installation). Have installed, xampp composer and mediawiki. But got an error when I run php maintenance/update.php. I don't know why it tells me I need to download mediawiki >=1.35, which hasn't been released. Could anyone help me?
The error message is following:
PHP Fatal error: Uncaught ExtensionDependencyError: WikibaseRepository is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
WikibaseLib is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
WikibaseView is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
WikibaseClient is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php:334
Stack trace:
#0 C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php(186): ExtensionRegistry->readFromQueue(Array)
#1 C:\xampp\htdocs\mediawiki\includes\Setup.php(143): ExtensionRegistry->loadFromQueue()
#2 C:\xampp\htdocs\mediawiki\maintenance\doMaintenance.php(83): require_once('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\mediawiki\maintenance\update.php(277): require_once('C:\\xampp\\htdocs...')
#4 {main}
thrown in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php on line 334
Fatal error: Uncaught ExtensionDependencyError: WikibaseRepository is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
WikibaseLib is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
WikibaseView is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
WikibaseClient is not compatible with the current MediaWiki core (version 1.34.1), it requires: >= 1.35.
in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php:334
Stack trace:
#0 C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php(186): ExtensionRegistry->readFromQueue(Array)
#1 C:\xampp\htdocs\mediawiki\includes\Setup.php(143): ExtensionRegistry->loadFromQueue()
#2 C:\xampp\htdocs\mediawiki\maintenance\doMaintenance.php(83): require_once('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\mediawiki\maintenance\update.php(277): require_once('C:\\xampp\\htdocs...')
#4 {main}
thrown in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php on line 334
PS C:\xampp\htdocs\mediawiki> 208.59.145.143 (talk) 16:15, 3 April 2020 (UTC)
- The current master branch of Wikibase is already using the unreleased MediaWiki 1.35, that's why. Did you followed the download link in the red box on top of Wikibase/Installation? It leads to https://github.com/wikimedia/mediawiki-extensions-Wikibase/branches/all?query=34 where you can download older snapshots of Wikibase that should be compatible with your MediaWiki 1.34. Thiemo Kreuz (WMDE) 16:58, 3 April 2020 (UTC)
Error HTTP 500 of VisualEditor when install Wikibase
[edit]Hi all,
When install Wikibase, my website error "apierror-visualeditor-docserver-http: HTTP 500" when Edit by VisualEditor, please help me.
Thanks! Xuanthucit (talk) 13:12, 22 April 2020 (UTC)
Why do sense claims have no datatype?
[edit]why is there no datatype property in sense objects?
wikidata.org/wiki/Special:EntityData/L99.json
senses:
claims:
- datavalue:
value: "Balloons in the sky.jpg"
type: "string"
property: "P18"
snaktype: "value"
for comparison a regular entity looks like this:
wikidata.org/wiki/Special:EntityData/Q643435.json
claims:
- datatype: "commonsMedia" # ← I need this for sense properties
datavalue:
value: "Congrats bqt.jpg"
type: "string"
property: "P18"
snaktype: "value" Shisma (talk) 15:11, 24 June 2020 (UTC)
- Could you please file a ticket for this on phabricator.wikimedia.org? Thanks! Lydia Pintscher (WMDE) (talk) 13:28, 24 July 2020 (UTC)
- it was already reported as https://phabricator.wikimedia.org/T249206 Shisma (talk) 17:46, 24 July 2020 (UTC)
Wikibase lib hooks
[edit]- Extension:WikibaseLib/Hooks/WikibaseClientEntityNamespaces
- Extension:WikibaseLib/Hooks/WikibaseContentLanguages
- Extension:WikibaseLib/Hooks/WikibaseRepoEntityNamespaces
Could someone move these under Extension:Wikibase Repository/Hooks or Extension:Wikibase Client/Hooks as appropriate? * Pppery * it has begun 22:32, 23 July 2020 (UTC)
Call to undefined method GeoData\CoordinatesOutput::hasPrimary()
[edit]Hello, hopes you are all doing well, I'm facing this issue, when i run:
php maintenance/importEntities.php --all-properties
[2020-08-03 11:28:54]: Importing Batch: P10, P1000, P1001, P1002, P1003, P1004, P1005, P1006, P1007, P101 [2020-08-03 11:28:55]: Creating P10 [a005ade11535540a59260e84] [no req] Error from line 103 of /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/GeoDataDataUpdater.php: Call to undefined method GeoData\CoordinatesOutput::hasPrimary() Backtrace: #0 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/CompositeStatementDataUpdater.php(32): Wikibase\Repo\ParserOutput\GeoDataDataUpdater->updateParserOutput() #1 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/PropertyParserOutputUpdater.php(31): Wikibase\Repo\ParserOutput\CompositeStatementDataUpdater->updateParserOutput() #2 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/PropertyParserOutputUpdater.php(22): Wikibase\Repo\ParserOutput\PropertyParserOutputUpdater->updateParserOutputForProperty() #3 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/EntityParserOutputDataUpdaterCollection.php(44): Wikibase\Repo\ParserOutput\PropertyParserOutputUpdater->updateParserOutput() #4 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/FullEntityParserOutputGenerator.php(138): Wikibase\Repo\ParserOutput\EntityParserOutputDataUpdaterCollection->updateParserOutput() #5 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/StatsdTimeRecordingEntityParserOutputGenerator.php(48): Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator->getParserOutput() #6 /var/www/html/extensions/Wikibase/repo/includes/Content/EntityContent.php(238): Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator->getParserOutput() #7 /var/www/html/extensions/Wikibase/repo/includes/Content/PropertyContent.php(138): Wikibase\Repo\Content\EntityContent->getParserOutputFromEntityView() #8 /var/www/html/extensions/Wikibase/repo/includes/Content/EntityContent.php(177): Wikibase\Repo\Content\PropertyContent->getParserOutputFromEntityView() #9 /var/www/html/includes/Revision/RenderedRevision.php(263): Wikibase\Repo\Content\EntityContent->getParserOutput() #10 /var/www/html/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached() #11 /var/www/html/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput() #12 /var/www/html/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput() #13 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}() #14 /var/www/html/includes/Revision/RenderedRevision.php(197): call_user_func() #15 /var/www/html/includes/Storage/DerivedPageDataUpdater.php(1309): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput() #16 /var/www/html/includes/Storage/PageUpdater.php(749): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput() #17 /var/www/html/extensions/Wikibase/repo/includes/Store/Sql/WikiPageEntityStore.php(374): MediaWiki\Storage\PageUpdater->saveRevision() #18 /var/www/html/extensions/Wikibase/repo/includes/Store/Sql/WikiPageEntityStore.php(234): Wikibase\Repo\Store\Sql\WikiPageEntityStore->saveEntityContent() #19 /var/www/html/extensions/Wikibase/lib/includes/Store/TypeDispatchingEntityStore.php(85): Wikibase\Repo\Store\Sql\WikiPageEntityStore->saveEntity() #20 /var/www/html/extensions/WikibaseImport/src/EntityImporter.php(145): Wikibase\Lib\Store\TypeDispatchingEntityStore->saveEntity() #21 /var/www/html/extensions/WikibaseImport/src/EntityImporter.php(115): Wikibase\Import\EntityImporter->createEntity() #22 /var/www/html/extensions/WikibaseImport/src/EntityImporter.php(74): Wikibase\Import\EntityImporter->importBatch() #23 /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php(78): Wikibase\Import\EntityImporter->importEntities() #24 /var/www/html/maintenance/doMaintenance.php(105): Wikibase\Import\Maintenance\ImportEntities->execute() #25 /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php(133): require_once(string) #26 {main}
Thank you 2001:8F8:1E23:1DCA:60BA:229A:9B00:88DC (talk) 07:50, 3 August 2020 (UTC)
- It looks like the version of the GeoData extension you are using is not compatible with the version of the Wikibase extension you are running. The method in the error message is available since release 1.35.0-wmf.2 and in all later releases. You should make sure your GeoData extension is at least this version. Thiemo Kreuz (WMDE) 08:53, 3 August 2020 (UTC)
PHP Fatal error: Interface 'MediaWiki\Hook\ResourceLoaderRegisterModulesHook' not found in D:\Bitnami\mediawiki-1.35.0-0\apps\mediawiki\htdocs\extensions\Wikibase\lib\includes\LibHooks.php on line 20
[edit]Hi, when I was installing wikibase 1.35.0 that I've downloaded from GitHub (wikibase 1.35.0-wmf.41) (link: https://github.com/wikimedia/mediawiki-extensions-Wikibase/tree/wmf/1.35.0-wmf.41) for mediawiki 1.35.0, while I was doing the final installation process (which is to run the setup scripts like "php maintenance/update.php", it gives me this error: "PHP Fatal error: Interface 'MediaWiki\Hook\ResourceLoaderRegisterModulesHook' not found in D:\Bitnami\mediawiki-1.35.0-0\apps\mediawiki\htdocs\extensions\Wikibase\lib\includes\LibHooks.php on line 20"
Is there a solution to it?
By the ways, I'm using Bitnami MediaWiki Stack that utilizes version 1.35.0. Nathan J Richards (talk) 06:18, 1 November 2020 (UTC)
- These versions are not compatible, I'm afraid. I believe you should follow the instructions here: Wikibase/Installation#Download archive. Thiemo Kreuz (WMDE) 08:00, 1 November 2020 (UTC)
Unhelpful error message delivered by Wikibase
[edit]<figure-inline class="mw-default-size">
</figure-inline>
This is the error I receive when trying to "Add links" to a page through Wikibase in MediaWiki 1.35.
Is there any way to improve the error message we receive, to help with troubleshooting? Marx.FelipeForte (talk) 13:15, 9 December 2020 (UTC)
- I'm afraid this needs much more context. Is this on wikidata.org or your own wiki? Do you see anything in the JavaScript console? Thiemo Kreuz (WMDE) 13:23, 9 December 2020 (UTC)
- Hello, Thiemo.
- It's in a wiki I am helping run.
- I checked the console and found these errors, which may help find out what causes it:
- "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource" https://shared.prolewiki.org/api.php?action=query&format=json&origin=https%3A%2F%2Fen.prolewiki.org&meta=userinfo(Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
- If we try to access that link, we get
- "'origin' parameter does not match Origin header" Marx.FelipeForte (talk) 00:31, 10 December 2020 (UTC)
- I'm afraid I can't help with that. I suggest to check if Manual:CORS is helpful. Thiemo Kreuz (WMDE) 12:03, 11 December 2020 (UTC)
- I'd bet this has nothing to do with Wikidata. Have you gone through the sitelinks documentation here? Wikibase/Installation#Enable Sitelinks Dan Shick (WMDE) (talk) 15:50, 9 December 2020 (UTC)
Help with WDQS UPDATER container failing/restarting
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Could anyone please advise why this is happening?
Running Wikibase based on the docker-compose.yml file on wikibase-docker repository. 7 of 8 containers are up except for the the WDQS-updater which keeps restarting with the following error.
The following is from the logs:
at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)
at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)
at org.wikidata.query.rdf.tool.Update.main(Update.java:97)
wait-for-it.sh: waiting 300 seconds for wikibase.svc:80
wait-for-it.sh: wikibase.svc:80 is available after 0 seconds
wait-for-it.sh: waiting 300 seconds for wdqs.svc:9999
wait-for-it.sh: wdqs.sv
c:9999
is available after 0 seconds
Updating via http://wdqs.svc:9999/bigdata/namespace/wdq/sparql
OpenJDK 64-Bit Server VM warning: Cannot open file /var/log/wdqs/wdqs-updater_jvm_gc.pid10.log due to No such file or directory
#logback.classic pattern: %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
04:13:17.250 [main] INFO org.wikidata.query.rdf.tool.Update - Starting Updater 0.3.10-SNAPSHOT (8bba8bfb0bbb12361c0e214fe482fbe15fcaa129)
04:13:18.251 [main] INFO o.w.q.r.t.change.ChangeSourceContext - Checking where we left off
04:13:18.252 [main] INFO o.w.query.rdf.tool.rdf.RdfRepository - Checking for left off time from the updater
04:13:18.512 [main] INFO o.w.query.rdf.tool.rdf.RdfRepository - Found left off time from the updater
04:13:18.514 [main] ERROR org.wikidata.query.rdf.tool.Update - Error during initialization.
java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data.
at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)
at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)
at org.wikidata.query.rdf.tool.Update.main(Update.java:97)
Exception in thread "main" java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data.
at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)
at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)
at org.wikidata.query.rdf.tool.Update.main(Update.java:97)
wait-for-it.sh: waiting 300 seconds for wikibase.svc:80
wait-for-it.sh: wikibase.svc:80 is available after 0 seconds
wait-for-it.sh: waiting 300 seconds for wdqs.svc:9999
wait-for-it.sh: wdqs.svc:9999 is available after 0 seconds
Updating via http://wdqs.svc:9999/bigdata/namespace/wdq/sparql
OpenJDK 64-Bit Server VM warning: Cannot open file /var/log/wdqs/wdqs-updater_jvm_gc.pid10.log due to No such file or directory
#logback.classic pattern: %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
04:14:19.547 [main] INFO org.wikidata.query.rdf.tool.Update - Starting Updater 0.3.10-SNAPSHOT (8bba8bfb0bbb12361c0e214fe482fbe15fcaa129)
04:14:24.297 [main] INFO o.w.q.r.t.change.ChangeSourceContext - Checking where we left off
04:14:24.297 [main] INFO o.w.query.rdf.tool.rdf.RdfRepository - Checking for left off time from the updater
04:14:24.602 [main] INFO o.w.query.rdf.tool.rdf.RdfRepository - Found left off time from the updater
04:14:24.604 [main] ERROR org.wikidata.query.rdf.tool.Update - Error during initialization.
java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data.
at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)
at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)
at org.wikidata.query.rdf.tool.Update.main(Update.java:97)
Exception in thread "main" java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data.
at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)
at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)
at org.wikidata.query.rdf.tool.Update.main(Update.java:97) Tinyttt (talk) 04:29, 12 December 2020 (UTC)
- Does this help? Wikibase/FAQ/en#Why doesn't the query service update? Dan Shick (WMDE) (talk) 11:43, 15 December 2020 (UTC)
When only properties can have datatypes ...
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
how can one make a new item an instance of "X", where "X" is something like a class (in OOP terms), a schema (think XML) or a table structure (think RDBMS) so that it gets (the possibility of having) a given set of properties from the start and can perhaps be validated? It seems to me that without a complex datatype, for instance the entity Berlin will be just an amorphous something, and one will have to turn Berlin into a property to be able to make it a city.
How can one reuse the structure of an existing item as a basis for creating a new, similar item?
At Wikidata:WikiProject Books/Book data model, the data model for a book requires the presence of the property "instance of". This of course is fairly easily understod by humans, but does it mean anything to the framework? And if so, how? It is my understanding that inheritance is not supported. I spent a day reading about Wikibase concepts but still have not found any clear answers. Henryfunk (talk) 14:26, 2 January 2021 (UTC)
Is there any way to delete all Wikibase entries?
[edit]Hello all,
Is there any way to delete all Wikibase entries? something like (SQL command or similar)
Thank you 2001:8F8:146D:1C00:BD7D:F814:60B7:1B86 (talk) 08:48, 15 April 2021 (UTC)
- the file deleteAllData.php does not exist 2001:8F8:146D:E115:DCFD:16D7:4CA5:8916 (talk) 12:22, 21 April 2021 (UTC)
- Are you looking to delete all data? or only Wikibase entities?
- Are you looking to do a MediaWiki "delete" or rather totally remove all references from you database?
- What's the usecase? ·addshore· talk to me! 09:55, 30 July 2021 (UTC)
the extension doesn't work
[edit]I installed this extension once and this happened: first all good, I could create items, properties, etc. But at some point it stopped working, I couldn't do anything anymore, the button to add declarations didn't appear, even the special pages to set labels and descriptions didn't work either.
Now that I have re-installed the extension on the same wiki, the exact same thing happened. I don't know what I'm doing wrong, and I know that this is not enough to know the problem, but I don't know what else to do. ChofisDan (talk) 03:58, 27 February 2022 (UTC)
- We need some more information in order to help you with this problem. Could you provide the version numbers of MediaWiki and Wikibase, which install instructions you used, the output from the relevant MediaWiki logs, and a more detailed description of the failures, including screenshots if possible?
- See also our FAQ and the MediaWiki-specific Manual:How to debug and Manual:Common errors and symptoms#Installation Errors . Dan Shick (WMDE) (talk) 08:44, 3 March 2022 (UTC)
Arbitrary access to statement values using federated properties
[edit]Is there any additional guidance around access to statement values when using federated properties? From the Wikidata guide (arbitrary access): https://www.wikidata.org/wiki/Wikidata:How_to_use_data_on_Wikimedia_projects if I try #statements:P31|from=Q1 (curly brackets left out) P31 can't be found, despite existing in Wikidata's Properties and being completed on my Q1 entity as "company". The error: Failed to render property P31: P31 property not found. Beet keeper (talk) 15:45, 5 April 2022 (UTC)
Data from Wikidata on third party wikis
[edit]I have a third party wiki and I would like to use lua modules like they are used on Wikipedias to fetch data. Is this a matter of configuration or do I need to install Wikibase Client or some other software? Perhaps it is just a MediaWiki configuration parameter. This page leaves a bit me clueless. Thanks for your insight. 2003:F1:C713:C500:5957:AB4D:9CB3:9073 (talk) 18:44, 8 July 2022 (UTC)
- Note, also asked on wikidata.org. 2003:F1:C713:C500:5957:AB4D:9CB3:9073 (talk) 18:46, 8 July 2022 (UTC)
- Answered on wikidata.org! Dan Shick (WMDE) (talk) 14:18, 13 July 2022 (UTC)
- Thank you for your repy on wikidata.org! 2003:F1:C713:C500:E0D5:E96F:567:C0A6 (talk) 07:15, 14 July 2022 (UTC)
Error: Class 'Onoi\MessageReporter\ObservableMessageReporter' not found
[edit]Error: Class 'Onoi\MessageReporter\Observa bleMessageReporter' not found Backtrace: from /var/www/html/mediawiki/extensions/Wikibase/repo/maintenance/rebuildItemsPe rSite.php(82)
- 0 /var/www/html/mediawiki/maintenance/doMaintenance.php(114): Wikibase\Repo\Mai ntenance\RebuildItemsPerSite->execute()
- 1 /var/www/html/mediawiki/extensions/Wikibase/repo/maintenance/rebuildItemsPerS ite.php(147): require_once(string)
- 2 {main} Klymets (talk) 10:25, 22 September 2022 (UTC)
Class 'DataValues\Deserializers\DataValueDeserializer' not found
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
After attempting to update to MediaWiki 1.38, I also updated the Wikibase extension. Nevertheless, both the new and the old Wikibase are currently producing the same error, hinting at a problem with how Wikibase interacts with the new MediaWiki version 1.38.
Full error log:
[5fd0ce49dfdffcca08f1df96] /wiki/ProleWiki:Main_page Error: Class 'DataValues\Deserializers\DataValueDeserializer' not found
Backtrace:
from /var/www/prole/extensions/Wikibase/client/WikibaseClient.ServiceWiring.php(264)
#0 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}()
#1 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#2 /var/www/prole/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#3 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(424): MediaWiki\MediaWikiServices->getService()
#4 /var/www/prole/extensions/Wikibase/client/includes/WikibaseClient.php(361): Wikimedia\Services\ServiceContainer->get()
#5 /var/www/prole/extensions/Wikibase/client/WikibaseClient.ServiceWiring.php(860): Wikibase\Client\WikibaseClient::getDataValueDeserializer()
#6 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}()
#7 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#8 /var/www/prole/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#9 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(424): MediaWiki\MediaWikiServices->getService()
#10 /var/www/prole/extensions/Wikibase/client/includes/WikibaseClient.php(155): Wikimedia\Services\ServiceContainer->get()
#11 /var/www/prole/extensions/Wikibase/client/WikibaseClient.ServiceWiring.php(1057): Wikibase\Client\WikibaseClient::getSingleEntitySourceServicesFactory()
#12 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}()
#13 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#14 /var/www/prole/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#15 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(424): MediaWiki\MediaWikiServices->getService()
#16 /var/www/prole/extensions/Wikibase/client/includes/WikibaseClient.php(160): Wikimedia\Services\ServiceContainer->get()
#17 /var/www/prole/extensions/Wikibase/client/WikibaseClient.ServiceWiring.php(956): Wikibase\Client\WikibaseClient::getWikibaseServices()
#18 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}()
#19 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#20 /var/www/prole/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#21 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(424): MediaWiki\MediaWikiServices->getService()
#22 /var/www/prole/extensions/Wikibase/client/includes/WikibaseClient.php(222): Wikimedia\Services\ServiceContainer->get()
#23 /var/www/prole/extensions/Wikibase/client/WikibaseClient.ServiceWiring.php(401): Wikibase\Client\WikibaseClient::getStore()
#24 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}()
#25 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#26 /var/www/prole/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#27 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(424): MediaWiki\MediaWikiServices->getService()
#28 /var/www/prole/extensions/Wikibase/client/includes/WikibaseClient.php(170): Wikimedia\Services\ServiceContainer->get()
#29 /var/www/prole/extensions/Wikibase/client/WikibaseClient.ServiceWiring.php(826): Wikibase\Client\WikibaseClient::getEntityLookup()
#30 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}()
#31 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
#32 /var/www/prole/includes/MediaWikiServices.php(294): Wikimedia\Services\ServiceContainer->getService()
#33 /var/www/prole/vendor/wikimedia/services/src/ServiceContainer.php(424): MediaWiki\MediaWikiServices->getService()
#34 /var/www/prole/vendor/wikimedia/object-factory/src/ObjectFactory.php(211): Wikimedia\Services\ServiceContainer->get()
#35 /var/www/prole/vendor/wikimedia/object-factory/src/ObjectFactory.php(152): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()
#36 /var/www/prole/includes/HookContainer/HookContainer.php(473): Wikimedia\ObjectFactory\ObjectFactory->createObject()
#37 /var/www/prole/includes/HookContainer/HookContainer.php(156): MediaWiki\HookContainer\HookContainer->getHandlers()
#38 /var/www/prole/includes/HookContainer/HookRunner.php(2858): MediaWiki\HookContainer\HookContainer->run()
#39 /var/www/prole/includes/parser/Parser.php(635): MediaWiki\HookContainer\HookRunner->onParserClearState()
#40 /var/www/prole/includes/parser/Parser.php(4833): Parser->clearState()
#41 /var/www/prole/includes/parser/Parser.php(926): Parser->startParse()
#42 /var/www/prole/includes/parser/Parser.php(4860): Parser->preprocess()
#43 /var/www/prole/includes/cache/MessageCache.php(1257): Parser->transformMsg()
#44 /var/www/prole/includes/language/Message.php(1474): MessageCache->transform()
#45 /var/www/prole/includes/language/Message.php(1007): Message->transformText()
#46 /var/www/prole/includes/language/Message.php(1071): Message->format()
#47 /var/www/prole/includes/OutputPage.php(1041): Message->text()
#48 /var/www/prole/includes/OutputPage.php(1090): OutputPage->setHTMLTitle()
#49 /var/www/prole/includes/page/Article.php(464): OutputPage->setPageTitle()
#50 /var/www/prole/includes/actions/ViewAction.php(80): Article->view()
#51 /var/www/prole/includes/MediaWiki.php(543): ViewAction->show()
#52 /var/www/prole/includes/MediaWiki.php(321): MediaWiki->performAction()
#53 /var/www/prole/includes/MediaWiki.php(912): MediaWiki->performRequest()
#54 /var/www/prole/includes/MediaWiki.php(563): MediaWiki->main()
#55 /var/www/prole/index.php(53): MediaWiki->run()
#56 /var/www/prole/index.php(46): wfIndexMain()
#57 {main} Marx.FelipeForte (talk) 02:21, 8 November 2022 (UTC)
- Fix found: Copy "composer.json" from the Wikibase extension folder to the main folder as "composer.local.json", then run:
composer install --no-dev
Marx.FelipeForte (talk) 23:31, 8 November 2022 (UTC)
Missing link
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Can we add the link to Wikibase/Installation somewhere here? It feels like it should be visible from here. WikiWriter123 (talk) 12:54, 23 January 2023 (UTC)
- I have linked Wikibase/Installation at Wikibase/Quick start which is linked on this page. Lectrician1 (talk) 13:02, 23 January 2023 (UTC)
Relationship between Wikibase and MediaWiki
[edit]- Waht's the relationship between Wikibase and MediaWiki? Is Wikibase a MediaWiki extension? The GitHub readme.md says that Wikibase is multiple MediaWiki extensions and also "other components". Which extensions and components? Thanks. –Novem Linguae (talk) 00:18, 8 June 2023 (UTC)
- The mention of "other components" refers to a full-featured Wikibase install, as illustrated in the diagram on the top of this page: Wikibase/Maintaining
- There are instructions for installing just the Wikibase extension(s), which these days is a fairly uncommon use case: Wikibase/Installation
- You will probably have the best experience using our Docker images, until our Suite team finishes their work on the mechanics of the manual install, and we can update the now quite out-of-date docs: Wikibase/Suite Dan Shick (WMDE) (talk) 13:59, 18 August 2023 (UTC)
- OK, I researched a bit more and found Extension:WikibaseRepository and Extension:WikibaseClient. If I wanted to set up a very basic Wikibase, would all I need to do is install MediaWiki core and Extension:WikibaseRepository? –Novem Linguae (talk) 00:36, 8 June 2023 (UTC)
wikibase world
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
What about adding a link to wikibase world somewhere on the page? [[kgh]] (talk) 10:21, 18 August 2023 (UTC)
- Pinging @Dan Shick (WMDE): since you worked last on the page. [[kgh]] (talk) 10:22, 18 August 2023 (UTC)
- Good suggestion! I'm adding this to my list of tasks for the next go-round with the docs (should be done by end of Aug.) Dan Shick (WMDE) (talk) 13:54, 18 August 2023 (UTC)
- Thanks a bunch! [[kgh]] (talk) 14:27, 18 August 2023 (UTC)
Using the main namespace for items
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I'm running MediaWiki 1.40.0 and I would like to use the main namespace for items like on Wikidata. Can I just add something to LocalSettings.php of the repository or do I have to edit Wikibase.example.php? I'm currently using the default Wikibase.example.php and my LocalSettings.php looks like this.
Also, I'm still having issues with pre-1.37.0 items. They look like this (NSFW) while new items look like this (NSFW).
Any ideas on how to fix this are very much appreciated! Thanks, cheers and all the best! Till Kraemer (talk) 16:47, 14 September 2023 (UTC)
- I'm not sure if this is the best way to do it but this seems to work for me:
- LocalSettings.php of the repo:
wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" );$wgWBRepoSettings['siteLinkGroups'] = [ 'mywiki', 'pool', 'quote' ];$wgWBRepoSettings['localClientDatabases'] = array('de' => 'dewiki','en' => 'enwiki','ja' => 'jawiki',);$wgExtraNamespaces[120] = "Property";$wgExtraNamespaces[121] = "Property_talk";$entitySources = ['data' => ['entityNamespaces' => [ 'item' => 0, 'property' => 120 ],'repoDatabase' => 'datawiki','baseUri' => 'https://data.mywiki.com/wiki/','interwikiPrefix' => '','rdfNodeNamespacePrefix' => '','rdfPredicateNamespacePrefix' => 'wd','type' => 'db'],];$wgWBRepoSettings['entitySources'] = $entitySources;$wgWBRepoSettings['localEntitySourceName'] = 'data';- LocalSettings.php of the clients:
wfLoadExtension( 'WikibaseClient', "$IP/extensions/Wikibase/extension-client.json" );$wgWBClientSettings['repoUrl'] = 'https://data.mywiki.com';$wgWBClientSettings['repoScriptPath'] = '';$wgWBClientSettings['repoArticlePath'] = '/wiki/$1';$entitySources = ['datawiki' => ['repoDatabase' => 'datawiki','baseUri' => 'https://data.mywiki.com/wiki/','entityNamespaces' => ['item' => 0,'property' => 120,],'interwikiPrefix' => '','rdfNodeNamespacePrefix' => '','rdfPredicateNamespacePrefix' => 'wd',],];$wgWBClientSettings['entitySources'] = $entitySources;$wgWBClientSettings['itemAndPropertySourceName'] = 'datawiki';$wgWBClientSettings['siteLinkGroups'] = [ 'mywiki' ];$wgWBClientSettings['siteGlobalID'] = 'enwiki';$wgWBClientSettings['otherProjectsLinks'] = [ 'poolwiki', 'quotewiki' ];- After the changes, I also ran cleanupTitles.php on the repo. Thanks and cheers! Till Kraemer (talk) 13:19, 6 November 2023 (UTC)
Article is still linked to a deleted item
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I have a weird issue on my wikibase repository where some old items are suddenly wikitext, so trying to edit them gives me errors like '"wikitext" content is not allowed on page Q18155 in slot "Main"'.
I'm too scared to alter the database by hand so I just wanted to delete these faulty items. However, the associated link to the item doesn't go away in the language versions, so I can't link to those articles in a new item, resulting in errors like "The link... is already used by Item Q18155.", even though that item has been already deleted.
Is there by any chance a script available that deattaches the link from an article to a deleted wikibase item? Thanks, cheers and all the best! Till Kraemer (talk) 13:38, 6 November 2023 (UTC)
- Redirecting the old item to the new item via Special:RedirectEntity and then deleting the old item seems to solve this issue. Cheers and all the best! Till Kraemer (talk) 17:14, 7 November 2023 (UTC)
CHANGELOG
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Can we please get a page with a changelog/release ntoes that lists all changes in each Wikibase version similar to how it exists for Mediawiki (https://www.mediawiki.org/wiki/Release_notes)? MavropaliasG (talk) 11:42, 5 February 2024 (UTC)
- These are provided in git by the development team: RELEASE-NOTES-1.37, RELEASE-NOTES-1.38, RELEASE-NOTES-1.39 etc. Is that sufficient for your needs? I don't think copying them onto the wiki would be a good idea, as they would diverge from reality pretty easily (as do the MediaWiki notes). Jdforrester (WMF) (talk) 13:33, 5 February 2024 (UTC)
Standalone Wikibase not prefered any more?
[edit]If I type in extension:wikibase I am linked here and yet the first link is Wikibase cloud. Does it mean, that standalone Wikibase instalation is not prefered any more? Juandev (talk) 08:05, 12 February 2024 (UTC)
- Ya that's kind of weird. At least the Docker setup should be linked. Lectrician1 (talk) 13:32, 12 February 2024 (UTC)
Which table does Wikibase query for getting the current statements on a Wikidata item?
[edit]I'm trying to understand how the internals of Wikibase work. Specifically, I want to know how Wikibase is able to show the current statements of a Wikidata item in the web browser of end users.
I decided to inspect the source code (link to the Wikibase repository in gerrit.wikimedia.org), but as I am not very familiar with PHP and the internals of Wikibase, I believed that I didn't find the relevant part that accomplishes what I am looking for.
I presume that Wikibase keeps track of the current statements in a table and whenever a new revision is added to the Mediawiki's the revision table, the table that stores Wikibase statements is modified accordingly. Then, when someone asks for the current statements of a Wikidata item, Wikibase returns the rows at the table that stores current Wikibase statements.
My question is: What is the workflow that is followed for Wikibase to return the current statements of a Wikidata item to users so that they see it in their web browsers? Rdrg109 (talk) 19:40, 29 April 2024 (UTC)
- I asked a similar question in Libera Chat's room
#wikimedia-cloudand some user replied: - Rdrg109 (talk) 20:03, 29 April 2024 (UTC)
19:35 <rdrg109> I still have a question though: How does Wikibase is able to know the existing statements on a given Wikibase item? I presume Wikibase stores that information somewhere in a table in a database. Isn't that information stored in any of the tables named wb_* or wbt_*? 19:44 <rdrg109> ^ For the record, I opened a topic for this question in Talk:Wikibase: https://www.mediawiki.org/wiki/Talk%3AWikibase/Flow%20export#h-Which_table_does_Wikibase_query_for_getting_the_current_statements_on_a_Wikidata-20240429194000 19:46 <+wm-bb> <<hidden username>> it’s stored in a table that’s not available on the replicas 19:46 <+wm-bb> <<hidden username>> see https://wikitech.wikimedia.org/wiki/Help:Toolforge/Database#Unavailable_tables, the `text` table is the one with all the page contents
- The "workflow" is that it fetches the JSON of the Entity (not from the
texttable, but via external storage) and decodes it. You can call thewbgetclaimsAPI to get the statements ('claims'), like this one for Q42/Douglas Adams, or if you really want you could fetch the raw entity JSON over the Wikibase API and decode it yourself, I suppose. Hope this helps! Jdforrester (WMF) (talk) 08:39, 30 April 2024 (UTC)
Extension:Wikibase and installation of the extension
[edit]At some point in the past, this page, or something this page pointed to, actually told you how to install the Wikibase extension. It doesn't seem to any more.
I want to link to (or at least be able to copy) some documentation that says how to install the extension for development reasons, what LocalSettings lines are needed when installing the extension, does install.php need to be run?
As far as I can tell, that is no longer the case, and I can't easily find the documentation to point to for how to install the extension for a blog post that I am writing.
An example from another extension would be https://www.mediawiki.org/wiki/Extension:Cognate#Installation
Ping @Dan Shick (WMDE):
After some searching through older version of this page I found these install pages exist, but go far above this basic installation introduction https://www.mediawiki.org/wiki/Wikibase/Installation https://www.mediawiki.org/wiki/Wikibase/Installation/Advanced_configuration, and are not currently linked from the landing page.
Thoughts? ·addshore· talk to me! 22:32, 9 June 2024 (UTC)
- Go for it. Maybe put it on a different page though and link that page to here? 2600:1008:B02D:B116:2998:E105:74E5:49C7 (talk) 13:00, 10 June 2024 (UTC)
- See https://www.mediawiki.org/w/index.php?title=Template:Wikibase_main_page&diff=prev&oldid=6573122 which links to a page for the extension from the Wikibase landing page.
- And https://www.mediawiki.org/wiki/Wikibase/Extension for a first version of the page itself. ·addshore· talk to me! 07:56, 11 June 2024 (UTC)
- And on second thoughts, to align with the rest of mediawiki.org a little more, this page I have just created should probably just live at Extension:Wikibase, and have a banner at the top that also directs people to this wider Wikibase landing page.
- Thoughts? ·addshore· talk to me! 08:08, 11 June 2024 (UTC)
- I have moved the page. And added a link to the main Wikibase page. * Pppery * it has begun 19:56, 24 March 2025 (UTC)
Use a wikibase from wikibase.cloud as repo of a wiki
[edit]Hello,
is this possible? How should the configuration look like? The client, in this case, would be my wiki with wikibase installed.
Thanks for any help! Loman87 (talk) 13:38, 4 November 2024 (UTC)