testtdf <- data.frame (s = c("eg:o1", "eg:01", "eg:02"),
p = c("a", "eg-var:", "eg-var"),
o = c("qb:Observation",
"\"1\"^^",
"\"2\"^^"))
examplefile <- file.path(tempdir(), "ttl_dataset_write.ttl")
dataset_ttl_write(tdf=testtdf, file_path = examplefile)
readLines(examplefile)
Run the code above in your browser using DataLab