wikibase-sdk icon indicating copy to clipboard operation
wikibase-sdk copied to clipboard

JS utils functions to query a Wikibase instance and simplify its results

Results 21 wikibase-sdk issues
Sort by recently updated
recently updated
newest added

- wikibase-sdk version: `0.3.0` - Environment NodeJS: `v16.15.1` - Typescript version: `4.7.3` After importing the library: ``` import wbk from 'wikibase-sdk' ``` We get this error: ``` Could not find...

Could you add a feature to support tabular data. ([example](https://commons.wikimedia.org/wiki/Data:Population_FR_Q117517.tab)) Would be nice if [P4179](https://www.wikidata.org/wiki/Property:P4179) could get the data directly.

feature request

Currently, the library assumes that the action API endpoint is found under `/w/api.php`, i.e. that the [script path](https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgScriptPath) is `/w`: https://github.com/maxlath/wikibase-sdk/blob/d04dc7c2eaa3ce7d88a0a1164cddc75907902f70/lib/wikibase-sdk.js#L26-L30 This is not true for all wikis, and I...

Summary of the issue from https://www.mediawiki.org/wiki/Wikibase/DataModel/JSON#time: > [in JSON] Years BCE are represented as negative numbers, using the historical numbering, in which year 0 is undefined, and the year 1...

bug
help wanted

We don't have a `/examples` dir in our project. To increase usability and reach of this awesome sdk and toolkit we have for wikidata in JS, I was planning to...

documentation

Currently the list of sitelink languages has to be updated manually. When using the sitelinks of an entity and putting them all into `getSitelinkData` the ones with yet not known...

@maxlath @noinkling @EdJoPaTo In the meantime, you should push a new version without the ` types` key in `package.json` so as not to give people bad types automatically.

see https://www.wikidata.org/wiki/Wikidata:Lexicographical_data

feature request
lexeme

Add an option to further reduce data on simplifiation by * removal of empty arrays and objects such as `"references": [], "qualifiers": {}"` * making single-element arrays simple values (e.g....