Learn R Programming

roxigraph (version 0.1.1)

rdf_add: Add a Triple

Description

Adds a single triple to the store.

Usage

rdf_add(store, subject, predicate, object, graph = NULL)

Value

Invisibly returns NULL

Arguments

store

An RDF store handle

subject

Subject IRI (e.g., "<http://example.org/s>") or blank node ("_:b1")

predicate

Predicate IRI (e.g., "<http://example.org/p>")

object

Object: IRI, blank node, or literal (e.g., '"value"')

graph

Optional named graph IRI

Examples

Run this code
store <- rdf_store()
rdf_add(store, "", "", '"hello"')
rdf_size(store)

Run the code above in your browser using DataLab