Learn R Programming

dataset (version 0.3.4)

n_triple: Create an N-Triple

Description

Create a single N-Triple triple.

Usage

n_triple(s, p, o)

Value

A character vector containing one N-Triple string.

Arguments

s

The subject of a triplet.

p

The predicate of a triplet.

o

The object of a triplet.

Details

N-Triples is an easy to parse line-based subset of Turtle to serialize RDF. An N-Triple triple is a sequence of RDF terms representing the subject, predicate and object of an RDF Triple. Use n_triples to serialize multiple statements.

Examples

Run this code
s <- "http://example.org/show/218"
p <- "http://www.w3.org/2000/01/rdf-schema#label"
o <- "That Seventies Show"
n_triple(s, p, o)

Run the code above in your browser using DataLab