-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support QuickStatements syntax #62
Comments
My current use case is to serialize filtered Wikidata dumps in QuickStatements syntax, so I'm starting to implemented at https://github.com/nichtich/wikidata-sdk/tree/quickstatements |
what do you do with a QuickStatements serialized dump then? (trying to understand the use case :)) |
@nichtich I have interest in this for large-volume updates (eg 1.7M claims, 82Mb QS CSV), since I thought QuickStatements is not suited for that: https://www.wikidata.org/wiki/Topic:Vfnr6v8lfqagpi7g. @magnusmanske advised me to use the QS Batch tool (source https://github.com/magnusmanske/quickstatements_rs, deployed at https://tools.wmflabs.org/quickstatements/#/user). I currently see reliability problems with QS Interactive: Hopefully QS Batch won't have these problems; but if it has then I'll try using wikibase-cli. @maxlath The current version of wikibase-cli would need some adaptations to make it suited for large-volume updates:
|
So far no luck with the QS Batch tool (see https://www.wikidata.org/wiki/Topic:Vfnr6v8lfqagpi7g) |
not to say that it can't be improved, but a lot of what you ask is already possible in some way (out of the QS syntax)
there is certainly an overhead, but in my experience, it has been acceptable: the bottleneck remains Wikibase API
it's already possible using
errors are written on the process
errors make the process exit with a non-zero code, so if you where to have a script like set -e
wd sl Q4115189 foo bar
wd sl Q4115189 nl bar It would print an error to stderr and exit the script thank to the |
FWIW, I fixed the QS (OAuth) issue. If you are logged into QS, you can find instructions here. |
it would be too much work to add support for QS syntax, especially to maintain, as that would require staying up to date with QS evolutions, but:
|
I gave a shot to a batch mode, feedback welcome |
@maxlath thanks a lot, seems perfect! After my QS batches finish (recently tge has been a speed up due to a fixed deadlock issue), I'll collect the leftover (which will be in the 100,000s) and run with your batch mode. https://github.com/maxlath/wikidata-scripting/blob/master/worldcat_identities_ids/README.md is also great. Can't one use |
A QuickStatements issue has been re-opened on wikibase-edit repo maxlath/wikibase-edit#64 |
The JSON format of wdEdit.entity.edit seems to be mappable from QuickStatements syntax and vice versa. I don't know where the mapping might best be place (
wikidata-sdk
?) but in the end it should be provided as alternative format tocreate-item
/edit-item
: if the first character isn't{
, try parsing QuickStatements syntax.The text was updated successfully, but these errors were encountered: