wikidata-filter
Version:
Filter and format a newline-delimited JSON stream of Wikidata entities
39 lines (30 loc) • 1.41 kB
JavaScript
module.exports = {
claim: `
Specify the claim the entity should have to pass the filter.
\t\t\t\tExample: to keep only entities of humans: wikidata-filter -c P31:Q5\n`,
sitelink: `
Specify the sitelink the entity should have to pass the filter.
\t\t\t\tExample: to keep only entities with an article in the Spanish Wikipedia: wikidata-filter --sitelink eswiki\n`,
omit: `
Specify the entities attributes to omit among wikidata entities attributes: type, labels, descriptions, aliases, claims, sitelinks.
\t\t\t\tExample: to keep only labels and descriptions: wikidata-filter -o aliases,claims,sitelink\n`,
keep: `
The inverse of omit: specify the attributes to keep.
\t\t\t\tExample: to keep only labels and descriptions: wikidata-filter -k labels,descriptions\n`,
type: `
Specify which entity type should be kept: item, property or both. Defaults to item.
`,
languages: `
Specify for which languages labels, descriptions and aliases should be kept.
`,
simplify: `
Flag to simplify claims values. Defaults to false.
Can also accept wikibase-sdk simplify.entity option object as JSON or key=values: wikidata-filter --simplify 'keepQualifiers=true&keepRichValues=true'
`,
progress: `
Show the progress bar. Defaults to 'false' when stdout is a terminal, 'true' otherwise
`,
quiet: `
Disable the progress bar
`
}