graph_names: Creates URIs for graphs

Description Usage Arguments Value Examples

View source: R/graph_names.R

Description

graph_names creates URIs for graphs based on a file from file hash and system time.

Usage

1
graph_names(filehash, base = "")

Arguments

base

The base URI to be used in the rdf.

path_to_csv

The path to the csv file.

sub_path

Further path of the URI.

Value

A named vector with five graph names for the assertion, nanopublication, provenance, pubinfo, and resource graphs.

Examples

1
2
3
4
5
path = tempfile()
outfile = file(path, "wb")
write.csv(data.frame(a = c(1, 2, 3)), file = outfile)
close(outfile)
graph_names(path)

rijpma/cower documentation built on March 11, 2020, 8:51 a.m.