You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess related issue with even simpler query, reproducible on any data. I have optional that produce no bindings and then want to use COALESCE to bind some variable to some default value.
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT * WHERE {
OPTIONAL {
<http://www.researchspace.org/resource/system/resource_configurations_container/data/Actor> crm:P67_refers_to ?refersToResourceConfig_1.
}
BIND(COALESCE(?refersToResourceConfig_1, <http://www.researchspace.org/resource/system/resource_configurations_container/data/Actor>) AS ?resourceConfiguration)
}
If OPTIONAL is empty I would expect ?resourceConfiguration to be bound to <http://www.researchspace.org/resource/system/resource_configurations_container/data/Actor>.
The text was updated successfully, but these errors were encountered:
query plan:
If I remove first optional then the query actually produce results.
Can be reproduced with a single quad:
If OPTIONAL is empty I would expect
?resourceConfiguration
to be bound to<http://www.researchspace.org/resource/system/resource_configurations_container/data/Actor>
.The text was updated successfully, but these errors were encountered: