{"id":25883154,"url":"https://github.com/maxlath/quickstatements-to-wikibase-edit","last_synced_at":"2026-02-07T23:02:36.038Z","repository":{"id":49546080,"uuid":"354633944","full_name":"maxlath/quickstatements-to-wikibase-edit","owner":"maxlath","description":"Tools to convert QuickStatements commands into wikibase-edit format","archived":false,"fork":false,"pushed_at":"2024-10-02T11:13:56.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-03T04:37:42.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxlath.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"liberapay":"Association_Inventaire"}},"created_at":"2021-04-04T19:53:31.000Z","updated_at":"2024-10-02T11:14:00.000Z","dependencies_parsed_at":"2025-03-02T23:15:24.445Z","dependency_job_id":null,"html_url":"https://github.com/maxlath/quickstatements-to-wikibase-edit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxlath/quickstatements-to-wikibase-edit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Fquickstatements-to-wikibase-edit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Fquickstatements-to-wikibase-edit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Fquickstatements-to-wikibase-edit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Fquickstatements-to-wikibase-edit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxlath","download_url":"https://codeload.github.com/maxlath/quickstatements-to-wikibase-edit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Fquickstatements-to-wikibase-edit/sbom","scorecard":{"id":629662,"data":{"date":"2025-08-11","repo":{"name":"github.com/maxlath/quickstatements-to-wikibase-edit","commit":"fc96443398efef920e94566d9379278de28eee3f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T07:28:38.493Z","repository_id":49546080,"created_at":"2025-08-21T07:28:38.493Z","updated_at":"2025-08-21T07:28:38.493Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29211576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T22:58:45.823Z","status":"ssl_error","status_checked_at":"2026-02-07T22:58:45.272Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-02T16:31:48.388Z","updated_at":"2026-02-07T23:02:36.021Z","avatar_url":"https://github.com/maxlath.png","language":"JavaScript","funding_links":["https://liberapay.com/Association_Inventaire"],"categories":[],"sub_categories":[],"readme":"## quickstatements-to-wikibase-edit\n\nTools to convert [QuickStatements commands](https://www.wikidata.org/wiki/Help:QuickStatements#Command_sequence_syntax) into [wikibase-edit format](https://github.com/maxlath/wikibase-edit/blob/master/docs/how_to.md#api).\n\n**Supported features**\n* add labels, descriptions, aliases, sitelinks\n* add statements with qualifiers and references\n* if a statement with the same value already exist, do not re-add it, but add the new qualifiers and references\n* create items\n* merge items\n\n**Missing features**\n* remove statement\n\n## CLI\n### Install\n```sh\n# Should make the commands `wb` and `quickstatements-to-wikibase-edit` available from anywhere\nnpm install --global wikibase-cli quickstatements-to-wikibase-edit\n# Make sure your credentials are setup for the target instance (example below with wikidata.org)\nwb config credentials https://www.wikidata.org test\n```\n\n### Usage\n```sh\n# Should generate edits, creations, and merges NDJSON files, depending on the commands content\nquickstatements-to-wikibase-edit ./quickstatement_commands.txt\n\ncat 0ba886b6-edits.ndjson | wb edit-entity --batch --summary 'fixing stuff'\ncat 0ba886b6-creations.ndjson | wb create-entity --batch --summary 'fixing stuff'\ncat 0ba886b6-merges.ndjson | wb merge-entity --batch --summary 'fixing stuff'\n```\n\nBy default, edits will be run with their [reconciliation mode](https://github.com/maxlath/wikibase-edit/blob/main/docs/how_to.md#reconciliation) set to `merge`, to mimick QuickStatements behavior. Other reconciliation modes could be used (see [wikibase-edit documentation](https://github.com/maxlath/wikibase-edit/blob/main/docs/how_to.md#reconciliation) for behavior explainations)\n```sh\nquickstatements-to-wikibase-edit ./quickstatement_commands.txt --reconciliation merge # Default\nquickstatements-to-wikibase-edit ./quickstatement_commands.txt --reconciliation skip-on-any-value\nquickstatements-to-wikibase-edit ./quickstatement_commands.txt --reconciliation skip-on-value-match\nquickstatements-to-wikibase-edit ./quickstatement_commands.txt --reconciliation none\n```\n\n## JS\n### Install\n```sh\nnpm install wikibase-edit quickstatements-to-wikibase-edit\n```\n\n### Usage\n```js\nconst wbEdit = require('wikibase-edit')({ instance, credentials })\nconst quickstatementsToWikibaseEdit = require('quickstatements-to-wikibase-edit')\n\nconst commands = `\nQ4115189\tP31\tQ1\nQ4115189\tP373\t\"Antoni Ignacy Mietelski\"\nQ1214098\tP1476\tpl:\"Krzyżacy\"\nCREATE\nLAST\tSfrwiki\t\"Le croissant magnifique!\"\nLAST\tLfr\t\"Le croissant magnifique!\"\nQ340122\tAen\t\"Cyprjan Kamil Norwid\"\nMERGE\tQ1\tQ2\nQ340122\tAen\t\"Cyprian Kamil Norwid|Cypryan Kamil Norvid\"\n`\n\nconst options = {\n  // Optionnally set the reconciliation object, see wikibase-edit documentation\n  // https://github.com/maxlath/wikibase-edit/blob/main/docs/how_to.md#reconciliation\n  reconciliation: {\n    mode: 'none' // Default value: merge (mimicking QuickStatements behavior)\n  }\n}\n\nconst { edits, creations, merges } = quickstatementsToWikibaseEdit(commands, options)\n\nfor (const edit of edits) {\n  await wbEdit.entity.edit(edit)\n}\n\nfor (const creation of creations) {\n  await wbEdit.entity.create(creation)\n}\n\nfor (const merge of merges) {\n  await wbEdit.entity.merge(merge)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlath%2Fquickstatements-to-wikibase-edit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxlath%2Fquickstatements-to-wikibase-edit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlath%2Fquickstatements-to-wikibase-edit/lists"}