diff --git a/R/spq_parse_verb_object.R b/R/spq_parse_verb_object.R index 6f2fa25..d2178ba 100644 --- a/R/spq_parse_verb_object.R +++ b/R/spq_parse_verb_object.R @@ -39,7 +39,7 @@ treat_p_o <- function(predicate) { return(sprintf("?%s", property)) } - if (grepl("_all$", property)) { + if (!is.na(property) & endsWith(property, "_all")) { property <- sub("_all$", "*", property) } sprintf("%s:%s", prefix, property)