add_data: Add Data to a Repository

Description Usage Arguments Value Examples

View source: R/db-access-low-level.R

Description

Add Data to a Repository

Usage

1
add_data(rdf_data, access_options, data_format = "application/x-trig")

Arguments

rdf_data

character. RDF data containing the triples to be submitted.

access_options

output of basic_triplestore_access or api_triplestore_access

data_format

currently only 'application/x-trig' is supported. A variant of Turtle.

Value

the response of the 'httr::POST' against the endpoint

Examples

1
2
3
4
5
6
7
## Not run: 
rdf_data = c("<http://test.net/mytest1> {
  <http://test.net/mysubject2> <http://test.net/has-value> '5' .
}")
add_data(rdf_data, access_options = graphdb)

## End(Not run)

vsenderov/rdf4r documentation built on May 3, 2019, 4:02 p.m.