Replies: 10 comments
-
yes! i also encountered the basically i wanted to get "fred" into ?o in the (bgp):
i was hoping there was a swift solution so i tried: but those methods didn't have the right behavior. |
Beta Was this translation helpful? Give feedback.
-
One way of doing it is to postpone the execution of the inner SERVICE clause until all variables mentioned in |
Beta Was this translation helpful? Give feedback.
-
That's exactly the behaviour I tried to implement. A fake pattern is then created (e.g. ?s ?p ?loc) and executed against the current context (cf. here) Note that there already exists an integration test that assesses this feature Said that, if you report the issue there is maybe something wrong going on here. Let's investigate |
Beta Was this translation helpful? Give feedback.
-
4ce6d3b should fix this issue (at least partially)
but not for
This is due to the fact that the FacadeXOpExecutor looks for tables only once the processing of the SERVICE clause has started and only for sub-operators of the SERVICE clause. Are we ok with this behaviour? I mean, I think that whatever is outside the SERVICE should be processed as SPARQL prescribes (the result of the table is joined with the result of the SERVICE once the service is processed). The evaluation of the SERVICE and its inner operators depends on the behaviour we want to implement in sparql anything. |
Beta Was this translation helpful? Give feedback.
-
Thank you for looking into this, it makes a lot of sense. My original use case was using the VALUES clause to get the location from parameters passed through the CLI feature |
Beta Was this translation helpful? Give feedback.
-
Indeed, the following query is working nicely:
Executed as
|
Beta Was this translation helpful? Give feedback.
-
this works:
but this does not:
so right now it looks like the OpService is necessary for fx:properties variables. also bind() becomes OpExtend which seems to be a little different than OpTable as this does not work:
|
Beta Was this translation helpful? Give feedback.
-
This commit a2ce6a7 should address the assignment via BIND operator. |
Beta Was this translation helpful? Give feedback.
-
bind also works for me now. but the OpService is still necessary. this is minor i think but it might cause confusion for some users.
but it would be nice if postponing the execution of a service clause would, in general, allow things like:
but that does not work right now. |
Beta Was this translation helpful? Give feedback.
-
That's true. However you can maybe have the same behaviour by nesting the two service clause. |
Beta Was this translation helpful? Give feedback.
-
FX properties are removed from the query pattern before evaluation.
For example, the following query does not work:
While this seems to work:
and this is a temporary solution:
However, setting properties dynamically is very useful.
Beta Was this translation helpful? Give feedback.
All reactions