wikibase-cli
Version:
A command-line interface to Wikibase
25 lines (24 loc) • 1.34 kB
JavaScript
export default {
alias: 'p',
args: '',
description: 'output the list of all Wikidata properties',
options: {
lang: true,
verbose: true,
clipboard: true,
json: true,
instance: true,
sparqlEndpoint: true,
},
examples: [
{ args: '', comment: 'output all the properties and their labels' },
{ args: '--type', comment: 'output all properties, with their labels, types' },
{ args: '--details', comment: 'output all properties, with their labels, types, descriptions, and aliases' },
{ args: 'image', comment: 'filter the properties to keep only those with labels matching "image"' },
{ args: '--type Url', comment: 'filter the properties to keep only those of type Url (other possible types: ExternalId, String, WikibaseItem, WikibaseProperty, Time, Monolingualtext, Quantity, CommonsMedia, GlobeCoordinate)' },
{ args: '--type Url ref', comment: 'filter the properties to keep only those of type Url matching the pattern "ref"' },
{ args: '--lang sv', comment: 'output all the properties with their label in Swedish' },
{ args: '--no-cache', comment: 'ignore properties cache: fetch properties from the SPARQL endpoint, even if already cached' },
{ args: '--reset', comment: 'delete all the cached properties files to get fresh versions on the next execution' },
],
}