Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Oct 19, 2023
1 parent 0c1161f commit 5ffcf38
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions R/build_sparql.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,10 @@ spq_assemble = function(.query, strict = TRUE) {
triples_present = !is.null(.query[["triples"]])
body = if (triples_present) {

# loop through lines
# if a triple is the sibling of other ones
# build the siblings first (which might be the siblings of other triples)
# once a thing is built keep it in a string and remove the rows from
# the triple table
# loop through lines
# if a triple is the sibling of other ones
# build the siblings first (which might be the siblings of other triples)
# once a thing is built keep it in a string and remove the rows from
# the triple table
firstborn_triples = .query[["triples"]][is.na(.query[["triples"]][["sibling_triple"]]),]
firstborn_triples = split(firstborn_triples, seq_len(nrow(firstborn_triples)))

# they'll be built as we build their big siblings
other_triples = .query[["triples"]][!is.na(.query[["triples"]][["sibling_triple"]]),]

purrr::map_chr(
Expand Down

0 comments on commit 5ffcf38

Please sign in to comment.