File: check_supported_datatypes

package info (click to toggle)
node-wikibase-sdk 8.1.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,620 kB
  • sloc: javascript: 3,514; sh: 64; makefile: 2
file content (11 lines) | stat: -rwxr-xr-x 429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
set -eu

which wd > /dev/null || {
  echo "requires to have https://www.npmjs.com/package/wikibase-cli installed, either globally or just in this repo"
  echo "(it is not installed as a dev dependency as the use made of it is not worth the subdependencies maintainance)"
  exit 1
}

wd sparql ./scripts/queries/all_properties_datatypes.rq --json > /tmp/all_wikidata_datatypes.json
./scripts/compare_datatypes