Closed megamattc closed 1 month ago
Hi @megamattc,
Thanks for sharing that.
My first guess would be, that you need to configure WDQS_ENTITY_NAMESPACES on WDQS, so that your lexeme namespace gets synced as well.
So your wdqs-updater
service should look like this:
wdqs-updater:
image: wikibase/wdqs:1
command: /runUpdate.sh
depends_on:
wdqs:
condition: service_healthy
restart: unless-stopped
# Set number of files ulimit high enough, otherwise blazegraph will abort with:
# library initialization failed - unable to allocate file descriptor table - out of memory
# Appeared on Docker 24.0.5, containerd 1.7.9, Linux 6.6.6, NixOS 23.11
ulimits:
nofile:
soft: 32768
hard: 32768
environment:
- WDQS_ENTITY_NAMESPACES=120,122,146
Does this make any difference?
Best, Robert
Whohoo!!
Yes! This long-standing irritation has been solved. Thank you!
Perhaps I should have looked at that particular Readme.md
that you link to more carefully.
On the other hand, I wish such information was specified with the basic installation instructions for the WikibaseLexeme extension, at the MediaWiki site. It mentions elliptically to 'define the namespace' for the Lexemes, but I recall when I searched for what this meant I only found references to modifying LocalSettings.php
with the lines I mentioned above, i.e.
wfLoadExtension('WikibaseLexeme');
define('Lexeme', 146);
define('Lexeme_talk', 147);
However, the modification of the docker-compose.yml
file is also necessary.
Hello,
I have setup a WBS instance (current version) on a VM running ubuntu 24.04, with the WikibaseLexeme extension installed. The WikibaseLexeme extension works to the extent I can create Lexemes manually, and see that they appear both in the main search box and pages like 'Recent Changes'. In addition, my sparql query service is able to find regular P- and Q-items I have created. However, the sparql query does not find any lexemes under, for instance, the following standard query:
The query executes but does not return any of the lexemes I created.
I do not understand why this is. I have checked the container logs and do not find any errors. This, even as I do not understand Wikibase well enough to understand where the problem must lie according to those logs. For explanation purposes I will specify modifications I made to the
docker-compose.yml
file and other notable steps I took when building the wikibase.The
docker-compose.yml
file is below. In particular,In
wikibase
I mount a copy of WikibaseLexeme:In
wdqs-updater
I define three environment variables:(I forgot the reason I did this, but it was not for Lexemes)
I first launched the Docker containers so that the default
./config/LocalSettings.php
would be generated. Then I edited./config/LocalSettings.php
so that it contained the required lines:I then did
docker compose down
anddocker compose up --wait
to reinitialize the containers with the modified./config/LocalSettings.php
file.Finally, because initially the sparql query service does not update as it should (see https://www.mediawiki.org/wiki/Wikibase/FAQ/en#Why_doesn't_the_query_service_update?), I resort to the recommendation in the above link so as to reset the update conditions:
CTRL+C
Then, as I said, the wikibase appears to work normally except that sparql queries do not detect Lexemes, even under the most general of queries (e.g. SELECT * WHERE {?x ?y ?z .}).
Does anyone know what the problem is?
For reference, the full
docker-compose.yml
file is below: