Write the namespace prefixes into the header of a Turtle serialisation
Examples
ttl_namespace <- data.frame(
prefix = c("dbo:", "dcterms:"),
uri = c("<http://dbpedia.org/ontology/>",
"<http://purl.org/dc/terms/>")
)
file_path <- tempfile()
ttl_prefix_write(ttl_namespace, file_path)
readLines(file_path)
#> [1] "@prefix dbo: <http://dbpedia.org/ontology/> ."
#> [2] "@prefix dcterms: <http://purl.org/dc/terms/> ."