Skip to contents

The goal of rosettaR is to provide a series of tools to work with Rosetta Statements, which are plain language statements that can be converted to semantic data when paired with a template.

Installation

You can install the development version of rosettaR from GitHub with:

# install.packages("pak")
pak::pak("timalamenciak/rosettaR")

Example

This is a basic example of how rosettaR can convert data:

library(rosettaR)
statement <- "Kitchener is located in Canada"
in_template <- "{{ city }} is located in {{ country }}"
out_template <- "CITY,COUNTRY,,{{ city }},{{ country }}"
df <- rosetta_format(statement, in_template, out_template)

Development notes

This is a very early version of this package. It is based on the idea of Rosetta Statements described in Rosetta Statements: Simplifying FAIR Knowledge Graph Construction with a User-Centered Approach by Lars Vogt et al.

Development tasks