Skip to content

Support iterative glue-ing#30

Draft
allenbaron wants to merge 5 commits into
templatefrom
glueV_cum
Draft

Support iterative glue-ing#30
allenbaron wants to merge 5 commits into
templatefrom
glueV_cum

Conversation

@allenbaron
Copy link
Copy Markdown
Collaborator

This creates glueV_cum() which performs iterative glue-ing, using the same wrappers as glueV() in this package (i.e. !<< & >>!). It was designed to support iterative SPARQL query building.

One option for data removal, and perhaps other implementations via the Google Sheet curation schema, is to build the appropriate SPARQL queries to remove specific data via jinja-like templating (glue-ing). Depending on how this is done, it might require iterative SPARQL query building.

Note

The security implications of iterative glue-ing are unclear.

glue::glue() and glueV() identify expression string(s) as
unnamed inputs and temporary variables as named inputs.

This drops the requirement for explicitly stating the order of
expression strings using numbers as names for expression strings,
which is likely not intuitive, and makes inputs consistent with
other glue functions. It also adds the .sep argument.
Instead of silently returning an empty glue object like
glue::glue() and glueV(), glueV_cum() will produce an error when
no expression string is provided as input. This has been a common
source of mistakes when using glue::glue().

Tests: PASS
@allenbaron allenbaron changed the base branch from main to template December 19, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant