wdesr_get_graph | R Documentation |
From a root wikipedia id, the function follows a given set of properties, building vertice and edges along the way.
wdesr_get_graph(
wdid,
props,
depth = 3,
active_only = FALSE,
stop_at = c("EPST", "EPIC", "EPCA", "Académie", "agence publique")
)
wdid |
The wikidata id of the root. |
props |
The set of properties to follow. |
depth |
The depth of the graph (more or less) (default to 3). |
active_only |
TRUE to filter dissolved universities (default to FALSE). |
stop_at |
A list of type of nodes that must not be visited furthermore (default to c("EPST","EPIC","EPCA","Académie","agence publique")). |
Data are cached: use wdesr_clear_cache
to refresh data from wikidata.
A list of edges and vertices.
Julien Gossa, gossa@unistra.fr
wdesr_clear_cache
g <- wdesr_get_graph("Q61716176",c('composante','associé'), 1)
g$edges
g$vertice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.