Get superclasses of a Wikidata class

superclasses_of(id, include_self = FALSE)

Arguments

id

the id of class

include_self

whether to include class itself in the results table

Examples

superclasses_of("wd:Q7930989")
#> # A tibble: 3 x 4 #> from to classes classesLabel #> <chr> <chr> <chr> <chr> #> 1 wd:Q56061 wd:Q7930989 wd:Q56061 administrative territorial entity #> 2 wd:Q486972 wd:Q7930989 wd:Q486972 human settlement #> 3 wd:Q3257686 wd:Q7930989 wd:Q3257686 locality