Epigraf stores data according to the Relational Article Model.
The most straightforward method for mapping data to simple tables is using the rpigraf-package.
In the example vignette, you find code chunks for importing data and for getting it back from Epigraf.
Further, the package implements some useful features for data analysis such as showing annotated text segments.
This is how you fetch data from Epigraf:
epi <- api_fetch("articles", db = "epi_movies")
The data comes in RAM format. The distill methods extract tidy tables:
distill_articles(
epi,
# Get some article fields
c("signature", "name"),
# ...and property data used in its items
item.type = "categories",
property.cols = "lemma"
)
Properties can be extracted including the annotated text segments:
distill_properties(epi, "annotations", annos = TRUE)