I'm trying to write a query binding a variable to a value if it hasn't been bound yet.
For example, it could look like this pseudocode:
OPTIONAL {
FILTER (some filter)
BIND ("I bound this variable" as ?variable)
}
OPTIONAL {
FILTER (!BOUND(?variable))
BIND ("This variable was unbound, but is now bound"
}
Basically, I have a variable that might or might not have an assigned value and if it didn't, I want to assign one, but I cannot make a query using an approach like FILTER (!BOUND(?variable)) work.