wdgetproperty: Get a Wikidata property

Description Usage Arguments Value Examples

Description

Get a Wikidata property

Usage

1
wdgetproperty(pid, lang = "en", print = TRUE)

Arguments

pid

The Wikidata property id, as string (including the 'P') or integer value (without the 'P')

lang

Language abbreviation (ISO language codes), as string - default is "en"

print

Logical - if TRUE (default) the property information are printed

Value

A vector of two: property value and property description

Examples

1
2
3
4
5
## Not run: 
wdgetproperty(31)
prop <- wdgetproperty(pid="p31", lang="pl", print=FALSE)

## End(Not run)

chgrl/rwikidata documentation built on May 13, 2019, 4:08 p.m.