New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wikidata-sdk

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikidata-sdk - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json
{
"name": "wikidata-sdk",
"version": "3.0.0",
"version": "3.0.1",
"description": "a javascript tool suite to query and work with wikidata data",

@@ -5,0 +5,0 @@ "main": "build/wikidata-sdk.js",

@@ -407,35 +407,5 @@ ![wikidata](https://pbs.twimg.com/profile_images/2498571390/cizdiwz4oiiq1zae94jp.png)

## CLI
Now some sweeties from the command line!
Executables are regrouped in the `bin` folder, so you can execute them using there file path (ex: `./bin/qlabel`), but it is way more convenient to have them globally accessible (ex: `qlabel`), and for that, `wikidata-sdk` must be installed globally:
```sh
npm install -g wikidata-sdk
```
moved to [wikidata-cli](https://npmjs.com/package/wikidata-cli)
### qlabel
Working with Wikidata, we often end up with obscure ids. We can always look-up those ids labels on the website but that means loading pages and pages, when a small API call and parsing could return just what we need: a label
```sh
qlabel Q1103345
# => The Cluetrain Manifesto
```
By default, the result is in English, but we can pass a 2-letters language code as second argument
```sh
qlabel Q1103345 de
# => Cluetrain-Manifest
```
### wikiqid
This one is kind of the other way around: pass it the title of a Wikipedia article and it will return the corresponding Wikidata id
```sh
wikiqid Cantabria
# => Q3946
wikiqid New Delhi
# => Q987
```
By default, it will look at the English Wikipedia, but you can specify another language by passing a 2-letters language code as last argument
```sh
wikiqid science politique fr
# => Q36442
```
# License
[MIT](LICENSE.md)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc