add_data_factory: Create a function that submits serialized RDF to a specific...

Description Usage Arguments Details Value Examples

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

Description

TODO : use the serializer from the RDF object and no need for the prefix argument

Usage

1
add_data_factory(access_options, prefixes)

Arguments

prefixes

Details

Wraps add_data to simply submit a Turtle/Trig file to a triplestore

Value

a function with one parameter, rdf_data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
prefixes = c(rdfs = "<http://www.w3.org/2000/01/rdf-schema#>", foaf = "<http://xmlns.com/foaf/0.1/>", openbiodiv = "<http://openbiodiv.net/>")
ttl = "openbiodiv:test_context {
openbiodiv:test1 rdf:label 'sample lab'@en .
}"
add_data_to_graphdb = add_data_factory(access_options = graphdb, prefixes = prefixes)

add_data_to_graphdb(rdf_data = ttl)

## End(Not run)

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