Hi All!
I'm trying to figure out possible ways to launch Mediawiki-Wikibase software to allow collaborative creation of wiki pages and corresponding knowledge graph.
As well as I understand, it is possible to configure a single installation of Mediawiki with Wikibase extension, and have all wiki pages in the Main namespace like https://example.org/wiki/ and all graph items in the namespace https://example.org/wiki/Item:
I want to build something more similar to Wikipedia-Wikidata -- wiki pages in the namespace https://wiki.example.org/wiki/ and wikibase graph in the namespace https://graph.example.org/wiki/ . Am I right that I have to launch two instances of MediaWiki for that, one without Wikibase extension and one with it?
Or is there a simpler way to configure the system to get such namespace structure?
Thank you for help! Victor Agroskin
Hi Victor!
If you want a setup just like the Wikidata -> Wikipedia one you will indeed need 2 different MediaWiki sites (although these can ultimately be run on the same server and with the same code). The Wikipedia like site will only need WikibaseClient enabled, and the Wikidata like site will need WikibaseClient and WikibaseRepo. In order to connect the 2 you'll probably find these docs that I have just rewritten (not yet merged) useful https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Wikibase/+/597642/4/...
I'm curious to find out why using the Item namespace wouldn't work for your usecase?
On Tue, 2 Jun 2020 at 16:38, Victor Agroskin vic5784@gmail.com wrote:
Hi All!
I'm trying to figure out possible ways to launch Mediawiki-Wikibase software to allow collaborative creation of wiki pages and corresponding knowledge graph.
As well as I understand, it is possible to configure a single installation of Mediawiki with Wikibase extension, and have all wiki pages in the Main namespace like https://example.org/wiki/ and all graph items in the namespace https://example.org/wiki/Item:
I want to build something more similar to Wikipedia-Wikidata -- wiki pages in the namespace https://wiki.example.org/wiki/ and wikibase graph in the namespace https://graph.example.org/wiki/ . Am I right that I have to launch two instances of MediaWiki for that, one without Wikibase extension and one with it?
Or is there a simpler way to configure the system to get such namespace structure?
Thank you for help! Victor Agroskin _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Hi all!
I have Mediawiki with Wikibase extension up and running, and sitelinks from Item pages to my wiki pages are registered in wiki_local group on Item page. Now I can not figure out how to make a link from a wiki page to the corresponding Item page appear in the side menu.
Thank you for your help! Victor Agroskin
Нi All!
I'm running a custom Wikibase and because of extension compatibility issues I can not use docker image, so I'm installing software from repositories.
I'm installing RDF query service as described in https://github.com/wikimedia/wikidata-query-rdf/blob/master/docs/getting-sta...
I have a following problem:
When I start runUpdate.sh with the command $ ./runUpdate.sh -n wdq , it starts populating my Blazegraph instance with updates from Wikidata. I can not find any way to configure it to use my local Wikibase instead. No parameters documented, no global or local variables found. Can anyone provide any advice on this?
Thank you for your help! Victor Agroskin
Hi Victor!
The command the docker image runs is as follows:
./runUpdate.sh -h http://$WDQS_HOST:$WDQS_PORT -- --wikibaseUrl $WIKIBASE_SCHEME://$WIKIBASE_HOST --conceptUri $WIKIBASE_SCHEME://$WIKIBASE_HOST --entityNamespaces $WDQS_ENTITY_NAMESPACES
That was taken from: https://github.com/wmde/wikibase-docker/blob/master/wdqs/0.3.6/runUpdate.sh#...
You can see what all the variables could be set to in the environment variables section of https://github.com/wmde/wikibase-docker/blob/master/wdqs/README.md.
This is assuming you're using something like this archive: https://archiva.wikimedia.org/repository/snapshots/org/wikidata/query/rdf/se...
All the best, Tom
On Thu, 26 Nov 2020 at 15:36, Victor Agroskin vic5784@gmail.com wrote:
Нi All!
I'm running a custom Wikibase and because of extension compatibility issues I can not use docker image, so I'm installing software from repositories.
I'm installing RDF query service as described in https://github.com/wikimedia/wikidata-query-rdf/blob/master/docs/getting-sta...
I have a following problem:
When I start runUpdate.sh with the command $ ./runUpdate.sh -n wdq , it starts populating my Blazegraph instance with updates from Wikidata. I can not find any way to configure it to use my local Wikibase instead. No parameters documented, no global or local variables found. Can anyone provide any advice on this?
Thank you for your help! Victor Agroskin _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Hi Victor,
please see my response inline.
On Thu, Nov 26, 2020 at 4:36 PM Victor Agroskin vic5784@gmail.com wrote:
When I start runUpdate.sh with the command $ ./runUpdate.sh -n wdq , it starts populating my Blazegraph instance with updates from Wikidata. I can not find any way to configure it to use my local Wikibase instead. No parameters documented, no global or local variables found. Can anyone provide any advice on this?
Most of the default values assume that you are running the service for wikidata. I've added a few notes about that in https://wikitech.wikimedia.org/wiki/Wikidata_query_service#Notes_about_runni...
Regards,
David.
I need further help, if possible.
I'm trying to get query service updater to get data from my Wikibase. It correctly identifies changes and accesses pages of changed items like https://standartopedia.ru/wiki/Special:EntityData/Q183.ttl
There are subjects on this page in three distinct namespaces: data: https://standartopedia.ru/wiki/Special:EntityData/ wd: https://standartopedia.ru/wiki/Item: s: https://standartopedia.ru/wiki/Item:statement/
But the Munger reports an error saying
$BadSubjectException: Unrecognized subjects: [
https://standartopedia.ru/wiki/Item:Q183, https://standartopedia.ru/wiki/Item:statement/ Q183-e349d2b6-4624-654f-b242-22497248197d]. Expected only sitelinks and subjects starting with https://standartopedia.ru/wiki/Special:EntityData/ and [https://standartopedia.ru/entity/]
So the first namespace is recognised, but no triples are imported. The 2nd and 3rd namespaces do not correspond to the expected values at all.
The runUpdate.sh script was called with the parameter
--conceptUri https://standartopedia.ru/
Looks like it forms one correct namespace, but not all the three which are actually found in the data.
Can anyone advise me on how to make Munger process the data?
Regards, Victor Agroskin
On Thu, 26 Nov 2020 at 18:35, Victor Agroskin vic5784@gmail.com wrote:
Нi All!
I'm running a custom Wikibase and because of extension compatibility issues I can not use docker image, so I'm installing software from repositories.
I'm installing RDF query service as described in https://github.com/wikimedia/wikidata-query-rdf/blob/master/docs/getting-sta...
I have a following problem:
When I start runUpdate.sh with the command $ ./runUpdate.sh -n wdq , it starts populating my Blazegraph instance with updates from Wikidata. I can not find any way to configure it to use my local Wikibase instead. No parameters documented, no global or local variables found. Can anyone provide any advice on this?
Thank you for your help! Victor Agroskin
Hi Victor,
please see my answers inline.
On Tue, Dec 1, 2020 at 2:29 PM Victor Agroskin vic5784@gmail.com wrote:
I need further help, if possible.
I'm trying to get query service updater to get data from my Wikibase. It correctly identifies changes and accesses pages of changed items like https://standartopedia.ru/wiki/Special:EntityData/Q183.ttl
There are subjects on this page in three distinct namespaces: data: https://standartopedia.ru/wiki/Special:EntityData/ wd: https://standartopedia.ru/wiki/Item: s: https://standartopedia.ru/wiki/Item:statement/
As you noticed the munger will not be able to import such data. The prefixes should look like:
@prefix wd: https://standartopedia.ru/entity/ . @prefix data: https://standartopedia.ru/wiki/Special:EntityData/ . @prefix s: https://standartopedia.ru/entity/statement/ .
Looking at https://standartopedia.ru/wiki/Special:EntityData/Q183.ttl I see that it is now correct, did you already solve the problem? If not I probably misunderstood your issue.
Regards,
David.
Thank you, David. I'd indeed resolved the problem. It was a desynchronisation between base concept URI set in repo parameters and parameters for updater and munger calls.
It was broken because I'd tried different settings to get a dereferenceable "Concept URI" link at the bottom of the side menu. Looks like it is impossible to do it in MediaWiki, requires some configuration at web server level.
Now all namespace parameters are the same and import goes smoothly.
Regards, Victor
On Tue, 1 Dec 2020 at 16:20, Victor Agroskin vic5784@gmail.com wrote:
I need further help, if possible.
I'm trying to get query service updater to get data from my Wikibase. It correctly identifies changes and accesses pages of changed items like https://standartopedia.ru/wiki/Special:EntityData/Q183.ttl
There are subjects on this page in three distinct namespaces: data: https://standartopedia.ru/wiki/Special:EntityData/ wd: https://standartopedia.ru/wiki/Item: s: https://standartopedia.ru/wiki/Item:statement/
But the Munger reports an error saying
$BadSubjectException: Unrecognized subjects: [
https://standartopedia.ru/wiki/Item:Q183, https://standartopedia.ru/wiki/Item:statement/ Q183-e349d2b6-4624-654f-b242-22497248197d]. Expected only sitelinks and subjects starting with https://standartopedia.ru/wiki/Special:EntityData/ and [https://standartopedia.ru/entity/]
So the first namespace is recognised, but no triples are imported. The 2nd and 3rd namespaces do not correspond to the expected values at all.
The runUpdate.sh script was called with the parameter
--conceptUri https://standartopedia.ru/
Looks like it forms one correct namespace, but not all the three which are actually found in the data.
Can anyone advise me on how to make Munger process the data?
Regards, Victor Agroskin
On Thu, 26 Nov 2020 at 18:35, Victor Agroskin vic5784@gmail.com wrote:
Нi All!
I'm running a custom Wikibase and because of extension compatibility issues I can not use docker image, so I'm installing software from repositories.
I'm installing RDF query service as described in https://github.com/wikimedia/wikidata-query-rdf/blob/master/docs/getting-sta...
I have a following problem:
When I start runUpdate.sh with the command $ ./runUpdate.sh -n wdq , it starts populating my Blazegraph instance with updates from Wikidata. I can not find any way to configure it to use my local Wikibase instead. No parameters documented, no global or local variables found. Can anyone provide any advice on this?
Thank you for your help! Victor Agroskin
On Wed, Dec 2, 2020 at 1:30 PM Victor Agroskin vic5784@gmail.com wrote:
Thank you, David. I'd indeed resolved the problem. It was a desynchronisation between base concept URI set in repo parameters and parameters for updater and munger calls.
Glad to hear that you have a working setup.
It was broken because I'd tried different settings to get a dereferenceable "Concept URI" link at the bottom of the side menu. Looks like it is impossible to do it in MediaWiki, requires some configuration at web server level.
Indeed WMF machines run some apache URL rewrite rules[0] at the apache level to solve this.
0: https://gerrit.wikimedia.org/r/plugins/gitiles/operations/puppet/+/refs/head...
David.
wikidata-tech@lists.wikimedia.org