Project:RerunUpdate: Difference between revisions
From MaRDI portal
m Larissa moved page Project:RerunUpdate to Project:RerunUpdate |
No edit summary |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
For more information: | For more information: | ||
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual | https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual (search for ''runUpdate'') | ||
[https://www.mediawiki.org/wiki/Wikibase/FAQ/en#Why_doesn't_the_query_service_update? https://www.mediawiki.org/wiki/Wikibase/FAQ/en#Why_doesn't_the_query_service_update?] | [https://www.mediawiki.org/wiki/Wikibase/FAQ/en#Why_doesn't_the_query_service_update? https://www.mediawiki.org/wiki/Wikibase/FAQ/en#Why_doesn't_the_query_service_update?] | ||
* go to mardi02 | * go to mardi02 (or connect to the wdqs instance on portainer) | ||
* determine the timestamp you want to start from (format should be <code>2015-02-11T17:11:08Z</code> or <code>20150211170100</code> ) | * determine the timestamp you want to start from (format should be <code>2015-02-11T17:11:08Z</code> or <code>20150211170100</code> ) | ||
* execute <syntaxhighlight lang="bash"> | * execute <syntaxhighlight lang="bash"> | ||
docker exec docker-wdqs-1 bash -c '/wdqs/runUpdate.sh -h http://${WDQS_HOST}:${WDQS_PORT} -- --wikibaseUrl ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --conceptUri ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --entityNamespaces ${WDQS_ENTITY_NAMESPACES} --init --start TIMESTAMP' | docker exec docker-wdqs-1 bash -c '/wdqs/runUpdate.sh -h http://${WDQS_HOST}:${WDQS_PORT} -- --wikibaseUrl ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --conceptUri ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --entityNamespaces ${WDQS_ENTITY_NAMESPACES} --init --start TIMESTAMP' | ||
</syntaxhighlight> be careful with the --init flag as if the start timestamp is chosen too far back, the updating process takes so long that new items get cleared from the recentchanges before they are incorporated and thus get lost for the updater | |||
*you can either update a specific IDs by adding <code>--ids ID1,ID2,...</code> or update a range of IDs by adding <code>--idrange ID1-ID2</code> ; if the idrange is chosen, omit the Q. you can now omit init and start timestamp | |||
To update everything run | |||
<syntaxhighlight lang="bash"> | |||
screen | |||
docker exec docker-wdqs-1 bash -c '/wdqs/runUpdate.sh -h http://${WDQS_HOST}:${WDQS_PORT} -- --wikibaseUrl ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --conceptUri ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --entityNamespaces ${WDQS_ENTITY_NAMESPACES} --start 20150211170100' | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 17:57, 13 February 2025
This page is documentation of how to get the Updater to incorporate items it missed because if was not running for some reason.
For more information:
https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual (search for runUpdate)
https://www.mediawiki.org/wiki/Wikibase/FAQ/en#Why_doesn't_the_query_service_update?
- go to mardi02 (or connect to the wdqs instance on portainer)
- determine the timestamp you want to start from (format should be
2015-02-11T17:11:08Z
or20150211170100
) - execute be careful with the --init flag as if the start timestamp is chosen too far back, the updating process takes so long that new items get cleared from the recentchanges before they are incorporated and thus get lost for the updater
docker exec docker-wdqs-1 bash -c '/wdqs/runUpdate.sh -h http://${WDQS_HOST}:${WDQS_PORT} -- --wikibaseUrl ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --conceptUri ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --entityNamespaces ${WDQS_ENTITY_NAMESPACES} --init --start TIMESTAMP'
- you can either update a specific IDs by adding
--ids ID1,ID2,...
or update a range of IDs by adding--idrange ID1-ID2
; if the idrange is chosen, omit the Q. you can now omit init and start timestamp
To update everything run
screen
docker exec docker-wdqs-1 bash -c '/wdqs/runUpdate.sh -h http://${WDQS_HOST}:${WDQS_PORT} -- --wikibaseUrl ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --conceptUri ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --entityNamespaces ${WDQS_ENTITY_NAMESPACES} --start 20150211170100'