UNPKG

wikibase-cli

Version:

A command-line interface to Wikibase

19 lines (18 loc) 962 B
export default { alias: 'gp', args: '<subject> <property> <object>', description: 'Find the path between a subject and an object via a given property, on the entities relations graph', options: { lang: true, verbose: true, clipboard: false, json: false, instance: false, sparqlEndpoint: true, }, examples: [ { args: 'Q336 P279 Q5891', comment: 'Find by which path science (Q336) is a subclass of (P279) philosophy (Q5891)' }, { args: 'Q336 P279 Q5891,Q2198855,Q3326717,Q968159', comment: 'Find by which path science (Q336) is a subclass of (P279) either philosophy (Q5891), literary movement (Q3326717), or art movement (Q968159)' }, { args: 'wd gp Q506259 P279 Q2509280 --format mermaid | mermaid-ascii -f -', comment: 'Output graph in the [mermaid format](https://mermaid.js.org/) and pipe it to [mermaid-ascii](https://github.com/AlexanderGrooff/mermaid-ascii) to visualize the graph in the terminal' }, ], }