string_utilities: Query File Utilities

Description Usage Arguments Details make_SPARQL_variable_names

Description

Utility functions to handle frequent string operations.

Usage

1
2
3

Arguments

x

A character vector.

Details

The functions take character vector and are used to accomplish simple string operations, such as replacement of undesired characters or other simple transformations. The functions are not exported as it's unlikely that anyone would found them useful outside the package environment.

make_SPARQL_variable_names

Wrapper for the gsub function that replaces special characters with underscore. Collections of special characters are replaced with one underscore character.

Wrapper for the gsub function that replaces special characters with underscore. Collections of special characters are replaced with one underscore character. By default, selected strings will be suffixed with /rdfs:label. This behaviour can be controlled via SmarterScotland.suffix_rdf option.


konradedgar/SmarterScotland documentation built on Oct. 3, 2019, 11:46 a.m.